12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- // Licensed Materials - Property of IBM
- //
- // IBM Cognos Products: pps
- //
- // (C) Copyright IBM Corp. 2005, 2017
- //
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- /**
- * @type Object
- */
- D_ppesAdminTitleDialog.F_GetTitle = function()
- {
- return this.m_sCurrentValue;
- };
- /**
- * @private
- */
- D_ppesAdminTitleDialog.F_Dialog_OnBeforeVisible = function()
- {
- /**
- * @private
- */
- this.m_cboTitleVars = new C_ComboBox( this.F_GetDlgItem( "cboppesAdminVars" ), null, G_ResManager.F_GetResource( 'ppesAdminTitleVarsListView' ), this );
- this.F_GetDlgItem( "ippesAdminTitleField" ).value = this.m_sCurrentValue;
- this.m_cboTitleVars.F_SelectByIndex(0); //Simply select the first one
- };
- /**
- * @private
- */
- D_ppesAdminTitleDialog.F_Dialog_OnAfterVisible = function()
- {
- //Set the focus to the title field
- this.F_GetDlgItem( "ippesAdminTitleField" ).focus();
- };
- /**
- * Clean up that is required before this instance is deleted
- * @type void
- */
- D_ppesAdminTitleDialog.F_Dialog_OnBeforeHide = function()
- {
- if ( this.m_cboTitleVars )
- {
- this.m_cboTitleVars.F_Detach();
- delete this.m_cboTitleVars;
- }
- };
- /**
- * @private
- */
- D_ppesAdminTitleDialog.F_OnInsert = function()
- {
- //Simply append the value of this selection to the title box
- this.F_GetDlgItem( "ippesAdminTitleField" ).value += this.m_cboTitleVars.F_GetValue();
- };
- /**
- * @private
- */
- D_ppesAdminTitleDialog.F_OnOk = function()
- {
- //simply overwrite the value of the title with the new one
- this.m_sCurrentValue = this.F_GetDlgItem( "ippesAdminTitleField" ).value;
- this.M_fnSuper_OnOK();
- };
|