- Wed Sep 19, 2018 12:14 pm
#816171
Hello guys, I'm new in ProcessMaker and I have some questions about Screen Derivation:
-> I want to skip or auto submit that screen <-
I read the documentation and comments in this forum for do that and I actually have two ways to do it:
1st: Using this lines in a Trigger
PMFDerivateCase(@@APPLICATION, @%INDEX);
G::header("Location: casesListExtJsRedirector");
die();
2nd: Using a template with this lines in <script> tag
var x = document.getElementsByName("form[TASKS][1][USR_UID]");
if(x.length == 0 || (x.length > 0 && x["0"].tagName !== "SELECT")) {
document.getElementById("frmDerivation").submit();
}
The problem here is that both ways don't work in ProcessMaker Mobile, First way doesn't work because function "PMFDerivateCase" is not supported in Mobile version. And the Second way doesn't work because in Mobile Version ProcessMaker use a different function, Screen Derivation or something else...
So, my questions are:
- ProcessMaker don't run that template in Mobile version because is a different environment, right?
- Exists a third way to skip or auto continue the Screen Derivation but in Mobile Version?
- Exists an equivalent to "PMFDerivateCase" in Mobile version?
Thanks for reading...
Carlos.
-> I want to skip or auto submit that screen <-
I read the documentation and comments in this forum for do that and I actually have two ways to do it:
1st: Using this lines in a Trigger
PMFDerivateCase(@@APPLICATION, @%INDEX);
G::header("Location: casesListExtJsRedirector");
die();
2nd: Using a template with this lines in <script> tag
var x = document.getElementsByName("form[TASKS][1][USR_UID]");
if(x.length == 0 || (x.length > 0 && x["0"].tagName !== "SELECT")) {
document.getElementById("frmDerivation").submit();
}
The problem here is that both ways don't work in ProcessMaker Mobile, First way doesn't work because function "PMFDerivateCase" is not supported in Mobile version. And the Second way doesn't work because in Mobile Version ProcessMaker use a different function, Screen Derivation or something else...
So, my questions are:
- ProcessMaker don't run that template in Mobile version because is a different environment, right?
- Exists a third way to skip or auto continue the Screen Derivation but in Mobile Version?
- Exists an equivalent to "PMFDerivateCase" in Mobile version?
Thanks for reading...
Carlos.