Its possible. You may just end up not using the library and writing your own forms to handle it instead. You can nest the objects in as many arrays as you want, however. I would create your own form for the line item, and then use the library for the sub line items.
Sean On Oct 1, 1:41 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote: > Hi All, > > To start out with, this is essentially a budget request type, where I would > like users to submit an request with line items and "sub"line items. Now, > the brute force way would be to have a set number of spaces for "lineitems". > However, I figured I could leverage the array function. As such, I figured > the easiest way was to have, under my "budgetRequest" custom type, an array > of "lineItem" types that hold basic information (category number & > description, $ amounts, etc). However, I also want to be able to split up > that line item with subitems. The process I envision is: > > 1. User goes to online form > 2. Clicks on "add line item" > 3. Window pops up going straight to editing a line item, with button for > "add new sub item" > 4. Closing sub item adds to line item array / library list of line item > 5. Closing item adds line item to array list of budget request > > However, I read somewhere in the documents that you can't open a library and > have another type with an array in there. The questions then I need answers > to are: > > 1. Is something like this even possible? Or am I thinking too hard > 2. Which file controls the opening of the library function, so that I can > change it not to show a display of other line items, but only add new ones. > 3. How do I specify the name of the "Open Library" button to be "Add Line > Item" > > Maybe an easier way would be to have both "add line item" and "add sub line > item" on the main budget request form. Then, the "sub line item" > automatically fills in a <cfproperty type="array" ftRenderType="list"> with > the line items from my budget request. This could be filled in by using > (ftLibraryDataSQLWhere "budgetid = XXX", which the line item would have as a > property). The only question *here* then is: when does the uuid get set for > my new budget request? Can I set it before the submission of the form so > that the line item and sub line items have this as a reference? > > Ok, a lot of questions there, feel free to answer any of them. > > Thanks, > > Tomek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
