Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1732

January 24th, 2010 02:00

How to get the number of objects in a relationshipset in another attribute in APM?

Hi,

I want to trigger an event based on the count of objects in a particular relationshipset.
i.e., if the number of objects in a relationshipset is more than say 10, I wish to trigger an event.

Please let me know if it is possible.


With Warm Regards,
Gopal

January 24th, 2010 14:00

Hi Gopal,

lets say you have class A with a relationshipset FromClassAToClassB to class B, something like :

ClassA
     relationshipset FromClassAToClassB, ClassB, FromClassBToClassA

then, you can have computed attribute CountFromClassAToClassB :

computed attribute int CountFromClassAToClassB  = | FromClassAToClassB |;

then you can use this attribute to raise any event, as any attribute.

HTH,

--Fred

== Monitor your Smarts environment using APG ReportPack for Smarts
health ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com

19 Posts

January 26th, 2010 06:00

Hi Fred,

Thanks a lot for your help.

It is working fine.

With Warm Regards,

Gopal

No Events found!

Top