Page 1 of 1

SOLVED : setting folder name

PostPosted:Thu Jan 05, 2017 2:37 pm
by jimac
Good Day!!! :lol:

I would like to ask how can i name the folder with the value entered by the user in the form (workflow)
as you can see in the picture.. The folder is renamed as {label=,name=sn, value.. etc } , what I want is,
I want the folder be named depending on the value inputted by the user which is the serial number ONLY, not the whole details..

in that case ..the folder should be named 0001234



(please see the attached file)

THANK YOU!! :D :D

Re: setting folder name

PostPosted:Fri Jan 06, 2017 12:02 pm
by jllort
I suppose the variable "sn" is an Input, you should cast
Code: Select all
Input sn = (Input) context.getContextInstance().getVariable("sn");
sn.getValue(); // then use the value rather than using the toString(), what it prints all sn variables 

Re: setting folder name

PostPosted:Mon Jan 09, 2017 4:30 am
by jimac
jllort wrote:I suppose the variable "sn" is an Input, you should cast
Code: Select all
Input sn = (Input) context.getContextInstance().getVariable("sn");
sn.getValue(); // then use the value rather than using the toString(), what it prints all sn variables 
Thank you Jllort! :)