Using Find with [EntryID]

  • Thread starter Thread starter Rick H
  • Start date Start date
R

Rick H

Can you use the Find command with EntryID?
Criteria = "([EntryID] = """ + ls_entry_id + """)"
This is what I'm using but getting error "The property EntryID in the
condition is not invalid"

I'm trying to get all dates in a new recurring entry. I'm using this
to loop through the new item and get all the recurring date for the
new recurring item

Thanks, Rick
 
Can you use the Find command with EntryID?
Criteria = "([EntryID] = """ + ls_entry_id + """)"
This is what I'm using but getting error "The property EntryID in the
condition is not invalid"

I'm trying to get all dates in a new recurring entry. I'm using this
to loop through the new item and get all the recurring date for the
new recurring item

Thanks, Rick

Never mind on the EntryId I found where it is not valid for the Find
command. Now a new question.
When the user enters a new recurring item what is the easiet way to
get all dates with in this recurring item.
I get the recurrence pattern, but I don't see any easy way of getting
the recurring dates with this info.

Thanks, Rick
 
There is no easy way.

You have to get and analyze the RecurrencePattern. Start at the initial date
and apply the recurrence formula to that to get the next instance. If that
fails or returns a null object you then have to check the Exceptions
collection of the RecurrencePattern to see if the instance for that date has
become an exception by being changed or deleted.

After you get the date for the following instance, you retrieve it using the
GetOccurrence() method.




Rick H said:
Can you use the Find command with EntryID?
Criteria = "([EntryID] = """ + ls_entry_id + """)"
This is what I'm using but getting error "The property EntryID in the
condition is not invalid"

I'm trying to get all dates in a new recurring entry. I'm using this
to loop through the new item and get all the recurring date for the
new recurring item

Thanks, Rick

Never mind on the EntryId I found where it is not valid for the Find
command. Now a new question.
When the user enters a new recurring item what is the easiet way to
get all dates with in this recurring item.
I get the recurrence pattern, but I don't see any easy way of getting
the recurring dates with this info.

Thanks, Rick
 
Back
Top