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

449
Visualizações
how to show message in apex when data already exist?

I want to show message using dynamic action say this data already exist after check the database i tried to do that using excute server side code then alert i tried to use trigger and automation

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

0

You didn't describe what you're doing so I'm assuming this is a form region and you want the message to appear on change of the page item. Here is an example with a form on the EMP/DEPT sample data. Functionality is that on change of the item P59_ENAME, a dynamic action fires and shows a javascript alert if the ename already exists. In my case this is page 59. I tested this on apex 21.2

  1. Create a form on table EMP
  2. Create an additional page item of type "Hidden" named P59_ENAME_EXISTS
  3. Create a dynamic action on the item P59_ENAME

enter image description here

  1. Add a first true action to execute the pl/sql code. This will set a value for the page item P59_ENAME_EXISTS (Y if ename exists, N if it does not exist). Note the "items to submit" and "items to return" values - those are very important.

enter image description here

  1. Add a second true action to show the javascript alert if ename already exists. Note the client side condition.

enter image description here

enter image description here

  1. Add a 3rd action to reset the value of page item P59_ENAME_EXISTS

enter image description here

Run the form, change the ENAME to an existing value and click in another field on the page. You'll get the popup.

Triggers or Automations cannot be used to achieve this functionality.

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