Grid Onrowclick:
Code: Select all
// Send row clicked to context menu.
applyProperty("propOpts","user defined data", row);
// Check mode using screen heading and set menu choices.
if (get("D_1_2") === "Browse") {
applyProperty("propOpts", "choices", "Select Coverage Part/Location");
applyProperty("propOpts", "choice values", "1");
} else {
applyProperty("propOpts", "choices", "Select Coverage Part/Location, Copy Location, Insert Bid, Change Loc/Bld Nbr");
applyProperty("propOpts", "choice values", "1, 3, 6, 7");
}
// Refresh context menu poperties.
applyProperty("propOpts", "field type", "menu");
Code: Select all
var rowNumber = this.pui.properties["user defined data"] + 8;
changeElementValue("I_" + rowNumber + "_2", value);
pressKey("Enter");