Update state in process RMP

716 views
Skip to first unread message

besumm...@gmail.com

unread,
Oct 15, 2015, 11:08:18 AM10/15/15
to Fujitsu RunMyProcess Developer Community
Hello,
How I can do, for when I hit the button submit in one application, the input field that is the state, change automatically?

Pankaj Kumar

unread,
Oct 16, 2015, 3:09:37 AM10/16/15
to Fujitsu RunMyProcess Developer Community
Hi,

Please give us more details about it. Do you want to change the text of the Input click on click or want to enabled/disabled the input box. You can use the java-script to achieve the same.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Thu, Oct 15, 2015 at 8:38 PM, <besumm...@gmail.com> wrote:
Hello,
How I can do, for when I hit the button submit in one application, the input field that is the state, change automatically?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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/cc911be4-3c74-4cf2-ab76-5816c8de60c6%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

besumm...@gmail.com

unread,
Oct 16, 2015, 8:16:46 AM10/16/15
to Fujitsu RunMyProcess Developer Community
I want enabled the input box. Can you help me?

Bidisha Das

unread,
Oct 16, 2015, 8:29:53 AM10/16/15
to suppor...@runmyprocess.com
Hi,
In order to enable the input field,you can use id_inputbox.setEnabled(true);


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 16, 2015, 8:42:44 AM10/16/15
to Fujitsu RunMyProcess Developer Community
Hello.
Didn't work. If I understand your answer, see:

I have an input field that in sot active but it is visible. It has a name, and when I submit the request, I want that this name update. So, my id name of this field is id_estado, so, I put in javascript field where say "Visible", id_estado.setEnabled(true);
Right?
But my input field disapear. Help me please.

besumm...@gmail.com

unread,
Oct 16, 2015, 9:12:20 AM10/16/15
to Fujitsu RunMyProcess Developer Community, besumm...@gmail.com
What I want is the text of input field change automatically when I push the button understand?

Bidisha Das

unread,
Oct 16, 2015, 9:19:20 AM10/16/15
to suppor...@runmyprocess.com
Hi,
You can use the below code in Pre-Launch script of the Submit button:

id_textbox.setValue("your desired value");
true;


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 16, 2015, 9:43:06 AM10/16/15
to Fujitsu RunMyProcess Developer Community
Thanks friend. Where I can see this javascript codes?

Bidisha Das

unread,
Oct 16, 2015, 9:48:31 AM10/16/15
to suppor...@runmyprocess.com
Hi,

Basically refer to the entire rmp documentation: http://docs.runmyprocess.com/


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 16, 2015, 9:53:26 AM10/16/15
to Fujitsu RunMyProcess Developer Community
Thanks.
I have other doubt, can you help me?
When I press button of submit, I want that the system know automatically what the state should go. I want put condition. I have two fields in array, that are input fields. If input1 > input2 go for state 1, else go to state 2. I should put conditions in submit button? What I should put in the button?

besumm...@gmail.com

unread,
Oct 16, 2015, 5:20:20 PM10/16/15
to Fujitsu RunMyProcess Developer Community, besumm...@gmail.com
Can you help me please?

Pankaj Kumar

unread,
Oct 17, 2015, 2:46:12 AM10/17/15
to Fujitsu RunMyProcess Developer Community

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Sat, Oct 17, 2015 at 2:50 AM, <besumm...@gmail.com> wrote:
Can you help me please?


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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/.

Bidisha Das

unread,
Oct 17, 2015, 5:22:47 PM10/17/15
to suppor...@runmyprocess.com
Hi,
In addition to the above reply,in case you are looking for something like this:

You can use the below code in Pre-Launch script of Submit button:

