Changing visibility of subform on masterpage(s) - reverted after event

Avatar

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile
ulibaehr
Level 2

30-04-2015

In a click event change the visibility of a subform on a masterpage.

Code looks like this:

const sMasterpage = "openimmo.#pageSet.Seite1";

    // find all incarnations of this master-page type:

    var arrayMasterpages = xfa.resolveNodes(sMasterpage + "[*]");

    for (var i = 0; i < arrayMasterpages.length; i += 1) {

   arrayMasterpages.item(i).resolveNode("gruen").presence = "visible";
  
    
  

} // for i

xfa.host.messageBox("test");

The strange thing is: Up to the messageBox the subform is visible. But as soon as the click event ends the subform is hidden again.

I find that hard to understand.

Has anyone ever had this effect?

Accepted Solutions (0)

Answers (0)