12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- var EXPAND_UNAVAILABLE = -1;
- function CExpand()
- {
- };
- CExpand.prototype = new AFeatureObject();
- CExpand.prototype.processErrorState = function ()
- {
- if (this.m_iErrorState === FEATURE_OBJECT_NO_ERROR)
- {
- return false;
- }
- else if (this.m_iErrorState === EXPAND_UNAVAILABLE)
- {
- dlgShowMessage("EXPAND_TITLE", "", "EXPAND_NOT_AVAILABLE");
- return true;
- }
- };
- CExpand.prototype.setup = function (aFeatureParams)
- {
- this.m_iErrorState = FEATURE_OBJECT_NO_ERROR;
- var oMQMgr = goApplicationManager.getMiniQueryManager();
- var aAllColumns = oMQMgr.getAllColumns();
- for (var idxColumn = 0; idxColumn < aAllColumns.length; idxColumn++)
- {
- if (oMQMgr.isCollapsed(aAllColumns[idxColumn]))
- {
- this.execute();
- return;
- }
- }
- this.m_iErrorState = EXPAND_UNAVAILABLE;
- };
- CExpand.prototype.execute = function (aParameters)
- {
- var sCommand = createCommand("M", "E");
- sendCmd(sCommand, "", true);
- };
|