How do I do refresh the portal's homepage from the client side script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2017 07:24 AM
How do I do refresh the portal's homepagefrom the client side script?
When I use "window.location = home.do';" with the client side script, I get a portal window within the portal window.
This reason for this refresh is that there remains part of form, the form's header, partially overlaid on the portals homepage. This was caused by a user answering "Cancel" on a dialog box when the user declines a form that was just loaded from a request he/she made from the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2017 10:55 AM
Darshak,
I have several questions.
Question 1: Why did you write "url here" in the following line of code you gave me? This line of code is $window.location = url here.
With this code you want me to hard code the url. I was looking for a way not to hard code my url.
Question 2: How can I use the Server Script within the Client Side Script? On the client side script, I can't use the Server Script which you gave me since ".gs" is not allow to be used in the Client Side Script.
Thank You,
Carew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2017 11:02 AM
Hey,
I was under impression that you already have the url.So, I wanted you to put it there. Yes, probably hard coded way. Then I have realized that might not be a good way so I provided you with the server script part to dynamically fetch the instance URL and append the page id, to where you wanted to navigate.
Yes, you cannot use gs on the client side, but doesn't your widget have a server script? Let me clarify, I was under the impression that this needs to be done on a widget on service portal? Did I understand your requirement wrong?
Darshak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 08:14 PM
HI Carew,
Did you get a chance to check this?
Darshak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 04:36 AM
Hi Darshak,
I'm trying to get familiar with widgets since I never worked with them. I discovered that within my agency that the department who bought Service Now has locked down a lot of functionality to prevent their satellite agencies from doing things.
On my DEV instance, it appears that I'm locked-out of creating a widget on portal side. In the navigator search bar, I entered "Service Portal" and I didn't the item "Service Portal Configuration" in the sub menu. So I guess I'm locked out from creating a widget.
Right now I'm lost at what to do. I even tried to use g_scratchpad to hold a temporary value after calling server script, but I discovered that I don't have access to business rules for access and/or creating a server side script.
I need to look at the problem from a different angle so I'll work on it so more before asking the Servicenow Community for additional help with this issue.
Thank you for your help in the matter.
-Carew