Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
LLIllegalOperationException when calling ApplyQuery
GlaxoWellUser6_(Delete)_1659154
Hi,I am using VB.NET to call ApplyQuery. In the sample code below I get an LLIllegalOperationException thrown on my call to ApplyQuery.Any ideas why? Is there sample code anywhere for LAPI in Visual Studio .NET?Dim llSess As New SE.LLSession("us7n85", 2099, "LL9ADM", "us1_auth\blh17479", "NewLife03") Dim llSelectFields As New SE.LLValue() 'the select listDim llOutputResults As New SE.LLValue() 'output parameterDim llSearchBrokers As New SE.LLValue()Dim llSearch As SE.LAPI_SEARCHDim retval As Int16Dim i As Int16 = 0llUsers = New SE.LAPI_USERS(llSess)llSearch = New SE.LAPI_SEARCH(llSess)retval = llUsers.ListUsers(llUserTable)Dim bln As Boolean = llUserTable.isTable()retval = llSearch.GetSearchBrokers(llSearchBrokers)For i = 0 To (llSearchBrokers.size - 1)MessageBox.Show(llSearchBrokers.ToString(i))NextllSelectFields.setList()llSelectFields.add("OTObject")llSelectFields.add("OTName")llSelectFields.add("OTSummary")llOutputResults.setList()llSearch.ApplyQuery(6139, llSelectFields, "(""OTData"" : ""windows"")", SE.LAPI_SEARCH.SORTBYDEFAULT, "", 0, 20, "LivelinkQueryLanguage", llOutputResults)Thanks,Brent
Find more posts tagged with
Comments
There are no comments yet