cancel
Showing results for 
Search instead for 
Did you mean: 

Move instances to a folder on business objects

Former Member
0 Kudos

I need to be able to move older instances of a report to a different folder on the Business Objects Enterprise repository. This would be scheduled to run automatically on a periodic basis. The instance would need to maintain all information such as when it was run.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

aasavaribhave
Advisor
Advisor
0 Kudos

Report Instance can't just be moved to a different folder, their very existance depends on the report template. When a report is scheduled the SI_INSTANCE ( read only property) of the instance is 1 and it is linked with the report template. Hence you cannot just move the report instances to a different fokder while keeping the report In its original folder.

As a workaround you can schedule your reports to a user's inbox. And then move the instances from Inbox to desired folder, just like you move objects, reports between folders.

Former Member
0 Kudos

I will use the solution to send the instance to an Inbox and then move it to a different folder. Can you provide some sample code to move the object from inbox to a folder?

Thank you

aasavaribhave
Advisor
0 Kudos

Its really simple. Query for the report instance that is in inbox and call:

oInfoObject.setParentID(<SI_ID of the destination folder>);

oInfoStore.commit(oInfoObjects);

Former Member
0 Kudos

The setParentId() is not found. I see a sendToDestination in the intellisense, but I could use some help with using it.

aasavaribhave
Advisor
ted_ueda
Active Contributor
0 Kudos

IntelliSense in a Java Development forum suggests a disconnect.

Java protocol is set/get prefix for object properties.

With .NET, it'll be just plain InfoObject.ParentID = <value here>

But I'm assuming you're not using .NET, since this post is in the Java Development fourm.

Sincerely,

Ted Ueda

Answers (0)