Re: Tabs in ERMODTabInspectPage not showing
Re: Tabs in ERMODTabInspectPage not showing
- Subject: Re: Tabs in ERMODTabInspectPage not showing
- From: Fabian Peters <email@hidden>
- Date: Mon, 05 May 2014 15:51:00 +0200
Hi Ângelo,
For some reason I never use tabSectionsContents, only displayPropertyKeys in the first format "(('Tab1', 'foo', …), ('Tab2', 'bar', …))". But your syntax looks fine in all variants. However, the "isPerson" condition looks suspicious to me. Are you sure it behaves as you expect? I assume it's a key on the EO, so it should be "object.isPerson".
Fabian
Am 04.05.2014 um 20:41 schrieb Ângelo Andrade Cirino <email@hidden>:
> Hi,
>
> I have used tabs in subtasks for editing entities in the past without problems. Now I can't figure out why my rules below don't work:
>
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => subTask = "tab" [com.webobjects.directtoweb.Assignment]
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => tabSectionsContents = (("Status", "status", "created", "lastModified", "notes"), ("PersonData", "person.firstName", "person.lastName", "person.birthDate")) [com.webobjects.directtoweb.Assignment]
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => tabSectionsContents = ("(Status)", "status", "created", "lastModified", "notes", "(PersonData)", "person.firstName", "person.lastName", "person.birthDate") [com.webobjects.directtoweb.Assignment]
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => tabSectionsContents = ("[Status]", "status", "created", "lastModified", "notes", "[PersonData]", "person.firstName", "person.lastName", "person.birthDate") [com.webobjects.directtoweb.Assignment]
>
> Only one of the three tabSectionsContents is active at once, because I wanted to try the three configurations, but none is displayed. If I turn on the following rule
>
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => displayPropertyKeys = ("[Status]", "status", "created", "lastModified", "notes", "[PersonData]", "person.firstName", "person.lastName", "person.birthDate") [com.webobjects.directtoweb.Assignment]
>
> D2W will throw an exception:
>
> UnknownKeyException: <models.Party 0x6bda6308> valueForKey(): lookup of unknown key: '[Status]'.
> This class does not have an instance variable of the name [Status] or _[Status], nor a method of the name [Status], _[Status], get[Status], or _get[Status]
>
> By the way, to show only the attributes I want I had to set up this rule:
>
> 100 : ((pageConfiguration = 'EditParty' or pageConfiguration = 'InspectParty') and isPerson = 1) => displayPropertyKeys = ("status", "created", "lastModified", "notes", "person.firstName", "person.lastName", "person.birthDate") [com.webobjects.directtoweb.Assignment]
>
> because the other rules won't work.
>
> Here is a screen capture showing that it is apparently well configured:
>
>
>
> Thanks for any help,
>
> Ângelo
> _______________________________________________
> 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