Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically Display Radio Button

Former Member
0 Likes
718

Hi,

I have to display my radio button dynamically based on my Load ID.

A Load ID can contain maximum 10 files.

Take for an example there is 5 files for Load ID: 001, it should only display 5 radio buttons and not all 10 radio buttons. The 5 radio buttons has to display the files name together. The radio button text should be change due to the different load.

How do i achieve that?

6 REPLIES 6
Read only

Former Member
0 Likes
695

You have to code in event 'At selection-screen output' event. According to the condition modify 'SCREEN TABLE' to enable or disable radiobuttin.

At selection-screen output'.
Loop at screen. 
 ........
 ......
  modify screen. 
endloop.

Read only

0 Likes
695

Thanks Abhishek! But currently i'm doing dialog screen.

Read only

0 Likes
695

IN that case you can code like that. If the load id is '001' , then pres enter . will display the radiobuttons. When you press enter, control will go to PBO and PBI of the next screen. You can set the radiobutton in next screen. IN the PBO of the next screen you can check the load id and according modify the screen attribute to enable or disable the radiobutton. You can even make the next screen a model dialog box ( So that, when you press enter it will check the load id and it is 001 then it will give a pop up screen with the radio buttons'.

Read only

0 Likes
695

Oh but i need to display everything in one screen. 😃

I will input the load id at the top of the screen, and below radio button and text will display base on the load id.

Read only

Former Member
0 Likes
695

Hi all thanks for the advise given.

I have solved my problem.

Read only

Former Member
0 Likes
695

SOLVED. THANKS!