I have created a web interface in which i have included a collection. In the web interface i have take two list and a button.
The first list is custom list, where as the second list is a variable based(with multiple selection enable) list. I am mapping my custom list values with those of variable list values and as result the output is generated by clicking the button.
In this web interface i have another screen called assigner with a text input. Now all i want is that when the user selects the multiple values from the variable based list and upon clicking the button those selected values get displayed in the assigner screen text input.
To achieve this out come i have given the default value of the assigner screen text input as the value variable of my variable based list.
I am getting my desired output but with some complications. The selected values are coming into the assigner screen text input , with brackets and inverted commas, I want to remove these brackets and commas, and also cannot view all my selected values . so please help me out, i am attaching the screen shot for better understanding.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/01b9c6b2-78f7-4418-b79d-c65dbeaedcd7%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/4BtIAuLxaT0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAMkEM0ATTf7Oh-b68tUe1J6fc_wxCM33hYMoSbFfd0Qgwu-2uw%40mail.gmail.com.
could you find any solution for my issues????
Hi Thosino,My assigner text input widget is still coming without the values of my safety_officer variable baesd list could you pleae tell me where i am going wrong.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CA%2B00SPH9Jmun%2BSkXz1pankkFjoJpwJoTX--hEPHbEERXzMKsHA%40mail.gmail.com.
Hi,I think I confused you a little bit. Sorry.You should keep the same list widget in 1st and 2nd screen (no need to make id_safety_officer_a).Using same widget in launch and 2nd screen means, values set in launch screen will be sent to process, go through process, and at 2nd screen, it will be populated with same value and be Available for use (if you select Available)."Available/Active/Visible" rule can be set separately for each screen.So I assume with above setting, list variable is available for use in 2nd screen.Then we need to go through standard JS debug procedure.Like below, to see each line execute step-by-step.
function setAssignerText() {var my_safety_officer = RMPApplication.get("safety_officer");
alert("my_safety_officer: " + my_safety_officer);var my_json = JSON.parse(my_safety_officer);alert("my_json : " + my_json);var my_string = "";alert("my_string : " + my_string);
for (var i = 0; i < my_json.length; i++) {my_string = my_string + my_json[i];
alert("my_string : " + my_string);
if ((i + 1) < my_json.length) {my_string = my_string + ",";
alert("my_string : " + my_string);}}alert("my_string : " + my_string);id_assigner.setText(my_string);}setAssignerText();Best regards,Taka
On Thu, Oct 23, 2014 at 10:48 PM, Swati Sarkar <swati.sa...@gmail.com> wrote:
id: id_assigner.Value Variable :assignerLable:Assignerlist variable: vb_safety_officerlable variable: safety_officer_namevalue variable: safety_officerLable: Safety OfficerI have variable based multiple selection list widget with th followingHi Thosino,Let me explain you what i am donig then you can figure it out where i am going wrongid:id_safety_officerIn the next screen i have a Assigner text input widjet with the following
Below this as you have said earlier i have take the "safety_officer" widget with all the field s same as of my first screen "safety_officer" widget except the identifier,which is only available but not active and visible.id:id_safety_officer_a.below that i have taken a hidden split widget and in which i am giving the javascript that you have provided me .so now could tell me where it went wrong all this time??
On Fri, Oct 24, 2014 at 10:52 AM, thoshino <thos...@runmyprocess.com> wrote:
Hi,
So you tried the modified code I sent to you and it doesn't work. Correct?Since I am not working in your environment I cannot provide exact code that will work, just by copy paste.
So I will explain what each line of code is doing, and you hope you can elaborate.
1. var my_safety_officer = RMPApplication.get("safety_officer");
This line is reading the web interface variable into my Javascript context.It will be in string format.2.var my_json = JSON.parse(my_safety_officer);This line is parsing the string data as JSON array.After this I should be able to access each selected value like my_json[0].
3. for (var i = 0; i < my_json.length; i++) {
This is for loop for each data in my_json array.4. my_string = my_string + my_json[i];Concatenating each data in array into string.
5. if ((i + 1) < my_json.length) {
my_string = my_string + ",";
If there is next value, then I want to separate with a comma.6. id_assigner.setText(my_string);This is the line that is setting the value of id_assigner text widget.7. setAssignerText();All of above was defining function, and this line is executing all that I wrote above.
Best regards,Taka