|How to avoid the empty templates loading all the items? [message #572318]
||Wed, 21 January 2009 08:04
Registered: July 2009
Hi , |
I successfully used the cosmos API and get the output , But for my
project the requirement is that I should not load all the items from the
db because the db may have the miilions of records. But on the query there
can be a empty template [ please see the example query below ] and that
empty template can be as a source or target into the relaitonship template.
But when I have a empty template as per the cosmos API it loads all
the items logically , But If I don't have the ItemTemplateHandler and
having the empty item template in the query I am getting the exception as
"Unsupported Constraint Type" exception.
I don't want to load the all the items from the db , but want to load
only the items that is having the relationship with the source or target.
In my example I am having the empty template as a source , So I can pass
the source as null to the DB and get the items having a RUNSON
relaitonship with the target template items and want to add these items
into the query response.
I added the empty item on my ItemTemplateHandler and again create the item
handler in my relationshiprecordtypehanlder to add the source items which
I got after I apply the relationship record type , But I am not getting
the source items in my query response and still getting the empty item
element on the query response.
Is there a way in the cosmos API for doing this or I need to write my
own code to do this ? If I need to write my own code which part of the
code needs to be changed or Can I extend any of the class and write my
code to do this?
Powered by FUDForum
. Page generated in 0.01768 seconds