CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Panel hide/show with new record

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 09/04/2007, 10:59 AM

I have a panel which gets hidden/shown using this before show code:

if (CCGetFromGet("stud_id",-1) == -1)
$Component->Visible = False;
else
$Component->Visible = True;

Works like a charm.
Question is: When I have it on a record form and the User clicks 'Add New' to add a new record, how do I get it to open the panel?
Thanks!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
wkempees
Posted: 09/04/2007, 1:14 PM

http://forums.codecharge.com/posts.php?post_id=89009&s_...+visible+insert

http://forums.codecharge.com/posts.php?post_id=70930&s_...+visible+insert

First one actually is your own.......
Depending on the way the panel is on the page, i'd go for the EditMode test.


Walter

"ckroon" <ckroon@forum.codecharge> schreef in bericht
news:546dd9ce6628db@news.codecharge.com...
>I have a panel which gets hidden/shown using this before show code:
>
> if (CCGetFromGet("stud_id",-1) == -1)
> $Component->Visible = False;
> else
> $Component->Visible = True;
>
> Works like a charm.
> Question is: When I have it on a record form and the User clicks 'Add New'
> to
> add a new record, how do I get it to open the panel?
> Thanks!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

ckroon

Posts: 869
Posted: 09/04/2007, 8:57 PM

Thanks walter!

That first post of mine really didn't answer the question regarding adding a NEW record but teh second one looks good!
Thanks!
_________________
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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