12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- function CCut()
- {
- };
- CCut.prototype = new AFeatureObject();
- CCut.prototype.setup = function (aFeatureParams)
- {
- cut();
- };
- function cut()
- {
- var rf = getReportFrame();
- if (cfgSize("SelColumns") === 0)
- {
- dlgShowMessage("CUT_TITLE", "", "CUT_NO_SELECTION");
- return;
- }
- else
- {
- if (!checkForValidSelection(true))
- {
- return;
- }
- }
-
- goApplicationManager.getSelectionController().setCutColumns(false);
- cfgRemove("CutColumns");
-
- goApplicationManager.getSelectionController().setCutColumns(true);
- for (var i = 0; i < cfgSize("SelColumns"); i++)
- {
- cfgSetAt("CutColumns", cfgSize("CutColumns"), cfgGetAt("SelColumns", i));
- }
- cfgRemove("SelColumns");
- };
|