Editing Charge Rule Parameters
Source file: editing-charge-rule-parameters.htm
When creating a charge rule, custom charge rule parameters can be added and flagged for tablet editing in order to be able to update charge plans immediately on the field. For a custom charge rule parameter to be exposed on the tablet, it must either be a boolean or select type.
When scripting, using the Charge Rule API, the custom charge rule parameter can be accessed from a hole.params object (see Charge Rule API),
for example:
function rule(params, hole) {
hole.fill(hole.upper(hole.length*0.5), params.stemming);
var explosiveInterval = hole.unallocated();
if (!hole.params.water_condition){
hole.fill(explosiveInterval, params.explosive);
}
else {
hole.fill(explosiveInterval, params.stemming);
}
}
To summarise the above script, if a hole contains water, it will be filled with an inert deck. Otherwise, an explosive deck will be added to it.
Once the charge rule is published and applied to a set of holes, a charge sheet, which will be accessible on the tablet, is created. After that, the charge rule parameter can be live-edited.