[RDMLX]Switching type of column in table on offline form

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RDMLX]Switching type of column in table on offline form

Post by MegumiSawada »

Hi,

Is it possible to switch the type of column in a table on offline form?

e.g.
On row 1-3 Column 2......Data exist so it is shown as Label component
On row 4 Column 2......Data doesn't exist so it is shown as Textbox component
IMG_0132.PNG
IMG_0132.PNG (40.21 KiB) Viewed 3309 times
I tried some way but am not able to find a good way.

I'd appreciate your kind advice.

Best Regards,
Megumi Sawada
Paul

Re: [RDMLX]Switching type of column in table on offline form

Post by Paul »

Hi Megumi,

I think this is possible. Please have a look at the processing in the shipped example LREX0050. This switches a column from lables to textboxes. I can see you only want to change a coulmn of one row of the table but I think you should be able to do that.

Please report back if you have any further trouble.

Good luck,
Paul
Paul

Re: [RDMLX]Switching type of column in table on offline form

Post by Paul »

Sorry Megumi,

I didn't notice that you were asking for Offline forms. I'm not sure the technique in LREX0050 will work for Offline forms.

I will have to look at this more.

Paul
Paul

Re: [RDMLX]Switching type of column in table on offline form

Post by Paul »

Hi Megumi,

Changing the type of elements in a bound table on an Offline/Local form is very difficult to achieve at the moment. It would involve setting up the whole table manually in ECL script.

A better alternative for an Offline/Local form would be to set the column in question to a textbox from the start and use the Editable and Appearance properties to disable input and make it appear as a label. These properties would then be set as desired to change the appearance and enable input in a ECL script triggered by an event of some kind.

Hope this helps,
Paul
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RDMLX]Switching type of column in table on offline form

Post by MegumiSawada »

Hi Paul,

Thank you for your advice.
I tell them to use Editable True/False instead of switching between label and textbox.

Thank you.

Best Regards,
Megumi
Post Reply