var max = controller.getMaxRecordIndex();
var x = 'x';
var title = i18n.getI18NMessage('7office.dlg.modelflags');
var msg = i18n.getI18NMessage('7office.dlg.modelflagsmsg', new Array(max, x));
Here’s the i18n key:```
Use this record as a model and set all {0} current records to the same settings?
```
Here’s the issue. I only need one variable. If I leave out the second I get an error.
Morley - arrays are zero-based (they start with zero, not one).
TRY:
var max = controller.getMaxRecordIndex();
var x = 'x';
var title = i18n.getI18NMessage('7office.dlg.modelflags');
var msg = i18n.getI18NMessage('7office.dlg.modelflagsmsg', new Array(1, x));
hmm, what you say is thatvar msg = i18n.getI18NMessage('7office.dlg.modelflagsmsg', new Array(max, x)); works and this```
var msg = i18n.getI18NMessage(‘7office.dlg.modelflagsmsg’, new Array(max));
What if you try this:```
var msg = i18n.getI18NMessage('7office.dlg.modelflagsmsg', new Array(max+''));
``` because that worked for me but is not really how it should be...