Hi, I have a problem with HTML that is opened from the save parameter reports that have too long URL.
At first, I thought this problem was caused by too many number of parameters but it's not.
The original HTML is 1setup_allocation1.htm that contains many parameters. I tested it by selecting and inputiing parameters and then used the 'save selection' feature to save these set of selected parameters.
For the save selection report name 320.fex, everything is ok. We can open it and found the URL is
But when we just changed CREDIT_LIMIT_T from 3333333 to 33333333 and then saved selection again as 321.fex. When we tried to open it, we got the blank page with 'Error on page' at the buttom left of browser. The URL of this case is only
The URL length should be 2084 characters with each parameter value but it have only as above.
I also tried to select the more values for multiselect listbox it also generated the same error.
For testing you can create simple procedure like
-TYPE A is &A -TYPE B is &B -TYPE C is &C -TYPE D is &D -TYPE E is &E.(OR('A')).
and html,with save selection button to run it on MRE. Then give these parameters with the very long values or select many values for the multiselection and save selection. When open these save selection report it should generate URL that is longer than 2083 but it error as I told you
Who can suggest what I can do for solving it? SurachetThis message has been edited. Last edited by: Kerry,
The maximum length of a url, as discussed here before, in IE is 2083 as you have discovered.
Alan. WF 7.705/8.007
February 25, 2009, 07:04 AM
FrankDutch
I would suggest to reduce the length of your amper fields.
So instead &PAY_HISTORY05=FOC_NONE use &P5 &PAY_HISTORY06=FOC_NONE use &P6 &PA-Y_HISTORY07=FOC_NONE use &P7 &PAY_HISTORY08=FOC_NONE use &P8
and
what should this do &CARD_TYPE=0&CARD_TYPE=3562&CARD_TYPE=4079&CARD_TYPE=4090 &CARD-TYPE=4629&CARD_TYPE=4924&CARD_TYPE=5105&CARD_TYPE=5178 &CARD_TYPE=5221&CARD_TYPE=5256&CARD_TYPE=5275&CARD_TYPE=8577
its the same amperfield every time.....
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
February 25, 2009, 09:38 PM
Surachet
Hi Many thanks for every suggestion
For FrankDutch your question about &CARD_TYPE=0&CARD_TYPE=3562&CARD_TYPE=4079&CARD_TYPE=4090 &CARD-TYPE=4629&CARD_TYPE=4924&CARD_TYPE=5105&CARD_TYPE=5178 &CARD_TYPE=5221&CARD_TYPE=5256&CARD_TYPE=5275&CARD_TYPE=8577
those are the parameter values for multiselection list box.
Shortening parameter names is the way that I think to do but if URL is still limited on 2083 for IE, it can touch this limitation in some case because this HTML page contains many multiselect listbox that user can select mamy values for them.
So, I would like to find the permanant solution.
Best regards,
Surachet
WebFOCUS 7.6.7 Windows Output: All of them
February 26, 2009, 04:39 AM
GamP
Surachet,
You did not tell us how this html page is being created. Usually an html page with data on it that has to be sent to the server has one or more forms on it to collect and group the data and send it to the server. The default way of doing this is by using the method GET for the form. This will produce a URL that contains all selected data that is in the form. The other method is POST, which will collect teh data and send it over to the server in a message. The url will in that case only contain the part before the ?. This way of dealing with data also has a limit on size but that limit is very much higher than the url length. I have not touched that limit yet. It may be wise to investigate if you can use this POST method in your environment.
Hope this helps.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
February 26, 2009, 06:52 AM
Surachet
Hi GamP As I told my report is the save parameter reports. This feature is available only on MRE. The 320.fex contains code
-HTMLFORM BEGIN NOEVAL
<script type=text/javascript> function OnLoad() { document.forms.temp.submit(); }
-HTMLFORM END
This .fex will open 1setup_allocation1.htm and apply the saved parameter values for it.
This .fex' code is auto generated by WF when I used the save selection feature.
Best regards
Surachet
WebFOCUS 7.6.7 Windows Output: All of them
February 26, 2009, 08:05 AM
j.gross
Use the [ CODE ] tags! -- unless you prefer to keep your code invisible.
With the veil lifted, we see that the Form has method="get" (and 113 INPUT tags, all "hidden"). Your onload function can change the method attribute to "post".
February 26, 2009, 11:18 AM
Francis Mariani
But will the Save Parameters functionality work with a form with method post?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 26, 2009, 11:20 AM
j.gross
What does NOEVAL (on the -HTMLFORM BEGIN line) do? "No Evaluation" - but of what?
I couldn't find any documentation.
February 26, 2009, 11:29 AM
j.gross
quote:
Originally posted by Francis Mariani: But will the Save Parameters functionality work with a form with method post?
I would expect the layer that looks for those special input variables and triggers the Saved Parameters process to fire up only after the variables passed (whether via Get or Post) are parsed and copied by the client -- rather than operating directly on the URL string. But it's anyone's guess, until you try it out.
I just pointed out how to try GamP's suggestion. Ball is in Surachet's court.
September 11, 2009, 06:54 AM
Anmol
Hi Surachet, could you please let me know if you got the solution for this problem. I am also having the same problem....it will be very useful if you share your solution
thank you.... A.
WebFocus7.6.2, WebFocus 7.1.1,Windows HTML, PDF and Excel