Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

HTML Map Mashup Doesn't Pull Parameters

$
0
0

Hello everyone,

 

So I've been trying to experiment with embedded components and mashups on ByDesign, and tried to follow this guide:

 

http://scn.sap.com/community/business-bydesign/studio/blog/2014/02/24/html-script-mashup--launched-from-an-embedded-component

 

However, I've run into a problem when putting the EC on the Account screen. I've got the map to display (amusingly, copying the code from the guide didn't actually work; I got mine to display using an example from the Google developers website), but at the moment it will only work if I hard code in the latitude and longitude. If I pass the parameters into it, the map fails to initialise, instead just display a white box. I'll post pictures of what I've done corresponding to each step of the guide, and hopefully someone can help.

 

A1) Identify outport: I figure this is the best one on the Account screen.

 

IdentifyOutport.png

 

2) create custom BO and script

 

CustomBOAndScript.png

 

3) create data structure and other fields, bind root-level fields, do other stuff from this step.

 

DataStructures.png

 

InPort.png

 

LaunchECHandler.png

 

Create_AccountHandler.png

 

EC binding:

 

AccountOIF.png

 

B1) Define PTP

 

PTP.png

 

2) Define Port Binding (PB)

 

PB.png

 

3) EC Outport

 

ECOutport.png

 

4) HTML Mashup --- HTML I used is attached in a .txt file.

 

HTMLMashup.png

 

5) I stuck the mashup on the EC, then did the binding as follows:

 

ECBinding.png

 

Outport has the two referenced anchors:

 

OutportAnchors.png

 

 

I think this is pretty much it...anyone able to tell me what I'm doing wrong? Thanks.

 

Lewis


Viewing all articles
Browse latest Browse all 1333

Trending Articles



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