The Rookie Rides Again - readonly and greying

Good day,

No, the “greying” does not refer to the color of my hair as I’ve used Servoy! :-)

But, I do have a question because I’m not sure if what I’m seeing is an error, or expected behavior, or what.

I have several forms that I use in record mode. I set their status to readonly by using
forms.formname.controller.readOnly = true

When I do this, I am finding that fields on the form are not accessible, but in the case of fields with type CALENDAR and TEXTONLY, they are not greying out as the other fields do. While users are not able to edit the fields, the look of the form ends up being a bit inconsistent.

Is this expected behavior, or am I setting up something incorrectly, perhaps? Any assistance would sure be appreciated.

Thanks and have a good day.

Ron

That is strange,
controller.readOnly = true should not grey out!, the text should be able to select and copy paste.
controller.enable = true, that one, should grey out, so the text is also not selectable…

Hi Harjo,

Thanks for that information. I’ll give “enable” a try. Still wondering why “readonly” is behaving like it is, and whether it’s what I’m doing, or a Servoy thing, or a Javascript thing, or a Java thing, or whatever :)

Ron

Harjo:
controller.enable = true, that one, should grey out, so the text is also not selectable…

really? for me controller.enabled = true will not gray out and my text is still perfectly selectable (and editable)!

;)

alright, you boys are having too much fun now… :-)

So, Johan, what’s the scoop on “readonly”? Should the fields I mentioned above be greying out like the rest?

Thanks again.

Ron

jcompagner:

Harjo:
controller.enable = true, that one, should grey out, so the text is also not selectable…

really? for me controller.enabled = true will not gray out and my text is still perfectly selectable (and editable)!

;)

yeah sorry, you got me, ofcourse I ment: controller.enable = false :D
and that one should not grey out!!