var input1=id_array.id_input1[row index].getValue();
var input2=id_array.id_input2[row index].getValue();
if(input1 > input2)
{
id_text.setValue("state 1");
}
else{
id_text.setValue("state 2");

besumm...@gmail.com

unread,
Oct 19, 2015, 1:00:44 PM10/19/15
to Fujitsu RunMyProcess Developer Community
Hello,
I try did this, and didn't work:


var input1=id_array_po3.id_quantidade[row index].getValue();
var input2=id_array_po3.id_quantidade_rececionada[row index].getValue();
if(input1 < input2)
{
id_text.setValue("Aprovador");
}
else{
id_text.setValue("Rececionado");
}
true;


Can you help me?

Bidisha Das

unread,
Oct 20, 2015, 4:12:37 AM10/20/15
to suppor...@runmyprocess.com
Hi,
Please use the index of the row of array like: 0,1 etc from where you are fetching the value. Also make sure the id of the widget where you are setting the value is id_text.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 4:57:18 AM10/20/15
to Fujitsu RunMyProcess Developer Community
I have some doubts. If I have just one line, the index will be always 0, right? What is the id of the widget? Array id? id_array is equal to id_text?

Another question. The code that you posted is for change the text of input or for the flow forward for some diretions?

Bidisha Das

unread,
Oct 20, 2015, 5:26:18 AM10/20/15
to suppor...@runmyprocess.com
Hi,
Yes, if you are retrieving values from first row of the array,its index would be 0.Similarly for second row,it is 1 and so on.

id_text is the id of the widget where you are setting the value.In my case it is a text widget,so I am using id_text.In your case,it may be some other widget,so you may change it.

The code I have posted is for change in text input in WI on basis of input values fetched from array columns on click of Submit button.If you are looking for the work flow to move forward on basis of conditions,you may need to use Gateways.Please refer to the links posted by Pankaj above my post and verify if they match your case and helps in resolving the issue.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 6:02:52 AM10/20/15
to Fujitsu RunMyProcess Developer Community
In my case is input number, where is the id? id_number?
Yes, probably I should use gateways, but I don't know how I can do this. I already have a gateway, but I should put one condition, because when I click in submit button, the flow have two directions. If var1 > var2 go to direction1, else direction 2. But I don't know how I can do this in process. Can you help me?

Bidisha Das

unread,
Oct 20, 2015, 6:12:20 AM10/20/15
to suppor...@runmyprocess.com
Hi,
I am not sure whether you want the functionality in WI or else Process? If it is a process,then what is id_number? You need it only if you are setting the value on WI on basis of conditions you mentioned.If it is a process,can you please go through all the links suggested by Pankaj. If you don't understand,you can come back.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 6:23:39 AM10/20/15
to Fujitsu RunMyProcess Developer Community
I try explain what I want.
See for the image:

http://postimg.org/image/w6i4kqynn/

I want work in red circle.
I have two buttons: Save and Submit.
When I click Submit I want that the application decide basis in conditions.

If value1 > value2 go to Aprovador
Else go to Rececionado

Understand more or less what I want?

Bidisha Das

unread,
Oct 20, 2015, 7:35:42 AM10/20/15
to suppor...@runmyprocess.com
Hi,
Firstly,use the below code in Pre-Launch script of Submit button to set the values retrieved from both the columns of array in two number widgets with identifiers id_number1 and id_number2  in WI.

id_number1.setValue(id_array.id_column1[row index].getValue());
id_number2.setValue(id_array.id_column2[row index].getValue());
true;

After that,use the following condition in GatewayAprovador: number1?number>number2?number and Rececionado:number1?number<number2?number where number1 and number2 are the variables of the 2 number widgets coming to process from WI.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 8:14:07 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Probably I am not do the things right, because when I try click in button, the button don't work.

Help me, in the code that you put above with my data.

I have one array that id is: id_array_po3
The columns of array are: quantidade and quantidade_rececionada
So:
id_column1 = id_quantidade
id_column2 = id_quantidade_rececionada

I just have one row, so row index = 0

What is the id_number1 and id_number2?

I have two columns in the array and both are number input fields.

Help me, and rewrite code above with my data please.

Bidisha Das

unread,
Oct 20, 2015, 8:36:04 AM10/20/15
to suppor...@runmyprocess.com
Hi,
Take two number widgets on WI to store the values from array.The identifiers of the 2 widgets would be: id_number1 & id_number2 and variablesnumber1 & number2.

After that,use the below code in Pre-Launch script of the Submit button: 

id_number1.setValue(id_array_po3. id_quantidade[0].getValue());
id_number2.setValue(id_array_po3. id_quantidade_rececionada[0].getValue());
true;

Once you launch the WI, definitely you will put some values in both the columns of the array before Submit.Those values will be automatically set in both the number widgets via the above code on click of submit.The process gets triggered and both the column values will be sent to the process.You can then compare and use conditions on basis of them in Gateway in process.
GatewayAprovador: number1?number>number2?number and Rececionado:number1?number<number2?number

Hope you are clear.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 9:06:48 AM10/20/15
to Fujitsu RunMyProcess Developer Community
It is a bit confuse. Because the id_number1 is id_quantidade and id_number2 is id_quantidade_rececionada, that are the columns ids. Can you explain?

Pankaj Kumar

unread,
Oct 21, 2015, 5:12:43 AM10/21/15
to Fujitsu RunMyProcess Developer Community
Adding to Bidisha reply,

Please add two input widget of Number type with id (id_number1 and id_number2) make them invisible in Web Interface. After that use the code suggested by Bidisha and in Process gateway, use the condition

Gateway
Aprovador: number1?number>number2?number 
Rececionado:number1?number<number2?number

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Tue, Oct 20, 2015 at 6:36 PM, <besumm...@gmail.com> wrote:
It is a bit confuse. Because the id_number1 is id_quantidade and id_number2 is id_quantidade_rececionada, that are the columns ids. Can you explain?
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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/.

besumm...@gmail.com

unread,
Oct 21, 2015, 5:33:01 AM10/21/15
to Fujitsu RunMyProcess Developer Community
I already do this, and didn't work. When I click in button no action appear. I send the screenshots:

Screenshots: http://www.filedropper.com/images_8

Bidisha Das

unread,
Oct 23, 2015, 6:40:45 AM10/23/15
to suppor...@runmyprocess.com
Hi,
Can you please send screenshots or else code which you are working on? 

The code I sent you works fine.I am not sure if you are using correct ids and variable names in the code and if you have configured everything properly.It would be helpful for me to resolve if you can share your code or configuration.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 26, 2015, 7:15:23 AM10/26/15
to Fujitsu RunMyProcess Developer Community
I already sent you the screenshots.

SEE HERE: http://www.filedropper.com/images_8

Reply all
Reply to author
Forward
0 new messages