Forum Discussion
FICO
17 years agoCommunity Manager
reg: Valueholders
reg: Valueholders
Hey,
i have two valueholders containing values, VH A and VH B.
now i want new VH in which i can take one value from VH A and VH B resp.
example : VH A contains 1 2 3 and VH B contains 4 5 6
i want new VH as 1+5.
Can it be done and if yes how..plz help
Regards,
Archu
4 Replies
- FICOCommunity Manager
Hi,
If you want custom solutions in value holders, one option is to create a custom provider. These can take arguments, and you implement all logic with respect to provider functionality yourself (such as adding numbers from input etc).
Take a look at the Custom Provider API, both in the reference docs and examples (there is a really nice example on how to accept and process arguments, for example).
Regards,
Jostein
- FICOCommunity ManagerHey Jostien can you elaborate about custom provider... can a variable template be usefull... you have any idea./
- FICOCommunity Manager
Hi,
A Custom provider is just that - a provider that provides values in a customized fashion. There is a Custom Provider API that you can use to implement your own provider logic. Open the reference documentation, and see the API Developer's Guide section -> Custom Provider API section. You implement your provider logic in either Java or .Net (one of the .Net languages), and import the provider as a custom provider in your rule project.
Take a look at the reference documentation and the Canadian provinces example. The example in particular gives a very good overview of the steps involved in creating a provider. It will be a lot easier to discuss custom providers when you have seen an example - it gives us a common starting point for further discussion.
Please note that custom providers is one way to solve what you were asking.
If all you need to do is add two numbers, you can also solve this using a third template that takes the two values as template arguments.
If you could provide more information on what you are trying to solve, it would be easier to give you a more specific answer.
Regards,
Jostein
- FICOCommunity Manager
as i said, i have one valueholder named "default parameter". it contains some values.
second valueholder named "all parameter". its contains some value.
Both are prepared first only
Now i have to give the user one right of preparing new parameter Named valueparameter.
this valueparameter will be addition of Default paramater and All parameter speararted by + (plus sign).and will be created by the user at runtime. once created this newly prepared paramter should reflect in the list of DEFAULT AND ALL PARAMETERS. again when tthe user sees the list after sometime, he should be able to see which parameter he had created.