Editing Charge Rule Parameters
When creating a charge rule, custom charge rule parameters can be added and flagged for tablet editing with the purpose of being 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 summarize 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 will be created and can be accessed on the tablet. The charge rule parameter can then be lived edited.