[CLOSED] Store and 3 Primary Key

  1. #1

    [CLOSED] Store and 3 Primary Key

    Hi,

    I have a table with a complex key. How do I set the control's tag IDProperty to store ?

    Table:

    Cod1 - Int - Key
    Cod2 - Int - Key
    Cod3 - Int - Key
    Name - Varchar

    - IDProperty="Cod1, Cod2, Cod3" ??
    Last edited by Daniil; Nov 25, 2010 at 7:10 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunatelly, store doesn't support multiple keys. I can suggest to create one field based on those id keys (value based on on values of keys). You have to do it on server side (your entity must contains combined key)
    new TestEntity{
        Cod1 = 1,
        Cod2 = 2,
        Cod3 = 3,
        Key = Cod1+"_"+Cod3+"_"+Cod3
    }

Similar Threads

  1. Replies: 3
    Last Post: Feb 21, 2012, 10:49 AM
  2. GridPanel.Store.Primary is always Null !!!
    By Mohammad in forum 1.x Help
    Replies: 6
    Last Post: Dec 13, 2011, 5:37 AM
  3. [CLOSED] Store: Is it possible to QueryBy a store with another store?
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 03, 2011, 9:38 AM
  4. [CLOSED] Gridview Primary Key
    By GmServizi in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 08, 2009, 10:08 AM
  5. Replies: 4
    Last Post: Oct 24, 2008, 12:31 PM

Tags for this Thread

Posting Permissions