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

Show message in customer checkout

RicardoRenteria
Participant
0 Kudos
574

How can I display a message in the upper bar in sap customer checkout kiosk/hospitality mode, using a plugin?

I see this is a space where system messages are shown. How can I show there my own messages via plugin?

Accepted Solutions (0)

Answers (2)

Answers (2)

R_Zieschang
Contributor

Hi ricardo.renteria2 ,

you can do this with a plugin:

JSONObject oJSON = new JSONObject();
JSONObject oJSONEventPayload = new JSONObject();
String[][] array = new String[1][];

oJSON.put("type", "event");
oJSON.put("eventId", "FOO");
oJSON.put("eventName", "BAR");
oJSONEventPayload.put("width", "100");
array[0] = new String[] {"key", "value"};
oJSONEventPayload.put("elements", array);
oJSON.put("eventPayload", oJSONEventPayload);
BroadcasterHolder.INSTANCE.getBroadcaster().broadcastActionForPath("/ws/tech", "plugin", oJSON);

hth

Robert

RicardoRenteria
Participant
0 Kudos

Thank you Robert.

I tried to use that piece of code in the method "addSalesItem" but I cannot see anything in the upper bar (see screenshot). For example, I wanna show a message there when an item is added.

any ideas what more should I do?

former_member237414
Contributor
0 Kudos

Dear ricardo.renteria2 ,
as I metioned in the other post:

Do you need some development help from our side?
Please drop a line to: info@hokona.de .
Thanks,
Julian