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

SOLVED

How to call a function defined in Javascript in the form

priyankav251023
Level 3
Level 3

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.

1 Accepted Solution
kapilKochar
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

1 Reply
kapilKochar
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post