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 -> General/Other

 Passing parameters

Print topic Send  topic

Author Message
eallen

Posts: 25
Posted: 01/29/2004, 5:09 PM

I am new to CCS. I am using ASP and MsSql 2k server. I want to be able to put a search, a master and detail grid on the same page. The master and detail grids will have 'no records' when the page is first presented. On search the master grid will fill.

I would like to have a radio button as the first column in the master grid that when clicked it will pass the masterID parameter to the detail grid and do a page refresh and display related detail records. I don't want the MasterID parameter to display in the page url address.

If a new search is made, I want the detail grid to be refreshied and show 'no records' until an item from the master grid is selected.

I this possible? If so, can it be done thru the IDE?

Thanks in advance for any help.
View profile  Send private message
peterr


Posts: 5971
Posted: 01/29/2004, 6:10 PM

Yes, should be possible via IDE, though you may need to write 1 line of code if you want to use the radio button you described.

An article on "Displaying Empty Grids When No Search Criteria Is Specified" is here:
http://support.codecharge.com/kb_article.asp?article_id=65

Basic Master/Detail example is in CCS Example Pack:
http://docs.codecharge.com/studio/html/ProgrammingTechn...xamplePack.html

To implement the Radio Button instead of the standard link in the above Master/Detail example you will only need to change your Link to a Label, select "HTML" in the Content property of the Label, then in the Before Show event of the Label enter this line of code:
employees_grid.emp_name.Value = "<form method=""POST"" action=""MasterDetail.asp""><input type=""radio"" value=""" & employees_grid.emp_id.Value & """ name=""emp_id"" onclick=""this.form.submit();"">" & employees_grid.emp_name.Value & "</form>"
You will then also need to open the Data Source property of the other two Record forms and specify that now the "emp_id" parameter is a Form/POST parameter instead of URL.
This is it.

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
eallen

Posts: 25
Posted: 01/29/2004, 8:18 PM

Thanks Peter. I had looked at this example before but didn't quite see it as the sample I needed.
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.