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

 Grid & Record Builder: Hiding Record

Print topic Send  topic

Author Message
FrankR

Posts: 154
Posted: 09/28/2006, 7:43 AM

This should be simple, yet I'm struggling with it.

I have a Grid and Record panel, from the Grid and Record Builder.
It's wired so that I click a link in the Grid, and the contents appear
in the Record panel.

After the user fills/updates the Record panel and save the changes with a Submit,
I want the Record panel to disappear. How do I control this?
Yes, I know I can make the Record panel invisible with RecordHolder.Visible = false,
but where do I put this, and how do I Only do this after a record is updated?
_________________
FR
View profile  Send private message
kevind

Posts: 251
Posted: 09/28/2006, 12:28 PM

I'm responding with CCS 2.x knowledge to your question
============================================

I would add a parameter to the link in the grid like 'ShowRecordHolder' with a value of 1 for true.

In the record form add code to the 'Before Show' event like this:

if CCGetParam("ShowRecordHolder",empty)=1 then
RecordHolder.visible=true
else
RecordHolder.visible=false
end if

In the Record form properties put ShowRecordHolder in the Remove Parameters line. When you submit or add records, the parameter gets removed and the form should be hidden until you trigger it with the grid link again.

Let me know if that helps.

KD :-)
_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message
FrankR

Posts: 154
Posted: 09/28/2006, 2:14 PM

Quote kevind:
I'm responding with CCS 2.x knowledge to your question
============================================

I would add a parameter to the link in the grid like 'ShowRecordHolder' with a value of 1 for true.

In the record form add code to the 'Before Show' event like this:

if CCGetParam("ShowRecordHolder",empty)=1 then
RecordHolder.visible=true
else
RecordHolder.visible=false
end if

In the Record form properties put ShowRecordHolder in the Remove Parameters line. When you submit or add records, the parameter gets removed and the form should be hidden until you trigger it with the grid link again.

Let me know if that helps.

KD :-)

Niiiice. Great. That worked. Thank you.

I owe you a beer.

_________________
FR
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.