Consultor Eletrônico



Kbase P56874: How to have the file being passed to the webstream in a URL in order to have it recognized by the th
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

FACT(s) (Environment):

WebSpeed 3.x

SYMPTOM(s):

Third part plugin or application does not work and can not load the application file

Unrecognized file format when passing inline file to the webstream

Name and extension of the application file is not specified in the URL

CHANGE:

A new application file (different format) is being imported and outputted to the webstream

CAUSE:

Some application does not expect a inline file coming to the browse with a temporary name.

FIX:

Lets say you have the following URL:
http://youhostname/scripts/WService=wsbroker1/myimportfile.p

myimportfile.p is the 4gl program where you import an application file, for example, sample.dxf

In our example .dxf is an AutoCAD's drawing interchange format.

In order to run it in a Web browser, AutoCad Viewer application expects to have the name of the file in your URL, for example "http://yourhostname/scripts/WService=wsbroker1/myimportfile.p/sample.dxf", otherwise you will get an error saying "Unrecognized File Format:http://yourhostname/scripts/WService=wsbroker1/myimportfile.p"

Considering you want to have the URL http://youhostname/scripts/WService=wsbroker1/myimportfile.p/sample.dxf", you can address this kind of problems customizing the web-disp.p procedure, for example, adding the following code before running the AppProgram itself:

if index(AppProgram,".p") <> 0 then
AppProgram = substring(AppProgram,1,index(AppProgram,".p",1) + 1).
RUN run-web-object IN web-utilities-hdl (AppProgram).

You should do the same for other Progress extension, for example, ".r" and ".w".