a month ago
Dear Expert Community,
I have an Adobe output form (DEBIT MEMO) in S4Hana public cloud where I have added a field. The field is visible/invisible on the printout as expected, but the hardcoded value of the field remains empty / doesn't display. The caption of the field is correctly displayed (or not) as prompted by the conditions, proving that the active/inactive conditions work correctly. Just the value of the field doesn't get displayed.
The active/inactive condition of this field, as well as the hardcoded value, are controlled by a piece of java code as shown below (in the below, the real Partner number is replaced by XXXXXX):
<script contentType="application/x-javascript">if(this.parent.Partner.rawValue =="XXXXXX") {this.rawValue =="TEST"}; else
{
this.presence = "inactive";
}
</script>
What could be the reason and what could be done?
Best regards,
Katja
Request clarification before answering.
Hi,
I'm not that fit in Javascript via Adobe Forms, but it seems suspicious that you have two '=' signs. Maybe you can try = 'TEST' instead of == 'TEST'.
Does your logic even reach the If statement? There are many ways to fetch the parent values. Maybe you have to change that part. There is a way to fetch it via strings.. maybe that works.
Hope that helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.