Quantcast
Channel: SCN : Document List - Java SDK Application Development
Viewing all articles
Browse latest Browse all 39

Creating shortcut of inbox content using SAP Business Objects plateform SDK

$
0
0

public void createShortInboxContent(IEnterpriseSession enterpriseSession,

            int folderId) throws SDKException {

        IInfoStore infoStore = (IInfoStore) enterpriseSession

                .getService("InfoStore");

        IPluginMgr pluginMgr = infoStore.getPluginMgr();

        IInbox iInbox = infoStore.getMyInbox();

        IInfoObjects infoObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_PARENTID = "

                + iInbox.getID());

        for (int i = 0; i < infoObjects.size(); i++) {

 

            IInfoObject infoObject = (IInfoObject) infoObjects.get(i);

            IPluginInfo pluginInfo = pluginMgr

                    .getPluginInfo("CrystalEnterprise.Shortcut");

            IInfoObjects infoObject1 = infoStore.newInfoObjectCollection();

            infoObject1.add(pluginInfo);

            IShortcut shortcut = (IShortcut) infoObject1.get(0);

            shortcut.setTargetID(infoObject.getID());

            shortcut.setTitle(infoObject.getTitle() + "_" + infoObject.getID());

            shortcut.properties().setProperty(CePropertyID.SI_PARENTID,

                    folderId);

            infoStore.commit(infoObject1);

 

 

   }

    }


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>