birdie185
|
| Posted: 07/18/2002, 7:50 AM |
|
i have grid content that based on the current menu level that is visible or
hidden
if ($current_menu==1 ){
{
$content_menu_two->Visible = False;
}
if ( $current_record==2 && $current_menu==1)
$content_menu_two->Visible = True;
}
with my grid name = $content_menu_two
and my data source = "content, menu" (basically a query so it does not have
ONE name!)
what i am trying do is instead of having the menu set to false as below
$content_menu_two->Visible = False;
i want the grid form to display a picture.
i have tried things like the following but to no avail (where the link is
"name")
$Value ="images/PlaceHolder.jpg";
$content_menu_two->name->SetLink($Value);
or
$Value ="images/PlaceHolder.jpg";
$content_menu_two->name->SetValue($Value);
i don't no what to call my data source??
is there a way to get the data source name when the IDE displays it as
"content, menu"
Thanks fo r any input
|
|
|
 |
Simon Chee
|
| Posted: 07/18/2002, 8:00 AM |
|
I think you need to create the html for an image and change the content type
to be html.
$Value ="<img src="images/PlaceHolder.jpg">;
The the field you use $Value in should have it's content type set to html in
the designer.
"birdie185" <birdie185@home.com> wrote in message
news:ah6kjf$k7g$1@news.codecharge.com...
> i have grid content that based on the current menu level that is visible
or
> hidden
>
>
>
> if ($current_menu==1 ){
>
> {
>
> $content_menu_two->Visible = False;
>
> }
>
> if ( $current_record==2 && $current_menu==1)
>
> $content_menu_two->Visible = True;
>
> }
>
>
>
> with my grid name = $content_menu_two
>
> and my data source = "content, menu" (basically a query so it does not
have
> ONE name!)
>
>
>
> what i am trying do is instead of having the menu set to false as below
>
>
>
> $content_menu_two->Visible = False;
>
>
>
> i want the grid form to display a picture.
>
>
>
> i have tried things like the following but to no avail (where the link is
> "name")
>
>
>
> $Value ="images/PlaceHolder.jpg";
>
> $content_menu_two->name->SetLink($Value);
>
>
>
> or
>
>
>
> $Value ="images/PlaceHolder.jpg";
>
> $content_menu_two->name->SetValue($Value);
>
>
>
> i don't no what to call my data source??
>
> is there a way to get the data source name when the IDE displays it as
> "content, menu"
>
>
>
> Thanks fo r any input
>
>
>
|
|
|
 |
|