Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

151
Vistas
How to set a list to multiple combination fields by name

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!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda