Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
347 views

Count - amount of subscribers in CI

Is there such possibility or may be somebody already implemented this ?

0 Likes
6 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Count - amount of subscribers in CI

Hello,

It can be not tough script which will be running on the update of the Subscription and counting the number of Subscribers for the Subscription.

Have not seen such OOB functionality though.

 

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Count - amount of subscribers in CI

Yes, i suppose that must be trigger for Subscription update, but how to set value in device while you lock current record of this.

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Count - amount of subscribers in CI

Hello,

Are not you adding subscriptions from Subscriptuon record (table)?

Anyway if you wont to get over locking the current record , you should use ioaction functionality. Thats OOB thingy which can reschedule the update of the record if it is locked at the moment. You should add that coding in the script which counst the number and then tries to save it in your record.

There are dozens of topics on the forum about it or you can read help or you can check in the system for the corresponding library (as I recall it is interoperabilityHelpers)

Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Count - amount of subscribers in CI

There is a form (configurationItem.g) for device table. And there is TAB for this form - Subscribers with button "Add subscriber".

Ofcource when push this button - opened form for Subscribtion table. And after add active subscriber - need incerease counter (delete existing or change status to Canceled - decrease counter) but this counter stored in device table to see amount of active subscribers.

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Count - amount of subscribers in CI

Ioaction should help you in updating the record even if it is locked at the exact moment.

Try it out.

Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Count - amount of subscribers in CI

If there is such code:

$L.void=rtecall("rinit", $L.rc, $L.attachment, "SYSATTACHMENTS");$L.void=rtecall("count", $L.rc, $L.attachment, "topic=\""+logical.name in $file+"\" and segment = 0", $countAttachment)

To save in device amount of attachments.

May be possible to use this code to calculate amount of subscribers and amount of active subscribers for CI ?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.