locked
Help Deploying a Combobox in LightSwitch RRS feed

  • Question

  • Hi :)

    My problem is.. I want to deploy a combobox picking a "Empresa" item and then in the combobox "Sucursal" deploy the information from each "Empresa" i dont know if u guys understand me :$ , my native language is not english, sorry.

    But i hope you help me with this problem.

    Friday, May 3, 2013 9:39 PM

Answers

  • I suppose that the entity Empresa (Enterprise) is related to the entity Sucursal (Branch) in a one-to many relationship? This means that one Empresa can have many Sucursales and that one Sucursal must belong to one Empresa? If this is the case then what you need are nested autocomplete boxes. I found this article: http://dotnettim.wordpress.com/2011/03/20/lightswitch-nested-autocompletebox-for-data-entry/ Give it a try. Translation: Supongo que la entidad empresa está relacionada con la entidad sucursal a través de una relación de uno a muchos? Esto significa que una empresa puede tener muchas sucursales y que una sucursal debe pertenecer a una empresa? Si este es el caso lo que necesitas se denomina autocomplete boxes anidadas. Encontré este artículo: http://dotnettim.wordpress.com/2011/03/20/lightswitch-nested-autocompletebox-for-data-entry/ Pruébalo.
    Tuesday, May 7, 2013 12:04 PM

All replies

  • I suppose that the entity Empresa (Enterprise) is related to the entity Sucursal (Branch) in a one-to many relationship? This means that one Empresa can have many Sucursales and that one Sucursal must belong to one Empresa? If this is the case then what you need are nested autocomplete boxes. I found this article: http://dotnettim.wordpress.com/2011/03/20/lightswitch-nested-autocompletebox-for-data-entry/ Give it a try. Translation: Supongo que la entidad empresa está relacionada con la entidad sucursal a través de una relación de uno a muchos? Esto significa que una empresa puede tener muchas sucursales y que una sucursal debe pertenecer a una empresa? Si este es el caso lo que necesitas se denomina autocomplete boxes anidadas. Encontré este artículo: http://dotnettim.wordpress.com/2011/03/20/lightswitch-nested-autocompletebox-for-data-entry/ Pruébalo.
    Tuesday, May 7, 2013 12:04 PM
  • Thank you so much, that blog really helped me :)


    But.. I have a problem, when im deploying information in a autocompletebox, is showing data of the same table, like this http://puu.sh/2OGKn.png and i dont know how to fix it :c .. Can someone help me with my problem?

    Thank you so much.
    Tuesday, May 7, 2013 3:10 PM
  • Please send a diagram showing your entities relationships.
    Thursday, May 9, 2013 2:13 AM
  • Empresa:  http://puu.sh/2PXYx.png

    Sucursal:  http://puu.sh/2PXYZ.png

    OrdenCompra:  http://puu.sh/2PXZs.png

    DetalleOrdenCompra: http://puu.sh/2PXZT.png

    Thursday, May 9, 2013 3:51 PM
  • For some reason I miss your post.  Sorry for that.

    Why are you relating Empresa with DetalleOrdenCompra?

    What is the meaning of Region in relation to Empresa and Sucursal?

    Monday, May 27, 2013 12:53 AM
  • Hi Jean :)

    I finally fixed my problem in this link: Nested AutoCompleteBox for Data Entry

    Thanks for the interest to help me :) , really appreciate it

    Monday, May 27, 2013 7:24 PM
  • OK.

    Me alegra que encontraras una solución a tu problema.

    Saludos

    Jean Pierre Chauny

    Thursday, May 30, 2013 5:56 PM