How to pass parameters to this script include from Business Rule

Yogesh Kale
Mega Contributor

How to pass parameters to this script include from Business Rule and also how to get response?

 

7 REPLIES 7

Namrata Khabale
Giga Guru

Hey Yogesh,

In addition to above posts,

If you are using ondemand SI,

A Script Include that defines a single function is known as an on demand, or classless, Script Include.

The function is callable from other server-side scripts. On demand Script Includes can never be used client-side even if the Client callable option is selected.

ScriptInclude Code for Addition of two numbers Which is getting from Business rule:

find_real_file.png

Business Rule:(passing parameters.)

 

find_real_file.png

 Also,

Check out Chuck's Video on the Topic of Script includes.

 

Script Includes

 

Mark Correct and Helpful, if it helps!

Best Regards,

Namrata.

Namrata Khabale
Giga Guru

Hey Yogesh,

Is your issue get resolved or do you require further information regarding this?

 

Best Regards,

Namrata.

Arjun31
Giga Expert

Hello Yogesh,

 

 

 

Write a script include function with parameter.

scriptinclude_name

eg. test:function(variable name)
{
body...
}

 

call this function in business rule and pass parameter

eg.

var v=new Scriptinclude_name();
v.test(current.variable);

 

please mark it correct or helpful if it works

 

regards,

Arjun Shinde