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