documentation for viewModel
I'm trying to build a custom task to allow end users to resolve specific incidents. I have this task to the point where the end user can resolve the request but i'd like to set some other field such as resolved date, resolution category and resolution description. I have been unable to determine what those fields are called.
Does anyone have any documentation for the viewModel fields?
Best Answer
-
Roland_Kind Partner Advanced IT Monkey ✭✭✭
Hi,
no Problem - thats the right direction.
if you are pressing f12 then you enter the development tools of the browser (at least for IE/Edge) - after that you have several choices -> on "tab" should be "console", another should be "network" etc. please choose "console" and just type at the command line: "pageForm.viewModel" without the quotation marks, and just press enter --> all properties of the viewModel should be shown. you can use this object in your JavaScript file as well.
hope this helps - if not - please post your JavaScript for the task
regards
p.s.
please note - the pageForm.viewModel is only available if you have an active workitem view
5
Answers
Hi,
did you try the following:
pageForm.viewModel - below that Model you should find all variables needed
e.g.
pageForm.viewModel.ResolutionCategory
pageForm.viewModel.ResolutionDescription
etc.
hope this helps
regards
p.s.
just type pageForm.viewModel in the developer view / console of your browser to view all properties
I apologize for the lack of knowledge but when you just type it into the developer view/ console. I only know of the development tools from the browser. Where do i search for this?
Hi,
no Problem - thats the right direction.
if you are pressing f12 then you enter the development tools of the browser (at least for IE/Edge) - after that you have several choices -> on "tab" should be "console", another should be "network" etc. please choose "console" and just type at the command line: "pageForm.viewModel" without the quotation marks, and just press enter --> all properties of the viewModel should be shown. you can use this object in your JavaScript file as well.
hope this helps - if not - please post your JavaScript for the task
regards
p.s.
please note - the pageForm.viewModel is only available if you have an active workitem view