‎2007 Jun 25 9:49 AM
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
‎2007 Jun 25 11:16 AM
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
‎2007 Jun 25 12:27 PM
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.
‎2007 Jun 25 12:45 PM
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).