Focal Point
[CLOSED] MR url in var

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

August 14, 2014, 04:39 PM
gregv
[CLOSED] MR url in var
Does anyone know if there is a system var with the MR base url?
I know I can SET BASEURL but I'm looking for system var another var that I can use instaed of this.
Any anyone work on something similar?
TIA

This message has been edited. Last edited by: <Kathryn Henning>,



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
August 19, 2014, 08:49 AM
gregv
Add to site.wfs
<SET>URL_PROTOCOL<PASS>
<SET>SERVER_NAME<PASS>
<SET>SERVER_PORT<PASS>


And now these & vars will be available for different platforms as code gets migrated.

This message has been edited. Last edited by: gregv,



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
August 19, 2014, 09:01 AM
J
also FOCEXURL if it isn't already.
 
-*PDF Drilldown example
-SET &URL = &URL_PROTOCOL | '://' | &SERVER_NAME | &FOCEXURL | '&|IBIF_ex=test/app/test&|CLICKED_ON=&';
 



WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 19, 2014, 10:15 AM
gregv
Thanks for the example, J.

Here's one for MR images that are in a common domain which is different from the procedure domain.

APP PREPENDPATH IBISAMP

-IF &URL_PROTOCOL.EXISTS THEN GOTO SERVER_NAME;
-SET &URL_PROTOCOL='http';

-SERVER_NAME
-IF &SERVER_NAME.EXISTS THEN GOTO SERVER_PORT;
-SET &SERVER_NAME='localhost';

-SERVER_PORT
-IF &SERVER_PORT.EXISTS THEN GOTO SET_IMG_URL;
-SET &SERVER_PORT='8080';

-SET_IMG_URL
-SET &imgURL = &URL_PROTOCOL | '://' | &SERVER_NAME | ':' | &SERVER_PORT | '/ibi_apps/views.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=IBFS://WFC/Repository/Tests/OtherFiles&|BIP_item='; 

DEFINE FILE CAR
  videoma_40/A399   = '<image src="'| &imgURL.QUOTEDSTRING | 'videoma_40.png"   style="border:none;position:absolute;height:25px;top:8px;left:120px;" alt="Click to view PDF &|#10;Classification and Handling">' ;
END

TABLE FILE CAR
PRINT
     CAR.CARREC.MODEL
     CAR.BODY.DEALER_COST
     CAR.BODY.RETAIL_COST
     CAR.BODY.SALES
BY  LOWEST CAR.ORIGIN.COUNTRY
BY  LOWEST CAR.COMP.CAR
HEADING
"<videoma_40"
ON TABLE NOTOTAL
END




Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
August 19, 2014, 10:26 AM
J
I've heard elsewhere on the forums that you shouldn't use the views.bip? syntax since that may change in future releases. Instead you are suppossed to use something like
[url protocol]://[server:port]/ibi_apps/rs/ibfs/WFC/Repository/[domain]/[folder]/[html page]?IBIRS_action=run

or in your case:
[url protocol]://[server:port]/ibi_apps/rs/ibfs/WFC/Repository/[domain]/[folder]/[image file]



WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 20, 2014, 08:38 AM
gregv
Thanks for the heads-up on view.bip, J.

When I add my folders to this URL it doesn't work (WF8007):
[url protocol]://[serverRazzerort]/ibi_apps/rs/ibfs/WFC/Repository/[domain]/[folder]/[image file]

I get 'page cannot be displayed'.

When I change rs/ibfs to RS/IBFS I get '404 - Resource not found'
Which makes me think that the image is not there but it is. So my next thought is: What is RS, 'Reporting Server'? I haven't seen this before and it appears that the server may not know it either.
Do you have an example?
Thanks!



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8