CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Forwarding MultiListbox to external URL

Print topic Send  topic

Author Message
gynzer
Posted: 11/21/2005, 12:47 PM

This should be easy, but I am scratching my head on this one. To make the scenario useful for others who may need to do the same thing, I'll explain my question in reference to the ManytoManyCheckbox example using ASP (and CCS ver 2.0).

Once the multi-Listbox has been displayed and a set of checkboxes marked, all that I want to be able to do is change the action of the submit button (or the add button for that matter). Instead of performing an insert or edit on the database records I want to forward the response to a URL for an external web page that has been developed outside of Codecharge. Of course I would like the URL populated with the appropriate parameters included for the regular fields in the listbox as well as the multiple Checkbox listings.

I have done tasks similar to this outside of a multi-listbox environment but for some reason have been completely foiled in my attempts on this one.

If someone can point me in the right direction using the ManytoManyCheckbox example as a starting point I will be able to extrapolate from there.

Thanks in advance for your wisdom and assistance.




rlgines

Posts: 3
Posted: 11/23/2005, 8:26 AM

I've narrowed down the problem and can recreate it in the ManytoManyCheckbox ASP example. So now hopefully someone can show me what I am doing wrong.

If I create a new button, we'll call it NextStep, and create an event with the following code
  
Function employees_record_NextStep_OnClick()  
  
  UnloadPage()  
  Response.Redirect "Somewhere.asp"  
  
End Function 'Close employees_record_NextStep_OnClick   
I get an expected resulting URL of [BASEURL]/somewhere.asp

If however I add just the following to the event:

  
Function employees_record_NextStep_OnClick()  
  
Dim emp_id  
emp_id=CCGetParm("emp_id", Empty)  
  
  UnloadPage()  
  Response.Redirect "Somewhere.asp?emp_id=" & emp_id  
  
End Function 'Close employees_record_NextStep_OnClick  
  

Then my resulting URL becomes

[BASEURL]/ManyToManyCheckbox.asp?emp_id=31&ccsForm=employees%5Frecord%3AEdit

This is the exact same behavior that I am seeing in my real app. (I get the same result when using emp_name instead of emp_id). Either I have found a bug with the Multi-valued listbox form (unlikely), or I am missing something incredibly obvious (more likely).

Any assistance would be greatly appreciated.

Thanks a bunch.
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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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