(RDMLX) Change DD to label issue

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’.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

(RDMLX) Change DD to label issue

Post 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.
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?

Post 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
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Change DD to label bug?

Post 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
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Change DD to label bug?

Post 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.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Change DD to label bug?

Post by MarkDuignan »

The documentation describes the situation I think:
IMage2.png
IMage2.png (14.76 KiB) Viewed 6605 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?
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Change DD to label bug?

Post 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.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Change DD to label bug?

Post by MarkDuignan »

Can you post you code please?
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Change DD to label bug?

Post by stevec »

This is alot of code (actual business app) with data files, etc.

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?

Post by MarkDuignan »

If you could post the error message(s) you see first that might save you the effort.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Change DD to label bug?

Post by stevec »

Here are errors
DDtoLabel.PNG
DDtoLabel.PNG (198.63 KiB) Viewed 6591 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.
Post Reply