Page 1 of 3

Connecting to xml on local storage

Posted: Thu Mar 14, 2013 7:32 pm
by leonardo

Hi. I love tiggzi, it's really cool and this team is amazing!
I'm testing out tiggzi with an xml file on my disk. So, I'm using an xml saved ad names.xml. it is like this:
""
""
" "
" Rodrigo Mull"
" Mull, Rodrigo"
" Born on Desert Storm day"
" Rodrigo Mull.gif"
" "
" "
" Bell Smart"
" Smart, Bell"
" Invented flubbo"
" Bell Smart.gif"
" "
" "
" Grace Ander"
" Ander, Grace"
" Kind hearted"
" Grace Ander.gif"
" "
""

My problems:

  1. Couldn't connect the xml file. In ItemService I put: C:\Test Folder\Ttest\names.xml
    In Test: I got the message: "Test successful" and an error message as well: "URL has incorrect format" and nothing showed.

    What I want to do is to use the xml to populate the names with the corresponding pictures from the info in the xml and the pictures in the same folder. I have on the screen a grid with 2 columns. Column 1 holds an image and column 2 has two labels that will containg the name and info of the person.

    Please help.


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 7:55 pm
by Kateryna Grynko

Hi Leonardo,

There is Echo tab in Rest Service parameters. You can place XML data in text field to make data available for app.


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 8:05 pm
by leonardo

Sorry I don't understand. I have a very long xml data. Do you mean that I should copy and paste it somewhere? Where exactly do I need to put the xml and How do I connect it to the gui elements?


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 8:15 pm
by Kateryna Grynko

This should be helpful:
http://docs.tiggzi.com/documentation/...

Paste XML data in "Sample Echo Response" field.


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 8:37 pm
by leonardo

Katya, thanks.
I pasted teh xml data in "Sample Echo Response" field and I am on the right path for now.
But let me ask you, the app that I will eventually make will be a standalone. The data and everything will not be online but on the user's phone. How will the app connect to the xml when the echo is turned off, as the document you referred me to suggests.


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 9:16 pm
by Kateryna Grynko

If Echo is enabled then URL address will be used to get data.


Connecting to xml on local storage

Posted: Thu Mar 14, 2013 9:40 pm
by leonardo

Good. I have it working except for 2 things:

  1. Only the first name is displayed instead of all the 3 on the list
  2. How can I get the gif image to display for each name -- the images are in the url.

Connecting to xml on local storage

Posted: Thu Mar 14, 2013 10:01 pm
by Kateryna Grynko
  1. Looks like you have an incorrect mapping. You should create a container and map array to this container to display all the data from XML file. This may be helpful: http://docs.tiggzi.com/tutorials/buil... (Mapping UI and Service section)
    1. Image component has Asset property that may be used in Mapping to set custom URL.

Connecting to xml on local storage

Posted: Fri Mar 15, 2013 1:00 am
by leonardo

Ok, I'm not sure what I'm doing wrong here. I followed the example that you pointed me to with my data. I'm still getting only the first node data of the xml. When I click the search button as in the example, it gives me just the info on the first node, regardless what is typed in. I tried another project to pull all the names in the xml when the Startscreen loads. But it is still the same. Do I need to put a code to filter or give all the type of info that I am looking for?


Connecting to xml on local storage

Posted: Fri Mar 15, 2013 6:35 am
by Maryna Brodina

Hello! Could you send us mapping screenshot?