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

How to enable Web Assistant with freestyle UI5 application?

0 Likes
805

Hi,

I'm trying to integrate Web Assistant to my freestyle UI5 application. At first, I followed the integration sample and it worked well with a plain HTML page. Then I try to add a UI5 button with attribute data-help-id="firstName". It complains encountered unknown setting 'data-help-id' for class sap.m.Button (value:'firstName') and can't load the help. How can I enable Web Assistant with my UI5 application. Thanks!

https://enable-now.sap.com/ic/wa/int/~tag/published/index.html?show=group!GR_CF44F241F6233280#slide!...

UPDATED:

I made some progress. I can load the Web Assistant within a UI5 application now, but failed to create the hotspot. I created a demo here if someone are interested to this issue. https://snippix.only.sap/snippets/36152

As a comparison, I added the hotspot successfully within a plain HTML page. https://snippix.only.sap/snippets/91394

Accepted Solutions (0)

Answers (1)

Answers (1)

DirkManuel
Active Contributor

This worked for me:

Defining a button:

var btn = document.createElement("BUTTON");btn.id = "GloboHelp"; 

Registering it with Web Assistant:

var oHelp = Help4.init({   
... buttonId: 'GloboHelp',
...

Then putting it on the application page:

<img id="GloboHelp" src="graphics/helpNormal.png" style="border:0">

Other than that, everything else was by the book.

0 Likes

Thank you Dirk!

I'm following the same steps with you to add Web Assistant to a generic HTML page. It works. But I can't make it work on a UI5 application.

DirkManuel
Active Contributor
0 Likes

Ah, gotcha. Do you need to have a data-help-id property? (Especially if it works with just an id.) Maybe SAP are reserving that for themselves? Or maybe they have a different Web Assistant Framework they are initializing.