Page 1 of 2

(RDMLX) Change DD to label issue

Posted: Tue Apr 29, 2014 4:40 am
by stevec
If I change a dropdown to a label (new allows changes and change does not so after add re-display same form as new form) I get errors on all the items as not being recognized.

This seems like a bug to me. I can see if new form was false getting this but not as new form.

Re: Change DD to label bug?

Posted: Tue Apr 29, 2014 8:45 am
by MarkDuignan
If you are displaying a new form then this is pretty hard to comprehend because the form is completely rebuilt from the ground up.
That also means that when you display a new form you need to (re)send the definitions and content of everything that it contains.
Is it possible to?
- Post the all the error message(s) that you see,
- Post your code - or even better, a small example that reproduces the situation and problem

Re: Change DD to label bug?

Posted: Tue Apr 29, 2014 9:02 am
by stevec
I get error for each item in each drop down when I rebuild same form (as a new form) only changing dropdown to a label.

I tried everything from clearrows on table to setting items to null no luck. If I navigate to different form and come back it is fine.

In the mean time I switched from using label for no edit to keep the type as it was (dropdown, date, etc) and setting to disabled and appearance plain (textbox, date, time). This wa the element name is not changing from dropdown to label and that works.

But it seems like it is abug you want to look into

Re: Change DD to label bug?

Posted: Tue Apr 29, 2014 9:16 am
by MarkDuignan
If the name 'MyElement' is Type=Label then you would get errors if you added drop down items to it.
This is because a label does not have items - so it is telling you that it does know what to do with them.
Try just using the drop down and set (only) the disabled property to True.
I think this is exactly the situation the Disabled property was intended for.

Re: Change DD to label bug?

Posted: Tue Apr 29, 2014 9:23 am
by MarkDuignan
The documentation describes the situation I think:
IMage2.png
IMage2.png (14.76 KiB) Viewed 6610 times
A user cannot change the content of a disabled element - but how it is displayed and whether they can click or touch it still is a different matter.
There is a quite new section in the documentation about those topics - http://www.longrangemobile.com/docs/LRP ... areena.htm
That indicates the disabled appearance of a dropdown is the same as a label - which is what you are looking for?

Re: Change DD to label bug?

Posted: Tue Apr 29, 2014 9:27 am
by stevec
see my reply above

There is a error (bug) if a form is redisplayed (as a new form) when a dropdown element has been changed to a label for each item in the original drop down.

Re: (RDMLX) Change DD to label bug?

Posted: Tue Apr 29, 2014 9:29 am
by MarkDuignan
Can you post you code please?

Re: (RDMLX) Change DD to label bug?

Posted: Tue Apr 29, 2014 9:53 am
by stevec
This is alot of code (actual business app) with data files, etc.

I will try to create a simple example

Re: (RDMLX) Change DD to label bug?

Posted: Tue Apr 29, 2014 10:07 am
by MarkDuignan
If you could post the error message(s) you see first that might save you the effort.

Re: (RDMLX) Change DD to label bug?

Posted: Tue Apr 29, 2014 11:31 am
by stevec
Here are errors
DDtoLabel.PNG
DDtoLabel.PNG (198.63 KiB) Viewed 6596 times
I tried setting up simple example and of course it worked. So I took it to 3 levels (program a calls program b, c passing in com_owner ref --- origram B is issue and calls program d for dropdown) deep like the actual but still worked.