Focal Point
[CLOSED]hyperlink from 7.7 to 8.1

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4487085486

November 15, 2016, 03:23 PM
RRKen
[CLOSED]hyperlink from 7.7 to 8.1
I have a need while converting versions to link a report from v7 to v8. It works in a DEFINE, but I really want to use a "URL" against a column. Does anyone have the format of the URL to accomplish this? I'm getting error:
(FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 17:
URL=http://server/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/WFC/R


 
-SET &BIP_folder='&'|BIP_folder;
-SET &BIP_item='&'|BIP_item;
-SET &HYPER='http://server/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS:/WFC/Repository/Public&BIP_item=program.fex';

DEFINE FILE CAR
hyperlink/A250='test';
END
-SET &ECHO=ALL;
TABLE FILE CAR
SUM 
SALES
hyperlink
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, URL='&HYPER', $
ENDSTYLE
END
 

This message has been edited. Last edited by: <Emily McAllister>,


8.2.03 AIX Client Windows Tomcat
DB2, Terradata, SQL, Oracle
November 15, 2016, 04:42 PM
Squatch
Just a guess here. You have ampersands that could be confusing things, so try putting pipe characters after them:

-SET &HYPER='http://server/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS:/WFC/Repository/Public&|BIP_item=program.fex';

This will force them to be recognized as ampersand characters instead of possibly more SET variables.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
November 16, 2016, 11:49 AM
RRKen
I was getting problems with the ampersands before accounting for them in the SETs; I tried adding the pipes in the string but get the same error. May end up easier to convert more to 8


8.2.03 AIX Client Windows Tomcat
DB2, Terradata, SQL, Oracle
November 17, 2016, 03:12 AM
Tony A
Because you are embedding a variable within the URL code, the parser is having an issue with, not only the ampersands, but the equal signs as well.

What you need to do is "escape" those characters that would cause a parser issue.

You can do this with the ampersand by placing a concatenation symbol immediately after the ampersand or use %26 to "escape" it.

The equal sign can be "escaped" using %3d, so you end up with the following code

-SET &HYPER = '/ibi_apps/run.bip?BIP_REQUEST_TYPE%3dBIP_RUN%26BIP_folder%3dIBFS:/EDA/EDASERVE/folder%26BIP_item%3dprogram.fex'

DEFINE FILE CAR
hyperlink/A250='<a href="/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS:/EDA/EDASERVE/folder&|BIP_item=program.fex" target="_blank">test</a>';
END
-SET &ECHO=ALL;
TABLE FILE CAR
SUM 
SALES
hyperlink
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, URL='&HYPER.EVAL', $
ENDSTYLE
END


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 17, 2016, 10:50 AM
j.gross
quote:
URL='&HYPER'

Did you try using quotedstring?
TYPE=DATA, COLUMN=SALES, URL=&HYPER.QUOTEDSTRING, $