Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Get forecast name from Forecast Model, display it in Source Forecast/ Forecast Name field.
  2. Get forecast cost object name from raft.data.CostObject.COTITLE, display it in Source Forecast/ Forecast Cost Object field.
  3. Get forecast workset name from raft.data.Workset.title, display it in Source Forecast/ Forecast Workset field.
  4. Wiki Markup
    If raft.data.CostObject.Forecasts\[\] has at least one forecast with a workset_category of Department, show these three radio buttons: PI, Department, Common, else show: PI and Common. Put change event listener on the radio buttons.

1. PI RadioButton Clicked

  1. Show Overwrite Existing and Create New buttons. Add click listeners to both.
  2. Show Overwrite Destination Forecast in dialog. Add click listener.

1a. PI Overwrite Destination Forecast Button Clicked

  1. Display in Destination Forecast the Name of the PI, which is raft.data.CostObject.SUPERVISOR.
  2. Get forecast cost object name from raft.data.CostObject.COTITLE, display it in Destination Forecast/ Forecast Cost Object field.
  3. Wiki Markup
    Get the list of forecasts to display by searching raft.data.CostObject.Forecasts\[\] for the workset_category == PI. All PI Forecasts should be listed in the Destination Forecast List.
  4. On click, call publish/share forecast with the selected forecast key as the destination scenarioKey, and the rest of the data from above as needed. Close dialog.. If successful, close dialog, else show error in dialog somewhere.

1b. PI Create New Forecast Button Clicked

  1. Display in Destination Forecast the Name of the PI, which is raft.data.CostObject.SUPERVISOR.
  2. Get forecast cost object name from raft.data.CostObject.COTITLE, display it in Destination Forecast/ Forecast Cost Object field.
  3. Insert a Forecast Name field. Need to check with Amon if publish call can make a new Forecast on the fly. May also need a forecast description field in the dialogue.
  4. Call publishForecast, if successful, close dialog, else, show error.

2. Department RadioButton Clicked

  1. Show Overwrite Existing and Create New buttons. Add click listeners to both.
  2. Show Overwrite Destination Forecast in dialog. Add click listener.

2a. Overwrite Destination Forecast button clicked

  1. Wiki Markup
    Display in Destination Forecast the workset_name of the raft.costobject.forecast\[\] whose workset_category == Department.
  2. Get forecast cost object name from raft.data.CostObject.COTITLE, display it in Destination Forecast/ Forecast Cost Object field.
  3. Wiki Markup
    Get the list of forecasts to display by searching  raft.data.CostObject.Forecasts\[\] for the worksetCategory == PIDepartment. All PIDepartment  Forecasts should be listed in the Destination Forecast List.
  4.  
  5.  On click, call publish/share forecast with the selected forecast key as the destination scenarioKey, and the rest of the data from above as needed. Close dialog.

...