Assign outsystem variable to js variable

Assign outsystem variable to js variable

  

Hello,


Is it possible to assign outsystem varible to a js variable. If yes, please do help me with the procedure.

Hi Samuel Stephen,

if you want to pass outsystems veriable value in javascript function then use below code

test('" + outsystemveriableName + "')

Thanks

Jitendra

Jitendra Raghuvanshi wrote:

Hi Samuel Stephen,

if you want to pass outsystems veriable value in javascript function then use below code

test('" + outsystemveriableName + "')

Thanks

Jitendra

Hello Jitendra,

Can I get a quick example as this did not work for me.

Thanks,

Samuel


Solution

use an expression (unescaped) inside you page like this:

"<script>

var jsVar = '" + outsystemsVar + "';

</script>"


Solution

Samuel Stephen wrote:

Jitendra Raghuvanshi wrote:

Hi Samuel Stephen,

if you want to pass outsystems veriable value in javascript function then use below code

test('" + outsystemveriableName + "')

Thanks

Jitendra

Hello Jitendra,

Can I get a quick example as this did not work for me.

Thanks,

Samuel


Hi Samuel Stephen,

Plz use below code.


Thanks

Jitendra

Jitendra Raghuvanshi wrote:

Samuel Stephen wrote:

Jitendra Raghuvanshi wrote:

Hi Samuel Stephen,

if you want to pass outsystems veriable value in javascript function then use below code

test('" + outsystemveriableName + "')

Thanks

Jitendra

Hello Jitendra,

Can I get a quick example as this did not work for me.

Thanks,

Samuel


Hi Samuel Stephen,

Plz use below code.


Thanks

Jitendra


What code?