Forum Discussion
FICO
13 years agoCommunity Manager
RMA - Generic Recursive Template
RMA - Generic Recursive Template In the RMA there is a way to expose your object model to allow the users to add condition's to each rule they create by drilling down into the object model. I have ...
FICO
13 years agoCommunity Manager
Alright this is a BUMP!...
But I also want to add some more information:
At a basic level, the only way to get a list of Properties is through the Class Properties provider, but then I cannot create a recursion with this provider when the user selects the complex type
I’ll explain what I have done so far:
Generic Ruleset Template [ Generic Template]
VH - Generic Rule Template [Rule Template] VH – RecursiveTemplateList [Template List Provider] NormalTemplateList [Template List Provider] PropertyCodeTemplate [Code Template] ObjectCodeTemplate [Code Template] NormalTemplateList [Template List Provider] Recursive Code Template [Code Template] NormalTemplateList [ Template List Provider] RecursiveTemplateList [ Template List Provider]This setup contains 2 recursive structures. 1 being the Template Lists (see recursive template list is inside the recursive template list) and the other being the Object Template (inside the Normal Template List)
This setup gives me the ability to recurse when the user wants to add multiple conditions…
Now at the moment my Choices in the ‘NormalTemplateList’ drop down is limited to what I put in the Template list and the template display names.
What I want instead is basically the Class provider displaying all the properties of and class (including the complex types) and when they select an object that is a complex type (not an integer, bool, string etc), then I want it to recurse and therefore give me an extra drop down with all of the selected's properties and so traverse down the object model (if the user selects it) until you hit the lowest object in the model which would have basic types and then cannot recurse.
My problem is that With this technique I have to use a Template list provider and the display names take the place in the drop down list. If I use a Class Properties Provider (to display the properties) I cannot get it to recurse without causing a circular reference.
Can you suggest the correct structure to get Object.Object.property
Related Content
Related Content
- 0Views0likes3Comments