D_UIProfileSource_async.js 1020 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. IBM Confidential
  3. OCO Source Materials
  4. IBM Cognos Products: uipe
  5. (C) Copyright IBM Corp. 2014
  6. The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.
  7. */
  8. D_UIProfileSource.F_Dialog_OnBeforeVisible = function()
  9. {
  10. this.F_GetDlgItem( "btnOK" ).style.display = this.m_bCopyToClipboard ? "none" : "";
  11. U_Button.F_SetLabel( this.F_GetDlgItem( "btnCancel" ), G_ResManager.F_GetString( this.m_bCopyToClipboard ? "IDS_HAL_BTN_CLOSE" : "IDS_HAL_BTN_CANCEL" ) );
  12. var ta = this.F_GetDlgItem( "ta" );
  13. ta.value = this.m_sText;
  14. ta.readOnly = this.m_bCopyToClipboard;
  15. };
  16. D_UIProfileSource.F_Dialog_OnAfterVisible = function()
  17. {
  18. var ta = this.F_GetDlgItem( "ta" );
  19. ta.focus();
  20. ta.select();
  21. };
  22. D_UIProfileSource.F_OnOK = function()
  23. {
  24. var ta = this.F_GetDlgItem( "ta" );
  25. var v_nProfile = U_XML.F_LoadString( D_XmlError, ta.value );
  26. G_UIPE.F_SaveProfileToCM( v_nProfile, true );
  27. this.M_fnSuper_OnOK();
  28. };