快生活 - 生活常识大全

在页面里添加自


  SAP C4C的自开发UI可以放到Embedded Component里去,如下图所示,在Cloud Application Studio里创建一个新的Embedded Component:
  我在这个自开发页面里就放了一个input field:
  如果想把包含了这个input field的Embedded Component放到Sales Lead的TI页面去,UI designer里切换到Extensibility explorer,选中想要把EC放置到的目标区域,点击按钮:Add Embedded Component to Pane:
  弹出对话框,在Embedded Component字段里,选择我们刚刚创建的EC:
  Embedded Component必须提前创建好Inport,这个例子里我创建的Inport取名fromLead, 有一个输入参数ObjectID
  左边的Source区域,Outport选择PublicOutportECLeadProduct,参数选择SalesLeadID,点击Bind进行绑定。这样TI页面的Lead ID的值就能传递到Embedded Component里了:
  生成的change transaction如下:
  <changetransaction xmlns=""http://www.sap.com/a1s/cd/oberon/uimodelchange-1.0"" embeddingcontext="""" usertype=""Partner"" user=""K903ZOYBX3I"" type=""AddRemoveECToScreen"" xreppath=""/YS5XJ942Y_MAIN/CHANGE_TRANSACTIONS/Partner/AddRemoveECToScreen/45d47fb08c09448f8e31d0df0871ff8d.uichange"" id=""9386162a9e6f4ac083855959e6441d38""><usedanchor type=""PaneContainerAnchor"" xreppath=""/SAP_BYD_UI_FLEX/STABLE_ANCHORS/PaneContainerAnchor/UY3wFQ8MMqAhxwrWp2Co3G.uianchor""><referencedanchor type=""OutPortAnchor"" xreppath=""/SAP_BYD_UI_FLEX/STABLE_ANCHORS/OutPortAnchor/_9sw_Z26$4kqtD5LK_7isW.uianchor"/"><addectoscreen title=""Jerry" embedded="" component="" textpoolid=""7b909085b8bb4df1a3ba78467bbea288"" inportname=""fromLead"" targetcomponentid=""/YS5XJ942Y_MAIN/SRC/ARCard/EC031801.EC.uicomponent""><passparameter inparamname=""ObjectID"" outparamname=""SalesLeadID"/"></passparameter></addectoscreen></referencedanchor></usedanchor></changetransaction>
  要获取更多Jerry的原创文章,请关注公众号"汪子熙":
网站目录投稿:如灵