如何启用SAP CRM附件UI上的advanced按钮

As the steps are a little bit tricky, I use the working UI component SMCOV and SMCCMBO to illustrate.
After Advanced button is clicked:

Step1: The navigation link of SMCCMBO is triggered, navigation link 2ADDDOC:

如何启用SAP CRM附件UI上的advanced按钮_第1张图片

So define the similar navigation link with EXACTLY the NAME 2ADDDOC in your own wrapper component like SMCCMBO:

如何启用SAP CRM附件UI上的advanced按钮_第2张图片

Since the navigation target is SMCCMBO/MainWindow, its inbound plug 2ADDDOC will be called:

如何启用SAP CRM附件UI上的advanced按钮_第3张图片
如何启用SAP CRM附件UI上的advanced按钮_第4张图片

Step2: You should implement the inbound plug like below:

如何启用SAP CRM附件UI上的advanced按钮_第5张图片

the outbound plug should be implemented like below, use exactly the name TODOC_ADDDOC.

如何启用SAP CRM附件UI上的advanced按钮_第6张图片
如何启用SAP CRM附件UI上的advanced按钮_第7张图片

Then define the navigation link TODOC_ADDDOC in your UI component which holds overview page, in my case, SMCOV.

Note: DO NOT define it in your wrapper component ( SMCCMBO) !!

如何启用SAP CRM附件UI上的advanced按钮_第8张图片

Step3: Now inbound plug ADDDOC of SMCCMBO/DetailWindow will be called:


如何启用SAP CRM附件UI上的advanced按钮_第9张图片
如何启用SAP CRM附件UI上的advanced按钮_第10张图片

So you should implement the inbound plug IP_ADDDOC as below:

如何启用SAP CRM附件UI上的advanced按钮_第11张图片

Also implement the outbound plug OP_TO_ADDDOC in detail window as below, use exactly the name TO_ADDDOC in line 3.

如何启用SAP CRM附件UI上的advanced按钮_第12张图片
如何启用SAP CRM附件UI上的advanced按钮_第13张图片

This means you should define the navigation link TO_ADDDOC in wrapper component SMCCMBO.

如何启用SAP CRM附件UI上的advanced按钮_第14张图片

Now the navigation target is AttachmentProperty.MainWindow, inbound plug 2ADDDOC.

如何启用SAP CRM附件UI上的advanced按钮_第15张图片
如何启用SAP CRM附件UI上的advanced按钮_第16张图片

Step4: Actually our development finished till step3. From this step, the execution is within Content management's code.

如何启用SAP CRM附件UI上的advanced按钮_第17张图片

Here we can observe the navigation link NL_2ADDDOC finally points to advanced page.

如何启用SAP CRM附件UI上的advanced按钮_第18张图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

你可能感兴趣的:(如何启用SAP CRM附件UI上的advanced按钮)