Consultor Eletrônico



Kbase P23251: WebSpeed: How to specify program in a different PROPATH loca
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/04/2003
Status: Unverified

GOAL:

WebSpeed: How to specify program in a different PROPATH location when using 'addColumnLink' function

FACT(s) (Environment):

WebSpeed 3.1x

FIX:

When using the 'HTML Report' wizard it is possible to choose a column
that will be used as the hyperlink to another web object.
The example of this would be creating the HTML report against the
customer table in the sports or sports2000 database where 'SalesRep'
column can be selected as a hyperlink to the web object that would
point to the maintenance page for the sales representative person.
If the generated object is named 'customerReport.html' and the
hyperlink points to the 'salesRepDetail.html' which is to be found
in a different directory in the PROPATH, then it is required to
change the link specified in the generated SpeedScript function
'addColumnLink'.
The example would be as follows:
- PROPATH contains directory "C:\progwrk\91d"
- customerReport.html (and compiled .r) is located in "C:\progwrk\91d\test"
and URL used is:
http://hostname/Scripts/cgiip.exe/WService=wsbroker1/test/customerReport.html
- salesRepDetail.html is located in the "C:\progwrk\91d\test2"
- If the unmodified customerReport.html is used and the user clicks on
the link for the 'salesRep' column the error is displayed:
Web Object 'test/test2/salesRepDetail.html' is not found
- Modify the 'addColumnLink' function to be:

addColumnLink('Order.SalesRep', /* Column Name */
'../salesRepDetail.html', /* WebObject */
'_self', /* TargetFrame */
'LinkStatusLine', /* Function name for Status line */
'Order.SalesRep'). /* JoinColumns (ROWID or list of fields) */