Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda