Questions on FNC Planner in WebApp

I am just making a start on the planner. I have 5 views (at the moment) to do. They come from two different tables.

  • I there anything fundamentally wrong or detrimental to use the same form and planner, and reassign the entity on the TXdataWebDataSet, when the buttons are clicked?

  • The Planner comes from the master table and the rest from the details table

  • The Planner will be bookings, so resourceless, the others will be using the resource concept. Does that sound like a sane thing to do?

To explain further.

  • Each booking can have one or more of the resources such planes or pilots.
  • They need to see the bookings timeline as the main view
  • And they need a resource usage view, to see which plane, for instance is available?

I see no problem using the same form and planner and just switch the dataset driving it via TTMSFNCPlannerDatabaseAdapter.Item.DataSource.

Something like

TTMSFNCPlannerDatabaseAdapter.Active := false;
TTMSFNCPlannerDatabaseAdapter.Item.DataSource := new...
TTMSFNCPlannerDatabaseAdapter.Item.xxx = ... // possible other settings that might need to change
TTMSFNCPlannerDatabaseAdapter.Active := true;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.