on 09-22-2010 10:18 AM
Hi to All,
I have the following problem:
In my layout I have:
BUKRS (bind to my table-BUKRS)
Label_01 (fixed)
Now, if BUKRS == 'IT01' then Label_01 should be hidden.
In ready:form event:
data.HEADER.ELEMENTS.BUKRS::ready:form - (Javascript)
if (data.HEADER.ELEMENTS.BUKRS.rawValue == 'IT01') {
data.HEADER.ELEMENTS.Label_01.presence = "hidden";
}
This code work ONLY on first page, from second page the script does't work.
I'm confused.
Please help me!
Best Regards,
Umberto
Hi,
try this in the LAYOUT ready event, Run at CLIENT AND SERVER. You have mentioned 'IT01' and this should be "IT01".
if (data.HEADER.ELEMENTS.BUKRS.rawValue == "IT01") {
data.HEADER.ELEMENTS.Label_01.presence = "hidden";
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
is the label on the master page.
i guess the script is trigerring only for the one time.
for the other pages the script is not getting trigerred.
as the initial value of bukrs si getting filled once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem seems that you have applied code in the wrong event. Try the same code in other events like layoutReady event or any other from the list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.