Focal Point
[CLOSED] Need to pass too many parameters to Focus procedure URL

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

May 11, 2010, 09:25 AM
LakshmiRao
[CLOSED] Need to pass too many parameters to Focus procedure URL
Hi,

I have the user requirement where the user is going to select a large # of policies as report criteria and I need to pass them to focus procedure. What is the best way to do it? I thought if the URL is too big (limit 2080 chars?) then call the URL more than once, write the parameters to a common focus file and then read them. I created a Focus master file able to read from it, but not able to write. Please help.



Thanks in advance.

This message has been edited. Last edited by: Kerry,
May 11, 2010, 09:35 AM
Efrem
What is the calling application that's constructing the URL written in?
May 11, 2010, 11:28 AM
Tony A
METHOD=GET and POST have different limits. The limit that you are experiencing is using the GET method? (where all the parameters can be seen in the URL), if you use POST instead you should have greater flexibility.

However, do make sure you know the difference between the two methods and that you are happy with the one you opt for

T



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 
May 11, 2010, 12:30 PM
Darin Lee
Or go back to your users to find out what it is they are *REALLY* trying to accomplish. I've seen this request come across the table many times, an in almost every case, there was a better way of doing things than trying to pass a boat load of characters into a parameter as part of a URL.

For example, say a policy # has 10 characters/digits. Is the user really going to multiselect (or type in) 200+ values? Hopefully they get it right the first time and don't have to go back and type it all in again because of a typo.

Maybe give them some sort of application or process to copy/ftp/move a file to a specified location accesible by the WF server to be used as a validation list.

All that said, back to your first problem. How ar you attempting to write to the focus file? Using Modify/Maintain? Have you enabled write access to the file? Does the user have write access to the server where you are trying to create the file? What happens when more than one user is trying to "input" parameters and run the report simultaneously? Are there separate locations for each user? How does the server know which file is to be used?

Lots of things to think about when you move in this direction--

This message has been edited. Last edited by: Darin Lee,


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
May 11, 2010, 01:56 PM
LakshmiRao
Yes sounds wierd passing too many parameters. We are having meeting to discuss if it makes sense. About the common file, I thought I will include UserId and TS along with the parameters and once the report run can delete it. I created a master Focus data file, able to read but do not know how to write. Not sure about Modify, the examples I saw creates forms to modify, but I just need to write , no form needed. If the # parameters exceeds I thought I will call the procedure more than once and write the parameters passed to the focus file and access them all in the final call.
May 11, 2010, 03:14 PM
Darin Lee
Modify is what you would have to use to write to a focus database. You can do it without forms. If you don't know anything about Modify, I would suggest you get more information before taking this route. You also need to consider having the focus database under the control of the FOCUS SU (or sync) machine to control writes to the table. That may make a difference if your are trying to control multiple files for multiple users. Again, I would get more information on using the FOCUS SU.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
May 12, 2010, 08:07 AM
Diane
You could also write the filter (with all the values) out to a file, with the file name based on the userid. Then -INCLUDE the file in your filter section.


WebFOCUS 8.1.0.5m