Re: Modern D2W Fu questions: ERD2WDisplayToManyList actionable links; multiple entities per page
Re: Modern D2W Fu questions: ERD2WDisplayToManyList actionable links; multiple entities per page
- Subject: Re: Modern D2W Fu questions: ERD2WDisplayToManyList actionable links; multiple entities per page
- From: Ramsey Gurley <email@hidden>
- Date: Wed, 9 Feb 2011 19:55:27 -0700
On Feb 9, 2011, at 6:52 PM, Joe Little wrote:
> I'm a little confused. I can make a pageConfiguration, and set
> multiple ERDList and ListEmbeddedStuff's -- Ok. But those are looking
> for stuffList which is just one of the NSArrays defined for a given
> set of entities. Thus, I'll have a couple of these, and they'll each
> show their results. How does one control the ordering of all these
> ERDLists?
I'm not sure which ordering you mean.
The sort ordering can be specified with the defaultSortOrdering and sortOrdering RHS keys. If you use the ERCoreBusinessLogic framework, it has d2w userPreferences to persist the user selected sort ordering in the db.
The order in which the different lists appear is controlled by displayPropertyKeys or tabSectionsContents or sectionsContents RHS keys.
> And then I presume there is an Inspect option per each
> embedded row?
You can get one using the actions RHS key if you don't see one by default. Actions is a dictionary like
100: qual => actions = { right = ("inspectAction"); left = ("editAction", "deleteAction"); }
Those actions will be resolved by rules like
10: propertyKey = "inspectAction" => componentName = "ERDInspectButton"
or something similar. If they aren't defined, you can create your own
10: propertyKey = "controllerAction" => componentName = "ERDControllerButton";
You can look in the rules for ERMod and ERD2W to see which ones are predefined.
Ramsey
> On Wed, Feb 9, 2011 at 4:25 PM, Ramsey Gurley <email@hidden> wrote:
>> Use ERDList as your component. I think all you need are a couple of rules like:
>>
>> 100: propertyKey = 'stuffList' => componentName = ERDList
>> 100: propertyKey = 'stuffList' => listConfigurationName = ListEmbeddedStuff
>>
>> Ramsey
>>
>> On Feb 9, 2011, at 5:16 PM, Joe Little wrote:
>>
>>> To be more specific, I want multiple ERModListPages within one page.
>>> Is that just not doable?
>>>
>>>
>>> On Wed, Feb 9, 2011 at 3:57 PM, Joe Little <email@hidden> wrote:
>>>> First, I have places whereby I have:
>>>>
>>>> 100: ((task = 'inspect' or task = 'list') and
>>>> smartRelationship.isToMany = 1) => componentName =
>>>> "ERD2WDisplayToManyList" (Assignment)
>>>>
>>>> This gives me the list view I want of my items, but I also want to
>>>> have users able to select that row and go to the inspect page for that
>>>> entity referred to in the relationship. Is this doable?
>>>>
>>>> I also want to create multiple compact list views in my primary page,
>>>> each one a list of an entity that is qualified like "recent notes",
>>>> "notes that are due", etc., but all on one page. Are there any
>>>> examples lying around for rules to accomplish this? Or do I need to
>>>> create my own multiple ajaxgrid's within a page I construct?
>>>>
>>> _______________________________________________
>>> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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