cancel
Showing results for 
Search instead for 
Did you mean: 

Count on fiori Iview

rajeshkumarp
Explorer
0 Kudos

HI,

I am using fiori iview in sap portal for My Inbox. I am unable to get number of workitems count on tile.

What value should pass in Service url parameter and unit label to be displayed

Regards

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Rajesh,

The Unit label is a text you can decide on, if it's just a number it should be empty.

if it's percent you add %, Dollar you add $ etc.

Regarding the service URL - it's usually something that you need to create a service for.

So basically if you have a service that returns the number you should set the URL for it.

If you don't have a service you need to create it.

BR,

Saar

rajeshkumarp
Explorer
0 Kudos

Hi Saar,

Thanks for your quick reply, I have given odata service in service url parameter but count is not displayed  on tile

http://XXXX:8030/sap/opu/odata/IWPGW/TASKPROCESSING;v=2/TaskCollection/$count

XXXX is NWGW server hostname

Also given following value

sap/opu/odata/IWPGW/TASKPROCESSING;v=2/TaskCollection/$count

but still not working

and tried to use the same url in unit label also still appear the same error

Thanks

Rajesh

0 Kudos

Hi Rajesh,

Make sure that you are not trying to reach a server with a different host name, odata services in portal must have the same host name exactly (use web dispatcher or reverse proxy) and also that the protocol is the same for both e.g http or https.

now try to run it again and open the developer tools (f12) go to network tab and search for the URL you entered, if it's not there then the browser blocked it --> look in console for errors.

If it is there look at the response --> what is the status? 200? 404? etc.

If it's 200 make sure that the returned data is either a json or just a number.

If you can show the details from the network tab it will help.

BR,

Saar

rajeshkumarp
Explorer
0 Kudos

Hi Saar

kindly you are right already i found that the problem in host name

as there is different between the portal and the odata service hostname as below but how to configure my iview to fetch the required from the right url without make the hostname is same

this error appear in console

0 Kudos

Hi Rajesh,

First clear the UCD for the user, remove the tile from the homepage and re-add it from the catalog.

Check if it works.

BR,

Saar

rajeshkumarp
Explorer
0 Kudos

Hi Saar,

Thanks for your quick reply, I have portal host name (abc.domain.com) and Fiori (NW GW/odata) server host name (xyz.domain.com).when put the below

link in unit lable


http://xyz.domain.com.8030/sap/opu/odata/IWPGW/TASKPROCESSING;v=2/TaskCollection/$count   (fiori)

it was not working as ifound in the console of developer tool that the link redirect for


http://abc.domain.com:8030/sap/opu/odata/IWPGW/TASKPROCESSING;v=2/TaskCollection/$count  (portal)


so i got error as there is no service on this path


so how can avoid the redirect for my path for $count


0 Kudos

Hi Rajesh,

In my second reply I already said that the URL must be to the exact same host..

It's mandatory, that's why I said either use Web Dispatcher or other reverse proxy.

http://a248.g.akamai.net/n/248/420835/6bc78a916c27f55828f90b3909660f62259b8e048d5ddd39e4790c3570e4ac...

http://www.slideshare.net/AviadRivlin/sap-enterprise-portal-74-mobile-consumption

BR,

Saar

rajeshkumarp
Explorer
0 Kudos

Dear Saar,

If I install web dispatcher on Portal server then my portal server and webdispatcher  host name will be same .Then I can connect to NW GW server through webdispatcher . Is it resolve my issue?

Thanks & Regards

Rajesh