bigtoe
Posts: 115
|
| Posted: 10/15/2004, 2:48 AM |
|
So I added a "Link1" at the bottom of a CCS page after
the form tag and above the footer. It has these properties:
Name: Link1
Control Source Type: Database Column
Control Source:
Data Type: Text
Format:
Default Value
Content: Text
Href: Text
Href Source: http://www.yahoo.com
Convert URL To: None
Remove Parameters:
Preserve Parameters: GET
DBFormat:
But the link does not appear on the page.
I deleted the php file and had it regenerated - still no luck.
The html code:
< tr bgcolor = " # cccc66 " >
< td align = " right " >
< a href = " { Link1_Src } " id = " Link1 " > { Link1 } < / a >
< / td >
< / tr >
If I change the code to
< tr bgcolor = " # cccc66 " >
< td align = " right " >
Hi
< a href = " { Link1_Src } " id = " Link1 " > { Link1 } < / a >
< / td >
< / tr >
Then I only see the word "Hi" but still no link.
What did I miss?
|
 |
 |
DonB
|
| Posted: 10/15/2004, 7:23 AM |
|
The link is not referencing a control source despite having the type as
"Database Column", thus there is no text for it to display. I suspect you
wanted the type as "Code Expression" and the source to be a text string
(enclosed in quotes).
--
DonB
http://www.gotodon.com/ccbth
"bigtoe" <bigtoe@forum.codecharge> wrote in message
news:5416f9cd681fa4@news.codecharge.com...
> So I added a "Link1" at the bottom of a CCS page after
> the form tag and above the footer. It has these properties:
>
> Name: Link1
> Control Source Type: Database Column
> Control Source:
> Data Type: Text
> Format:
> Default Value
> Content: Text
> Href: Text
> Href Source: http://www.yahoo.com
> Convert URL To: None
> Remove Parameters:
> Preserve Parameters: GET
> DBFormat:
>
> But the link does not appear on the page.
> I deleted the php file and had it regenerated - still no luck.
>
> The html code:
>
> < tr bgcolor = " # cccc66 " >
> < td align = " right " >
> < a href = " { Link1_Src } " id = " Link1 " > { Link1 } < / a >
> < / td >
> < / tr >
>
> If I change the code to
>
> < tr bgcolor = " # cccc66 " >
> < td align = " right " >
> Hi
> < a href = " { Link1_Src } " id = " Link1 " > { Link1 } < / a >
> < / td >
> < / tr >
>
> Then I only see the word "Hi" but still no link.
> What did I miss?
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
GeorgeS
Posts: 206
|
| Posted: 10/15/2004, 8:30 AM |
|
Link is not visible on your page because Default Value is not set.
You may set it in the Properies window like:
Default Value "Yahoo"
or in the beforeshow event:
$link->SetValue("Yahoo");
_________________
GeorgeS |
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/23/2004, 2:52 AM |
|
Both methods work.
Thanks DonB and GeorgeS.
|
 |
 |