protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException {
    ProfileParentChildSlotVo voSlot = form.getLocalContext().getProfileParentChildSlot();
    voSlot = this.populateDataFromScreen(voSlot);

    if (!validateUI()) return;

    voSlot.setEndTm(calculateEndTime());

    form.getGlobalContext().Scheduling.setProfileParentChildSlot(voSlot);
    engine.close(DialogResult.OK);
  }
  protected void onFormOpen(Object[] args)
      throws ims.framework.exceptions.PresentationLogicException {
    if (form.getGlobalContext().Scheduling.getProfileEndTimeIsNotNull())
      form.lblProfileEndTime()
          .setValue(form.getGlobalContext().Scheduling.getProfileEndTime().toString());

    ProfileParentChildSlotVo voSlot =
        form.getGlobalContext().Scheduling.getProfileParentChildSlot();

    // WDEV-12039
    form.getLocalContext().setProfileParentChildSlot(new ProfileParentChildSlotVo());
    ProfileParentChildSlotVoAssembler.copy(
        form.getLocalContext().getProfileParentChildSlot(), voSlot);

    if (voSlot != null) {
      this.populateScreenFromData(voSlot);
      if (voSlot.getID_ProfileParentChildSlot() == null && voSlot.getIsActive() == null)
        form.chkActive().setValue(true);
    }
  }