Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Disconnected Data: Help!

Disconnected Data: Help!

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdatabasehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rommel the iCeMAn
    wrote on last edited by
    #1

    Hello world :cool: I've written an app that employs disconnected data via datasets. I had a situation lately where a user modified over 10 records (out of a total of 25 contained within my dataset). When the user tried to update the datasource with their changes some of those records violated database rules. The user then had to manually scroll thru the dataset SEQUENTIALLY to see which records caused the update to fail. How do I modify the app so that in such a situation it automatically displays the first record that causes the update to fail? If it is any help, the app was built using the Data Form Wizard in VB.NET. Rommel the iCeMAn, Computer Programmer, Barbados, West Indies.

    R 1 Reply Last reply
    0
    • R Rommel the iCeMAn

      Hello world :cool: I've written an app that employs disconnected data via datasets. I had a situation lately where a user modified over 10 records (out of a total of 25 contained within my dataset). When the user tried to update the datasource with their changes some of those records violated database rules. The user then had to manually scroll thru the dataset SEQUENTIALLY to see which records caused the update to fail. How do I modify the app so that in such a situation it automatically displays the first record that causes the update to fail? If it is any help, the app was built using the Data Form Wizard in VB.NET. Rommel the iCeMAn, Computer Programmer, Barbados, West Indies.

      R Offline
      R Offline
      R Thomas 0
      wrote on last edited by
      #2

      I have a suggestion that u might wanna look at, what you can do is to highlight those records that caused the problems and let user rectify. BTW : I am curious, how can u let user update fields that can cause DB error? wanna leave an example here? thx "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

      R 1 Reply Last reply
      0
      • R R Thomas 0

        I have a suggestion that u might wanna look at, what you can do is to highlight those records that caused the problems and let user rectify. BTW : I am curious, how can u let user update fields that can cause DB error? wanna leave an example here? thx "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

        R Offline
        R Offline
        Rommel the iCeMAn
        wrote on last edited by
        #3

        You're thinking along the same lines as me. However, the question is, how does one determine which records are the rogues? For example, if we are sending 5 records back to the datasource but one has caused a concurrency violation, how do we know which one has caused the violation? :confused: As for your question I think it's just a case of highlighting the field (on the data-entry form) that caused the error, allowing the user to correct the data, then allowing them to save the data again (via the appropriate command button on your form). Rommel the iCeMAn, Computer Programmer, Barbados, West Indies.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups