The New UI's HTML page
The HTML page displayed by the New UI is in:
\\<server>\d$\Enterworks\enable2020\custom
It is composed of basic HTML elements combined with JavaScript.
In order to pull data from the item you are performing the action on, you need to
use the fireEnable2020ng
function.
The fireEnable2020ng
function pulls data from the item you are
performing the action on and dumps it into an itemDataMap. You can then use
itemDataMap in combination with EnterWorks's Rest API to manipulate, create, and
edit data.
Below is an example of how to incorporate a REST API call inside JavaScript. It uses AJAX and the REST Search API to look for the value Specified in a repository.
There are other ways to make HTTP requests in JavaScript, so you should figure out which works best for the custom action you are creating.
Classic UI HTML/JSP
In the EnterWorks Classic UI, the JSP is written differently. To see examples or templates of how to write them, go to:
\\<server_name>\d$\Enterworks\EnableServer\tomcat\webapps\webcm\custom