cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ADD Mashup Standard UI

former_member640082
Participant
0 Likes
633

Hello Experts,

I am trying to add a mashup to a standard screen but when i come to drag and drop it to a pane container it doesnt work so i taught of adding this mushap to an EC before adding it to the standard UI .

Can anyone help me what should i do in inports and outoprt so my mashup work this is the code i m putting in my mashup:

document.getElementById("demo").innerHTML = sap.byd.ui.mashup.context.inport.Parameter;

I just want a simple example so i can understand i saw some tutorial in the community but i didn't understand what should i do exactly.

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

dhruv_mehta
Active Contributor
0 Likes

Ohk Now i got it 🙂

document.getElementById("demo").innerHTML = sap.byd.ui.mashup.context.inport.Parameter;

Here "Parameter" is the name of Parameter? if yes then it should be available in document.getElementById("demo").innerHTML

for example :

var src = sap.byd.ui.mashup.context.inport.MashupURL;

document.getElementById('pricefx-mashup-frame').setAttribute('src', src);

var fetchSalesQuoteData = sap.byd.ui.mashup.context.inport.FetchSalesQuoteData; ( FetchSalesQuoteData this is something manipulated in c4c )

as u can see in our case MashupURL is something coming from binding (Dynamic) and i use setAttribute of the html code.

similarly u need to do it.

former_member640082
Participant
0 Likes

Hello Dhruvin,

Thank you very much for your help.

Well the goal is to display a standard value like Account ID or Name in a html mashup .

I tried to drag and drop the mashup directly form Pipes in the Standard UI but its not working thats why i taught of putting the mashup in an embedded component but i dont know how to use the port binding i saw some tutorials in the community but i couldn't make work.

in my html code im calling the this code:

~~~~~~~~JSCode~~~~

document.getElementById("demo").innerHTML = sap.byd.ui.mashup.context.inport.Parameter;

in the inport parameter i should bind it with the account or name from sap ui but i dont know how to do that.

Thanks,

dhruv_mehta
Active Contributor
0 Likes

Hi Sarah,

Hello again 🙂

So are you creating a PDI mash up or KUT mash up!?Based on this I can guide you through.

BR

Dhruvin