on 04-12-2011 1:22 PM
Hello Experts,
I want to dynamically hide/unhide subform created in my application, I think I can achieve it by using scripting, how do I achieve that through scripting?
Dynamically I want to check no of records presents in the context node and hide the subform if no record is found.
Any valuable inputs?
Thanks & Regards,
Viral
Hi Viral,
hiding elements is quite easy using JavaScript in the form. Please have a quick look to the following snippet:
if (this.rawValue == 1)
{
this.resolveNode("detailsForm").presence = "visible";
}
else
{
this.resolveNode("detailsForm").presence = "hidden";
}
Best Regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when you launch LCD, you can access the Help which outlines scripting.
it's very easy to hide a field/subform using the presence = "hidden" property
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.