[SOLVED] Auto execute when value changed in dropdown
Hello,
From w/in an HTML page, when I user makes a change in a dropdown box from 2008 to 2012, I'd like to have the graph auto execute *without* having to click on the play/submit button.
I looked in the Properties and the Properties & Settings for the combobox, but I diddn't see an option for auto execute, am I looking at the wrong place?
How can I accomplish the auto execute the graph when only using the dropdown menu?
Thank you in advance, KimThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.702 Linux 64-Bit Windows, All Outputs
July 25, 2012, 06:42 PM
Kim at USF
Hello, one additional piece of information. The graph was created in Advanced Graph Assistant and I don't have a Parameter page to help w/auto execute as recommended from this posting:
If you are using release 769 or higher, you can go to the Parameters tab and drag the graph frame from the Thumbnails pane put onto the canvas, then bind the dropdown to the graph frame. This creates an onChange/execute action.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com
July 26, 2012, 09:42 AM
<Emily Duensing>
I believe you can use a javascript event of onchange (?) and when the value changes in that control, then you code the javascript event to execute the procedure.
I am going totally from memory here, so I could be way off base... but look into the Javascript events on the Javascript tab (same area as Properties)
July 27, 2012, 04:36 PM
Kim at USF
Hi David,
That's the problem, I created this in Advance Graph Assistant, there is no Parameters tab -- or am I not looking in the right place?
Thanks, Kim
quote:
Originally posted by Kim at USF: Hello, one additional piece of information. The graph was created in Advanced Graph Assistant and I don't have a Parameter page to help w/auto execute as recommended from this posting:
//Begin function combobox1_onchange
function combobox1_onchange(ctrl) {
OnExecute(sub_button)
}
//End function combobox1_onchange
I'd like to avoid using js, but I will give that a try too. I just thought it would be easier using WF built-in.
Thanks, Kim
quote:
Originally posted by David Glick: If you are using release 769 or higher, you can go to the Parameters tab and drag the graph frame from the Thumbnails pane put onto the canvas, then bind the dropdown to the graph frame. This creates an onChange/execute action.
WebFOCUS 7.702 Linux 64-Bit Windows, All Outputs
July 28, 2012, 04:17 AM
Tony A
quote:
I created this in Advance Graph Assistant, there is no Parameters tab
Hi Kim,
What David means is not in the graph assisitant dialog, but the HTML page dialog (or GUI).
When you have the HTML compser displayed, you have three tabs at the bottom left - Design, Parameters, HTML.
In the Design tab, you should have your combo box and your graph? Goto the Parameters tab and you will see the combo shown in the left hand pane and an icon on the right representing the graph. Click on the graph and drag it into the area with the combo and then click on the combo and drag it over the graph in the left hand pane. This will show an arrow from the combo to the graph showing that they are bound and changes to the combo should be reflected in the graph providing the graph and combo variable names reflect one another.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
July 29, 2012, 11:16 AM
Kim at USF
OMG - Thank you Tony A for clarifying and thank you David Glick for your great solution.
That totally worked!
Cheers, Kim
WebFOCUS 7.702 Linux 64-Bit Windows, All Outputs
July 30, 2012, 07:23 AM
David Glick
Kim,
The Parameters tab is in HTML Composer. You do this in that area.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com
July 30, 2012, 07:34 AM
David Glick
Kim,
That is great news. Glad to help.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com