Marketcircle Home Products Support Blog Forums Partners Store
Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Building Reports and Print Layouts    Changing images in Reports
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Journeyman
Picture of Yannick Durussel
Posted
Hi mates,

I've built a report which works well but I want to improve one part. The report's behavior is Projects.

In our workflow, a report is printed for each project. Each project refers to one different picture. So which source should I choose to be able to print each time a different picture located on the hard disk?

Here are the sourcesn I can choose in the Report part:
- Static
- Path from key
- Absolute path
- Image from key
- Named
- Mapped Name

It is not a problem for me to name manually or with a script the picture I want to see in the report. So the way to the picture will be always the same and the name of the picture too.

Does anyone have a solution?

I hope my request is clear enough... Sorry I'm not a native speaker...
Don't hesitate to ask questions!

Best regards from the coldy Switzerland.
 
Posts: 58 | Location: Switzerland (French Part) | Registered: August 26, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
You can do this by using a 'pre-extraction' script in the Image element.

In the pre-extraction script do something like this:

"this gets first parent report data object that has an attributed called name"
"the name of a project is identified by the name attribute"
project_name := element valueForKeyPath:'name'.

the_full_path_to_the_image := <build the full path based on the name from the object - see f-script guide>.

element setTypeCode:3.
element setImageSourceKey: the_full_path_to_the_image.



The type code is important as it identifies that the image source key is a full path and not something else.

NOTE: these are private calls and while we will most likely not change these, we reserve the right to in the future.
 
Posts: 940 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Building Reports and Print Layouts    Changing images in Reports

 

Refund Policy | Privacy Policy | Site Map | About Marketcircle
©2008 Marketcircle Inc. All rights reserved.
webmaster@marketcircle.com