Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Populating .htm field from variables passed from a URL drilldown
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Populating .htm field from variables passed from a URL drilldown
 Login/Join
 
Member
posted
In need of more focal point expertise.

I have a drilldown to a .htm file that has an embedded procedure that is using the variables that I am passing.

$
TYPE=DATA,
	 COLUMN=UPDT_FLD,
	 URL=http://wfprd/approot/b009503/work_queue_detail_test.htm? (EMPL_ID=EMPL_ID EFF_DT=EFF_DT OT_TM=OT_TM),
$  


However, I cannot get my three text fields to populate in the .htm. I've been using !IBI.AMP.EMPL_ID;, etc. Can this not be done using a drilldown?

Thanks in advance.

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


WebFOCUS 7703
 
Posts: 18 | Registered: May 22, 2014Reply With QuoteReport This Post
Gold member
posted Hide Post
Found this example:
 TABLE FILE GGSALES
ON TABLE SET PAGE-NUM OFF
SUM UNITS AND DOLLARS
BY CATEGORY BY REGION
HEADING
"Regional Sales Report"
" "
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=DATA, COLUMN=REGION,
URL=/ibi_apps/WFServlet?(IBIF_ex='ggdrill' AREA=REGION IBIC_server='EDASERVE' IBI_APPS='IBISAMP'),$
ENDSTYLE
END
 


If this does not help, I can send our solution tomorrow, because we use URL links from WF to our intranet and we pass parameters aswell.


Release: WebFOCUS 8104, AppStudio: 8105
OS: Windows
Output: HTML,Excel,Active Reports
 
Posts: 89 | Registered: November 19, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
That's because you can't just pass parameters to an HTML page ... well, you can, but then you'll need to add some JavaScript to inspect the document.location.href and parse to collect parameters.

SSander's example shows that your drill-down should target an actual WebFOCUS .fex procedure (via WFServlet) and that will cause your URL values to turn into nice &variables the .fex can see. You can the use -HTMLFORM from within that fex to invoke your .htm file and !IBI.AMP.EMPL_ID; will finally make sense Smiler



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
One possible solution would be to call the fex file and define the variable on top of the fex file and then invoke your .html inside of .fex file and use !IBI.AMP.EMPL_ID. It should work.


Thanks,
Pravin.Singh


WebFOCUS 7703
Windows, All Outputs
pravinsinghwebfocus.blogspot.com
 
Posts: 51 | Location: WebFOCUS 7.7.03 | Registered: June 19, 2014Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi

You can pass a parameter to an HTM page just make sure that the parameter linked to a control has the same name as what you are passing in the drill down or URL.

You can have a report inside an HTML page and use a JAVASCRIPT drill down just make sure that you call the function as parent.function_name and pass a parameter to the function like:


JAVASCRIPT=parent.setControls( \
N1 \
N2 \
N3 \
),

function setControls(country, car, model)

If this does not help then open a ticket with tech Support.

Thanks Barry


WebFOCUS 8103, Windows, App Studio
 
Posts: 84 | Location: NYC | Registered: November 13, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Populating .htm field from variables passed from a URL drilldown

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.