If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
okay so i have a form where the user will scan a barcode, this will call a rpg program passing in an action. if the record being processed needs to display a warning message, i am setting an app variable called warning to W. If the app variable is W i want my popup box to display where the user can cancel the transaction or press okay to continue. pressing okay will call the same rpg application with a different action (ie receiverecord)
I would suggest adding an 'Info Widget' from the utility widgets as a popup where you would place the message. Then, add two buttons to that widget: one to cancel and one to continue. 'Cancel' would hide the popup, and 'Continue' would call the RPG program with the action 'receiverecord'.
Then have your RPG program fire an event, for example, 'showMyWarning', and then add an event listener for that event that will show the 'Info Widget' popup.
do you have an example of how to setup the below?
Then have your RPG program fire an event, for example, 'showMyWarning', and then add an event listener for that event that will show the 'Info Widget' popup.
okay i am still confused. I have a my popup created with the buttons..i get that part. I created an event listener called viewarning, that will show show my info widget. What i dont get is how to call the event viewwarning in my rpg program. (which i only want to call if the item scanned has a warning note)...
hello, i found an issue that i cant seem to figure out. i have a grid, and select a record, in certain conditions an information popup box will appear with a warning... if the user selects the button to avoid the warning, i am calling a program to process the record....i have a line of code calling setwidget('trackdetail') which is the name of the grid. then i do a for selection 1 to gselectioncnt... gselectioncnt is 0 . it should be 1 for the record i originally selected (check box checked)
Comment