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

MII 15.0 - Error: "0.5" is of type number, expected int for property "hSpacing" of Element sap.ui.layout.Grid#__grid0

thomas_mader3
Explorer
0 Likes
584

Hello,

We have installed a new MII 15.0 System. Actually I am implementing a demo-case with a TagQuery (Simulator, History) and a Display Template (i5Grid). When I try to test the display template a blank page appears - in Firefox I have found the following error in the JS-Console.

Error: "0.5" is of type number, expected int for property "hSpacing" of Element sap.ui.layout.Grid#__grid0

Any ideas how to solve this issue?

Best regards

Thomas

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

I am getting the same error when I configured a tag in Plant Information Catalog and if I would like to access this with SCCE it's giving me the Error "expected int for property "hSpacing" of Element sap.ui.layout.Grid" when I drag my tag to the dashboard.

With that I was following the the two documents:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208cf8a0-70f4-3110-c3ab-dc765ad84...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b37a19-4fd8-3110-d888-9f761375c...

I see the connection works somehow but I am not able to get the value to the SCCE dashboard.

Our version is Mii 15.

After I added the tag to the dashboard it shows a yellow triangle with message "Websocket subscription failed-Template Dest1Dest1 not found"

Andy idea?

alexander_teslyuk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Andreas,

As far as I know you have UI5 library at version 1.20, which is quite old. Please, update it to resolve the problem.

Br, Alex.

RiaNinan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Thomas,

Looks like issue some SAP UI5 version issue. Can you please mention the version of SAP UI5 deployed on your server... ? Also mention the SAP NW version..

You could check the UI5 version by opening the browser console and keying in: sap.ui.version

Thanks and Best Regards,

Ria

thomas_mader3
Explorer
0 Likes

Hello,


Thanks for your reply.

UI5-Version: 1.22.2 (built at 201406112122, last change e720a6b27ba19e44f4da8e1d9dd63d8024c6ed8a)

Configuration:

resourceroots   {"":"/sapui5/resources/"}

themeroots        {}

xx-loadallmode

theme   sap_bluecrystal

libs         sap.ui.commons,sap.ui.ux3,sap.ui.table,sap.viz,sap.m


Themesap_bluecrystal

JAVA Netweaver-Servion (Sysinfo)

Instance Number:            00

ID:          26745

Nodes Count:    1

Root Directory: C:\usr\sap\MI1\J00

OS:         Windows Server 2012 R2 (amd64) 6.3

HTTP Port:          50000

HTTPS Port:       

Telnet Port:        50008

P4 Port:               50004

VM Name:          SAP Java Server VM

VM Vendor:       SAP AG

VM Java Version:             1.6.0_85

VM Runtime Version:     6.1.072 24.71-b13

Kernel Version: 7.40.3301.367419.20140806095041


Thank for your help.

RiaNinan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Thomas,

Thanks for the detailed information. Can you please mention the SP level of your NW version... 7.40 SP... ?

Ideally we recommend using the SAP UI5 version corresponding to the NW SP release that you are on.

Best Regards,

Ria

thomas_mader3
Explorer
0 Likes

Hi,


Thanks for your replay. The NW Version is 7.40 SP8.

UISAPUI5_JAVA     7.40.8.0.20140828175800

J2EE-APPS           7.40.8.0.20140828180000

J2EE-FRMW          7.40.8.0.20140828180000

btw.: I tried a PCo-Current-Query and a display template with an iGrid - this ist working. Strange.

Thanks

Thomas

Former Member
0 Likes

Hi Thomas,

This error comes up from the timebar feature of display templates. If your query is not time based, it will work properly.

If the display template tries to show the time bar it will fail. You can either deselect the "Show Time Bar" checkbox or upgrade the UI5 component of Netweaver.

Regards,

Anushree

thomas_mader3
Explorer
0 Likes

Hello,

Thanks for your support. The Date/Time is available in the Query (screenshot). I have deactivated the checkbox "Show Time Bar" - but the same error occurs.

I think the best way is to upgrade to the latest SP ...

RiaNinan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Thomas,

Yes, if its possible to upgrade to the latest SP then it would be best. (SAP UI5 version > = 1.26.X should be good enough)

Thanks and Best Regards,

Ria

Former Member
0 Likes

Hi Thomas,

Including DateTime in query result doesn't make it time based. If your query results change with time, then it is a time based query.

If you can upgrade your UI5 component, its is the best solution.

Regards,

Anushree

Ask a Question