• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: component advise?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: component advise?


  • Subject: Re: component advise?
  • From: Ramsey Gurley <email@hidden>
  • Date: Fri, 19 Sep 2014 13:47:50 -0700

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@hidden> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: component advise?
      • From: Theodore Petrosky <email@hidden>
    • Entity Modeler - SQL Generation Error
      • From: Troy Lumasag <email@hidden>
References: 
 >component advise? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: component advise?
  • Next by Date: Entity Modeler - SQL Generation Error
  • Previous by thread: component advise?
  • Next by thread: Entity Modeler - SQL Generation Error
  • Index(es):
    • Date
    • Thread