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