LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fetching and updating data from database

Solved!
Go to solution

Hey

I'm new to labview. I'm trying  some database exercises, in that i want to create a database and show it on the table below also Update and fetch the data from it. for fetching the data : when i click on any cell of the table ,the entire row value should fetched in the given entries. and for updating the data: i need to click on update button to update the entries in the particular cell of the table.Also as i create new entry the Sr. no column should be increment.

i'm done something but not getting appropriate result.i'm only able to fetch first row data and with update section i'm getting error. if anyone can help me in that.

here my attached file both front panel and block diagram.

0 Kudos
Message 1 of 10
(4,366 Views)

Hello

I haven't seen the logical flow of your VI completely. But for easily fetching, you can use multicolumn listbox and change selection mode to Highlight entire row and use property node "Strings[]" to update and read the listbox.

 

Multicolumn Listbox.JPG

Will get back to you with something else. Hope this helps

 

-Rahul

Hit KUDOS for Thanks

Message 2 of 10
(4,348 Views)

thanks for reply but i'm still not able to fetch data on clicking on particular cell of a row. 

0 Kudos
Message 3 of 10
(4,282 Views)

Okay I'm done with fetching the data ...but still left with updating the selected row. How can i do this part please let me know. i have attached my VI here.

0 Kudos
Message 4 of 10
(4,273 Views)

Hello

Good work for completing the fetching part. While using DB Tools Update.vi to update, it is not required to flatten the cluster(set the boolean to false) and try updating the multicolumn listbox (from the DB) after the DB update operation.

 

-Rahul

Hit KUDOS for Thanks

 

0 Kudos
Message 5 of 10
(4,256 Views)

Hey

I'm not using cluster, my input entries are simple strings. I have to update a selected row which i'm still not able to do. I'm getting error "Object 0x000000 is not valid." every time .....please help me

my vi is attached above.

0 Kudos
Message 6 of 10
(4,232 Views)

i'm not getting any solution. please help me out. I'm getting same error every time. I'm frustrated now.Is there any difference of using connection string and UDL. In my case i'm using connection string as a path to open database, i cannot use udl as per my task. please help to find solution 

0 Kudos
Message 7 of 10
(4,210 Views)
Solution
Accepted by skyIsNotLimit

I have completed my first task on database. Still there are lots of things to learn.Hoping i will get best support from this forum.

Here is my solved VI, If anyone want to refer.

0 Kudos
Message 8 of 10
(4,178 Views)

Are you open to a little constructive criticism?

Your code is well organized, but could use a bit more tidying-up...

 

image.png

 

Also, you are using a shift register (in the above picture) but you are constantly over writing it. Plus, you never actually use it for anything else.

You should also probably make a sub-vi out of your quick-n-dirty 2D sort since it is used in multiple states.

 

Hope this helps 🙂

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 9 of 10
(4,160 Views)

Definitely, i'm open to all sort of constructive criticism of my code as they build my learning.

I'm a learner and wants to improve.I really appreciate you taking the time to talk about the things that haven't cross my mind.I surely see to it and improvise.

Thank you.

0 Kudos
Message 10 of 10
(4,149 Views)