Hi,
Is it possible to run a procedure from a link outside nubuilder?
Thanks!
BR
Rui
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Run procedure outside Nubuilder
-
- Posts: 84
- Joined: Mon Jul 04, 2011 12:52 am
Re: Run procedure outside Nubuilder
i'm not sure about completely outside nubuilder,
but if the link is in runIt procedure and u want to call a new runIt from it, u could do it by
copying the JavaScript runIt() function from form.php (around line 890)
you need these variables:
session
formsessionID
url
customDirectory
get the formsessionID with php $_GET from the url
zazzium
but if the link is in runIt procedure and u want to call a new runIt from it, u could do it by
copying the JavaScript runIt() function from form.php (around line 890)
Code: Select all
function runIt(pReportID){
var ExtraParameters = '';
for(Ano = 0 ; Ano < runIt.arguments.length ; Ano++){
ExtraParameters = ExtraParameters + '&runIt' + Ano + '=' + runIt.arguments[Ano];
}
var url = url+"runprocedure.php?x=1&dir="+customDirectory+"&ses="+session+"&form_ses="+formsessionID+"&r="+pReportID+ExtraParameters;
window.open (url,'_blank','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}
session
formsessionID
url
customDirectory
get the formsessionID with php $_GET from the url
zazzium
-
- Posts: 1
- Joined: Fri Feb 20, 2015 12:41 pm
Re: Run procedure outside Nubuilder
I can set a default value for a new record easilly, but can't figure out how to do it on an existing record.