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

105
Visualizações
Pass a Javascript value to Apex Application item

How to pass the value of retVal variable from this JS function to an application item, so I could store the value in the DB? This function open a prompt to enter the value.

function getEmailValue() {
           var retVal = prompt("Enter your Email Address : ", "your Email here");
           document.write("An Email will be send to : " + retVal );
        }

Note:

  1. This JS function runs from a JS file exists in Static Application Files it calls Ajax callback from APEX side.

  2. P12_PAUSE_EMAIL is an application item.

  3. I can't use page items or Dynamic actions as there is no actual page.

I tried apex.item , $v and $ , but it gives undefined object.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I wouldn't rely on using a prompt for this.

If you want a similar UI, you could simply use an inline dialog or a modal dialog page (have a look at the Universal Theme Sample Application for examples.

In either of these, you could have an item which you could then use directly (granted it's listed in the items to submit to your ajax callback see the pageItems attribute here ).

about 4 years ago · Juan Pablo Isaza Relatório
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