I previously asked a question about back end development, I've been working using the solutions provided but I've hit a snag. I understand that I can create tables in an Azure database, and I can add entries to these tables using Microsoft Database studio.
My problem now is, I'm making a cross platform application that supposed to access these data and display them on the screen of the app.
The table has two columns, "Key" and "Text"
The app starts by loading an array of buttons, each button is assigned a key from the table in order and shows an snippet of the associated "Text". When clicked they open a new page showing the full text on the page.
It sounded easy enough but I don't know how to implement it. What I had in mind was something that looks like, forgive, this is just a rough illustration:
//each button is some sort of class
for (int i=1; i< Table.length; i++){
create button
button.key=i;
button.text=table[i].text;
}
//each button has an onclick method
void onClick(){
open page with text box
textbox.text=button.text
}
if this was all arrays, I could probably do this but with tables, I have very little idea what to do. I'd really appreciate some help with this.