on 2016 Sep 30 9:30 AM
Hi,
I am working on a Purchase order in MM and am trying to hide a field based on a condition. The condition is based on the document type that's getting passed on to the form from ME22N.
CASE LS_EKKO-BSART. WHEN 'ZIMP'. GV_DOC_TYPE = 'Import'. WHEN OTHERS. GV_DOC_TYPE = 'Local'. ENDCASE.
I am passing this variable's value to a text field on adobe forms titled
proc_type
The javascript I am using is as below;
if (proc_type.rawValue == "Local") then this.presence = "hidden" endif
I have used this code on the initialize event of the subform which I want to hide but it is not working as it should
LS_EKKO-BSART
has the values ZIMP, ZSER, ZEMER, etc. I want the subform to be visible only if the value of LS_EKKO-BSART is ZSER(Service Order).
Request clarification before answering.
Have you tried it with FormCalc.
Here is an example using FormCalc.
if ( data.#pageSet[0].Page1.proc_type
EQ "XYZ" ) then
$.presence = "visible"
else
$.presence = "hidden"
endif
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.