123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- function CEditTitle()
- {
- };
- CEditTitle.prototype = new AFeatureObject();
- CEditTitle.prototype.setup = function (aFeatureParams)
- {
- this.m_aParams = new Array();
- this.m_bRequiresDialog = true;
- cfgSet("LAST_DIALOG", "title");
- this.m_aParams["m"] = "/" + qs_dir + "/editTitle.xts";
- };
- CEditTitle.prototype.execute = function (aParameters)
- {
- try
- {
-
- var sCommand = "";
- var oDlgFrame = goApplicationManager.getDialogFrame();
- if (typeof oDlgFrame == "object")
- {
- var sTitle = oDlgFrame.document.f.title_text.value;
- if (sTitle === "")
- {
- sCommand += createCommand("O", "T", new Array("title", "false")) + ";";
- }
- else
- {
- sCommand += createCommand("O", "T", new Array("title", "true", escapeParam(sTitle))) + ";";
- }
- var sSubTitle = oDlgFrame.document.f.subtitle_text.value;
- if (sSubTitle)
- {
- sCommand += createCommand("O", "T", new Array("subtitle", "true", escapeParam(sSubTitle))) + ";";
- }
- else
- {
- sCommand += createCommand("O", "T", new Array("subtitle", "false")) + ";";
- }
-
- if (oDlgFrame.document.f.show_filters.checked)
- {
- sCommand += createCommand("O", "T", new Array("filter", "true")) + ";";
- }
- else
- {
- sCommand += createCommand("O", "T", new Array("filter", "false")) + ";";
- }
- if (oDlgFrame.document.f.show_sorts.checked)
- {
- sCommand += createCommand("O", "T", new Array("sort", "true")) + ";";
- }
- else
- {
- sCommand += createCommand("O", "T", new Array("sort", "false")) + ";";
- }
-
- if (oDlgFrame.document.f.show_suppress.checked)
- {
- sCommand += createCommand("O", "T", new Array("suppress", "true"));
- }
- else
- {
- sCommand += createCommand("O", "T", new Array("suppress", "false"));
- }
- addColumnsForReselection();
- sendCmd(sCommand, "", true);
- }
- goApplicationManager.getWindowManager().hideDialogFrame();
- }
- catch (e)
- {
- }
- };
|