• 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: Fabian Peters <email@hidden>
  • Date: Mon, 22 Sep 2014 22:06:06 +0200

Hi Ted,

It's just a different format for specifying the tab: <http://jenkins.wocommunity.org/job/Wonder/javadoc/er/directtoweb/pages/ERD2WPage.html>

You could rewrite it as:

pageConfiguration = 'CreateLineItem' => displayPropertyKeys = (("chooseInventory","inventory"), ("editValues","cost","msrp"))

Fabian

Am 22.09.2014 um 19:43 schrieb Theodore Petrosky <email@hidden>:

> 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@hidden> 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@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


 _______________________________________________
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>
References: 
 >component advise? (From: Theodore Petrosky <email@hidden>)
 >Re: component advise? (From: Ramsey Gurley <email@hidden>)
 >Re: component advise? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: component advise?
  • Next by Date: Re: component advise?
  • Previous by thread: Re: component advise?
  • Next by thread: Re: component advise?
  • Index(es):
    • Date
    • Thread