on 2023 Mar 24 1:41 PM
Hi,
I'm working with adobe form in transaction SFP.
In the next page I have a variable (W_NAME4) and i want to insert a check that if its empty then the next variable must scroll up.
The subform is flowed.
I have inserted this java script code:
data.#pageSet[0].NEXT_PAGE.SUBMOD_INDI.W_NAME4::initialize - (JavaScript, client)
if ( this.resolveNode("W_NAME4").rawValue == "" || this.resolveNode("W_NAME4").rawValue == null ) {
this.presence = "hidden";
}
To be able to test if the "IF" is executed in the upper field I have inserted the following logic:It seems that this problem only happens on the next page, because I have the same code in the main page and the field is hidden correctly.
Any ideas?
Request clarification before answering.
Hi,
If I see this correctly from the screenshots, you want to set the presence of a textfield object on a masterpage to hidden.
I had a similar issue with a form used by SAP Business ByDesign. My conclusion was the following: Textfield objects on masterpages do NOT have the same behaviour as one expects from Design pages.
In my case the only solution that worked was to modify the form in a way that the problematic field was located in design page and not a masterpage - I don't have a super explanation for this upt to now...Maybe give this a try if it is applicable for you.
BR
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, I tried it and it really makes difference on what page the content is. Thanks stanbeko ! I learned something new today 🙂
Hi a.l.e.x.8.0.,
as per stanbeko view, I feel it is right. hidden will work in design page, not in master page.
Happy to correct my self if any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I confirm that if the submodule is moved to the master page the code works correctly.
Thanks everyone for the suggestions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just reading answer by you and answer by Andreas, it's confusing as Andreas says it should work if moved to the design page, and YOU say it works if moved to the master page. Please clarify.
It works if it is moved out of the master page.
Hi,
Pre-requisite for this is - All Parent blocks have flowed type.
hope this will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
7 | |
7 | |
6 | |
6 | |
4 | |
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.