Home

Results 1 to 2 of 2

Thread: getting event category names with getItemRequest

Hybrid View

  1. #1

    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

  2. #2
    Preston Stephenson NNTP User

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •