- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 07:22 AM
Hi All,
I have a UI Page(xyz) which invokes a UI Macro to show few buttons on header and carry out buttons functionality.
I have a UI Action created to incident page which shows as a link on the form.
When i click on the link (created by ui action) in the incident page , then i want it to perform what the UI page (xyz) does .[ That is loads a page with header and buttons].
Is it possible that when I click on the UI Action link, it performs what is being carried out by UI Page.
Please let me know if there is any other approach in which this can be achieved or if this is possible then share the script for same.
Thanks in advance
Surya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:30 AM
For example.. I have a ui page named testdriftinformation
here is the code below to get the ui action to load that page in the main window.
sendToNorChange();
function sendToNorChange()
{
//make the url to a new normal change
var url = 'testdriftinformation.do';
//Redirecting the user to the new url
action.setRedirectURL(url);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:30 AM
For example.. I have a ui page named testdriftinformation
here is the code below to get the ui action to load that page in the main window.
sendToNorChange();
function sendToNorChange()
{
//make the url to a new normal change
var url = 'testdriftinformation.do';
//Redirecting the user to the new url
action.setRedirectURL(url);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:34 AM
thanks a lot
It worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:04 AM
Hi Goran,
I am trying to create something similar to like we have in knowledge article. When we click on view article, we get a screen with create incident and flag article button.
Since the screen would be having big texts so need to have it in complete screen.
Thanks
Surya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:27 AM
Then it is "action.setRedirectURL()" you should use.
We have for example a "create normal change" ui action on incidents. It teleports the user to a new normal change form.
sendToNorChange();
function sendToNorChange()
{
//make the url to a new normal change
var url = 'change_request.do?sys_id=-1&sysparm_query=active^type=Comprehensive&sysparm_stack=change_request_list.do?sysparm_query=active=true';
//Redirecting the user to the new url
action.setRedirectURL(url);
}