Focal Point
Procedure reading URL, routing to Report and pass Values

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

August 08, 2016, 10:17 AM
CaptainSparrow
Procedure reading URL, routing to Report and pass Values
hi there,

i have an issue and don't know exactly what is the best way to do it. Maybe someone can give me
an advice whats the best pratice in such case.

First of all:
- There are 8 Reports
- this 8 Reports can be selected by 2 different GUI's (Made in HTML Composer in APPStudio)

now the "tricky" part:
- User "x" requests the Report by URL from an external Application
- The URL have the User and a ID
- Combination of URL and ID will be checked against a View
- The result of the Check leads the user to the GUI nr. 1 or GUI nr. 2 and will pass the Parameters in URL to the GUI
- the Gui gives the User selection for the Reports available for him

My Questsion, i don't know exactly what is the best solution to "script" this.

- do i Need a complete new procedure?
- do i Need to do it in the HTML Composer 2 times (for both GUI's)
- or are there other Options that i didn't think of?

thx for a Feedback and some advice

Best Regards


WebFocus 8.1
SP 0.5
August 08, 2016, 01:53 PM
GavinL
Well Captain, are you a pirate? You know what, nevermind, don't answer that. This is a public forum, it will incriminate you forever. Smiler

Welcome to WF.

Your reports shouldn't need parameters passed to them with User info. The username is a public variable and all other user info can be queried via WebFOCUS repository. All of which the reports can pick up themselves. Look up UOA_USERS.

You'll need to create a Synonym using a "JDBC Generic" adapter.
URL: jdbc:derby://127.0.0.1:1527/WebFOCUS81
admin user/password

.fex code:
TABLE FILE uoa_users
BY UOA_USERS.UOA_USERS.ID AS 'UserId'
BY UOA_USERS.UOA_USERS.NAME AS 'Username'
BY UOA_USERS.UOA_USERS.DESCRIPTION AS 'Fullname'
WHERE UOA_USERS.UOA_USERS.NAME EQ '&IBIMR_user'
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
END
-RUN




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
August 09, 2016, 07:02 AM
CaptainSparrow
hi there Gavin,

first of All, no Pirate, i just like JackSparrow Razzer

thx for the advice, now i have found the UOA_Users and generatet a master Data File whith everything in it.

there is just one thing more i should know, how can i get the connected User to webfocus and pass it to the Report? i think i Need to create a variable in the Report and catch the user.

thx for Support, i am new in WebFocus and worked a lot with Cognos
Kind Regards


WebFocus 8.1
SP 0.5
August 09, 2016, 08:37 AM
GavinL
Variable should already exist:

&IBIMR_user

If it doesn't then you need to set it up in "Custom Settings" under Administration->Configuration->Custom Settings.

These are the settings we use, it allows us to access these variables.

<VER 1>
# Copyright 1996-2011 Information Builders, Inc. All rights reserved.
# $Revision: 1.7 $ 
# place any variables here from cgivars.wfs that you wish to override.

# --- Documentation: http://techsupport.information...cAdmin/wf8104sec.pdf
# --- WebFOCUS Security and Administration > Manipulating WebFOCUS Variables > Managed Reporting Internal Variables

# Managed Reporting Internal Variables

# The folder where the processed report is stored
<SET> IBIMR_folder (pass)

# The complete path for a procedure, including file name and extension
<SET> IBIMR_fullpath (pass)

# The domain HREF where the report being processed is stored
<SET> IBIMR_domain (pass)

# The description given to the report by the developer
<SET> MR_FULL_FEXNAME (pass)

# The file name (also known as the IBFS name) assigned to the report when it was created
<SET> MR_ITEM_HANDLE (pass)

<SET> IBIMR_memberof(pass)

<SET> IBIMR_user(pass)

<SET> REMOTE_ADDR(pass)




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
August 09, 2016, 10:46 AM
CaptainSparrow
oh, i thougt this was a "placeholder" variable.

thx a lot for help and documentation. i can continue my work.

thx and have a nice day


WebFocus 8.1
SP 0.5
August 09, 2016, 02:58 PM
GavinL
FYI, if you do the following in a FEX all by itself, you will get a list of Every variable that exists..

Dumps all variables to the screen. Note variables that are longer than like 61 bytes are cut off via display only. Also Variable names larger than 13 bytes are cut off via Display only.
-? &




- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server