help on multivalue. (AREV Specific)
At 01 FEB 2002 08:21:19PM Joe Wesner wrote:
I am having trouble in using a popup if there are multiple lots for a certain package. I operator can enter the quantity and the weight of the box if there is only one lot he can enter the lot number and then it will jump to the next line. If there are multiple lots then he can hit F2 which opens a collector window and it allows him to enter multiple lot numbers. I allow 3 lines for the carton information and it scrolls up if there are more cartons entered. My problem is that when they are on the 3 line of the carton info and the operator hits the F2 and enter the information into the collector, when the operator returns he is returning to the next line down which there is text in the window already. It seems not to scroll up to allow for another line. I am calling this from a commuter and I reset the @record and set the display to 5 and return to the windows. I am assigning the @record properly with the mv and I am assigning the next prompt number to go after thr collector is done. Is there something that I missed and need to set in the commuter. Also can you have symbolics in a collector. I want to check to make sure that the total entered in the collector matches the amount that was entered at the beginning of the line item. Any info would really appreciated.
Best Regards,
Joe.
At 03 FEB 2002 05:38AM Curt Putnam wrote:
Easy question 1st: There are no symbolics in a collector. It's not bound to a table/dictionary - therefore, no symbolics.
It sounds as though the reset is forcing the equivalent of the Enter key. If that is true and the behavior is not desired, the easiest approach is to make sure all is complete & correct while still in the collector.
Goto the Sprezzatura site and review their wonderful literature on the behavior of Arev windows.
At 03 FEB 2002 06:29PM Jonathan Bird wrote:
Ture that Curt says "no symbolics" in a collector window, but it is easy enough to get symbolic like behaviour in a collector. Remeber that the content of all prompts in a collector are held as fields in the @RECORD variable. Here's how you would do it:
Say your first prompt is a customer number entry, and you want to display the customer name in another field.
Create the first prompt for the customer code
Create a second prompt fo the customer name, and make its entry "protected"
On the first prompt call this code as a "post prompt":
subroutine
$insert sysinclude,window_common%
CODE=WC_IS%
NAME=xlate('NAMES',NAME,1,'X')
@RECORD=NAME
WC_DISPLAY_ACTION%=7
return
Jonathan
jb@psi.net.nz
At 03 FEB 2002 06:31PM Jonathan Bird wrote:
Ooops, bug there, I should have said:
subroutine
$insert sysinclude,window_common%
CODE=WC_IS%
NAME=xlate('NAMES',CODE,1,'X')
@RECORD=NAME
WC_DISPLAY_ACTION%=7
return