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

Modifying the Field labels dynamically at runtime.

Former Member
0 Likes
605

Hi,

Is it possible to change the field labels dynamically at runtime . My

requirement is when the user has to edit the quantity part ,he presses a fn key (F7 in my case ) that is displaying a new field with the old label (quantity ) and old qnty label should be changed dynamically to ' previous quantity ' .

Thanks For Your aniticpated responses.

Message was edited by:

Khaleel S.Mohammed

3 REPLIES 3
Read only

former_member150733
Contributor
0 Likes
541

Have you added teh Label as a text field?

If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.

Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).

This will work out. Please let me know if you have any issues.

Regards,

Anish Thomas

Read only

0 Likes
541

Hi Anish,

I couldnt get u, I have declared label as text and its greyed out and so i cannot perform the actions as advised. I have used the loop ...endloop to wipe out the old quantity label , but the user insisting it on having the label as ' Pre.- Qnty ' . if the user has to edit the wrongly entered qnty.

Read only

0 Likes
541

Remove only the label & instead use a input/output field in its place and give it a name(and make it as 'output only' in the attributes as i described in the above post).

The user input will happen in the original field itself.

Even if the input-output field is greyed out, you can change a input output field (and thus the label), i think you can achieve this programatically based on user input(F7 key).