Forum Discussion
FICO
17 years agoCommunity Manager
Valueholder & Assignment Question
Valueholder & Assignment Question
Hi,
I am working on a requirement wherein on the RMA screen, depending upon one of the options chosen (from a list of values), a value has to be assigned to another field and displayed on the screen.
For eg: if the user chooses "Yes" from the list of options available, in the other text box which is available, it should come up as "Enabled".
I was unable to find out the mechanism to accomplish this. Using value holders didnt permit me to assign any strings explicitly, only comparison was possible.
Can you let me know on how this can be accomplished, kindly treat this as urgent.
Regards,
Arun
2 Replies
- FICOCommunity Manager
Hi,
Just to make sure I understand what you are trying to accomplish: Do you want a text field, or just a label/printout of the value "Enabled"?
If all you need is to write the next value "Enabled" to screen if a user selects "Yes", you have a few options. One is to use a conditional block (the blue angle brackets) in your display version, where the test condition is something like "yesNoVH" = "Yes". Another option is to make your select box (which contains the "Yes"-option) a template list provider, and create a template for each of the options you need. In the display version of your "Yes"-template, you could have a text that said "Enabled".
If what you want is a text field, i.e. something the user can modify, you probably need something more here. But if this is the case, I would like to ask why you both need a "Yes" (which you already have from the user), and an "enabled"-value. Wouldn't one of them be enough?
Regards,
Jostein
- FICOCommunity Manager
Hi Jostein,
Thanks for the response. You are right, I was more looking at a mechanism of a label. I had tried out condition block earlier but was running into some issues, so I had left that option. Today again I revisited that, and with help from a colleague was able to get this condition block working and my requirement as well.
Thanks for your suggestion Jostein.
Regards,
Arun
Related Content
Related Content
The assignment target is invalid. You can assign values only to variables, properties and indexed properties
Hi There, When I am comprising enum to enum then getting this error msg. for comprising I am using =, is, and .equals(object) The assignment target is invalid. You can assign values only to varia...0Views0likes1CommentQuestion about the benders example
Hello, I am an ordinary student studying optimization with Xpress. First, I downloaded and ran the Python file from the xpress example to reference while implementing benders decomposition using ...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Comments