Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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.

View Entire Topic

Avatar

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

128 likes

Total Posts

140 posts

Correct Reply

43 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

128 likes

Total Posts

140 posts

Correct Reply

43 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