Forum Discussion
FICO
17 years agoCommunity Manager
valueholder validations in RMA
valueholder validations in RMA We have ruleset template which has a rule template. The rule template contains a string value holder called "Rule Name" which is exposed in the RMA. The requirements a...
FICO
17 years agoCommunity Manager
So, what you are seeing is that the display name of the value holder holding the rule template is used as the rule name when new rules are added?
Interesting challenge
The first two things that come to mind are;
- Provide a default value in the provider. This can be done by implementing the interface com.blazesoft.template.engine.NdProvidesDefaultValue. That way your rule name would have ha default value (obviously) when the rule is instantiated, which might help.
- Check for, and ignore, the display name used for the rule value holder. This isn't very elegant, especially if you hard code it in the provider. An alternative would be to provide the text to ignore as an argument to the provider (implement the com.blazesoft.template.engine.provider.NdDesignProvider interface).
I would probably try number 1 first, as that is the least invasive method.
If none of those works, you could also try wrapping the rule template in a ruleset items template. That way the display name of the value holder will not be used as the rule name, which in turn will not give you that validation error. On the other hand, that will probably mean that you will not see the rule name in the list of items that the user creates, which is bad. Yeah -- all in all I would still go for number 1 (http://blaze.i.lithium.com/i/smilies/16x16_smiley-wink.gif)
Regards,
Jostein
Related Content
Related Content
How to make cuts added in a preIntsol callback globally valid (root node) instead of local to the current subtree?
I'm using the Xpress Optimizer Java API (com.dashoptimization, Xpress 9.4) to solve a MIP with lazy constraints that are generated dynamically. My constraints are all globally valid — they are not lo...2 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread31Views0likes2Comments