On 2011-04-29, at 8:15 AM, David LeBer wrote: > > On 2011-04-29, at 12:05 AM, Joe Little wrote: > >> Just seeing if this can be answered >> >> >> Begin forwarded message: >> >>> From: Joe Little <[email protected]> >>> Date: April 27, 2011 1:18:36 PM PDT >>> To: Ramsey Gurley <[email protected]> >>> Cc: WebObjects-Dev Mailing List List <[email protected]> >>> Subject: Re: D2W display rules for relationships >>> >>> Thanks. One thing I noticed is that from Inspect pages, if I add an >>> action like the below, instead of going to the new InspectAffiliate >>> page, I get the ajax quick progress effect and no new page. The >>> generated page has javascript:void(0) when I hover over the inspect. >>> Does a rule need to exist to enable actions from Embedded >>> pageConfigurations? > > If you are using ERM* action buttons in an embedded list page (and not an > embedded edit relationship page) then you need to disable inline editing and > ajax behaviours. > > If I get a chance I'll look up the keys later today (if I can extricate > myself from under the rocks that are currently covering me).
And there should be default rules that control that: 15 : (task = 'list' and parentPageConfiguration != null) => allowInlineEditing = "false" [com.webobjects.directtoweb.BooleanAssignment] 15 : (task = 'list' and parentPageConfiguration != null) => useAjaxControls = "false" [com.webobjects.directtoweb.BooleanAssignment] > >>> On Tue, Apr 26, 2011 at 3:51 PM, Ramsey Gurley <[email protected]> >>> wrote: >>>> If you're using an embedded list, you can add actions like: >>>> >>>> 100: pageConfiguration = 'ListEmbeddedAffiliate' => actions = >>>> {left=("inspectAction");right=();} >>>> >>>> Ramsey >>>> >>>> On Apr 26, 2011, at 3:40 PM, Joe Little wrote: >>>> >>>>> Here's another one. If I have an edit page for an entity, my >>>>> relationships should up with Edit/Inspect buttons. If, however, I >>>>> inspect an entity, I get neither of those buttons and thus can't >>>>> inspect (or get full details like I want) for the relationship. There >>>>> is some default rule that likely causes this, but I'm not smart enough >>>>> obviously to figure it out. In the current case, I have a >>>>> ERMODListPage coming from a ListEmbeddedAffiliate that has no buttons, >>>>> but the inspect/edit buttons come with a ERMODEditRelationshipPage >>>>> from the EditRelationshipEmbeddedAffiliate. >>>>> >>>>> >>>>> On Tue, Apr 26, 2011 at 3:22 PM, Joe Little <[email protected]> wrote: >>>>>> worked like a charm.. on to my other problematically displayed fields.. >>>>>> >>>>>> On Tue, Apr 26, 2011 at 3:11 PM, David LeBer >>>>>> <[email protected]> wrote: >>>>>>> >>>>>>> On 2011-04-26, at 5:56 PM, Joe Little wrote: >>>>>>> >>>>>>>> Lets focus on *Note pages and their display of Projects (one to one).. >>>>>>>> That answer is ERD2WDisplayToOne or ERMDEditRelationship >>>>>>> >>>>>>> ERD2WDisplayToOne is going to use keyWhenRelationship. >>>>>>> >>>>>>> ERMEditRelationship embeds an ERMODEditRelationshipPage so it will get >>>>>>> it's on copy of the d2wContext and it's own pageConfiguration. So use a >>>>>>> rule something like: >>>>>>> >>>>>>> pageConfiguration = 'EditRelationshipEmbeddedProject' => >>>>>>> displayPropertyKeys = ("name") [Assignment] >>>>>>> >>>>>>> If you need to qualify further (i.e: change the displayPropertyKeys >>>>>>> depending on what the parent object is) you can add an 'and' to >>>>>>> something like: parentPageConfiguration = 'EditNote' >>>>>>> >>>>>>> Note: Typed directly into mail, YMMV, it's the end of the day, don't >>>>>>> quote me, look... bunnies! >>>>>>> >>>>>>>> >>>>>>>> On Tue, Apr 26, 2011 at 2:41 PM, David LeBer >>>>>>>> <[email protected]> wrote: >>>>>>>>> >>>>>>>>> On 2011-04-26, at 5:34 PM, Joe Little wrote: >>>>>>>>> >>>>>>>>>> I'm trying to get any Projects that have Notes to display just the >>>>>>>>>> noteText, and likewise, all Notes to display just the project Name >>>>>>>>>> for >>>>>>>>>> their relationships, but its always shows all the fields. >>>>>>>>>> >>>>>>>>>> (pageConfiguration like '*Project' and propertyKey = 'notes') => >>>>>>>>>> displayPropertyKeys = ("noteText") >>>>>>>>>> (pageConfiguration like '*Note' and propreryKey = 'project) => >>>>>>>>>> displayPropertyKeys = ("name") >>>>>>>>>> >>>>>>>>>> Don't seem to have any affect. Any clue to what I'm doing wrong? I >>>>>>>>>> used the D2W inspector, and those should be the rules for what I >>>>>>>>>> have. >>>>>>>>> >>>>>>>>> What component is being used to display the relationship to Notes for >>>>>>>>> a Project, and what component is displaying the Project for a Note? >>>>>>> >>>>>>> ;david >>>>>>> >>>>>>> -- >>>>>>> David LeBer >>>>>>> Codeferous Software >>>>>>> 'co-def-er-ous' adj. Literally 'code-bearing' >>>>>>> site: http://codeferous.com >>>>>>> blog: http://davidleber.net >>>>>>> profile: http://www.linkedin.com/in/davidleber >>>>>>> twitter: http://twitter.com/rebeld >>>>>>> -- >>>>>>> WOWODC 2011 : July 1-2-3, Montreal. http://wowodc.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Do not post admin requests to the list. They will be ignored. >>>>> Webobjects-dev mailing list ([email protected]) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> http://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: >> http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com >> >> This email sent to [email protected] > > ;david > > -- > David LeBer > Codeferous Software > 'co-def-er-ous' adj. Literally 'code-bearing' > site: http://codeferous.com > blog: http://davidleber.net > profile: http://www.linkedin.com/in/davidleber > twitter: http://twitter.com/rebeld > -- > WOWODC 2011 : July 1-2-3, Montreal. http://wowodc.com > > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com > > This email sent to [email protected] ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- WOWODC 2011 : July 1-2-3, Montreal. http://wowodc.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
