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
i tried calculate, docReady and layout:ready events but nothing changes. any ideas?
Request clarification before answering.
found a fix using javascript, not sure if it translates to formcalc
if ($record.HEADER.DS_EKKO.BUKRS.value != "C020") this.presence = "hidden";a singular condition on the dark logo, which was missing the ".value" to retrieve the value of the data binding. put it on top of the white logo and now one will override the other on the layout if the condition is correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.