1. License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.




  2. Construct the JSON object that correspond to the item row's form.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


    Code
    var args = new Object();
    args['result'] = '{"amount":"1","category":"Medical","claim":"","purpose":"a","date":"11/18/2015","formattedAmount":"$ 1.00"}';
  3. Based on the identifier in #1, call the FormGrid's add method to add a new row.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    Code
    // the field id is "entries"
    var field = FormUtil.getField("entries");
    var functionName = window[field.attr("id") + "_add"];
    if(typeof functionName === 'function') {
        var args = new Object();
        args['result'] = '{"amount":"1","category":"Medical","claim":"","purpose":"a","date":"11/18/2015","formattedAmount":"$ 1.00"}';
        functionName(args);
    }

Related Tutorial

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.





  • No labels