Add primary key to form RRS feed

  • Question

  • Hi, I'm Raúl from Argentina. I don't speak English very well, but I'll try to explain my problem.

    I want to add a primary key in the form of an entity, but this doesn't appear on the list of attributes.

    How can I do to add fields of the system in the forms?
    Ahora en castellano por si alguien puede ayudarme:
    Necesito agregar la primary key de la entidad en el formulario de la misma. Cuando voy a la lista de atributos que puedo agregar, esta no aparece. Tampoco puedo referenciar un campo a la primary key.
    La idea es usarla de ID de la instancia de la entidad, por ejemplo, como "numero de formulario".
    ¿Hay alguna forma de poder usar ese atributo en el formulario?
    Wednesday, December 26, 2007 3:07 PM


All replies

  • Why do you want to add the primary key to the form ? You can access the value in client script:




    Wednesday, December 26, 2007 8:36 PM
  • Because I need to show an ID in the form. The primary key is a good ID.
    How can I do to capture the entity's PK and to show it in the form and in the view?
    Thursday, December 27, 2007 8:24 PM
  • Unless you use Javascript to print the ID on the screen (which is unsupported by Microsoft and may not survive an upgrade or service pack), there is no other supported way of doing that.



    Oshri Cohen
    Thursday, December 27, 2007 8:29 PM