Community

Repeatable group add one item on load

Hi,

I have a repeatable group (as a table) in order to split an invoice over multiple cost centers. 
Everything works, except the fact that we always need at least one row in the table.
I've tried adding a rule script on the group with the following script:

if Context.Field("Division").Items.Count = 0 then
    Context.Field("Division").Items.AddNew()
end if

This doesn't work and gives an error "System.NotImplementedException".
Apparently I can't use this method in a rule script and I should use a document processing script.
However, I'm using a standalone version and I can't add stages.

Can I solve this problem somehow?

Thank you in advance!

Was this article helpful?

1 out of 1 found this helpful

Comments

2 comments

Please sign in to leave a comment.