Reg Sequence number

Comments

1 comment

  • Avatar
    Aravind Rajanna

    Hello Krish,

    To bind data inside the subform control, you can make use of AgilePoint eformhelper method to achieve your requirement. Please refer to the below sample code snippet and the documentation link to get and set the value to the control.

    1. https://documentation.agilepoint.com/00/appbuilder/cloudjsGetFieldValue.html
    2. https://documentation.agilepoint.com/00/appbuilder/cloudjsSetFieldValue.htm

    function BindDataToSubform()

    {

    var Itemno = getFieldValue('ItemId')

    setFieldValue('TestSubForm/TextBox2',Itemno)

    }

    function getFieldValue(fieldId)

    {

    var options = {};

    var responseData= "";

    options.fieldId = fieldId;

    eFormHelper.getFieldValue (options, function (result)

      {

      if (result.isSuccess)

        {

       responseData = result.data;

        }

    });

      return responseData;

    }

     

    function setFieldValue(fieldId,value)

    {

    var options = {};

    options.fieldId = fieldId;

    options.value = value;

    eFormHelper.setFieldValue(options, function (result)

      {

      if (result.isSuccess)

        {

        console.log(result.data);

        }

    });

    }

     

    Regards,

    Aravind

    0
    Comment actions Permalink

Please sign in to leave a comment.