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
List SearchBrokers
Abu_Dhabi_Tech._Consultant_(x-itqan1abu_-_(deleted
Hello AllI?m trying to Loop for all SearchBrokers , but I couldn?t get the list results ?. If u please any sample code will be highly appreciated
Find more posts tagged with
Comments
Mike_Jory_(MJory_(Delete)_840963)
Here's some pseudo-code to help get you started:// always check that status == LL_OKLLLONG type, len;LLVALUE brokers;status = LL_ValueAlloc( &brokers );status = LL_GetSearchBrokers( session, brokers );status = LL_ValueGetType( brokers, &type );if ( LL_LIST == type ){ status = LL_ValueGetLength( brokers, &len ); for ( i = 0; i < len; i++ ) { LLVALUE val; status = LL_ValueAlloc( &val ); status = LL_ValueGetIndexValue( brokers, i, val ); status = LL_ValueGetType( val, &type ); if ( LL_ASSOC != type ) return error; // Now you have the assoc corresponding to the search broker, // get all the values you want from it status = LL_ValueFree( val ); }}status = LL_ValueFree( brokers );