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 -> PHP

 Hiding a record form until called

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 07/21/2007, 10:35 PM

I have scoured the docs and the forum, tried 5 different methods to do this simple thing.. with no results.

I want to have the record hidden when the user first gets to the page, appearing only when clicking on the link to open it, then after submit/insert, it disappears again.

Thanks!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
Damian Hupfeld
Posted: 07/22/2007, 5:04 AM

why are you making it so complicated?
if you are clicking on a link why not have the link take you to a new page
and have the form return page be the original page?

if you really want to do it your way stick the form in a panel.
set the panel visibility to hidden.
set the link to be something like mypage.php?myform=show

set a BeforeShow event on the panel somthing like this -
global $myvalue;
$mylink = CCGetParam("myform", $myvalue);
if ($mylink == 'show') {
$mypanel->Visible = true;
}
else {
$mypanel->Visible = false;
}

make sure you remove parameters on your form submit.

Damian




"ckroon" <ckroon@forum.codecharge> wrote in message
news:546a2ecb59e6db@news.codecharge.com...
>I have scoured the docs and the forum, tried 5 different methods to do this
> simple thing.. with no results.
>
> I want to have the record hidden when the user first gets to the page,
> appearing only when clicking on the link to open it, then after
> submit/insert,
> it disappears again.
>
> Thanks!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

ckroon

Posts: 869
Posted: 07/22/2007, 11:21 AM

Thank you!

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
Damian Hupfeld
Posted: 07/23/2007, 5:39 AM

For what? What method did you choose?

"ckroon" <ckroon@forum.codecharge> wrote in message
news:546a3a00d3b0ae@news.codecharge.com...
> Thank you!
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

ckroon

Posts: 869
Posted: 07/23/2007, 9:08 AM

Thanks for both. I used both. Redirected to another page where it deemed appropriate, hid the record until called on the others.

:-)
_________________
Walter Kempees...you are dearly missed.
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.

MS Access to Web

Convert MS Access to Web.
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.