Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

SAP Fiori 'My Lead' extension/Enhancement

$
0
0

Hello All,

 

In 'My Leads' fiori app , I wanted to have an enhancement like 'Add Lead' as an option in footer of Master List pageadd_lead_option.png

 

Like we have in 'My Opportunity' app,

add_opportunity.png

 

To start with I created extension project with parent application as 'My Lead' from remote SAP UI5 Netweaver Gateway Repository in SAP Web IDE.

In the the project I created extension for controller , S2 (as this has the definations for header and footer). and added following code in it just to see if button appears at desired place.

 

sap.ui.controller("cus.crm.lead.CRM_LEADSExtension.view.S2Custom", {

// Add Lead Button

getHeaderFooterOptions: function() {

    var h_ext = { oAddOptions: {

  sId: "BTN_S2_ADD",

  onBtnPressed: function() {

    // alert("add create lead view");

             }

                }

        };

return h_ext;

}

}

Okay , In web IDE preview I see the  '+' button but previous icons for Filter and Sort icon got dissapeared.

add_lead_enhanced.png

 

I assumed the controllers get extended , what am I doing wrong ? and what after the plus icon gets added, What would be the ideal direction to move ahead like:

  • Creating a view like form to take Lead related values
  • '+' icon to navigate to that form
  • form to submit the value to a oData
  • and is oData already there  realize this creation option? as in my SAP system  I see there is already methods for Lead_Create etc in the class which is responsible for oData for My Lead app .

 

I'm more looking into best practices , what is the standard way of doing such enhancements. Resources in internet provide for simple enhancement like hiding a field or something like that only.


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>