Hello devs.
Let me explain my problem beyond this title.
I already created one app in which i call data from Airtable. and it works fine.
I am using ListView with images and open that data in another screen, which displayed respected data in other screen.
But, here comes the limitation.
I only can show Image , title and subtitle from my ListView with images. i changed to show column " data " with replacing column " subtitle " and now it is showing data.
But, i want to implement admob ads or some graphics in between post. so want to seperate that data from specific point in that label. and show remaining data in other label ( in which i want to call data from column " data2 ".
But , i am unable to do that. here are my blocks.
in ListView Screen ( Calling data from Spreadsheet - which works fine ) :
.
Image 2 - another image call from column in spreadsheet ( but from same row ) , label3 - another data called from another column ( but from same row ).
actually when i am calling data in display screen then for label 2 i have to call value4 ( which i set for data 5 ) and it shows me error of " cannot retrive data from calue 5 to the list of 3 items ) something like that.
you have to send data from list selection, and you are sending 3 items in start value so how you will get any other? unless you send more data in start value like more items in index,4,5,6, so you can set them for next images or labels
This is the Exact problem Pro Coder.
then how can i call other columns in listview with images spreadsheet. because i want to display data outside that list which cannot be shown in listview.
something like that. but, not completely like that.
Because , it is very hard to put many things in HTML in Spreadsheet so i just wanted to put that image in separate column and call it when item is clicked.
like what is that you are getting that image from list when you are clicking then what will be next? what will be separate column? do you want to load more images below that for same item, like one item having more images than one.
method : one screen one while opening screen2 also store index of selected item , so you can use that to get data with help of spreadsheet on screen 2(using get cell) like when screen2 opened set all things which you get from screen1 and also call get cell with help of index which you need to get from screen1. and if you dont get that then i need your aia to explain blocks. so send me that in private message.
in the block of make a list add one more item in which you will pass "get position + 1"
and then it will open data1 screen
there you have to create variable
=>switcher and initialize to 1.
=>img2data initialize to nothing.
=>data2content initialize to nothing.
Then
On screen initialization,
in above block add or on screen initialization
=>Use get cell from airtable in which column name will be data2 and index to “Select item from list in which first is get start valu and second index is 4”
=>when you got cell -> Check condition if switcher is 1 then store data2 value to data2content variable and set switcher to 2. and again call value but this time only coloumn name will change to image2.
=>now, in got cell block add 1more condition and store got value to img2data variable. after getting value you can use it to set picture wherever you want.
Conclusion
on first get cell you got value of data2 and on second get cell you got value of second image.
now use it to wherever you want.