on 04-16-2010 5:52 PM
Hello,
I am an ABAPER and new to JAVA Script, I have a drop down list and based on the value selected I have to set visibility of 2 subforms. The problem with the script is that it behaves exactly opposite to what is expected, Can anyone from JAVA tell me what is wrong with this and how can I correct it?
if (this.parent.parent.CDT_Profile.CDT_PROFILE.rawValue == 2)
{
this.parent.parent.strength_right.presence = "visible";
this.parent.parent.parent.parent.parent.Generic_Core.presence = "hidden";
this.parent.parent.parent.parent.parent.Functional_Core.presence = "hidden";
}
if (this.parent.parent.CDT_Profile.CDT_PROFILE.rawValue == 1)
{
this.parent.parent.strength_right.presence = "hidden";
this.parent.parent.parent.parent.parent.Generic_Core.presence = "visible";
this.parent.parent.parent.parent.parent.Functional_Core.presence = "visible";
}
When the value is 1 form Strength_right appears when it should diappear and when the value is 2 Generic_Core and Functional_Core which are subforms disappear when they should be appearing.
May be rawvalue does not contain the latest value, in case my assumption is correct how can correct this?
Regards,
Shishir.P
Edited by: Shishir Paltanwale on Apr 16, 2010 10:22 PM
Can you please share your solution? This is how we work here. Your solution here will spare the time and the question for the people who will have the same problem. Thank you, Otto
p.s: for future reference scripting guides are here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I managed to resolve the issue. Thanks
Regards,
Shishir.P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.