Re: WOPopUpButton

"madamimadamtimallen" <[email protected]>
Newsgroups gmane.comp.web.webobjects.newbies
Message-ID <[email protected]>

Does this mean I would need to have another table in my database or can I create it 
putting all the data into the application?

Thanks for responding by the way


 
>   The way I would do this is to set up an entity in my model called
>   "PriceType" or something.
> 
>   PriceType would contain an ID plus two fields, "longName" and
>   "shortName".
> 
>   In your component have a priceTypeDisplayGroup and an itemForPriceType.
> 
>   Your WOPopUpButton should have the following keys filled in:
> 
>   displayString = itemForPriceType.shortName
>   item = itemForPriceType
>   list = pricTypeDisplayGroup.displayedObjects
>   noSelectionString = "-Please Select-"
>   selection = productDetailDisplayGroup.queryMatch.priceType
> 
>   That's it.
> 
>   Cheers then,
> 
>   Larry.
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~
> 
> I forgot to mention....
> 
> add a relationship to your product entity, so your Product entity will 
> have a "priceTpyeID" field and you connect that to the ID in the 
> PriceType entity.
> 
> Therefore, your selection key on the WOPopUpButton should be:
> 
> selection = productDisplayGroup.queryMatch.pricetype
> 
> Cheers then,
> 
> Larry.





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/webobjects-newbies/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.