Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2794

Secondary Model usage in Fiori extension - options?

$
0
0

Hi All,

 

I'm extending the My Inbox app, and rather than modify the RFC signature within the Task Gateway for each service to get back-end data; I've decided it is more elegant (and supportable) to create a new service (per backend) that can be used to extract additional data from a single work item (e.g. Purchase Order information) for a specific task/work item.

 

Whether this is right or wrong is a discussion for another post I'll do later; but my question is how to have both the original service model (/IWPGW/TASKPROCESSING) and my new task set-up in the extension project via WebIDE.

 

Currently, I have it working if I add the mock utility and load the model manually in the init of the component file:

this._startMockServer(sServiceUrl);
this._initODataModel(sServiceUrl, "MyCustomService");

 

But I'd prefer to use the existing framework that WebIDE supports which involves .project.json set-up, the manifest.json and an unavailable configuration.js file in my extension project.

 

I did note that the mockpreview tag in .project.json does support being an array (while the WebIDE project settings screen does not) but there is some funky configuration in the configuration.js that I'm unclear how to extend (possibly I just need to work out how to extend configuration.js to solve this).

 

oServiceParams: {

        serviceList: [

            {

                name: "TASKPROCESSING",

                masterCollection: "TaskCollection",

                serviceUrl: cross.fnd.fiori.inbox.Component.getMetadata().getManifestEntry("sap.app").dataSources["TASKPROCESSING"].uri,

                isDefault: true,

 

Anyone able to help do this more generically, rather than my old school solution?

 

Cheers,

Matt

 

ps. Complex problem to describe but appreciate if you understand what I'm trying to do and have some ideas.


Viewing all articles
Browse latest Browse all 2794

Trending Articles