Forum Discussion
FICO
18 years agoCommunity Manager
Regarding RMA (Acessing Instances)
Regarding RMA (Acessing Instances)
I have small query:-
Is there any way to reflect the changes done in the instances to the main templates.
Cause we have a requirement of changing the values during the runtime and so it should reflect in main template.
kindly help me through
regards,
Archu
6 Replies
- FICOCommunity Manager
I think you need to specify what kind of changes you are talking about for us to be able to help you. In general, an Instance is derived from a template, and is not able to "talk to" that template. However, what you describe could be a usecase for "dynamic overrides".
A simple example of dynamic overrides would be to create two integer valueholders, a MinValueVH and a MaxValueVH. The MaxValueVH should obviously not be any smaller than the value of MinValueVH. To accomplish this, you select the arguments button for MaxValueVH, select dynamic override, and point it to MinValueVH. This way, your template will validate the input from your instance, based on other data entered through the instance.
It could be that I misunderstood your question, though...
- FICOCommunity Manager
thanks jostien. i tried the way u said about dynamic over rides.
actually i want the values to be passed from one template to other template and vica versa.
means whtever i change is one template should get reflected in the other template and vica versa.
can u suggest me something about it.
regards,
archu
- FICOCommunity Manager
I am not sure that I understand what you are trying to accomplish, but here is one idea:
It is not possible (as far as I know) to pass values from template A to template B, and the from template B to template A again. You can pass arguments from one template to another using template arguments, but not both ways.
What you can do, however, is use a third template to act as a go-between:
Just to prove the idea, create a ruleset template. In the ruleset template, create two value holders, V1 and V2, for example strings or ints. Then create two code templates (in the ruleset template), C1 and C2.
Now, in the code templates you have created, you can create placeholders without creating the additional value holders (select "Use an existing value holder" ). When prompted to select a value holder, choose "Select a value holder in the current global template". You now have access to the value holders declared in the ruleset template.
This is a very simple demonstration, but you can elaborate on this and use the different valueholders for input (that is, populate the value holder) in one template, and then as an argument (for example) in another template.
Message Edited by Jostein on 04-11-2008 08:01 AM - FICOCommunity Manager
thanks jostein.
It was very much helpful.
Now, I have created one Ruleset template (i.e. View Screen) and also defined couple of ruleset templates (lets call it A and B) in it. These ruleset templates contain 5 rules each. Now I am trying to display 2 rules from each ruleset template in the main ruleset template (i.e. View Screen). I have tried many ways (like rule association, etc) to find out the solution.
Could you please suggest me some way how to do this search internally?
one more query, after the template is created, now i created one button named it as Add new row. on click of it new row should get added. For this i have created Js script and row gets added but the valueholder which are added doesnt get reflected in the repository.
how the origiinal value holder and new ones be linked to each other.
Please let me know the posssible solutions (http://blaze.i.lithium.com/i/smilies/16x16_smiley-happy.gif)
Regards,
Archu.
Message Edited by archu on 11-04-2008 05:45 AM Message Edited by archu on 11-04-2008 11:12 PM - FICOCommunity Manager
Is this query related to you other query? I think that you are misunderstanding (or are simply not conveying) how templates and instances work. It is not valid to reflect changes made to instances back to a template. Changes to templates must reflect back to instances of that template, but not vice-versa.
Perhaps if you explained what it is that you need to accomplish (from a logical or business perspective) we might be able to help.
The fact that you are writing a whole bunch of javascript leads me to believe that you are doing very custom work. I am not sure if this is required or not, but it sounds like it is atypical. You do realize that you have to manually maintain any custom work that you do in an RMA. I can see where you could add custom code to the RMA for visual customizations or to link in non-RMA based pages, but it may not be the best idea to customize how the RMA itself works.
Jeff.
- FICOCommunity Manager
Ooops,
I answered the wrong end of the thread.
Looks like we have moved on from the original question to a new question.
If I understand correctly you want to reference some source rules and view them in another view. My question back to you is "Is the view ruleset only for viewing in the RMA, or does it need to exist and potentially be executed somewhere?".
If it is only a view, then perhaps you can tag the source rules with a specific management property, then use the OOTB query mechanism to look for all rules that have this managment property assigned to them. It would not result in another ruleset, but would give you a page list containing links to the rules that you want to view.
Jeff.
Related Content
Related Content
Problems regarding one formula:
Hi Everybody! I'm fairly new to Xpress and had to develop an ILP for my thesis and calculate it with Xpress. Now I am stuck on a formula I don't know how to express within the Mosel language. Maybe...12 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Comments