Hello All,

As per requirement, we need dynamic text for text field on screen. Here,  is the demo for the same.

Try this.

1. Declare a variable on the Top of program say Text.




2. Create Screen and go to layout.
3. Click on Dictionary/Program Field Button or F6. New window will open as in Step 4.



4.Click on Get from Program button. Then select that variable which was declare in program as shown in below picture. Click on Tick button.


5. Place that I/O box according to requirement. Then double click to that box, screen painter window will open. Go to program tab and tick on Output only option. So that no text will be editable.



6. Go to Display tab and Tick on 2D display. So that this will display as Text field.


7. After activation of Screen. Go to PBO of Screen. In this part variable one can assign value to variable TEXT as per condition under Loop at Screen.



Output:



I hope it will help you.
Enjoy!!!👍





0 Comments