Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
bmherold Absent Member.
Absent Member.
1060 views

getting event category names with getItemRequest

Hi All,
As it stands I'm fetching calendar events which contain a list of ID's
for each category the event has. How am I supposed to obtain the name
of the category from this ID?

I've tried getItemRequest, but I get a 'Record not found' for any of the
ID's I try. The next thing I've tried is to compare the ID's returned
from getCategoryListRequest to the category ID's in the event itself,
but they differ slightly, so a string compare isn't doing the trick.

____________________________
Groupwise category ID (from getCategoryListRequest):
1.domtest_pri.domtest_po1.100.0.1.0.1@61

Event category ID (from the event item):
1.domtest_pri.domtest_po1.100.0.1.0.1@12

I can split off everything after the '@' and compare the ID strings
which seems to work, but I'm afriad this isn't always going to be the case.
____________________________

Is there a better way to do this?

Thanks,
Brian
Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: getting event category names with getItemRequest

Sorry, that is the way to test id's. The id's up to the '@' uniquely
identifies
an item. The information after the '@' is used internally to access the
item.
Preston

>>> On Tuesday, June 10, 2008 at 3:38 PM, Brian Herold<bmherold@wisc.edu>

wrote:
> Hi All,
> As it stands I'm fetching calendar events which contain a list of ID's
> for each category the event has. How am I supposed to obtain the name
> of the category from this ID?
>
> I've tried getItemRequest, but I get a 'Record not found' for any of the
> ID's I try. The next thing I've tried is to compare the ID's returned
> from getCategoryListRequest to the category ID's in the event itself,
> but they differ slightly, so a string compare isn't doing the trick.
>
> ____________________________
> Groupwise category ID (from getCategoryListRequest):
> 1.domtest_pri.domtest_po1.100.0.1.0.1@61
>
> Event category ID (from the event item):
> 1.domtest_pri.domtest_po1.100.0.1.0.1@12
>
> I can split off everything after the '@' and compare the ID strings
> which seems to work, but I'm afriad this isn't always going to be the

case.
> ____________________________
>
> Is there a better way to do this?
>
> Thanks,
> Brian

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.