答网友:如何在Sbo Add-on中激活或者禁止系统增加、查找和导航按钮?

简介:
    /// <summary>
        /// 允许或者禁止窗体使用系统查找按钮
        /// </summary>
        /// <param name="bEnable">允许使用:真;禁止使用:假</param>
        public void EnableSearchMenu(Boolean bEnable)
        {
            oForm.EnableMenu("1281", bEnable);
        }
        /// <summary>
        /// 允许或者禁止窗体使用系统新增按钮
        /// </summary>
        /// <param name="bEnable">允许使用:真;禁止使用:假</param>
        public void EnableAddMenu(Boolean bEnable)
        {
            oForm.EnableMenu("1282", bEnable);
        }
        /// <summary>
        /// 允许或者禁止窗体使用系统导航按钮
        /// </summary>
        /// <param name="bEnable">允许使用:真;禁止使用:假</param>
        public void EnableNavigatorMenu(Boolean bEnable)
        {
            oForm.EnableMenu("1283", bEnable);
            oForm.EnableMenu("1284", bEnable);
            oForm.EnableMenu("1285", bEnable);
            oForm.EnableMenu("1286", bEnable);
        }

本文转自foresun  51CTO博客,原文链接:http://blog.51cto.com/foresun/49801,如需转载请自行联系原作者
相关文章
|
2月前
|
Windows
【问题篇】win11突然连不上网而且很多地方点击无效
【问题篇】win11突然连不上网而且很多地方点击无效
15 1
|
前端开发 测试技术
clswindow使用案例:防止vb程序重复打开,如果重复打开则激活当前已经打开的程序
clswindow使用案例:防止vb程序重复打开,如果重复打开则激活当前已经打开的程序
205 0
clswindow使用案例:防止vb程序重复打开,如果重复打开则激活当前已经打开的程序
|
前端开发
前端工作总结108-修改新增按钮显示逻辑
前端工作总结108-修改新增按钮显示逻辑
84 0
前端工作总结108-修改新增按钮显示逻辑
|
前端开发
前端工作总结107-修改记录取消文本提示ele提示
前端工作总结107-修改记录取消文本提示ele提示
98 0
还在使用Window原始的CMD界面?教你一招进行界面完美优化(下)
还在使用Window原始的CMD界面?教你一招进行界面完美优化
104 0
还在使用Window原始的CMD界面?教你一招进行界面完美优化(下)
|
大数据 开发工具 git
还在使用Window原始的CMD界面?教你一招进行界面完美优化(上)
还在使用Window原始的CMD界面?教你一招进行界面完美优化
357 0
还在使用Window原始的CMD界面?教你一招进行界面完美优化(上)
|
Web App开发 前端开发 JavaScript
如何找到SAP UI5里阻止页面继续加载的出问题的具体代码位置
Issue description: when you are launching Fiori UI, there is some Javascript error occurred. The UI stops the rendering, you could only see blank screen. However, in Chrome development tool it shows the error occurs in the framework library file, in my example it is UIComponent.js. How to react to t
115 0
如何找到SAP UI5里阻止页面继续加载的出问题的具体代码位置