childApps

If an app has child apps, these can be queried via app.childApps. ChildApps is an array with several entries depending on the app structure.

This function can be very helpful when working with a quick input in combination with a grid.

Examples

// Entries are made in the parent app and you want to update the ChildApp.
// In this case the childapp has the name customerOrderLineSmall

let childApi = app.childApps.find(childApi => childApi.appName == "customerOrderLineSmall");
if (childApi) {
    await childApi.setFieldValue("comboAddressId", app.getFieldValue("coAddressId"));
    await childApi.setFieldValue("colnOrderId", app.getFieldValue("id"));
}

Last updated