Add "Infinitus" Fields To A Client Form?

Currently, when i need to add an undefined number of fields to a form, i actually create another form, a view for those docs, and show the view inside the main form.

So, for example, lets say that i have a document that represents an invoice.

An invoice can have N number of items.

So, either, i create X number for rows, and then the user has to create more than one invoice if items = X+1, or i do what i told before.

So, any other, better ideas?

Subject: look into lists and arrays

Look into lists and arrays. Use one/more fields to hold “infinitus” values. Use buttons/dialogs to gather user input to add to the lists, or to select/remove items from the lists.

Look at the mail template, “(RulesDlg)” form for an example of doing this.

Subject: done that

thanks, i already done that before, but is too messy.

So, i prefer the doc/view approach.

But i wonder if there is a better way.

Subject: the options are…

I think you’ve covered the available options…1. Provide a limited number of fields/rows. (caveat: Limiting)

  1. Create new documents and display them in an embedded view, allowing pretty much unlimited number of items. (caveat: Not a lot of coding, but more documents.)

  2. Use list/array, allowing pretty much unlimited number of items. (caveat: more coding, but doesn’t add documents)

Subject: or…

You can create rich text tables to hold information - again more coding and working in a similar way to the lists and array approach

Upgrade to 8.5 and use xPages. You’d then still be using the multiple docs approach but it wouldn’t look like an embedded view