cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hello. im trying to set presence visible for light/dark logo based on a condition, but no matter what i try both of them show up, so either the condition is wrong, the data is returning null (which i dont get cause the binding is correct), or im missing something else.

white logo code:

 

 data.#pageSet[0].Page1.logosubform.whitelogo::initialize - (FormCalc, client)
var v_bukrs = ZRGO_FRM2.HEADER.DS_EKKO.BUKRS

if (v_bukrs == "C020") then
    this.presence = "visible"
else
    this.presence = "hidden"
endif

 

 

dark logo code :

 

 data.#pageSet[0].Page1.logosubform.darklogo::initialize - (FormCalc, client)
var v_bukrs = ZRGO_FRM2.HEADER.DS_EKKO.BUKRS

if (v_bukrs == "C020") then
    this.presence = "hidden"
else
    this.presence = "visible"
endif

 

RedaElg_0-1774517935615.png

i tried calculate, docReady and layout:ready events but nothing changes. any ideas?

0 Likes
View Entire Topic
sravan_aleshwaram
Active Participant
0 Likes

 

Your visibility logic for light/dark logos in an SAP Adobe Form wasn’t working because of three main issues:

1. Wrong data binding path

2. Wrong event used ("initialize")
3. Code issue 
 

RedaElg
Discoverer
0 Likes
like i said i tried multiple events but none worked, as for data binding i tried the full path and the $ path but both didnt work.i retrieved the binding from data view tab so it should be okay, and as for the code issue as far as i can tell it looks okay, any ideas where i went wrong ?