Focal Point
[CLOSED] Send Unique Parameter Value for each Button OnClick to multiple Fexs

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

October 21, 2016, 04:02 PM
WF1326
[CLOSED] Send Unique Parameter Value for each Button OnClick to multiple Fexs
Hi,

I have 2 buttons(daily, monthly) on the top of a html page. Multiple fexs load in their respective frames below these buttons.

The fexs that these buttons run have the same code, except for a small change in a filter/By field. So,basically, i have duplicated the fexs that run under 'Daily' button, made the filter changes and used them for my 'Monthly' button.

I wanted to eliminate this duplication. So, I wanted to pass in a unique parameter value from each button, when clicked, to all the fexs.
Using this parameter value, i can internally handle the filters in each fex as per the type of button pressed.

I have used App Studio 8105 for developing this HTML page.

Thanks you in advance.

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


WebFOCUS
7703/7705/8105m/8201m/8202m

October 21, 2016, 05:24 PM
CoolGuy
When you say button, do you really mean button? Or radio buttons or check boxes?

You should be able to build out a single layer form in HTML Canvas with whatever type of button you want (radio or checkbox) and then have those controls pass a parameter to all content within the page or otherwise that tells those fexes to filter due to that parameter. Is that what you are looking for?


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
October 24, 2016, 09:15 AM
WF1326
@CoolGuy: Yes i mean the basic button.

I found the answer to my question.

I created a hidden element and handled its value inside the button onClick event


WebFOCUS
7703/7705/8105m/8201m/8202m

October 24, 2016, 10:32 AM
CoolGuy
K, glad you figured it out.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.