Focal Point
[SOLVED] Return selected tab from a tab control as a parameter

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

November 26, 2013, 02:45 PM
MartinY
[SOLVED] Return selected tab from a tab control as a parameter
Hi,

In a simple way, I have a HTML page that only contain a TabControl with multiple tab.

Each tab refer to a subject that is the BY of the reports/graphics included in the tab.

Each reports are in auto execute mode.

Because most of the reports are the same for each tab except for the BY field, I would like to have only one fex per report and have the BY as a parameter.

My problem is the following : I can catch which tab has been selected using the "_onclick()" event and assign a value to a control but I cannot pass that control value as a parameter to the fex. The fex doesn't know the parameter. It missing the value for it.

Any ideas ?

Thanks,

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


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 26, 2013, 07:57 PM
njsden
quote:
I cannot pass that control value as a parameter to the fex


Why not? If you're using HTML Composer as I think you are, binding the HTML control to a parameter would just pass it to the WFServlet call therefore making it available as an amper variable to the underlying .fex.

Can you make something up using the CAR table along with a simple page lunch page with a couple of tabs illustrating exactly what you're doing?

I've had my share of frustrating experiences with HTML Composer in the past, especially adding new parameters to a .fex AFTER the launch page has been built, but apparently by right-clicking the form Composer and choosing "Refresh parameters" or something like that (sorry, I have no access to Dev Studio right now) will create the required bindings you need.



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 28, 2013, 10:57 AM
MartinY
Hi nj,

Even if you've haven't make that much Wink, you sent me on a path that resolved my issue.

I've refreshed my html page but with a fex that only have the parameter in it:
-DEFAULT &BY_FIELD = 'X';
and then it has been bind and available.

Thanks,


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 28, 2013, 11:38 AM
njsden
Je vous en prie!

I'm glad you managed to make some sense out of the rather vague information I provided and came up with something that helped you move on. 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.