Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

resolveNodes to hide buttons in multiple rows

$
0
0

I have a calendar type form which has a table (wrapped in a subform) that contains a button on every row. I wish to hide these buttons with the click of another button.

The tables and rows repeat themselves many times and so I'm sure I need to use resolveNodes to target each row / button.

 

The hierarchy which the button is contained within is:

     form1

          monthForm

               monthTable

                    dayRow

                         deleteBtn


The hierarchy which the button that is executing the script is contained within is:

     form1

          grandTotalForm

               grandTotalsComplete

                    Button1

 

The following javascript doesn't seem to work. I have had this basic code work before in other applications, but I can't figure out where this is going wrong.

 

     form1.grandTotalForm.grandTotalsComplete.Button1::click - (JavaScript, client)

 

     var nodes = xfa.resolveNodes("form1.monthForm[*].monthTable.dayRow[*]");

     var len = nodes.length;

     for(var i=0; i<len; i++){

         nodes.item(i).deleteBtn.presence = "invisible";

     }

 

Would anyone have an idea of what I'm doing wrong? Thank you in advance for any help.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>