travtone
Member
Hi Everyone...
My apologies if I sound ignorant to this, but I am. I just don't know much. However, I was trying my hand with my very limited knowledge of C and tried to use the API listed in the subject.
I was able to write a C function to call the JDB_SelectMediaObjectFile for selecting a record from F98MODAT. This works great on a Fat Client via Object Browser testing the function OR within an custom Interactive Application that I've simply added a button to that calls the function and running LOCAL WEB via OMW from my fat client. However, it does not work from the JDE WEB. It has been built and deployed to the PY environment I am testing this all in.
Using API Definition - DB_RTN (JDEDB_RESULT) JDEWINAPI JDB_SelectMediaObjectFile(HUSER hUser, JCHAR *szQueueName, JCHAR *szFileName, JCHAR *szTargetFileName);
Example. I am passing the following -
For szQueueName
" "
For szFileName -
\\Server\JDE\E812\MEDIAOBJ\HTMLUpload\FILE-172-16-12-159-5565749002928073-1661016021543.jpg
For szTargetFileName -
\\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg
The above when ran locally on my Fat Client via locally from LOCAL WEB or Object Browser with a path defined as C:\Test\Test2.jpg and it created the file is put into in folder on the local disk like I had expected. It also works with the above path on the network \\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg when running locally from LOCAL WEB or Object Browser. However, having the same path C:\Test\Test2.jpg or \\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg defined in the IV but calling from JDE WEB, it will not put the file in either location; I assumed it wouldn't on the local machine but I figured it should or would on the file server. How can this work if being called from the WEB? I had our CNC capture logs but it has nothing in there that looks helpful; like a permissions issue. I am so lost here. Any help would be greatly appreciated it. Thank you.
My apologies if I sound ignorant to this, but I am. I just don't know much. However, I was trying my hand with my very limited knowledge of C and tried to use the API listed in the subject.
I was able to write a C function to call the JDB_SelectMediaObjectFile for selecting a record from F98MODAT. This works great on a Fat Client via Object Browser testing the function OR within an custom Interactive Application that I've simply added a button to that calls the function and running LOCAL WEB via OMW from my fat client. However, it does not work from the JDE WEB. It has been built and deployed to the PY environment I am testing this all in.
Using API Definition - DB_RTN (JDEDB_RESULT) JDEWINAPI JDB_SelectMediaObjectFile(HUSER hUser, JCHAR *szQueueName, JCHAR *szFileName, JCHAR *szTargetFileName);
Example. I am passing the following -
For szQueueName
" "
For szFileName -
\\Server\JDE\E812\MEDIAOBJ\HTMLUpload\FILE-172-16-12-159-5565749002928073-1661016021543.jpg
For szTargetFileName -
\\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg
The above when ran locally on my Fat Client via locally from LOCAL WEB or Object Browser with a path defined as C:\Test\Test2.jpg and it created the file is put into in folder on the local disk like I had expected. It also works with the above path on the network \\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg when running locally from LOCAL WEB or Object Browser. However, having the same path C:\Test\Test2.jpg or \\Server\jde\E812\MEDIAOBJ\Test\Test2.jpg defined in the IV but calling from JDE WEB, it will not put the file in either location; I assumed it wouldn't on the local machine but I figured it should or would on the file server. How can this work if being called from the WEB? I had our CNC capture logs but it has nothing in there that looks helpful; like a permissions issue. I am so lost here. Any help would be greatly appreciated it. Thank you.