Create a
Master-Details (One-to-Many) Screen in a LightSwitch Application step by step :
First of all we create tables like Customer,
OrderDetail, OrderHeader, Product and then we add screens like search screen, details screen.
Step 1: Click the customer detail
screen->click Add OrderHeader likes below image.
Step 2. Now Add OrederHeader.
Step 3. Now select List.
Step 4. Go to OrderHeader summary
property->select OrderDate.
Step 5. Now go to OrderDetail summary
property->select price.
Step 6. Run application->Open any
customer->click + sign in OrderHeader->Fill data->ok->save.
Step 7. Design screen->go to OrdrHeader
property->check show as link->save.
Step 8. Add screen->detail screen->select
screen data (OrderHeader)->ok.
Step 9. Now select customer
summary->check show as a link likes below image.
Step 10. Run application->open any
customer->click datetime.
Step 11. Click + sign->fill
data->ok->save.
Step
12. Design screen->add selected item->save.
Step 13. Now you can add or delete data
at run time and you can see product details.