2017년 1월 15일 일요일

text file and storing


I have started the app with a txt file and I am at a point that I am wondering if it is the right way to go.  I am looking for your thoughts on the best way to do the following.

The user can input the title and the address of an item, I would like to be able to take this information and get a call to an API but I only need the address to do this.  Currently when I list the input information it will give me a list like the following:

title1: 12321u78941dff2490fda18
title2: 494239870421hfe9023980
tile3:  32432432DFDA49KDfgjkd

So when I do the call to the API the title1: needs to be stripped.  Have not figured out how to do this yet.  

Also what I would like to do is to have the user be able to delete just one of the inputs, example delete title2: 494239870421hfe9023980 only.  I have created a listpicker that will list all the titles as show above, so the user can select just one, but not sure how to delete just the one.

Can this be down with a txt file?  If so please give your recommendations, thank you.

--
So when I do the call to the API the title1: needs to be stripped.  Have not figured out how to do this yet.  
use the split at spaces block, which returns a list having 2 items in your case, then seelct the 2nd item to get the address

 I have created a listpicker that will list all the titles as show above, so the user can select just one, but not sure how to delete just the one.

use a list and the remove list item block, see also

-- 

댓글 없음:

댓글 쓰기