on 05-25-2012 6:44 AM
Hi All,
I am trying to hide Subform based on value of flag from context. Please find below details.
Name of subform in VAT : it contains some texts and text fields.
Flag defined in context is G_VAT_FLG
If this flag is set i.e = 'X', Subform VAT should not be displayed.
I have written below code for subform VAT in FormCalc for Form:ready event. But its not working.
if($record.G_VAT_FLG == "X" )
then
this.presence = "hidden"
else
this.presence = "visible"
endif
Please let me know if any corrections or other options to do same.
Thanks in advance.
Regards,
Aniket Dayama
Hello Aniket,
The approach seems to be correct.!!!
You have write the code in DocReady event/ Initialise event. And write it as JAVASCRIPT.
For you reference write code in your Subform which you want to hide/unhide as:-
if(this.G_VAT_FLG.rawValue == "X" )
{
this.presence = "hidden";
}
else
{
this.presence = "visible";
}
Pls Note: field G_VAT_FLG must exist in your Subform VAT.
Let me know if it works..
Regards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.