Usb interrupt timeout event handling
Hi all,
I am new to labview, I am doing PIC and PC USB data transfer. I am wondering is there any way I can handle the timeout event generated by "VISA wait on Event" VI, so that when there is no coming data within certain time, it would continue proccess other code rather than generate a error. I am thinking of why VISA USB intterupt has a timeout. Interrupt can only be trigger whenever it is requested, any method to link a USB interrupt event to EVENT Structure rather than polling, which makes more sense to me.
Thanks & Regards
Solved!
Go to Solution.
Yeah, sorry for being so cryptic.
I indeed meant the USB nuggets linked to in my signature. I assumed once I had mentioned it they would be found....... Sorry.
You should find an example of using Interrupt functions in there.
Shane.
Say hello to my little friend.
RFC 2323 FHE-Compliant
Similar Messages
-
Getting task id in boundary event handler
Oracle BPM 11.1.1.6
I have a human task in my process and I want to send out some very customized notification ( very different to the original assignment notification) to the assignee if the task is not actioned within a certain duration. For this I am having a non interrupting boundary event handler attached to the task which connects to a notification activity. The notification content needs to include an URL , which has the task id as part of it. ( we are using a custom worklist app ). Question: is there a way to get the taskid of the task for including it in the content of notification activity ?
TIA,
AtheekHi
UBR and UER are amounts that system calculate for the entire draft invoice and the entire draft revenue.
Since usually invoice and revenue are generated at the project level, the task id is not a valid parameter for AA, since there could be multiple tasks on the same document.
If in your case you are sure the revenue and invoice document always contains a single task, you could try a workaround using AA rule based on SQL statement. The logic will be to select any bill item within the invoice or revenue (either EI RDL or an Event) and read the task id of that item.
Dina -
Hi, All
I have a application need periodically check an instrument status and I put it in the "Timeout Event" in main vi. I also need call some subVis for configuration etc. Somehow when I called those subvi, the Timeout event in my main vi was not running. Then I use " Start Asynchronous Call" function to call the subVis. Turns out it works fine with some subvis without return value, but not as expected with "return value-needed" subvis.
I attached a simple test, my main vi call two dlg subvis: AboutDlg.vi and SettingsDlg.vi. In the timeout event, I just use a counter for simulation. When you run it, you can see the counter keep counting when the AboutDlg.vi was called, but stopped when SettingsDlg.vi was called.
As I remembered, someone suggested to use Queue to pass return value, but I don't know how to implement it here.
Anyone has any suggestions about it?
Thank you very much.
CQ
Solved!
Go to Solution.
Attachments:
AsyCallTest.llb 108 KBTry playing with this - I have modified your code to poke a Q in there.
You will want to change the clusters to more useful datatypes (maybe enum and variant so you can unbundle variants depending on enum input), you will want to type def the clusters to make it easier to maintain and you will NEED to handle the sitaution where the called VI is left open on program close - i couldn't be bothered as this was not your immediate issue)
Hope this give you some Ideas - totalyy untested but should work.
James
Attachments:
AsyCallTest.llb 114 KB -
Unusual Event Handling Priorities
This may be a pretty esoteric situation, but just thought I
would bring it up.
I have an application that uses events to show a particular
component and hide the rest. Showing and hiding also triggers
transition effects like fade in/out for the components that
appear/disappear.
One of these components deals with loading an external AS2
SWF using javascript. If for some reason that load fails, there is
am ExternalInterface.addCallBack registered method that gets called
by javascript, that is supposed to then show some other component
and hide the rest, indicating the failure.
The issue I am seeing is that the method that handles the
setting of the component visibilities is getting interrupted by the
javascript addCallBack return call from javascript.
Essentially, what it looks like is as follows:
1) dispatch show 'game' component event
2) event handler sets game component to visible
3) the onShow event for the game component immediately calls
javascript to show AS2 game (the event handler has not finished
yet... it still needs to try to hide the rest of the components)
4) The javascript AS2 game loader immediately fails (div
missing, swfobject failure, etc.) and calls the callback function.
5) Before execution finished of the original event handler,
the callback asynchronously does all of its handling and dispatches
another show/hide components event
6) This brand new event is process and handled IMMEDIATELY,
and the handler completes
7) The original event only now finishes processing the rest
of the original handler request
Setting the priority on the addEventListner to even something
like 2147483648 does nothing to change this behavior. Any event
called from addCallback handlers seem to be infinite priority.If I remember correctly, the trick was to use dynamically registered events. Once the first is fired, unregister for it while you react to it. The complete code of course went even trickier, so as Lynn suggested, try to dig that thread on the forum (searching for 'dynamically registration of events' might help).
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml -
Shared Variable event handling--spurious events
This is more of a nuisance than anything:
Using the DSC module to register for shared variable events, the event structure always fires once for each variable registered for. For example, if I register for the shared variables "Var1" and "Var2", upon entering the event structure [in a loop], I'll immediately see two events [one for Var1 and one for Var2] even if the values for Var1 and Var2 haven't changed.
I originally figured that it's intentional--it appears to be impossible to use SV events without this "feature"--except it doesn't happen in "highlight execution" mode, which I find puzzling.
Why does this exist, and is there some magic way to disable it? Or is it a bug? Anybody who has ever used SV events undoubtedly has some way of dealing with this. Right now I just burn off the first N events, where N is the number of shared variables I'm registered for. But that's extra diagram junk and it really shouldn't be necessary.
Solved!
Go to Solution.Kyle:
Here's a sample project with two SVs and an event handler VI. SV1 has an initial value but SV2 doesn't.The array displayed in the front panel should be empty after running--the SV's are not written to anywhere. I get two entires--one from each event--when I run the VI.
I noticed some new behavior when I put this together. In this example I use the timeout condition to terminate the loop. There is a timeout value around 110ms that defines the cutoff for this behavior--but the value is not consistent. With timeout values ~110 and below, I get no spurious events. But I DO get them for any timeout value of above that. So perhaps this issue is invisible to anybody who is generating events faster than ~10Hz. This may explain why I've been having inconsistent behavior when using the execution trace.
[edit: reposted as archive]
Attachments:
SVtestProj.zip 16 KB -
Hi All,
Ran into this really wierd bug - wasn't sure whether anyone might be interested.
An event producer loop (LocalBytesAtPort value-change) is throwing it's event, even though the Error-case is executing.
If the value-change-node is being called, the the bytes-at-port probe should show data, but it doesn't. The error probe (from inside error case) is getting fresh values. Yet event-loop is ticking over and handling value change at the same period as the value-change producer.
I know this is cryptic, but I hit Post too soon and have to explain it in a short time!
Cheers
P.S. There's supposed to be a 16color bmp, (bmp is only option) but can't post it!
Message Edited by Dynamik on 04-26-2006 11:57 PM
Message Edited by Dynamik on 04-26-2006 11:58 PM
When they give imbeciles handicap-parking, I won't have so far to walk!Hi tst,
Re: bmp blocking - at 16colors it was only 330K!
Anyway, I did look for other places the LocalBytesAtPort might be changed, but the FP indicator is only updated from one place - the producer loop via Value (signaling). After messing with it, it started working - but what did I do? I accidentally left a 11ms wait in the producer-loop!?
Re posting as 7.1, Looked over th VI to assess the damage (from missing VIs) if only top-level was supplied - not too bad...
To reiterate, [before 11ms timeout was added] the Error-case was executing every 1111ms, but Event handler was receiving a Value-change event for LocalBytesAtPort!
Leading-up to the error condition [w/out 11ms TO], there are several thousand Serial-Character VISA Events in rapid succession. I had a problem firing notifiers with for-loops without a wait, maybe this is related...
Cheers!
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
Dvr.Sky.TXRDaemon.vi 227 KB -
How do i exit a while loop using event handler
Hello,
I have an event handler structure within which i run a while loop for a particular event. I would like to interrupt the execution of this while loop as soon as another event occurs, even if the while loop has not finished execution. I have tried so many ways, the best i could get is exiting one itteration after the new event occurs which is no good for me.
Any suggestions???
Thanks
MeInstead of having a task while loop in an event case, put your task while loop in parallel with the loop surrounding the event structure. When the event which should start the task occurs, you can signal the start of the task while loop. You could use local variables of references to start/stop the loop when an event occurs. You could also use notifiers instead of variables to pass signals to start/stop the while loop. In general you should have a while loop for the event structure, and a parallel while loop to do the tasks. The parallel loop is controlled by variables or notifiers which are set in the event cases.
- tbob
Inventor of the WORM Global -
How can I execute an external program from within a button's event handler?
I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
So, then, how can I do this?
Thanks
Ted
NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
try {
java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
//pn.directory(new java.io.File("K:\\work"));
java.lang.Process pr = pn.start();
java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
String tmp = new String("");
byte b[] = new byte[1000];
int i = 0;
while (i != -1) {
bis.read(b);
tmp += new String(b);
getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
} catch (java.io.IOException ex) {
getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
}Hi Fonsi!
One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
/Thomas -
Copying text to the clipboard in AVDocDidOpen event handler causes Acrobat 9 to crash
I'm trying to copy the filename of a document to the clipboard in a plugin with my AVDocDidOpen event handler. It works for the first file opened; however when a second file is opened, Acrobat crashes. The description in the application event log is: "Faulting application acrobat.exe, version 9.1.0.163, faulting module gdi32.dll, version 5.1.2600.5698, fault address 0x000074cc."
I've confirmed that the specific WIN32 function that causes this to happen is SetClipboardData(CF_TEXT, hText); When that line is commented out and remaining code is left unchanged, Adobe doesn't crash.
Is there an SDK function that I should be using instead of WIN32's SetClipboardData()? Alternately, are there other SDK functions that I need to call be before or after I call SetClipboardData()
Bill EricksonLeonard,
I tried it with both "DURING, HANDLER, END_HANDLER" and "try catch," as shown below. However, it doesn't crash in the event handler; it crashes later, so the HANDLER/catch block is never hit.
The string that's passed to SetClipboardData() is good, because I'm able to paste it into the filename text box of the print dialog when I try to create the "connector line" PDF. I also got rid of all the string manipulation and tried to pass a zero-length string to the clipboard but it still crashes.
Here's the code:
ACCB1 void ACCB2 CFkDisposition::myAVDocDidOpenCallback(AVDoc doc, Int32 error, void *clientData)
PDDoc pdDoc = AVDocGetPDDoc(doc);
char* pURL = ASFileGetURL(PDDocGetFile(annotDataRec->thePDDoc));
if (pURL) {
if (strstr(pURL, "file://") && strstr(pURL, "Reviewed.pdf")) {
// Opened from file system so copy filename to clipboard for connector line report
char myURL[1000];
strcpy(myURL, pURL);
ASfree(pURL); // Do this before we allocate a Windows handle just in case Windows messes with this pointer
pURL = NULL;
HGLOBAL hText = GlobalAlloc(GMEM_MOVEABLE, 1000);
if (hText) {
try
// Skip path info and go right to filename
char *pText = (char *)GlobalLock(hText);
char *pWork = strrchr(myURL,'/');
if (pWork) {
strcpy(pText, pWork+1);
} else {
strcpy(pText, myURL);
char *pEnd = pText + strlen(pText); // Get null terminator address
// Replace "%20" in filename with " "
pWork = strstr(pText, "%20");
while (pWork) {
*pWork = ' ';
memmove(pWork+1, pWork+3, (pEnd - (pWork+2)));
pWork = strstr(pText, "%20");
// Append a new file extension
pWork = strstr(pText, ".pdf");
*pWork = 0; // truncate the string before ".pdf"
strcat(pWork,".Connectors.pdf");
GlobalUnlock(hText); // Must do this BEFORE SetClipboardData()
// Write it to the clipboard
OpenClipboard(NULL);
EmptyClipboard();
SetClipboardData(CF_TEXT, hText); // Here's the culprit
CloseClipboard();
GlobalFree(hText);
} catch (char * str) {
AVAlertNote(str);
if (pURL)
ASfree(pURL); -
Unable to get automatic event handling for OK button.
Hello,
I have created a form using creatobject. This form contains an edit control and Search, Cancel buttons. I have set the Search buttons UID to "1" so it can handle the Enter key hit event. Instead its caption changes to Update when i start typing in the edit control and it does not respond to the Enter key hit. Cancel happens when Esc is hit.
My code looks like this -
Dim oCreationParams As SAPbouiCOM.FormCreationParams
oCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
oCreationParams.UniqueID = "MySearchForm"
oCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.AddEx(oCreationParams)
oForm.Visible = True
'// set the form properties
oForm.Title = "Search Form"
oForm.Left = 300
oForm.ClientWidth = 500
oForm.Top = 100
oForm.ClientHeight = 240
'// Adding Items to the form
'// and setting their properties
'// Adding an Ok button
'// We get automatic event handling for
'// the Ok and Cancel Buttons by setting
'// their UIDs to 1 and 2 respectively
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = oForm.ClientHeight - 30
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Search"
'// Adding a Cancel button
oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 75
oItem.Width = 65
oItem.Top = oForm.ClientHeight - 30
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Cancel"
oItem = oForm.Items.Add("NUM", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 105
oItem.Width = 140
oItem.Top = 20
oItem.Height = 16
Dim oEditText As SAPbouiCOM.EditText = oItem.Specific
What changes do i have to make to get the enter key to work?
Thanks for your help.
Regards,
SheetalHello Felipe,
Thanks for pointing me to the correct direction.
So on refering to the documentation i tried out a few things. But I am still missing something here.
I made the following changes to my code -
oForm.AutoManaged = True
oForm.SupportedModes = 1 ' afm_Ok
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = oForm.ClientHeight - 30
oItem.Height = 19
oItem.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, 1, SAPbouiCOM.BoModeVisualBehavior.mvb_Default)
oButton = oItem.Specific
oButton.Caption = "OK"
AND
oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = oForm.ClientHeight - 30
oItem.Height = 19
oItem.AffectsFormMode = False
I get the same behaviour OK button changes to update and enter key does not work.
Could you please tell me find what is it that i am doing wrong?
Regards,
Sheetal -
Dropdown box - which event handler to use ?
I am having trouble with setting the readonly property (via Javascript) of the adjacent textbox to my dropdown box when the index value is a certain number.
I tried using MouseUp, MouseDown, and even OnBlur....but the readonly does not seem to be getting set to true or false consistently.
Could this be a timing issue ? The textbox that I am trying to control is the next tab-order control in the list of controls for this page.
This same logic is working fine in the MouseUp event handler for check boxes. So I am just wondering if this is a bug or must my implementation change to accomodate dropdown boxes ? For instance, should I move the logic to the Enter event handler of the textbox instead ? Can a control's own eventhandler set itself to readonly when it is the active form field ?After tons and tons of testing time, I've come to the conclusion that dropdowns are totally buggy in 11.0.07 release of Acrobat Pro.
Even if you set the "commit values immediately", you get the PRIOR selected item's value as the event value, not the CURRENT one.
This occurs in a Validate event handler script. I have not been able to use any other event handlers for a dropdown except the OnBlur....and then, for my purposes, IT'S TOO LATE !!!
This is totally worthless as I need to setFocus() and set fields to readonly based on the immediate dropdown offset or face value. -
Input value given on web page is not getting pickedup in event handler
Hi friends,
I have created one simple page in SE80 with program with flow logic option, in which I would like to show business partner details from BUT000 table with the input of partner number. But the thing is the input value(partner no.)which I am giving on web page is not getting picked up in selection in event handler though I am giving input value it is becoming initial while selecting. What could be the reason?
Below I am mentioning the code which I have written in even handler for OnInputProcessing event.
CASE EVENT_ID.
WHEN 'select'.
NAVIGATION->SET_PARAMETER( 'partner' ).
SELECT * FROM but000 INTO TABLE I_but000 WHERE partner BETWEEN partner AND partner1.
WHEN OTHERS.
ENDCASE.
Thanks in advance,
SteveHi Abhinav,
I tried with the one you posted. But it is giving run time error as shown below.
Note
The following error text was processed in the system CRD : Access via 'NULL' object reference not possible.
The error occurred on the application server crmdev_CRD_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: ONINPUTPROCESSING of program CLO24DDFJW575HVAQVJ89KWHEHC9OCP
Method: %_ONINPUTPROCESSING of program CL_O24DDFJW575HVAQVJ89KWHEHC9OCP
Method: DO_REQUEST of program CL_BSP_PAGE===================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Regards,
Steve -
How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty
So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
A Newbie to SSIS.
I appreciate your review and am hopeful for a reply.
PSULionRPDepends upon what you want to do in the eventhandler. this is what you can do
Store the result set from the Select to a user variable.
Pass this user variable to a Script task.
In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
Dts.TaskResult = Dts.Results.Failure
Abhinav http://bishtabhinav.wordpress.com/ -
Swing: when trying to get the values from a JTable inside an event handler
Hi,
I am trying to write a graphical interface to compute the Gauss Elimination procedure for solving linear systems. The class for computing the output of a linear system already works fine on console mode, but I am fighting a little bit to make it work with Swing.
I put two buttons (plus labels) and a JTextField . The buttons have the following role:
One of them gets the value from the JTextField and it will be used to the system dimension. The other should compute the solution. I also added a JTable so that the user can type the values in the screen.
So whenever the user hits the button Dimensiona the program should retrieve the values from the table cells and pass them to a 2D Array. However, the program throws a NullPointerException when I try to
do it. I have put the code for copying this Matrix inside a method and I call it from the inner class event handler.
I would thank you very much for the help.
Daniel V. Gomes
here goes the code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import AdvanceMath.*;
public class MathF2 extends JFrame {
private JTextField ArrayOfFields[];
private JTextField DimOfSis;
private JButton Calcular;
private JButton Ativar;
private JLabel label1;
private JLabel label2;
private Container container;
private int value;
private JTable DataTable;
private double[][] A;
private double[] B;
private boolean dimensionado = false;
private boolean podecalc = false;
public MathF2 (){
super("Math Calcs");
Container container = getContentPane();
container.setLayout( new FlowLayout(FlowLayout.CENTER) );
Calcular = new JButton("Resolver");
Calcular.setEnabled(false);
Ativar = new JButton("Dimensionar");
label1 = new JLabel("Clique no bot�o para resolver o sistema.");
label2 = new JLabel("Qual a ordem do sistema?");
DimOfSis = new JTextField(4);
DimOfSis.setText("0");
JTable DataTable = new JTable(10,10);
container.add(label2);
container.add(DimOfSis);
container.add(Ativar);
container.add(label1);
container.add(Calcular);
container.add(DataTable);
for ( int i = 0; i < 10 ; i ++ ){
for ( int j = 0 ; j < 10 ; j++) {
DataTable.setValueAt("0",i,j);
myHandler handler = new myHandler();
Calcular.addActionListener(handler);
Ativar.addActionListener(handler);
setSize( 500 , 500 );
setVisible( true );
public static void main ( String args[] ){
MathF2 application = new MathF2();
application.addWindowListener(
new WindowAdapter(){
public void windowClosing (WindowEvent event)
System.exit( 0 );
private class myHandler implements ActionListener {
public void actionPerformed ( ActionEvent event ){
if ( event.getSource()== Calcular ) {
if ( event.getSource()== Ativar ) {
//dimensiona a Matriz A
if (dimensionado == false) {
if (DimOfSis.getText()=="0") {
value = 2;
} else {
value = Integer.parseInt(DimOfSis.getText());
dimensionado = true;
Ativar.setEnabled(false);
System.out.println(value);
} else {
Ativar.setEnabled(false);
Calcular.setEnabled(true);
podecalc = true;
try {
InitValores( DataTable, value );
} catch (Exception e) {
System.out.println("Erro ao criar matriz" + e );
private class myHandler2 implements ItemListener {
public void itemStateChanged( ItemEvent event ){
private void InitValores( JTable table, int n ) {
A = new double[n][n];
B = new double[n];
javax.swing.table.TableModel model = table.getModel();
for ( int i = 0 ; i < n ; i++ ){
for (int j = 0 ; j < n ; j++ ){
Object temp1 = model.getValueAt(i,j);
String temp2 = String.valueOf(temp1);
A[i][j] = Double.parseDouble(temp2);What I did is set up a :
// This code will setup a listener for the table to handle a selection
players.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
ListSelectionModel rowSM = players.getSelectionModel();
rowSM.addListSelectionListener(new Delete_Player_row_Selection(this));
//Class will take the event and call a method inside the Delete_Player object.
class Delete_Player_row_Selection
implements javax.swing.event.ListSelectionListener
Delete_Player adaptee;
Delete_Player_row_Selection (Delete_Player temp)
adaptee = temp;
public void valueChanged (ListSelectionEvent listSelectionEvent)
adaptee.row_Selection(listSelectionEvent);
in the row_Selection function
if(ex.getValueIsAdjusting()) //To remove double selection
return;
ListSelectionModel lsm = (ListSelectionModel) ex.getSource();
if(lsm.isSelectionEmpty())
System.out.println("EMtpy");
else
int selected_row = lsm.getMinSelectionIndex();
ResultSetTableModel model = (ResultSetTableModel) players.getModel();
String name = (String) model.getValueAt(selected_row, 1);
Integer id = (Integer) model.getValueAt(selected_row, 3);
This is how I got info out of a table when the user selected it -
Hi,
We have a requirement to send out an email to the user when his session times out while on shopping cart page.
Is there a way in ATG to trap the session timeout event and write our logic when it occurs?
Please advise.If you want to email only on shopping cart page, then in the pipeline save the user timeout details only for the pages you are interested in ( like shopping cart page).
And also maintaining additional field requesturi is also good.
Session timeout can be found if max_interval_time-last_accessed_time>0 for a particular user.
So scheduler can check for the condition and send email to the user.
Peace
Shaik
Maybe you are looking for
-
Wi-fi not working with Apple Cinema Display and Bluetooth-peripheral
Hello everyone. I have a MacBook Pro (Retina, 13-inch, Late 2013), with OS X Yosemite 10.10.1. My problem is that when I use my macbook in closed-clamshell mode, the wi-fi connection becomes very slow and it regularly drops. My external display is a
-
Standard And Customized BEx Reports & workbooks for the Modules FI,SD,MM
Hi..All Can any one explain about Standard and customized BEx Reports and workbooks which were frequently used in implementation projects for the modules SD,MM and FI? Thanks & Regards Jonn
-
Thinkpad Yoga S2 Largest After-Market HDD
Can anyone point me to the highest capacity 2.5" HDD, 2.5" SSD, and m.2 SSD that would be compatible with the Thinkpad Yoga S2 12? I know that I need to stick to 7mm on the 2.5" drive, and 42mm on the m.2. I was hoping someone else had already done
-
Bring Open Application to Current Space
Is there a way to bring an application to the current Space? Situation: I'm actively working in Space A and I need to access information from an application that is in another space, Space X. I can easily enough click on the icon in the doc to switch
-
Rescue and Recovey Rejuvinate will not start
Hi, I have a T500/ My webbrowser and adobe reader open very slowly. This started about 3 weeks ago. I thought I might try the rejuvinate option in Rescue and Recovery. I started the process, and it makes a backup, then it reboot and goes ot the R