Hi All,
Does anyone know if it is possible to execute a search on a view instead of CS's table?
If yes, could you share a snippet?
Thanks in advance,
B/R
Igor
Are you talking about Search as in a saved search or using the search engine or a LR to query tables/views
I don't understand why would querying a view vs a table be a problem.In 971 and below systems if you write a LiveReport select name,subtype from dtree where subtype=0 and execute the LR through a WSAPI LIveReport Object you would get results.If you take that same code and put it in a 10 and upper systems it would work, but OT has changed DTREE from a table to a view this time.
So is your question regarding a non OT view? or something else.If you put debug=2,wanllogs=true,wantlapilogs=true and execute your LR through a WSAPI call you could actually see what LL got at its server level and what it passed off to the DB layer.
I would also think that if the VIEW was permissioned through GRANTS or similar stuff in SQLserver livelink code would not know the difference.
Here are some links to some code that I tested that workd before
https://knowledge.opentext.com/knowledge/cs.dll/39660740/How_to_Run_a_LR_in_Webservices_on_CS10_UPD_11__STRING_PARAM.docx?func=doc.Fetch&nodeid=39660740
https://knowledge.opentext.com/knowledge/cs.dll/39663024/How_to_Run_a_LR_in_Webservices_on_CS10_UPD_11_INTEGER__PARAM_.docx?func=doc.Fetch&nodeid=39663024
A bug that OT corrected kind of what I reported...https://knowledge.opentext.com/knowledge/cs.dll/39532007/Debugging_How_to_Run_a_LR_in_Webservices_on_9.docx?func=doc.Fetch&nodeid=39532007
You could probably try using a LiveReport or a WebReport to query the table. Other than that, if you want to use a web service, you will need to extend the web services to add that functionality. The SDK documentation explains how this can be done. They can be found here:
https://knowledge.opentext.com/knowledge/llisapi.dll/Open/devzone
Hope this helps.
Jerome