Focal Point
[CLOSED]Is it possible? Drill down to report in CONTENT from EDASERVE?

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

January 15, 2018, 04:44 PM
DWaybright
[CLOSED]Is it possible? Drill down to report in CONTENT from EDASERVE?
We have a report under EDASERVE that has a drill down and we want to move the drill down report to Content section of BI Portal, to leverage the BI Portal security (only BI Portal users should see the drill down). Is this possible?
My current call looks like this:
FOCEXEC=folder1/tracking_report_drill( \
Policy_State=Policy_State \
)

Thanks!

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


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 16, 2018, 02:19 AM
Chaudhary
There are several ways of taking care of this, here's one: using with JAVASCRIPT function,
 
-* File: IBFS:/localhost/EDA/EDASERVE/APPPATH/demo/Procedure1.fex Created by WebFOCUS AppStudio
TABLE FILE CAR
SUM
     SALES
BY COUNTRY
BY MODEL
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT HTMTABLE AS SOURCE
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
TYPE=DATA,
     COLUMN=N1,
     JAVASCRIPT=contentRun('IBFS:/WFC/Repository/Public&|BIP_item=Chart1.fex' 'COUNTRY' N1 'MODEL' MODEL 'SALES' SALES),
$

ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<script language="JavaScript">
function contentRun()
{
urlSelf = '/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_RUN&|BIP_folder=' + arguments[0]+'&|IBI_random='+Math.random();

for (var i=1; i < arguments.length; i=i+2)
  {
  urlSelf += '&' + arguments[i] + '=' + arguments[i+1];
  }
window.location = urlSelf;
}
</script>
</head>
<body>
!IBI.FIL.SOURCE;
</body>
</html>
-HTMLFORM END

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


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
January 17, 2018, 10:41 AM
DWaybright
Chaudhary,
Thank you!
Now I get an Access to Item Denied error. I'm not sure why that would be since I created and published the fex I'm trying to run unless it has to do with security surrounding running javascripts.

Thanks!


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 17, 2018, 10:47 AM
Frans
copy the hyperlink, check if it matches the path and of your .fex.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
January 17, 2018, 11:00 AM
j.gross
"If the mountain won't come . . ."

How about moving the (outer) fex to the repository, and arranging to execute it via call to Client?
January 17, 2018, 11:11 AM
DWaybright
I've just been told to not use JavaScript if possible.
Chaudhary, you said there were other ways?

Thanks!


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 17, 2018, 11:15 AM
DWaybright
quote:
Originally posted by j.gross:
"If the mountain won't come . . ."

How about moving the (outer) fex to the repository, and arranging to execute it via call to Client?


That may be the way to go.
Thanks.


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 17, 2018, 06:02 PM
Chaudhary
contentRun('IBFS:/WFC/Repository/Public&|BIP_item=Chart1.fex' 'Policy_State' Policy_State),

Please make sure that you are passing correct fex file path in above function and you have the run access of that file.


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
January 18, 2018, 09:08 AM
DWaybright
Chaudhary,
That was it -- I forgot to add the folder name in the Repository path.
Thanks everyone for all the help!


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 18, 2018, 09:11 AM
Chaudhary
Smiler


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
January 18, 2018, 11:11 AM
dbeagan
This worked for me in WebFOCUS 8.2:
 
 TABLE FILE ibisamp/ggsales
 SUM UNITS
 BY  REGION
 ON TABLE SET STYLE *
 TYPE=DATA, URL=/ibi_apps/WFServlet?( \
                IBIF_webapp='/ibi_apps' \
                IBIC_server='EDASERVE'  \
                IBIMR_drill='IBFS,RUNFEX,IBIF_ex,true' \
                IBIF_ex='IBFS:/WFC/Repository/Public/Chart1.fex' \
                REGION=REGION \
                ),$
 ENDSTYLE
 END
  



WebFOCUS 8.2.06