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     [SOLVED] How to handle POST request in webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to handle POST request in webfocus
 Login/Join
 
Gold member
posted
Hi All,

I am working on java and webfocus pdf reports. I am able to get the reports using below code from JavaScript (below code following GET request URL).

 
var url = webFocusUrl + "IBIC_server="
												+ webFocusServer
												+ "&IBIF_webapp=" + webApp
												+ "&IBIAPP_app="
												+ applicationName
												+ "&IBIF_ex=basedatahistory"
												+ "&SORTBY="
												+ sortBy2.toUpperCase()
												+ "&SORTORDER=" + sortOrder
												+ "&BANKACCT=" + accNbr
												+ "&INTEXPIND=" + intExpInd
												+ "&ALLOCMTH=" + finalDate // selDate
												+ "&INCLFLG=" + incExl
												+"&TAIND="+accType
												+ "";

																				window
												.open(
														url,
														'open_window',
														'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=0, top=0');

 


Since I have large number of parameters, I wanted to pass the parameters as POST request (which will keep the parameters in request body) because there is a limitation on length of URL.

Can anyone suggest me on this issue?

Thanks,
Santu

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


Web FOCUS 7.7.03
PDF
 
Posts: 69 | Registered: May 24, 2013Report This Post
Master
posted Hide Post
Are you getting any error when send it with POST request?


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
I would have thought that you could just create a page and submit it.

Am I missing something ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
I believe to do it as a post request you need to capture all of the values as input tags and not as a URL. That's how webfocus used to do it in the earlier versions before all of the XML got incorporated. You still see some of that hanging around in the html.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
<FreSte>
posted
Santu,

What I recently did is writing all those variables (in the main procedure) to a file in the FOCCACHE directory.
In the MAIN-procedure you only have to pass the variable for the column that was click'd on.

In the drilldown-procedure (in your example the basedatahistory.fex) just -INCLUDE the file that was written with
all the parameters.

Works like a charm.

-Fred-
 
Report This Post
Gold member
posted Hide Post
Hi All,

Thank you for all of your suggessions.

I have resolved this issue from java end. This hidden parameters I can access as &FILTERDATA

  
<form name="postData" id="webfocus" action="http://server name:port/ibi_apps/WFServlet?IBIF_ex=reportname&IBIC_server=EDASERVE&IBIF_webapp=/ibi_apps&IBIAPP_app=applicationname"  method="post" target="_blank">
			Name:<INPUT type="hidden" name="NAME" id="FILTERDATA"/>
		<br/>

	</form>
	<label id="ok">PRINT</label>

$('#webfocus').submit();


Web FOCUS 7.7.03
PDF
 
Posts: 69 | Registered: May 24, 2013Report 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     [SOLVED] How to handle POST request in webfocus

Copyright © 1996-2020 Information Builders