Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
259

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);

   }

    }

Labels in this area