0

Using the Details Master pattern. When the form initially loads it shows a grid. When clicking on the grid the details are displayed, and is working perfectly fine. The issue with this design pattern is the first record is always loaded so when I look at the cursor the first record is showing.

I'm populating a two list view controls through code (one is available items and the second is selected with buttons to move the items back and forth between the controls) and my issue is when I press "New" the detail page is displayed but the list view is populated for the first record selected. I need a way to know when "New" is pressed I can clear out the list view selected control and just populate the available values.

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
maguy
  • 1,599
  • 1
  • 15
  • 26
  • I'm not sure I understand, could you add a screenshot? Also take a look at the `OnCreating` event of the data source, that should be triggered by the "New" button. – FH-Inway Dec 18 '18 at 16:20
  • I looked into the OnCreating as well and no luck, but I ended going a different direction and creating my own "New" button that calls a menu item to call a form as a popup similar to how the form when entering a new customer works. Then I turned off the "New" button and now my code works fine without have to deal with the one screen containing both forms logic. – maguy Dec 19 '18 at 21:53

1 Answers1

0

I ended going a different direction and creating my own "New" button that calls a menu item to call a new form as a popup similar to how the form when entering a new customer works. Then I turned off the "New" button and now my code works fine without have to deal with the one screen containing both forms logic.

maguy
  • 1,599
  • 1
  • 15
  • 26