COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: fulekia on 24 Oct 2014 01:10:08 PM

Title: Get shortcut object properties
Post by: fulekia on 24 Oct 2014 01:10:08 PM
I'm having trouble getting all the properties I want from shortcut objects via the Java SDK. For example,

shortcutObject.getTarget().getValue()[0].getSearchPath().getValue();

... returns the correct searchPath for the target of shortcutObject, however,

shortcutObject.getTarget().getValue()[0].getStoreID().getValue().get_value();

...returns an empty string.

I've tried every possible string of getters that NetBeans suggests, but nothing gives me a storeID. The storeID property is in the list of props to return. Is there another way you have to define properties you want returned from the target property of shortcuts?
Title: Re: Get shortcut object properties
Post by: fulekia on 24 Oct 2014 02:51:38 PM
Also, debugging in NetBeans shows that target.storeID.value._value is defined in the result object, but empty. Weird.