CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Resolved] Content of a Listbox to pass in a URL as an array of parameters

Print topic Send  topic

Author Message
dcosta

Posts: 18
Posted: 01/25/2011, 5:22 PM

Hello all !

I have a search form working as a parameter form for a report.
The search form as several listboxes some of them being multiple.
After creating the search form I needed to change one of them to multiple.
I hoped it will pass the chose values as parameters in the form
&s_field1[]=36&s_field1[]=34&s_field1[]=35 but in the URL only one of the ocorrences is shown. And no [].

I looked in the PHP code for this listbox to compare with one other working
correctly and found no difference.

What can I do ? Can You help me, please ?

Best regards
Dias Costa
View profile  Send private message
damian

Posts: 838
Posted: 01/26/2011, 3:49 AM

as the report builder etc is quite quick to re-run i would suggest you try and make a new report quickly and set the options correctly in your new report. if it all works check out the differnces in html and in format and data properties to see what/how you should change it in future. one of the big advantages of a rad tool is re-running/re-creating a page should be quite quick.
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
dcosta

Posts: 18
Posted: 01/26/2011, 4:53 AM

Hello Damian !

Thank You for Your quick and kind help.

I fear I've not explained myself in a correct way. So, I'll try once again in the hope this time I'll have success.

Firstly I built a report and then I separated the search part from the report part in two different pages.
But I had a problem because I had four dependent, multiple listboxes (many to many dependencies). And I want each listbox only shows values depending from multiple values of the preceding listbox.
After trying with it I found that the solutions showed in the examples using AJAX don't apply to this case.
So, always keeping the original search form which works very well calling the report, even sending multiple value parameters, I made a copy of the form to make one form for each multiple value listbox in sort of a cascade approach.

In one of those (copy) search forms I changed a single listbox to a multiple one. The reult is the search form works well but when I press the search button to call another step search form (to display another multiple listbox), there is only one value related to the multiple listbox even if I select various lines.

I've already checked out the differences in PHP and data properties and found none.

Don't know what differences I must look for in HTML. Can You give me some hints?

Note:
Please, consider reading my previous post about using listboxes with dependencies of many to any (in another approach to my basic problem) in
http://forums.yessoftware.com/posts.php?post_id=113746.


Thank You for Your help.
Dias Costa
View profile  Send private message
damian

Posts: 838
Posted: 01/26/2011, 3:48 PM

ok - first just manually update the url in the browser and ass the additional "multiple selections" and check your report works. then we need to look at what data the multiple select listbox is generating...
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
dcosta

Posts: 18
Posted: 02/07/2011, 3:09 PM

Hello Damian!

Thank You for Your help.

I was so pressed I had to follow a different path.
I rebuilt the form from the start correctly.

It's a pity because so I haven't learned anything.


Best regards
Dias Costa
View profile  Send private message
damian

Posts: 838
Posted: 02/07/2011, 3:44 PM

well... you have and you havent...
you did learn that one of the benefits of this tool is that if its not working as you think it should just start again - its quick. the second time you create a page it often takes only a few minutes as you have already worked thru all the issues.

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.