Forum Discussion
FICO
17 years agoCommunity Manager
Reg: Display of variable added in one Instance across other instances
Reg: Display of variable added in one Instance across other instances
Hi,
I have created two group templates and accordingly two instances each..
In the instance of Group template A i created one variable named ABC.
In the instance of Group Template B i created other variable named XYZ.
Now USing SRL entity Providers, i can see both the variables in their respective instance... example..i can see ABC in instance of Group Template A (SRL ENTITY)
and XYZ in the instance of Group Template B. (SRL ENTITY)
But i want that when i create ABC i will be able to see the ABC in the instance of Group Template B
and XYZ in the instance of group Template A.
I wanna see the variables created across instances irrespective in which instance they are created.
PLease help
Regards,
Archu
31 Replies
- FICOCommunity Manager
It is not possible to templetize ruleset or function parameters. If you need to be able to send a variable number of "parameters" or data points to a ruleset, use an array or a Class template (from which you can create an instance). That way you create a request object that can be extended, instead of trying to create an extensible parameter list.
"parm1 not in scope" probably means that you are trying to reference parm1 from a place where it is not visible, i.e. normal scope visibility rules for variables/parameters apply.
I do not understand the formulation "We have defined one parameter in ruleset as "parm1" which is further being used to place the identity of variable defined through variable template". What are you trying to accomplish?
Are you trying to select a variable to send to the ruleset as a parameter? Are you trying to select a variable name to send to the ruleset as a parameter (and if you are, to what end?)?
Regards,
Jostein
- FICOCommunity Manager
hii Jostien,
As per our previous discussion regarding SRL entity provider. now i have the hierarchy as RULESET/VARIABLE TEMPLATE ok.
Everything is same as discussed i have also added the Variable template in the CONTENT section as entity placeholder.
But now the problem is i am not able to see the variables created in the instance in its SRL entity Provider as well as not across Instance.
Please suggest me some way..its urgent
regards,
Archu
- FICOCommunity Manager
When you have local variables (variables inside rulesets) you need to point to the ruleset in the SRL Entity Provider. The second argument of the provider is "Ruleset". Select the ruleset from which you want to see/select variables in that parameter, and you should be good to go.
Regards,
Jostein
- FICOCommunity Managerfor every new instance created the Ruleset name wont be same na but jostien...
- FICOCommunity Manager
No.
Do you let BA autogenerate ruleset names? Are your rulesets named ruleset1, ruleset2, etc? In that case, you can create a Rulesets Provider, create a valueholder based on that, and use dynamic override to set the ruleset argument to the correct/selected ruleset. In other words, you select the source of your variables first, then select the variable.
If all you need is to reference these instances inside the same group template, you can create a string valueholder for the name of the ruleset, and use that valueholder as the override for the ruleset argument in the srl entities provider.
Regards,
Jostein
- FICOCommunity Manager
i created ruleset provider and attached it to value holder. in the argument mapping i am gettign arguement as Subproject.
i have also created string valueholder by the name ruleset.
Please can u elaborate with steps..please..
Regards,
Archu
- FICOCommunity Manager
- Create a Rulesets provider, and a value holder (exactly 1) that is used to select a ruleset from the list.
- In the SRL Entities Provider (the one you use to list/show existing variables), use a dynamic override for the second argument, called "Ruleset", and select the valueholder created in step 1.
When you only see "Subproject" as an argument, I suspect that you are trying to override an argument in the value holder that refers to the Rulesets provider, not the value holder refering to the SRL Entities provider.
HTH,
Jostein
- FICOCommunity Manager
Hi
I have tried previously given approach.
I have additional observation as given below,
Initially, when I had put variable template as an entity placeholder in Group template, i was able to see the variables across multiple instances. Now when I have removed the Group template and kept the remaining hierarchy intact (i.e. entity place holder is now kept at Ruleset level), I am not able to see the variables across instances.
Does entity placeholder have any reservation for group template only?
ragards,
Archu.
- FICOCommunity Manager
By switching from an entity placeholder for variables in a group template to an entity placeholder for variables in a ruleset template, you have changed from using global variables to using local variables. Global variables will be available everywhere, whereas local variables will only be available locally (in the ruleset).
To select variables from a local scope, you have to tell the SRL Entity Provider what scope to look in. When you configure the provider to look in a specific ruleset, it will only return variables from that ruleset.
When you use global variables, you have to find some other way of limiting the set of variables to show, as explained in other posts.
Regards,
Jostein
- FICOCommunity Manager
that was a very clear and good explanation..thanks for that.
Actually we were using a group template only, which contained a rule set template in which one value holder was defined to hold the variable template.
Now the problem here was, in the variable template there was a code template, in the code template we had some value. Now the value holder defined for code template was kept in the INITIALLY section of Variable template.
Code template had a parameter passed to it which it was accessing from Ruleset Template where this parameter was defined.
So we placed the entire variable template as Entity placeholder in Ruleset template. Doing this we were nto able to view variables across instances, so Added this variable template as entity placeholder in Group Template.
This helped us to view the variables across instances and restriction also we found out the way by using SUBPROJECT.
while compiling i got the error as Redeclaration of variable. (as it was created at Group level and Ruleset Level) so i removed the entity placeholder of Variable template at Ruleset Level. but while Compiling again i am getting error as parameter (used in Code Templete) is not defined.
That why tried to remove the Group Template, Rest you know it.
Regards,
Archu