AnsweredAssumed Answered

Check if one element exist with Spel

Question asked by aebmknrl on Feb 23, 2016
Latest reply on Feb 25, 2016 by jmayer

Hi comunnity, i have an object witch haves a list that is relationed with other object using BREL relationship. Everything is working nice, but i need to check if exist the element before add a new one to the list. How can i do this?

 

I created on my .mod file:

 

OBJECT zdemand_aplicativos_list {

  TRIGGERS {

  PRE_VALIDATE verify_demand_app_list() 23332

  FILTER(

  EVENT("INSERT UPDATE")

  );

  };

};

 

This fires when the user push the "Save" button.

But i down know exactly how to check if this register exists.

Outcomes