I have PanelA and PanelB. PanelA gets an Input (a numeric between 0-20). Let us assume, the user gave the input as 10 on the first panel and pressed Enter.
Based on the above Input of 10, Panel-B needs to dynamically create ten Input fields in the )BODY Area so that 10 Input (Variable) names can be given by the user. Also, the 10 Input names need to be retrieved and stored in 10 dynamically created variables.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
How about building Panel-B dynamically into a VIO or temporary PDS, using a different member-name for each iteration, using a series of LMPUT services, followed by an LMMADD service. Display the panel, then delete it with an LMMDEL service.
Create Panel-B with all 20 possible input fields in the )BODY. Use a unique attribute bit for each row, correponding to a unique )ATTR variable. Set the attributes, by default, to TYPE(TEXT) SKIP(ON). As the value is entered in Panel-A, change the attribute variables for the 'n' fields to TYPE(INPUT).