Ways to find out the Triggers - Forum - Rollbase - Progress Community

Ways to find out the Triggers

 Forum

Ways to find out the Triggers

  • Hi all RB Gurus, 

    Is there a way to find out how many times a particular trigger has been used in one or multiple objects.

    e.g : If I have a couple of common fields which are  going to check for Name, Place, Animals, Things in different TABS, Views, Pages etc 
    I would like to call this trigger, where in trigger I have some validation code which would check for values in the fields.

    Please let me know if I'm moving the right direction.
    Also is there a way to to call the trigger on a just single field update in a view / page 

  • Trigger belongs to particular Object definition. If you wish to re-use code from that trigger elsewhere, place that code in Hosted File.

  • You can identify which triggers are running through a debug which you can find in the trigger section of your object definition.

    That will open a new popup window and just leave it there.

    Now try to create a new record or edit a record, after that go back to the popup window and click the "Refresh" button. You can see all running triggers.

    Regards,

    Orchid

  • Hi,

    Does the suggestion above works for you? or do you have any follow up questions regarding to this thread?
    Thank you.

    Regards,
    Orchid
  • Dear Orchid

    Thanks a  lot, but  I need to know quite few things related to that. But unfortunately I was't able to know HOW does that work.  As I've mentioned  I'm still  trying to figure out the best and productive way of learning and implementing the solutions.

  • Let's check your issue one by one:

    * Is there a way to find out how many times a particular trigger has been used in one or multiple objects.

    - Not sure if I understand it correctly, this one is the above images that I created. It is how many times this trigger run for only ONE object, if you want to check if the particular trigger was also RUN from another object this is already in manual way checking. If you also need it to be automated checking over multiple objects you can file an Idea for this since there is no functionality yet.

    e.g : If I have a couple of common fields which are  going to check for Name, Place, Animals, Things in different TABS, Views, Pages etc 
    * I would like to call this trigger, where in trigger I have some validation code which would check for values in the fields.

    - see 's suggestion

    Please let me know if I'm moving the right direction.
    * Also is there a way to to call the trigger on a just single field update in a view / page 

    - Yes, just specify the trigger timing "After Update".

    Regards,

    Orchid