david7
12th March 2010, 13:01
Hi all,

I'm working on a project related to ODM. I want to get all files that are attached to certain items through ODM.

I got to the point where I need to get the file path where the system stores the file when the revision is released.

I found out that the function that I need is GetFileNames in the java class com.files.OdmGetFileNames.

In order to use it in my script, I need to create a java queue using the function java.new.queue()

My problem is that when I tried the function java.new.queue() in my script I get (-2) as the returned value. What does this error mean?

Can anyone help me?

Thanks in advance,
David

george7a
12th March 2010, 14:06
Here are some links that have the same problem with the "java.new.queue() function":
http://www.baanboard.com/baanboard/showthread.php?t=48553
http://www.baanboard.com/baanboard/showthread.php?p=142302

I hope it helps

- George

david7
18th March 2010, 13:22
Hi George,

I tried the solutions suggested in these links but I'm still getting error -2

Any other suggestion?

- David

george7a
18th March 2010, 17:00
Try to restart the server..

david7
19th March 2010, 07:54
Already did and it worked.

Thanks,
David

vahdani
19th March 2010, 14:14
Hi David,

can you point me do any documentation on ODM-Programming?

david7
22nd March 2010, 09:24
Hi Vahdani,

I'm not sure what you're looking for. But this is a documentation I found that may be useful for you.
Document code is U8436B US..

I hope I helped..
David

vahdani
22nd March 2010, 11:15
Thank you David!

The document you mention "ODM Set-up Data Procedure User's Guide" does not say anything about the Programming API. It Just mentions somewhere that there is a "jar" on the server without mentioning what is in it or how it is to be used.

Just a comment on ODM: They couldn't make it more complicated. Could they?