on 05-21-2010 10:04 AM
Dear;
There is an example for how to change the java folder-BO (no DOS / Windows) or you could do with Java API?
example program with java-jsp:
file folder "my" copy sub-folder "my / archive"
then
rename files in folder-BO, and retrive ID new name?
Thanks!
Hi.
a sample how to copy reports in BO:
// report -> given IInfoObject to copy
IInfoObjects newCollections = infoStore.query("Select * From CI_INFOOBJECTS Where SI_ID=" + targetFolderID);
IInfoObject folder = (IInfoObject) newCollections.get(0);
IInfoObject newReport = newCollections.copy(report, IInfoObjects.CopyModes.COPY_SAME_OBJECT);
// Set the report's parent.
newReport.properties().setProperty(CePropertyID.SI_PARENTID, targetFolderID);
newReport.properties().setProperty(CePropertyID.SI_PARENT_FOLDER, targetFolderID);
infoStore.commit(newCollections);
Hope it helps
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.