SCSM View - XML Code
Dear All,
I have created a view in SCSM using some xml code.
When trying to promote it though it doesn't show the option?
Thanks
Daniel
Best Answer
-
Shane_White Cireson Support Super IT Monkey ✭✭✭✭✭
Well you could create a custom view.js, and a custom viewpanel.js, make a navigation node for it on the navigation page, link it to the view file.
Then on the definition of the view you would need a Kendo chart which DataSource was the results of an ajax API call to a dashboard query which you would need to create.
5
Answers
To follow on from this I have created a view in XML using [Me]. I can now promote it ok and can see all incidents using the [Me] but once its promoted it does show the incidents? I can see them in the console ok though?
What do you see in the Portal .vs the console?
Thanks,
Shane
This article says you can not use the [me] token on promoted views
How To: Promote a View from the SCSM Console to the Portal (cireson.com)
Views that cannot be promoted
Some views cannot be promoted due to technical difficulties. You may be able to recreate them instead as 'Saved Searches'
CI - All views under Computers folder
CI - All Business Services
CI - All Printers
CI - Software
CI - Software Updates
CI - Users
RA - any view using Reviewers
WI - Runbook Automation Activities
Any view using the Me Token
Any view using a Relative Date Time Token
Views built with Advanced View Editor (from Technet)
Any view that is using a projection with > 2 levels of component nesting
All fields added from view builder Custom Columns
Good spot @Mikkel_Madsen I forgot this was the case!!
What you could do here is do a SQL table and use the @UserId in the Portal...
e.g.
SELECT * FROM Dbo.WorkItem
WHERE AssignedUser = @UserId
That could be added to a SQL Table/chart widget and used as a view if you like!
Anyway you can do this without creating a widget?
Yes you could do a custom page but this just seems like even more work that is not necessary!
How would the custom page be setup?
Well you could create a custom view.js, and a custom viewpanel.js, make a navigation node for it on the navigation page, link it to the view file.
Then on the definition of the view you would need a Kendo chart which DataSource was the results of an ajax API call to a dashboard query which you would need to create.