Focal Point
[CLOSED] Populating .htm field from variables passed from a URL drilldown

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

November 13, 2014, 01:57 PM
J.Biza
[CLOSED] Populating .htm field from variables passed from a URL drilldown
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
November 13, 2014, 02:11 PM
SSander
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
November 13, 2014, 04:10 PM
njsden
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.
November 14, 2014, 06:08 AM
Pravin.Singh
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
November 17, 2014, 09:52 AM
BarryS
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