How to call a function defined in Javascript in the form

Avatar

Avatar
Validate 1
Level 2
priyankav251023
Level 2

Likes

9 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
priyankav251023
Level 2

Likes

9 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
priyankav251023
Level 2

02-09-2019

I want to call a function defined in javascript to enable a container something like...but instead of HasPackage, i need to call a function that i have written. based on the return value of the function i have written...

            <container applicableIf="HasPackage('nms:response')" type="visibleGroup"

                       visibleIf="!@isModel">

              <static label="Calculation of effective ROI" type="separator"/>

              <container ref="nms:operation:lib/hypothesis"/>

            </container>

          </container>

Please let me know if any pointers on how to achieve this.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

130 likes

Total Posts

144 posts

Correct reply

45 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

130 likes

Total Posts

144 posts

Correct reply

45 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile
kapilKochar
MVP

02-09-2019

Hi Priyankav,

I am not sure we can call defined functions directly from container . As an alternative, try to

A) Add <enter> after Container

B) Add <sopaCall name={yourfucntionname} serivce={namespace:schemaname}>

     <param></param>

</soapCall>

Let me know if this works for you. I will try to replicate scenario like yours by calling directly from container and update you if that works.

Thanks,

Kapil

Answers (0)