(RDMLX) Change DD to label issue
(RDMLX) Change DD to label issue
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.
This seems like a bug to me. I can see if new form was false getting this but not as new form.
Last edited by stevec on Tue Apr 29, 2014 11:26 pm, edited 1 time in total.
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: Change DD to label bug?
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
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?
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
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
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: Change DD to label bug?
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.
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.
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: Change DD to label bug?
The documentation describes the situation I think:
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?
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?
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.
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.
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: (RDMLX) Change DD to label bug?
Can you post you code please?
Re: (RDMLX) Change DD to label bug?
This is alot of code (actual business app) with data files, etc.
I will try to create a simple example
I will try to create a simple example
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: (RDMLX) Change DD to label bug?
If you could post the error message(s) you see first that might save you the effort.
Re: (RDMLX) Change DD to label bug?
Here are errors
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.
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.