cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting and sales quote template in Adobe Lifecycle

berry1103
Explorer
0 Kudos
360

Dear,

As a newby to Adobe Lifecycle, I ‘m facing a problem with scripting and floating fields. I would like to reference a field value on a Sales Quote object in SAP C4C. So whenever the value of a checkbox (e.g. Z_WOZbeschikking) is set to false (default) the Text box (e.g. txtExample) (paragraph; not editable) must be hidden. The current syntax that I have used does not work. I can’t figure out what I am doing wrong. The current syntax is :

FormQuoteNotification.#subform[6].woz::initialize - (FormCalc, client)

if($.FormQuote.Z_WOZbeschikking.rawValue == "false") then

this.presence = "hidden";

endif

What am I missing? Please help.

Best regards!

Accepted Solutions (0)

Answers (1)

Answers (1)

mpfandler
Participant
0 Kudos

Hi Berry!

So you directly want to access the field like it is displayed in the data binding like "$.FormQuote.Z....."

I had problems with this too and helped me like this:

- Add the field to the same area like the field that you want to dynamically hide, but with presence "Hidden".
- Place the cursor in the script -> use crtl+shift+click on the desired field
- Correct field name that can be used in the script should be added.

So in your case it should look something like "FormQuoteNotification.#subform[6].Z_WOZbeschikking.rawValue"....

BR,
Matthias