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

 Variables in img src

Print topic Send  topic

Author Message
teke507

Posts: 69
Posted: 04/13/2007, 8:56 AM

I have an image source that sends url data to create a barcode image
i need my data= to be a variable of the serialnumber from a previous page...
that page the user will input a record on input in will rediredt them to a page formated to print out a label.....the image link creates the bar code but how do i put my serial number as the value to convert

<img src="http://www.eazyservices.com/barcode.asp?eMail=my@domain.com&BarcodeType=4&ImageType=1&Data=12345">
View profile  Send private message
matheus

Posts: 386
Posted: 04/13/2007, 10:04 AM

Custom Code.
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
fady005


Posts: 115
Posted: 04/16/2007, 1:18 AM

You have to use Session storage to pass the variable for one page to another.
_________________
Be inventive !
View profile  Send private message
teke507

Posts: 69
Posted: 04/16/2007, 7:24 PM

Thanks that i understand my question is more directed to what syntax to use...i do not know java...i should have specified in my question....i have a session that stores the variable and passes it to the page but how to i call the variable in java variable is called Serial_Num_Ses
View profile  Send private message
fady005


Posts: 115
Posted: 04/17/2007, 12:25 AM

Ok, actually we're looking for the solution here :
http://forums.codecharge.com/posts.php?post_id=86580
Maybe you can help us finding it...
_________________
Be inventive !
View profile  Send private message
teke507

Posts: 69
Posted: 04/17/2007, 5:15 AM

ok if i find anything out ill post on both
View profile  Send private message
fady005


Posts: 115
Posted: 04/19/2007, 7:15 AM

Try this it worked with me...
Create a label and put in it's Before Show Event this Code :
e.getControl().setValue(SessionStorage.getInstance(e.getPage().getRequest()).getAttribute("your_variable"));
Where "your_variable" is the name of your Session Variable.
Then you insert an image... select it and then go to the Html source... change the source of the image (which is "Image1" by default) by the name of the label (which is "Label1" by default) so you'll have something like :
<img src="{Label1}">
When you pass to the code source it will give you an alert that it doesn't find Image1 and will ask to delete it... click yes and publish....
_________________
Be inventive !
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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