Page 1 of 1

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

Posted: Fri Jan 24, 2014 1:33 pm
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 3311 times
I tried some way but am not able to find a good way.

I'd appreciate your kind advice.

Best Regards,
Megumi Sawada

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

Posted: Fri Jan 24, 2014 5:42 pm
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

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

Posted: Tue Jan 28, 2014 9:33 am
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

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

Posted: Tue Jan 28, 2014 2:19 pm
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

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

Posted: Tue Feb 04, 2014 6:53 pm
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