具有自定义向导步骤的WebIDE自定义模板

2020-09-25 03:30发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我正在创建一个自定义...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我正在创建一个自定义模板,我想在其中添加一个自定义向导步骤。

我找到了文档( https ://sdk-sapwebide.dispatcher.hana.ondemand.com/index.html#/topic/3077337abe2c42b885af557d3ddbedba ),但我正在为某些问题而苦苦挣扎。

我在plugin.json中添加了自定义服务

"需要":{
 "服务": [
 "模板",
 "目录步",
 " templateCustomizationStep",
 " customStep",



 "提供":{
 "服务": {
 " customStep":{
 " implements":" sap.watt.common.service.ui.WizardStep",
 " module":" customplugin/service/CustomStep"
 }



 "配置":{
 "服务": {
 "模板:模板":[{
                                  " wizardSteps":[
 "目录步",
 " templateCustomizationStep",
 " customStep"
 ],
 

我创建了Customstep.js

定义({

 getContent:function(){
 jQuery.sap.require(" customplugin.control.MyCustomStep");
 var oMyStepContent = new customplugin.control.MyCustomStep({
 上下文:this.context
 });


 var sTitle = this.context.i18n.getText(" customstep_title");


 返回this.context.service.wizard.createWizardStep(oMyStepContent,sTitle,"");
 }
 });


 

但是它无法通过" this.context.service.wizard.createWizardStep"这一行。

this.context.service存在(并包含所有向导步骤),但不包含"向导"对象,因此,我不能使用函数" createWizardStep"。

有人知道吗? 还是有人遇到类似问题?

谢谢!

关于,
汉斯

6条回答
四川大学会员
2020-09-25 03:47 .采纳回答

是的,只需添加

" requires":{" services":[" template"," templateCustomizationStep"," catalogstep","向导"]

一周热门 更多>