Forum Discussion
FICO
11 years agoCommunity Manager
Value list from valueholders
I've a problem in implementing one of the business requirements. There is a ruleset called ‘measure’ which contains value holder for 0 or many rules. Each rule has a value holder for it’s name, in t...
FICO
11 years agoCommunity Manager
Hi,
Yeah, if you want to collect all rule names in a dropdown, one way to go is to create a custom provider that reads rule names from the instance model, just like Baljeet wrote. There is one way you could (possibly) cheat, though:
If you make sure all your rule names are "compiler friendly", i.e. they can be used as identifiers, you could add them as some internal type, and use the built in SRL Entities Provider to list them. For example:
- Create some internal marker class in Blaze Advisor
- Use the SRL Names-provider for your rule names value holder (please note that this will limit the types of names available to your business users). Add a hard coded prefix to your actual rule names (e.g. "Rule_" <yellow bubble>)
- Add a rule set variable in your template, whose name is taken from the SRL names provider. No pre- or postfix here.
- For your Code1 value holder, choose the SRL Entity provider and select your marker class as the type of entities to display. Select variables only.
Please noe that using introspection features such as these might affect both RMA and compile time performance. Runtime performance will not be impacted, though.
Regards,
Jostein
