to make text-box invisible at run time [message #658182] |
Tue, 06 December 2016 07:00 |
|
kumarravik
Messages: 32 Registered: January 2016 Location: delhi
|
Member |
|
|
Hi there,
I want a text-box to be remain invisible when form loads. So at form level trigger (When-new-form-instance) i have written this code.
set_item_property(':BLK_EMP.txt_msg', enabled, property_false)
that text should be visible with some hard-code value when a button pressed. So i have written below code (on when-button-pressed)
set_item_property(':BLK_EMP.txt_msg',enabled,property_true);
But i am not getting expected result. also, while running the form, i am getting an exception error "FRM-40105:UNABLE TO RESOLVE REFERENCE TO ITEM"
[Updated on: Tue, 06 December 2016 07:04] Report message to a moderator
|
|
|
|
|
|
|
Re: to make text-box invisible at run time [message #658238 is a reply to message #658216] |
Wed, 07 December 2016 07:27 |
cookiemonster
Messages: 13961 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
What on earth did you expect to happen?
Isn't the error message obvious?
You've set the visible property and then decided to reverse that change by changing some other property.
Re-Read this and pay attention this time.
cookiemonster wrote on Wed, 07 December 2016 10:18you use set_item_property to set visible for that item to true of course.
|
|
|
|
Re: to make text-box invisible at run time [message #658319 is a reply to message #658263] |
Fri, 09 December 2016 07:00 |
|
kumarravik
Messages: 32 Registered: January 2016 Location: delhi
|
Member |
|
|
Dear Cookiemonster,
thank you for the advice. I missed your word , sorry for that .
It is working well now.
when i click the button, it shows the text-box. I changed the font color and background color of text-box to red in property but it remain gray while running? tried with visual attribute but only background color is changing not the font of text msg i am trying to display in it.
Also, how to remove this text-box, when user click on clear field button ?
[Updated on: Fri, 09 December 2016 08:14] Report message to a moderator
|
|
|