ok where does this come from? pageConfiguration = ‘CreateLineItem’ => displayPropertyKeys = (“[chooseInventory]”,”inventory”,”[editValues]”,”cost”,”msrp”)
I am referring to the square brackets! I have never seen them used in a displayPropertyKeys array. Maybe I am thinking of this wrong. What I thought I wanted was that when I ask for a new line item, the attributes would be empty. If I chose a selection from inventory, this objects values would get copied into the line item. Of course I don’ t have to select from the inventory, I could just start filling in the fields. On Sep 19, 2014, at 4:47 PM, Ramsey Gurley <[email protected]> wrote: > So you have > > Inventory > -qty > -cost > -msrp > ->>lineItems > > LineItem > -cost > -msrp > ->inventory > > You could set that up as a wizard creation page, something like > > pageConfiguration = ‘CreateLineItem’ => displayPropertyKeys = > (“[chooseInventory]”,”inventory”,”[editValues]”,”cost”,”msrp") > > Such that you have to choose the inventory item and then proceed with editing > the other values. Then do the validationKeys thing for Modern to copy your > values. (In ponder, you’d override the _nextStep method on your subclass of > R2DDefaultBranchDelegate.) > > Then on save, you could adjust your inventory quantity in willInsert.. or > maybe not. I don’t remember if willInsert is called a second time after a > validation failure. (Or in ponder, you could override _save on your subclass > of R2DDefaultBranchDelegate.) > > On Sep 19, 2014, at 12:42 PM, Theodore Petrosky <[email protected]> wrote: > >> I need to use a "select from inventory” kind of component. I have inventory >> that has some attributes (quantity on hand, sell price, purchase price, >> etc). >> >> I want to present the user with a popup that lists the inventory (obviously >> this is a rather short list). When you select an inventory object, the >> pertinent attributes are copied to the line item entity. I want to copy >> these attributes to the line item as I may want to adjust (override) the >> values on a single report. Or if the purchase price of an inventory item >> changes, i do not want old reports (invoices) to show these new values. >> >> I am using this as an example to show a perspective client, and to push >> myself to learn more D2W. I think if I were in a regular wonder app, I could >> cobble something together, but I want to learn more in D2W. >> >> Ted >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com >> >> This email sent to [email protected] > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
