AEM instance manager added row locales not changeable by script | Community
Skip to main content
Level 2
Jul 13, 2022 4:49 AM UTC
Solved

AEM instance manager added row locales not changeable by script

Hi I have managed an Invoice template by: 

 

Table1._Row1.addInstance script. 

 

And also I have managed a drop down menu to change local currency (time to time we need to issued invoices in different currences).

The change local command only applies to 1st row, but not the rows added by instance manager. 

 

I have tried to manage directly adding the script inside dropdown click to row numeric field by calculate however I receive invalid value error message while calculating.  

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Krm974Accepted solution
Level 2
Jul 15, 2022 6:20 AM UTC

Hi Mayank, thanks. I will have a look into that soon

3 replies

Mayank_Gandhi
Employee
Jul 14, 2022 10:09 AM UTC

@krm974 You have to iterate it for all the instances. something one these lines:

 

var rowCount = Page1.panel.instanceManager.count;
for (var  i=0; i<rowCount; i++)
{
var path = "form1.Page1.panel.Sub2[" + i + "]";  // cell/repeatable field you want to set
xfa.resolveNode(path).rawValue= somevalue;

 

}

Translate
Krm974AuthorAccepted solution
Level 2
Jul 15, 2022 6:20 AM UTC

Hi Mayank, thanks. I will have a look into that soon

Translate