Skip navigation
716 Views 4 Replies Latest reply: Mar 2, 2012 4:39 AM by Stu McNeill RSS
JulianWigman Expert 585 posts since
Apr 24, 2009

Has received 7 of 9 achievements.
Currently Being Moderated

Feb 27, 2012 4:37 AM

Calculation to Increment Count attribute

I want to a have a "CycleCount" int32 attribute on change process.  I want via an automatic action to increment this value via a calculation.

 

If I select calculation on the attribute on the automatic action action instance then I can't select that object from the tree.

 

I must be missing something obvious but how do i do a  Value = Change.CycleCount + 1  in a calculation?

 

Help........!

 

Julian

  • paul.enkelaar Expert 209 posts since
    Sep 5, 2010

    Has received 6 of 9 achievements.
    Currently Being Moderated
    1. Feb 27, 2012 3:22 PM (in response to JulianWigman)
    Re: Calculation to Increment Count attribute

    Hi Julian

     

    If you don't receive a neat solution to that, you could always just create a second attribute to temporarily store the incremented value, and then copy that value back into the original attribute, by either a copy rule (if that works) or a second automatic action which follow the first.

     

    Obviously not as nice as just having the one though...

     

    Cheers

     

    Paul

  • Stu McNeill SupportEmployee 1,072 posts since
    Nov 11, 2008

    Has received 7 of 9 achievements.
    Currently Being Moderated
    2. Mar 2, 2012 3:00 AM (in response to JulianWigman)
    Re: Calculation to Increment Count attribute

    Hi Julian,

     

    If you're only setting the value by automatic actions you should be OK to reference itself.  The calculation would simply be "return Change._Attribute + 1".

     

    Alternatively you could use the serial number of a collection to do the counting.

  • Stu McNeill SupportEmployee 1,072 posts since
    Nov 11, 2008

    Has received 7 of 9 achievements.
    Currently Being Moderated
    4. Mar 2, 2012 4:39 AM (in response to JulianWigman)
    Re: Calculation to Increment Count attribute

    Yes as long as its not a calculation attribute.  It would be fine to reference on a calculation in an automatic action.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 20 points
  • Helpful Answers - 10 points
LANDESK Community powered by Jive SBS® 4.5.7.1  |  Legal Notices  |  Privacy Policy  |  Icon 

TweeterOn Twitter  |  Icon FacebookOn Facebook © 2007 LANDESK Software