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
wolfgang  
#1 Posted : Tuesday, September 1, 2015 10:52:03 PM(UTC)
wolfgang

Rank: Advanced Member

Groups: Registered
Joined: 6/23/2015(UTC)
Posts: 59
Germany

Thanks: 5 times
How to change image sources dynamically via XPath. Any advice?
Thanks
bbv  
#2 Posted : Wednesday, September 2, 2015 10:09:16 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 483

Was thanked: 81 time(s) in 81 post(s)
Like any other property, which can be entered either directly or via XPath, simply click the XPath button in the toolbar above
bbv attached the following image(s):
Capture.PNG
wolfgang  
#3 Posted : Wednesday, September 2, 2015 11:02:00 AM(UTC)
wolfgang

Rank: Advanced Member

Groups: Registered
Joined: 6/23/2015(UTC)
Posts: 59
Germany

Thanks: 5 times
Sure, but is it sufficient to change the source name? Do I have to import (embed) such images anyway? And which format should I use for the source name?
Thanks
bbv  
#4 Posted : Wednesday, September 2, 2015 5:40:46 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 483

Was thanked: 81 time(s) in 81 post(s)
I believe everything is covered in documentation. Is something unclear?
wolfgang  
#5 Posted : Wednesday, September 16, 2015 10:21:18 AM(UTC)
wolfgang

Rank: Advanced Member

Groups: Registered
Joined: 6/23/2015(UTC)
Posts: 59
Germany

Thanks: 5 times
It's unclear how to change source path of embedded images. I want to exchange images (used as icons) dynamically. Those images should be "embedded" within design file. Using XPath to determine or change image source the "embedded" option will be disabled automatically.
How to change source path of embedded images?
Thanks
bbv  
#6 Posted : Wednesday, September 16, 2015 11:06:55 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 483

Was thanked: 81 time(s) in 81 post(s)
This is correct: to embed image within design, MobileTogether Designer must know which image to embed, therefore XPath won't work.

I guess the purpose of image embedding was to eliminate load times? You can embed multiple images in a single XML file (you will need XMLSpy for this, which will pack them for you as base64). By setting Image Source Type to "base64" you can then access them directly from XML nodes.

Attached is small sample to illustrate
File Attachment(s):
Flags.mtd (6kb) downloaded 66 time(s).
Flags.xml (3kb) downloaded 66 time(s).
thanks 1 user thanked bbv for this useful post.
wolfgang on 9/16/2015(UTC)
wolfgang  
#7 Posted : Wednesday, September 16, 2015 11:52:50 AM(UTC)
wolfgang

Rank: Advanced Member

Groups: Registered
Joined: 6/23/2015(UTC)
Posts: 59
Germany

Thanks: 5 times
Thanks for clarification. Yes, the purpose is to make images available without accessing MT server first.
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.