Updating SQR include files using API calls
Has anyone had any success updating an SQR Job to setup/amend it's include files using API provided by Oracle.
I have a Java class that performs, basically I copied items out of SDK sample addDocument.
SQRJob sqrj = repository.getSQRJob('/mysqrfiles/mysqr1.sqr');
sqrj.setDescription('whatever')
sqrj.setIncludeFiles(new DataObject(0)); // remove current include files
sqrj.update();
Now I would like to add new include files but I cannot seem to find a good example on how to achieve this.
I tried
DataObject obj1 = (DataObject)repository.getObjectbyPath('/myincludes/includefile1.inc');
sqrj.setIncludeFiles(obj1);
This fails.
Any help approeiated as Oracle support will not assist as they state API is not covered by Customer Support Service.