From: Anjo K. <anj...@t-...> - 2004-04-23 06:58:13
|
Hi Ashley, > 1. I am finding it difficult to set keys (using rules) for "embedded > pages" (ie page like components within other pages, or as > customComponents). Any tips? I've rewritten a lot of stuff wrt embedding. You should be able to to this: ... propertyKey = "someToOneRelation" => componentName = "ERDInspect" ... propertyKey = "someToManyRelation" => componentName = "ERDList" I use sth like: smartRelationship.destinationEntity.userInfo.isLarge = 1 and smartRelationship.isToMany= 1 => ... and set the userInfo key in the model. That way I get ERD2WEditToXXXRelationship for the cases where I have few items and want a selection and the lists for "owned" things (which is not quite sthe same a ownsDestination). and then pageConfiguration = "Edit/Inspect/ListEmbeddedSomeToOneEntity" => displayPropertyKeys = (someKeys) The names are generated automatically as "Edit" + "Embedded" + destinationEntityName. If you want different configs set the keys "inspectConfigurationName" for tp-ones and "listConfigurationName" for to-manys. This should be enough to display the embedded components. You should add rules pageConfiguration like "*Embedded*" and entity.name = 'Something' => pageName = "MyCompactInspect" pageConfiguration like "*Embedded*" and entity.name = 'Something' => pageWrapper = "D2WEmptyWrapper" (please check the keys, I didn't try it) to control the display. > 2. When I embed an (*)D2WList in another page, I can move between > batches (and change the batch size) but sorting on columns doesn't > work (ie clicking on icon makes no change - to icon or list). > > Is this because it is a form inside a form? Dunno. Cheers, Anjo |