leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Connecting to xml on local storage

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Connecting to xml on local storage

Hi Leonardo,

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

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Connecting to xml on local storage

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Connecting to xml on local storage

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

Paste XML data in "Sample Echo Response" field.

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Connecting to xml on local storage

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Connecting to xml on local storage

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

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Connecting to xml on local storage

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.
Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Connecting to xml on local storage

  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.
leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Connecting to xml on local storage

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Connecting to xml on local storage

Hello! Could you send us mapping screenshot?

Return to “Issues”