3 Replies Latest reply on Jul 28, 2011 1:43 PM by yuichim

    Looping issue when entering layout

    yuichim

      Title

      Looping issue when entering layout

      Post

      I have a dashboard layout that have:

      - global filed displaying the total number of records in a date range.

      In order to calculate the total number of records in a daterange, I have created a script that:

      1. Go to SampleRecord table Layout
      2. Perform find in a daterange
      3. Set global field with get(FoundCount)
      4. Go back to dashboard layout

      Now, when I apply this script in a layout setup with script trigger, as soon as I enter the dashboard layout, the script start looping.

      What would be the best solution not to loop?