Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
X.MAQUET  
#1 Posted : Tuesday, May 26, 2015 3:02:49 PM(UTC)
X.MAQUET

Rank: Newbie

Groups: Registered
Joined: 5/7/2015(UTC)
Posts: 7
France, Metropolitan
Location: TOURS

All my images are in a global ressource folder, and path in an attribute of a xml-data-source...how can I call my image with a xpath/xquery expression, in the "Image Source" field of my control ?...It's seem to be easy, but... :-(
AFC  
#2 Posted : Thursday, May 28, 2015 8:02:14 AM(UTC)
AFC

Rank: Administration

Groups: Registered, Administrators
Joined: 9/15/2014(UTC)
Posts: 133
Austria

Was thanked: 18 time(s) in 18 post(s)
Hi X.MAQUET,

Quote:
...and path in an attribute of a xml-data-source

If you have the full file path in an attribute, you can simply drag&drop the attribute from the XML-data-source onto the image control and it will be taken as "Image Source" url at runtime.

Quote:
how can I call my image with a xpath/xquery expression, in the "Image Source" field of my control ?...


If you want to use an xpath/xquery expression as image url, you can select the "Image Source" property in the "Styles&Properties" window and press the "XPath" button in the toolbar of that window (instead of using the "..." beside the "Image Source" property to open the file dialog).

Hope this help, but I'm not quite sure why you need the global resources.
In case the described solutions are not enough and you additionally need global resources, please tell us a bit more what you would like to solve.


Altova MobileTogether Experts
X.MAQUET  
#3 Posted : Thursday, May 28, 2015 9:08:01 AM(UTC)
X.MAQUET

Rank: Newbie

Groups: Registered
Joined: 5/7/2015(UTC)
Posts: 7
France, Metropolitan
Location: TOURS

Hi !
It's all right now !!
I had a mistake in the path of my images...the image is contained in in folder named like the image (.../image.png/image.png)

My project :
- my sources are made of xml files(for the text) and images, wich describe a specific contain
- i want to transform my sources in a MTD solution, to show the contain on mobiles ; I want the contain persist on mobile, because the users will be out of network lots of time...

thanks a lot, and sorry for my english...mapped from french ;-)
AFC  
#4 Posted : Thursday, May 28, 2015 10:17:54 AM(UTC)
AFC

Rank: Administration

Groups: Registered, Administrators
Joined: 9/15/2014(UTC)
Posts: 133
Austria

Was thanked: 18 time(s) in 18 post(s)
Hi X.MAQUET,

For completeness:
In case you want to combine global resource folders with XPath, you can do so by specifying an XPath, which evaluates to an Altova global resource URL, e.g.:

XPath: "altova://folder_resource/AliasName/MyImage.png"

where altova://folder_resource/ must be the prefix for folder resources and AliasName is the alias name of your global resource folder/base URL.


Altova MobileTogether Experts
X.MAQUET  
#5 Posted : Monday, June 1, 2015 11:19:25 AM(UTC)
X.MAQUET

Rank: Newbie

Groups: Registered
Joined: 5/7/2015(UTC)
Posts: 7
France, Metropolitan
Location: TOURS

Hi,

Can I use this, to load a default file in a data source ? :

"altova://folder_resource/FusilAssaut/$moduleUri/sp:module/@sc:refUri"

where "$moduleUri/sp:module/@sc:refUri" is an URL for my Global resource folder (ie : "FA_Fusil d'Assaut/module A/module_A.xml")

when I run the simulated workflow...all is crashed.
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.