Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] pop-up window

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] pop-up window
 Login/Join
 
Member
posted
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,
 
Posts: 13 | Location: Boston | Registered: December 22, 2004Report This Post
Expert
posted Hide Post
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>,
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
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
 
Posts: 13 | Location: Boston | Registered: December 22, 2004Report This Post
Expert
posted Hide Post
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.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
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
 
Posts: 13 | Location: Boston | Registered: December 22, 2004Report This Post
Master
posted Hide Post
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
 
Posts: 865 | Registered: May 24, 2004Report This Post
<Thiru>
posted
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
 
Report This Post
Virtuoso
posted Hide Post
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.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
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.
 
Posts: 18 | Location: Rockville, MD | Registered: September 20, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 5 | Registered: September 16, 2015Report This Post
Guru
posted Hide Post
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
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] pop-up window

Copyright © 1996-2020 Information Builders