I am very new to Parse.com and it may not seem to get the data to work. I tried an asynck method, which was a foreach, but it seems that never to do such a thing, then I tried one with a ParseQuery
, but that does not work too For example:
Parsquin & lt; Parse object & gt; Query = ParseObject.GetQuery ("Horse"); String name = query.get & lt; String & gt; ("Name"); Debug.lightline ("horse:" + name); Ideally I would like to get the all record model
and then loop it to fill the list view. . Now I have got a hard sample, but since I do not get all the records from the table in the list, I have no clue how to continue.var listView = new list view {ROHEET = 40}; ListView.ItemsSource = new string [] {// It should be dynamically filled with the field 'name' from model 'horse' .. "buy pear", "buy orange", "buy mango", "buy apple" , "Buy Bare"}; Content = new stack layout {vertical options = layout options. Fill and expand, child = {listView}}; Can anybody give me a helper hand here please? I follow the guide, but those choices do not seem to work.
Update: So far, I thank every date for answering every phone call. Now I get an error when I want to fill the inventory:
public async zero getHorsesFromDb () {ParseQuery & lt; ParseObject & gt; Query = ParseObject.GetQuery ("Horse"); IEnumerable & LT; ParseObject & gt; Horses = wait for query. Fund Async (); Var listView = new ListView (); & Lt; String & gt; Horse list = faucet; Exotic (Pars object horses in horses) {String name = horse.get> lt; String & gt; ("Name"); HorseList.Add (name); Debug.lightline ("horse:" + name); } ListView.ItemsSource = Horselist; See Using // ItemTap List. Itemat + async (sender, e) = & gt; Wait for {display alerts ("tape", e. Item + "line was taped", "ok"); Debug Virusline ("Tape:" + E. Items); (ListView sender). Selected Iitem = null; Deselect // queue}; }
Error on my screen:
The current stack frame was not found in the loaded module. Can not show source for this place & Gt; 0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internalC #
the links you follow How to obtain a single row data ( ParseObject
) from a specific objectId
query (which is the value xWMyZ4YEGZ
in that query)
On the other hand, to obtain multiple rows from a table, follow the same section, it should be too easy to get all the rows (till this point there is no need to write any LINQ Interpretation is not):
Parskveyri & lt; ParseObject & gt; Query = ParseObject.GetQuery ("Horse"); IEnumerable & LT; ParseObject & gt; Horses = wait for query. Fund Async (); Exotic (Pars object horses in horses) {String name = horse.get> lt; String & gt; ("Name"); Debug.lightline ("horse:" + name); }
No comments:
Post a Comment