I am not explaining this well so let's see,

I don't want to create a compound property.  I want to display the propertyKeys 
of the relationship inline. there may be 3 or 50 of these 'rows'.

so project1 has 25 steps, each step has a description, status, and dueDate.

I want to see:

header row         step desc                       step status              
step due date                project team
project1Title       p1step1Description    p1step1Status     p1Step1dueDate      
    project1teamName
                             p1step2Description    p1step2Status     
p1Step2dueDate
                             p1step3Description    p1step3Status     
p1Step3dueDate
                             p1step4Description    p1step4Status     
p1Step4dueDate

project2Title       p2step1Description    p2step1Status     p2Step1dueDate      
    project2teamName
                             p2step2Description    p2step2Status    
p2Step2dueDate
                             p2step3Description    p2step3Status     
p2Step3dueDate
                             p2step4Description    p2step4Status     
p2Step4dueDate


so there is an overall table and an inner table with the steps.

161 : pageConfiguration like 'List*Project' => displayPropertyKeys = 
("projectDescription", "projectSteps", "projectStatus") 
[com.webobjects.directtoweb.Assignment]

notice the middle key is projectSteps there is my problem that array of steps.

at one point I created a method  (a compound property)  that manufactured the 
HTML of a table with at data in the Project EO. This worked however there is no 
way to add the column headers in the outside table. Hence my work at making 
this work with rules and binding.

161 : pageConfiguration like 'List*Project' => displayPropertyKeys = 
("projectDescription", "projectSteps.stepDescription", 
"projectSteps.stepStatus", "projectSteps.stepDueDate", "projectStatus") 
[com.webobjects.directtoweb.Assignment]

but what happens when it sorts?



On Jul 8, 2013, at 4:12 PM, David Holt <[email protected]> wrote:

> Hi Ted,
> 
> Just create the compound property in your business logic.
> 
>       public String fullName() {
>               return this.firstName() + " " + this.lastName();
>       }
> 
> 
> Then your rules will be something like:
> 
> 100 : smartRelationship.destinationEntity.name = 'Person' => 
> keyWhenRelationship = "fullName" [com.webobjects.directtoweb.Assignment]
> 100 : (pageConfiguration like '*List*Team*' and propertyKey = 'people') => 
> componentName = "ERD2WDisplayToManyTable" 
> [com.webobjects.directtoweb.Assignment]
> 100 : (pageConfiguration like '*List* Team*' and propertyKey = 'people') => 
> numCols = "1" [com.webobjects.directtoweb.Assignment]
> 
> David
> 
> On 2013-07-08, at 12:10 PM, Theodore Petrosky <[email protected]> wrote:
> 
>> So now I understand that ERD2WDisplayList is the wrong choice. I am a little 
>> slow.
>> 
>> So I tried this:
>> 
>> 150 : pageConfiguration like 'List*Project' => displayPropertyKeys = 
>> ("projectDescription", "projectSteps", "timing") 
>> [com.webobjects.directtoweb.Assignment]
>> 150 : (pageConfiguration like 'List*Project' and propertyKey = 
>> 'projectSteps') => componentName = "ERD2WDisplayToManyUnorderedList" 
>> [com.webobjects.directtoweb.Assignment]
>> 150 : (pageConfiguration like 'List*Project' and propertyKey = 
>> 'projectSteps') => keyWhenRelationship = "stepDescription" 
>> [com.webobjects.directtoweb.Assignment]
>> 
>> I can get an unordered list as my to-many but,  this give me only one 
>> propertyKey from the relationship.
>> 
>> so now I am into this one:
>> 
>> ERD2WDisplayToManyCustom
>> 
>> I need to pass in the to-many projectSteps and present the appropriate keys.
>> 
>> I guess I am hoping someone will see where I am stepping on myself.
>> 
>> Ted
>> 
>> 
>> On Jul 8, 2013, at 1:42 PM, Theodore Petrosky <[email protected]> wrote:
>> 
>>> so in my d2w app, I have an entity  'project' <=>> projectSteps
>>> projectStep has stepDescription, stepStatus, stepDueDate
>>> 
>>> I want to display the ListProject with:
>>> 
>>> projectDescription , projectSteps.stepDescription, projectSteps.stepStatus
>>> 
>>> I want to see:
>>> 
>>> my project Description      step1     status1
>>>                                             step2     status2
>>>                                             step3     status3
>>> 
>>> 
>>> of course projectSteps.stepDescription is an array of strings as is 
>>> projectSteps.stepStatus
>>> 
>>> so I thought that I would read the wonder docs and find a component that 
>>> should fit. I found:
>>> 
>>> ERD2WDisplayList
>>> 
>>> "Used to display a an NSArray of the form "A, B and C", useful for toMany 
>>> relationships or propertyKeys that return arrays."
>>> 
>>> well my propertyKey  "projectSteps.stepDescription" returns an array of 
>>> strings. 
>>> 
>>> but I guess I don't get how to wire this thing in. could someone point me 
>>> in the right direction.
>>> 
>>> Ted
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.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:
>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to