onDimensionCustomValueNew
Dimension custom value creation handler
This example demonstrates how the onDimensionCustomValueNew callback persists a newly created dimension custom value from the widget into the host application's persistent
storage. Once the custom value has been successfully stored, the result is returned to the widget through the
onResponse
callback.
Dimension custom value creation handler
onDimensionCustomValueNew: (dimensionCustomValue: DIQ_DimensionCustomValue, onResponse: (result: DIQ_Result) => void) => {
// Store the new dimension custom value
database.createDimensionCustomValue(dimensionCustomValue);
// Return the result to the widget
onResponse(
{ success: true }
);
},