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     PRINT PREVIEW TO EXTRACT CONTENTS IN A FRAME

Read-Only Read-Only Topic
Go
Search
Notify
Tools
PRINT PREVIEW TO EXTRACT CONTENTS IN A FRAME
 Login/Join
 
Platinum Member
posted
HI ,
I HAVE A PRINT PREVIEW BUTTON IN MY HTML SCRIPT. THE FRAME CONTAINS THE REPORT IN HTML FORMAT , PDF OR EXCEL DEPENDING ON THE END USER'
S CHOICE. THE PRINT PREVIEW BUTTON IS USED TO EXTRACT THE CONTENTS OF THE FRAME AND DISPLAY IT IN A DIFFERENT WINDOW.
I HAVE TRIED THIS CODE BELOW , IT DOESNT WORK..
CAN ANYONE HELP ME IN THIS??
function openNew(){
var path= "http://webfadh.target.com/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2hgpi689e.fex&IBIMR_folder=%23worki02tijdq";
f.action = "/ibi_apps/WFServlet?IBIAPP_app=ts_cmn_procedures&IBIF_ex=sh.fex";
f.target = "_blank";&IBIMR_folder=#worki02tijdq&IBIMR_dir=#ript0f857jnd&ibiapp_app=""
f.submit();
window.open("path","PrintPreview","HEIGHT=750,WIDTH=750,menubar=yes,statusbar=yes,scrollbars=yes,addressbar=yes,location=no,resizable=yes");
}


THANK YOU
ARAVINDAN


WebFOCUS 714
Windows XP
Output: HTML,PDF,Excel
 
Posts: 189 | Registered: January 30, 2008Report This Post
Expert
posted Hide Post
Aravindan,

You are using JavaScript so you need to understand what it is that you are trying to do.

I see a lot of mistakes in there but I am not going to rewrite it for you because you will not learn from that.

Take "f.action" for starters. JS is expecting an object collection but you haven't declared "f" etc. so "f.target" and "f.submit()" will also fail.

"window.open...." is something completely different to what the "f" is attempting.

You obviously do not understand how the JS code hangs together so I would suggest getting a basic course.

A teacher of mine had the phrase - "If you don't know it then don't use it". It should apply very much in your case.

T

This message has been edited. Last edited by: Tony A,



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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     PRINT PREVIEW TO EXTRACT CONTENTS IN A FRAME

Copyright © 1996-2020 Information Builders