1234567891011121314151617181920212223242526272829303132333435 |
- function ViewOriginalLabelAction() {}
- ViewOriginalLabelAction.prototype = new CognosViewerAction();
- ViewOriginalLabelAction.prototype.getCellRef = function() {
- return this.m_oCV.getSelectionController().getSelections()[0].getCellRef();
- };
- ViewOriginalLabelAction.prototype.updateMenu = function(jsonSpec) {
- if (this.getNumberOfSelections() == 1)
- {
- var selRef = this.getCellRef();
- if (selRef.getAttribute("rp_name"))
- {
- var menuItems = [];
- menuItems.push({ name: "originalLabel", label: selRef.getAttribute("rp_name"), iconClass: "", action: null, items: null });
- jsonSpec.items = menuItems;
- return jsonSpec;
- }
- }
- return "";
- };
|