Tag Info

New answers tagged

5

You can use a date field as a primary key, but you can't key on PART of a field. You'd have to make a separate field with just the date. This particular condition isn't something that would normally be enforced by building it into the primary key of a table anyway. Your "Employee can't work same shift on same date twice even in two locations" is a business ...


1

I don't think it is a wise idea to have View and Presenter being coupled so tight. Based on either the Passive Screen or Supervising Presenter the presenter and the view are separated by an interface that is implemented by the view. The presenter calls the interface. Here is an example of a supervising presenter. PRESENTER this class has no dependency on ...


1

Displaying a second view on btnShowView2.Clicked is some kind of business logic, so the right place for implementing this is in the event handler of presenter1 which deals with that event (I assume that presenter1 is registered to all relevant button-click events of View1). Lets call it HandleBtnView2Click, so the initial code inside that handler might look ...


0

You are experiencing a gap in the requirements (what to do when X goes wrong). This is not uncommon, because it is very hard to think of all possibilities up front. What to do about it is quite simple: you ask the person responsible for the requirements/user stories/etc, to give you guidance on what the desired result should be from user perspective. Then ...


2

In case of doubt, ask for clarification. Maybe the UX do not know that these "corner cases" are possible. As for the example that you write, I do not think it so complicated as you paint it. Just from common sense, you have two options: If there are no items for the dropbox, disable option B. Add a tip (when hovering, or with an icon), stating that option ...



Top 50 recent answers are included