locked
Questions on Validation rules with Modal and popups RRS feed

  • Question

  • I am working on my first ever application within Lightswitch.


    I am working on creating an Inventory system that is coded in VB.net

    currently I can add/edit and delete records. I have moved on to working on the validation for the  modal windows, which are all custom modal windows. I am using comboboxes and textboxes on the modal window. The comboboxes are populated through the property entity relationships that was created.  I am currently having some issues working out the validation rules for my modal window controls.

    Any insights and information would be helpful as I  have not been able to find many references to creating these validation rules.

    Thanks

    DW

    Tuesday, June 17, 2014 7:05 PM

Answers

  • Validation is usually done by the Business Logic layer, the Server project.

    Open an entity in the Server project. Select a property on that entity, click the down arrow on the Write Code button and select the PropertyName_Validate event.


    Simon Jones
    If you found this post helpful, please "Vote as Helpful". If it actually answered your question, please remember to "Mark as Answer". This will help other people find answers to their problems more quickly.

    • Proposed as answer by Simon Jones [MSDL] Saturday, June 21, 2014 9:52 AM
    • Marked as answer by Angie Xu Wednesday, June 25, 2014 7:14 AM
    Tuesday, June 17, 2014 9:36 PM