Hi All,
I've been working on an administrative feature for our enterprise application (which has been a long time coming) to manage our expenses (rather than using Excel as we have for the past 3 years).
The problem I am having trouble with is there are two main tables: Expense and Expense Detail. The idea is, you have 1 expense record with many expense details. I usually have a set of controls on the form for add, edit, save, delete, cancel, etc. But since I have two active tables on the same form, if I, for example, click "Add" there is nothing to determine which table should have the record added to it. Also, if I'm editing (or adding) a record to the Expense table (controlled for navigation by a grid), I don't want the fields that are in the expense detail to be enabled when I'm performing an edit/add to the Expense table.
So the "obvious" answer seemed to be to have two sets of identical controls for the add, edit, delete, etc. functions, but I was trying to think of another application I've used where that was the case, and I couldn't come up with one. But I also couldn't find a good way to manage this issue.
I thought about adding an additional form level property called lExpenseEnabled which would be used to control the state of the expense table items during an add/edit but it still didn't resolve my problem with not knowing which table was to be added or edited. I thought maybe some of you have had this issue before, and looking for an elegant solution to this.
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
I've been working on an administrative feature for our enterprise application (which has been a long time coming) to manage our expenses (rather than using Excel as we have for the past 3 years).
The problem I am having trouble with is there are two main tables: Expense and Expense Detail. The idea is, you have 1 expense record with many expense details. I usually have a set of controls on the form for add, edit, save, delete, cancel, etc. But since I have two active tables on the same form, if I, for example, click "Add" there is nothing to determine which table should have the record added to it. Also, if I'm editing (or adding) a record to the Expense table (controlled for navigation by a grid), I don't want the fields that are in the expense detail to be enabled when I'm performing an edit/add to the Expense table.
So the "obvious" answer seemed to be to have two sets of identical controls for the add, edit, delete, etc. functions, but I was trying to think of another application I've used where that was the case, and I couldn't come up with one. But I also couldn't find a good way to manage this issue.
I thought about adding an additional form level property called lExpenseEnabled which would be used to control the state of the expense table items during an add/edit but it still didn't resolve my problem with not knowing which table was to be added or edited. I thought maybe some of you have had this issue before, and looking for an elegant solution to this.
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."