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. Database & SysAdmin
  3. Database
  4. master data - 'These columns don't currently have unique values'

master data - 'These columns don't currently have unique values'

Scheduled Pinned Locked Moved Database
2 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.
  • F Offline
    F Offline
    freeisgood
    wrote on last edited by
    #1

    Hi, I am working on this master data repeater and got almost everything working, i have 3 levels of categories that show correct i believe the problem is on the data that i provide through stored ptocedures then i have the items under the first level almost fine, they are showing fine under their first level category, but the second and third go all under the first instead of group nicelly under their second like correct: how it is: 1. 1. 1.1 1.1 2. 2.1 2.1 3.2 3. 2. 3.1 3. here it is how the relation goes: DataRelation relation1 = new DataRelation("STOCK_CAT_1", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Items"].Columns["CAT_LEVEL_1"]); ds.Relations.Add(relation1); DataRelation relation2 = new DataRelation("STOCK_CAT_2", ds.Tables["Cat1"].Columns["LEVEL1"], ds.Tables["Items"].Columns["CAT_LEVEL_2"], false); ds.Relations.Add(relation2); DataRelation relation3 = new DataRelation("STOCK_CAT_3", ds.Tables["Cat1"].Columns["LEVEL2"], ds.Tables["Items"].Columns["CAT_LEVEL_3"], false); ds.Relations.Add(relation3); DataRelation relation4 = new DataRelation("CAT_1toCAT2", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Cat1"].Columns["LEVEL1"]); ds.Relations.Add(relation4); DataRelation relation5 = new DataRelation("CAT_2toCAT3", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Cat1"].Columns["LEVEL2"]); ds.Relations.Add(relation5); then when i remove the false from ["CAT_LEVEL_3"], false); to create a relation, ig throws a "These columns don't currently have unique values" here is the data, can anyone spot what is wrong?:

    Items

    Items

    Items

    Cat1

    Cat1

    Cat1

    CAT_LEVEL_1

    CAT_LEVEL_2

    CAT_LEVEL_3

    STOCK_CAT_ID

    Leve1

    P 1 Reply Last reply
    0
    • F freeisgood

      Hi, I am working on this master data repeater and got almost everything working, i have 3 levels of categories that show correct i believe the problem is on the data that i provide through stored ptocedures then i have the items under the first level almost fine, they are showing fine under their first level category, but the second and third go all under the first instead of group nicelly under their second like correct: how it is: 1. 1. 1.1 1.1 2. 2.1 2.1 3.2 3. 2. 3.1 3. here it is how the relation goes: DataRelation relation1 = new DataRelation("STOCK_CAT_1", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Items"].Columns["CAT_LEVEL_1"]); ds.Relations.Add(relation1); DataRelation relation2 = new DataRelation("STOCK_CAT_2", ds.Tables["Cat1"].Columns["LEVEL1"], ds.Tables["Items"].Columns["CAT_LEVEL_2"], false); ds.Relations.Add(relation2); DataRelation relation3 = new DataRelation("STOCK_CAT_3", ds.Tables["Cat1"].Columns["LEVEL2"], ds.Tables["Items"].Columns["CAT_LEVEL_3"], false); ds.Relations.Add(relation3); DataRelation relation4 = new DataRelation("CAT_1toCAT2", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Cat1"].Columns["LEVEL1"]); ds.Relations.Add(relation4); DataRelation relation5 = new DataRelation("CAT_2toCAT3", ds.Tables["Cat1"].Columns["STOCK_CAT_ID"], ds.Tables["Cat1"].Columns["LEVEL2"]); ds.Relations.Add(relation5); then when i remove the false from ["CAT_LEVEL_3"], false); to create a relation, ig throws a "These columns don't currently have unique values" here is the data, can anyone spot what is wrong?:

      Items

      Items

      Items

      Cat1

      Cat1

      Cat1

      CAT_LEVEL_1

      CAT_LEVEL_2

      CAT_LEVEL_3

      STOCK_CAT_ID

      Leve1

      P Offline
      P Offline
      PlayByTheRules
      wrote on last edited by
      #2

      Did you read the posting guidelines? Did you take note of rule 4: Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can. Did you even notice the warning before you posted that your message was very long? You must have, because you would have had to acknowledge it. I don't supposed you really cared. That shows a complete disregard and disrespect for other people here.

      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