Re: d2w query question

2013-10-04 Thread Markus Ruggiero
I may be late and possibly do not understand exactly the issue, but something triggered the following thoughts: You have Grids some of those Grid objects are Biilboards. Can Grid objects switch from being Grid to Billboards and back or is Billboard a special type of Grid and a created Billboard

Re: d2w query question

2013-09-30 Thread David Holt
Also you need to work at it. Don't look for some key. Practice, practice, practice. Search for keys in component and rule models. Change them. Use the debugging techniques. Hell make your own look. Then you'll understand. David On 2013-09-28, at 10:21 AM, David LeBer wrote: > The first

Re: d2w query question

2013-09-28 Thread David LeBer
The first rule of D2W: There is NO magic. If you can't figure out why something works a certain way, that's just because you haven't found where the logic is yet. The d2wContext is just a state machine / key-value store. It performs little logic on its own. All the 'smarts' are in one of three

Re: d2w query question

2013-09-28 Thread Theodore Petrosky
what did I learn in my d2w sojourn? make sure you use the full package name when adding a queryDataSourceDelegate (that one bit me until I read the email about 16 times). you can create a Query page and specify in the rules what the entity is. there are so many possible rules with settings that

Re: d2w query question

2013-09-26 Thread David Holt
Your method calling this query page should actually be: public WOComponent queryBillboarAction() { return D2W.factory().pageForConfigurationNamed("QueryBillboard", session()); } pageConfiguration = "QueryBillboard" => entity = "Grid" [com.webobjects.directtoweb.EntityAssignment], task

Re: d2w query question

2013-09-26 Thread David Holt
Yes! You're coming to the crux of D2W power. Congratulations :-) All you need to do is set some rules for task and entity of the custom configuration you need. Typed into Mail: pageConfiguration = "RowsAndRowsOfMyAwesomeBillboards" => task = 'list' [com.webobjects.directtoweb.Assignment] pageCo

Re: d2w query question

2013-09-26 Thread Theodore Petrosky
On Sep 26, 2013, at 5:07 PM, David Holt wrote: > Hi Ted, > > well Grid is the entity, but you only want to display those grids that are > billboards? > > "Pages.ListGrid" = "List Billboards" > "Nav.ListGrid" = "List Billboards" > >> ((D2WComponent) qpi).d2wContext().takeValueForKey("List

Re: d2w query question

2013-09-26 Thread David Holt
Hi Ted, well Grid is the entity, but you only want to display those grids that are billboards? "Pages.ListGrid" = "List Billboards" "Nav.ListGrid" = "List Billboards" > ((D2WComponent) qpi).d2wContext().takeValueForKey("ListBillboard", > "navigationState"); > ((D2WComponent) qpi).d

Re: d2w query question

2013-09-26 Thread Theodore Petrosky
yes, I use the Localizable.strings. I don't see how this would help? I thought I wanted to change the context pageConfiguration. What did I miss? On Sep 26, 2013, at 12:12 PM, David Holt wrote: > Are you using Localizable.strings? > > > On 2013-09-26, at 7:24 AM, Theodore Petrosky wrote

Re: d2w query question

2013-09-26 Thread David Holt
Are you using Localizable.strings? On 2013-09-26, at 7:24 AM, Theodore Petrosky wrote: > > On Sep 26, 2013, at 4:41 AM, Fabian Peters wrote: > >> Hi Ted, >> >> Am 26.09.2013 um 01:51 schrieb Theodore Petrosky: >> >>> yea sometimes the original answer to a post was over my head and I didn't

Re: d2w query question

2013-09-26 Thread Theodore Petrosky
On Sep 26, 2013, at 4:41 AM, Fabian Peters wrote: > Hi Ted, > > Am 26.09.2013 um 01:51 schrieb Theodore Petrosky: > >> yea sometimes the original answer to a post was over my head and I didn't >> understand something, so I gave up. >> >> I have your solution working beautifully. I hope this

Re: d2w query question

2013-09-26 Thread Fabian Peters
Hi Ted, Am 26.09.2013 um 01:51 schrieb Theodore Petrosky: > yea sometimes the original answer to a post was over my head and I didn't > understand something, so I gave up. > > I have your solution working beautifully. I hope this helps me to understand > the delegates more. > > but here is an

Re: d2w query question

2013-09-25 Thread Theodore Petrosky
yea sometimes the original answer to a post was over my head and I didn't understand something, so I gave up. I have your solution working beautifully. I hope this helps me to understand the delegates more. but here is an issue. here is the method that returns the QueryPage: public WOCompon

Re: d2w query question

2013-09-25 Thread David Holt
Nothing like a little deja vu, including the original poster. :-) On 2013-09-25, at 12:40 PM, Johnny Miller wrote: > Like this? > > http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html > > > On Sep 25, 2013, at 9:23 AM, Theodore Petrosky wrote: > >> I have an entity 'Grid

Re: d2w query question

2013-09-25 Thread Johnny Miller
Like this? http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html On Sep 25, 2013, at 9:23 AM, Theodore Petrosky wrote: > I have an entity 'Grid' that has an attribute 'isBillboard'. I created the > list billboard tab with: > > public WOComponent listBillboardAction() { > >

Re: d2w query question

2013-09-25 Thread David Holt
public class LibraryDocumentsQueryDataSourceDelegate implements ERDQueryDataSourceDelegateInterface { public EODataSource queryDataSource(ERD2WQueryPage sender) { EODataSource ds = sender.dataSource(); if (ds == null || !(ds instanceof EODatabaseDataSource)) { ds = new EODatabaseDa