Run procedure outside Nubuilder

Run procedure outside Nubuilder

Postby ruiascensao » Mon Jun 17, 2013 6:26 pm

Hi,

Is it possible to run a procedure from a link outside nubuilder?

Thanks!

BR
Rui
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

Re: Run procedure outside Nubuilder

Postby zazzium » Tue Jun 18, 2013 5:03 pm

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)
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');
}


you need these variables:
session
formsessionID
url
customDirectory

get the formsessionID with php $_GET from the url

zazzium
zazzium
 
Posts: 84
Joined: Mon Jul 04, 2011 8:22 am

Re: Run procedure outside Nubuilder

Postby admin » Fri Oct 25, 2013 9:48 am

Sounds dangerous

Steven
admin
Site Admin
 
Posts: 3078
Joined: Mon Jun 15, 2009 9:53 am

Re: Run procedure outside Nubuilder

Postby waleed444 » Fri Feb 20, 2015 9:19 pm

I can set a default value for a new record easilly, but can't figure out how to do it on an existing record.
Get fast success in learnalanguage - french exam questions by using our latest exam learn norwegian fast We also offer up-to-date Durham University
waleed444
 
Posts: 1
Joined: Fri Feb 20, 2015 9:11 pm


Return to Custom Code