var oCheckOptions = {
Yes: [
["-"],
["Serviceable"],
["Unserviceable"]
],
No: [
["Not Applicable"]
]
};
function SetCheckOptions() {
{
var lst = oCheckOptions[event.value];
if((lst != null) && (lst.length > 0)) this.getField("B.Artic1").setItems(lst),
this.getField("B.Artic2").setItems(lst),
this.getField("A.Artic1").setItems(lst),
this.getField("A.Artic2").setItems(lst),
this.getField("A.Artic3").setItems(lst);
else {
this.getField("B.Artic1").clearItems(),
this.getField("B.Artic2").clearItems(),
this.getField("A.Artic1").clearItems(),
this.getField("A.Artic2").clearItems(),
this.getField("A.Artic3").clearItems();
}
}
}
I am a novice so thank you for your assistance.
My project is creating a dynamic PDF for mechanics. Based on the platform's configuration depends on the type of checks performed.
The problem I am running into is I am identifying each field. Is there a way to call all fields with "artic" in the name to simplify the code? Thanks!