Backendless Support
 
Answered

how can i insert a row of data into an entity in backendless from vb.net? I am new to backendless

I have created a table in my backendless application named "tbl_test" .it consists of columns ID,NAMe,etc.

now I need to insert and retrieve from this table from my vb.net application.

backendless reference dll already added. backendless.initapp() also entered..

please help me out in this problem as I am very much new to the backendless

Leave a Comment

Comments (11)

photo
1

Hello,

I am not that good with VB, here's an example with C#:

To insert a data object into a table called "Contact" you would do the following:

  1. Dictionary<string, object> contact = new Dictionary<string, object>();
  2. contact[ "name" ] = "Jack Daniels";
  3. contact[ "age" ] = 147;
  4. contact[ "phone" ] = "777-777-777";
  5. contact[ "title" ] = "Favorites";
  6. Backendless.Data.of( "Contact" ).Save( contact );

To load objects from "Contact", you do this:

  1. BackendlessCollection data = Backendless.Data.of( "Contact" ).Find();

Regards,

Mark

photo
1

Thanks Dear..

It helped me.. Thanks Alot...

photo
1

Thanks Dear..

It helped me in inserting data .. Thanks Alot...

But How can I load objects from backendless??? please suggest me

photo
1

The following API returns a collection of data objects from the specified data table:

BackendlessCollection data = Backendless.Data.of( "Contact" ).Find();

photo
1

Please suggest me to retrieve a data from a backendless entity and display in a msgbox or textbox in vb.net or c#.. as I am new to this backendless Please help me out. From the above answer I couldnt reach my target. please help me out

photo
1

A backendless entity is either a .NET Dictionary or a custom class that you wrote. Getting data from dictionary or an object would work the same way if that object or dictionary didn't come from backendless.

Are you able to load data back from the server? Can you see it in a debugger?

photo
1

can I get a data using backendlessdataquery?

photo
1

I am not able to load data back from the server.. That is the thing I need right now.. How we can load data back from server.. ?

photo
1

Hi Riayz,

Yes, you can use BackendlessDataQuery to retrieve the data with conditions.

Do you receive any errors?

photo
1

Hi Sergey,

I really dont know how to use BackendlessDataQuery.. Please advice me with an example.

photo
1

You can refer to .NET documentation examples, I suppose. Especially, here you can find an example using BackendlessDataQuery: https://backendless.com/documentation/data/dotnet/data_search_and_query.htm

photo