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

 how do I change the Link value of ImageLink

Print topic Send  topic

Author Message
bas
Posted: 08/07/2008, 3:15 PM

I need to change the value of a Image-Link based on value of another field

This works - and I can swap images

if ($equipment1->image2->GetValue()) {
$equipment1->image1 ->SetValue($equipment1->image2->GetValue());
}

but can't seem to change the image1_src

$equipment1->image1 ->SetValue($equipment1->image2->GetValue());
and
$Component->equipment1->image1_src ->SetValue($equipment1->image2->GetValue());

Fatal error: Call to a member function SetValue() on a non-object in ...



wkempees


Posts: 1679
Posted: 08/07/2008, 3:45 PM

  
if ($equipment1->image2->GetLink()) {  
$equipment1->image1->SetLink($equipment1->image2->GetLink());  
}  
??
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
bas
Posted: 08/07/2008, 4:00 PM

If there is a value in image2 - replace image1 with value stored in image1
This works OK but not what I want.

Actually I want the Inage LINK (iamge1_src) to be replaced with value in
image2 field

"wkempees" <wkempees@forum.codecharge> wrote in message
news:5489b7b0eb2b2a@news.codecharge.com...
> if ($equipment1->image2->GetLink()) {
> $equipment1->image1 ->SetLink($equipment1->image2->GetLink());
> }
> ??
> _________________
> Origin: NL, Timezone GMT+1 (Forumtime +9)
> CCS3/4.01.006 PhP, MySQL (Vista/XP, XAMPP)
>
> if you liked this info PAYPAL me: http://donate.consultair.eu
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

bas
Posted: 08/07/2008, 4:14 PM

That did it...

sorry I misunderstood your reply - I that you were asking why I was doing
this !!!
Re-Read you reply and noticed the changes!

long day - bed time

Acually - I want the field value of image2 to got the Image1 link so...

if ($equipment1->image2->GetLink()) {
$equipment1->image1 ->SetLink($equipment1->image2->GetValue());



"wkempees" <wkempees@forum.codecharge> wrote in message
news:5489b7b0eb2b2a@news.codecharge.com...
> if ($equipment1->image2->GetLink()) {
> $equipment1->image1 ->SetLink($equipment1->image2->GetLink());
> }
> ??
> _________________
> Origin: NL, Timezone GMT+1 (Forumtime +9)
> CCS3/4.01.006 PhP, MySQL (Vista/XP, XAMPP)
>
> if you liked this info PAYPAL me: http://donate.consultair.eu
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

wkempees


Posts: 1679
Posted: 08/07/2008, 4:23 PM

HAHA

I was just going to ask if you read close enough.
Sorry will be more elaborate next time.

Walter



_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.