Focal Point
[CLOSED] pop-up window

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

January 06, 2005, 12:48 PM
paw
[CLOSED] pop-up window
I have a form where next to a text field is a button that executes a fex that lists valid values for the text field. When the user presses the button, the fex is run and displayed in the same window. The list is a drilldown and when the user chooses a value, the drilldown executes the fex that called it and passes back the drilldown value to the form and populates it in the text field. What I would like to do is instead of replacing the entire window with the drilldown list and executing the fex with the form again, I would like to leave the form in the window and just have a small new pop-up window that displays the drilldown list in it. I know how to create a new window via javascript, but I'm not sure how to call the fex to display the list in that new pop-up window - and would the drilldown back to the form still work if it was only in a popup window? Can that be done?
TIA

This message has been edited. Last edited by: Tamra,
January 06, 2005, 01:11 PM
susannah
yes, i call them 'drill-ups' and i gave a presentation on this at Summit last year and at the NE Users Group. Note that the key in passing parms is the escape character | to make focus ingnore the &.

DRILLUP/A600 = ''"http://servername/cgi-bin/ibi_cgi/webapi.dll?'|
'IBIF_ex=fexname&|PARM1=&|VALUE1",' |
'"windowname", "width=380,scrollbars=yes, ' |
' resizable=yes, top=100,left=300, height=550") '''' >click here
'

This message has been edited. Last edited by: <Mabel>,
January 12, 2005, 01:08 PM
paw
thanks - didn't quite use that technique but you gave me an idea on how to do it. another question - once you have your list in the pop-up window - if it is a drilldown, is there a way to pass the variable back to the original window? right now if i use the drilldown to call another focexec, it opens in the pop-up window.
tia
January 12, 2005, 03:58 PM
susannah
cool. can you tell me how you ended up doing it?
I'm not sure i understand your question about 'passing back'...your series of drill downs can be recursive...your can reload/re-execute your originating page by running a fex that relaunches the entire frame set.
January 12, 2005, 05:50 PM
paw
i used the same type of code, but instead of defining it in focexec, i put the pop-up window code right in the html in a javascript function:
window.open("/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=fexname","","width=400,height=400,resizable,scrollbars");
so when user presses button, function executed and pop-up window displays w/the focexec and it's drilldowns. what i want to happen is, when user selects drill-down element, pop-up window closes, all variables from drilldown fex are passed back to originating fex and fex re-executes in origianl fullscreen window. i'm not quite sure where to put the code to do that. what happens now is drilldown executes original fex, but it opens in the pop-up window and not in the original fullscreen window. hope this was clear! thx
January 12, 2005, 06:41 PM
TexasStingray
paw,

I have just uploaded an example of what I created.

Check it out, it's called popup.zip.

http://www.geocities.com/texasstingray@sbcglobal.net/We...US/WebFOCUS_Tips.htm
January 12, 2005, 06:57 PM
<Thiru>
You can specify the target value in the pop-up window's form element like '_parent' from where you want to go the main window. Now when you selects drill-down element in the pop-up window this will be executed and displayed in the main window. This will work, if you only the FORM submit when user click the drilldown.

Otherwise, you can get the drilldowns result into the main window, requires you to name the main window. In the main window do:

-- begin java script
window.name = 'mymainwindow';
-- end java script

Then you can target the main window from pop-up window as:

<a href="/cgi-bin/ibi_cgi/ibiweb.exe?IBIF_ex=drillfex¶ms" target="mymainwindow">DrillValue1</a>

Hope this will help you!

Thiru
January 13, 2005, 12:04 PM
j.gross
quote:
Originally posted by paw:

"I have a form where next to a text field is a button that executes a fex that [qb] lists valid values[/qb] for the text field." <snip>
If those are the only acceptable values, you can use a <SELECT> list (generated by a focexec) instead of a text input.
February 07, 2007, 02:35 PM
Alan Main
This discussion sounds like it might address what I want to do...

I want to pop up a little yes/no window as my focexec is processing something from the currently displayed form. If I code my pop up within its own -HTMLFORM BEGIN/END, it takes over the screen and the prior form disappears. I'd like it to mimic a javascript alert that pops up in response to an OnClick, leaving the main form visible.

If I understand this discussion, I can open another, smaller window on top of my main form to accomplish this.

This is not a drilldown case. In my focexec I have:
TABLE FILE mytable
PRINT this
WHERE that = '&value_from_the_form'
ON TABLE HOLD
END
-SET &R1 = &RECORDS;
-RUN
-IF &R1 EQ 0 GOTO OK;
else,
pop up the little window letting them know the query found something and giving them yes/no buttons to proceed or not.

Can someone post an example of how to pull this off? Much obliged.
November 17, 2015, 02:38 AM
kmvgt
Hello
TexasStingray,
the link to the example is not working. Can you please explain us the method or the example.
Thanks in advance


Webfocus 8104
Windows 7
December 04, 2015, 02:05 PM
Tamra
Hi kmvgt,

I am following up with you regarding this post - pop-up window.

The original post is very old. The URL supplied is also very old and certainly is app to change over time. Plus, the way things are handled within WebFOCUS have changed too.

I think I would be best if you open a new topic and add you own scenario - even reach to TexasStingray and ask if the URL is still relevant. He is still an active member.

You might get more responses from members this way.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.

* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5