Focal Point
[SOLVED] How to launch a portal with parameters or &variables

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

November 08, 2017, 06:22 AM
osantamaria
[SOLVED] How to launch a portal with parameters or &variables
Hello
I would like to know if it is possible to open a portal with parameters or &variables.
This is, as the same way when a FEX/HTML file is run it with &variables.
The idea is not use SSO but open a WFocus session from other external applications, via a URL sentence with a generic user with credentials in WFServer ([server]/ibi_apps/rs/ibfs?IBIRS_action=signOn&IBIRS_userName=xxxxx&IBIRS_password=xxxx) and after that opening a portal with one specific role defined by that external application.
I have directly tested and URL like: [server]/ibi_apps/bip/portal/[portal_name]&Role=value, but it doesn't work and I don't know if it is necessary configure some other parameters or simply, it is not possible to do this way.
Regards
Oscar

This message has been edited. Last edited by: FP Mod Chuck,


WF 8.105
November 09, 2017, 01:03 PM
dhagen
By default, you cannot pass a parameter to a portal. There is a configuration file that has to manually edited that will allow you to name the variable(s), and define what URL path that the variable(s) can be used with.

Open a case with tech support and they can walk you through it.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
November 10, 2017, 08:27 AM
osantamaria
Thank you dhagen !


WF 8.105
November 10, 2017, 09:30 AM
dhagen
In case it takes a while, the file is:

WebFOCUS82/config/uri-parameter-validation-override.cfg

For your parameter, add the line:
orclass,Role,/bip,BOTH,com.ibi.valuevalidation.validators.TrueValidator


This allows the parameter "Role" to be passed for BOTH (GET and POST) for the /bip path.

Your URL would look like:
[server]/ibi_apps/bip/portal/[portal_name]?Role=value  


Good luck.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
November 10, 2017, 10:06 AM
David Briars
Thanks dhagen!

At the moment when I open up '...\WebFOCUS81\configuri-parameter-validation-override.cfg' in a text editor I see:
# Copyright 1996-2014 Information Builders, Inc. All rights reserved. */
# $Revision: 1.2 $: 
#
# This file is used to override WebFOCUS product validation rules.
# Do not edit this file, without direction from Information Builders 
# Customer Support Services.   

So yes, I'll be sure to open a case, before we attempt to add a parameter.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
November 10, 2017, 11:05 AM
osantamaria
Thank you very much to both


WF 8.105