-1
I am having difficulties to accomplish this task, need to fetch data that are stored via mysql
on a website and display them on my app being developed on Xamarin Forms
, for this I need to make a webservice
. I have the following context:
In my XAML file
<Label Text="Cliente" Grid.Row="0" Grid.Column="2" FontAttributes="Bold" />
<ListView x:Name="coluna2" Grid.Column="2" Grid.Row="1" SeparatorColor="White"
SeparatorVisibility="Default"/>
I created a class called Clienterequest
public class ClienteRequest
{
public string cpfcnpj { get; set; }
public string nomefantasia { get; set; }
}
and in my codeBehind is so provisionally
List<String> itens2 = new List<String>()
{
"dados do banco"
};
coluna2.ItemsSource = itens2;
Here would be the address from where the data will be consumed:
And here would be the url of the given function:
data/_get clientescolder.php
How would it look for me to pass these urls and recover those data by displaying them in listview?
exactly, I did it and everything was ok
– WPfan