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

453
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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