The CreatorCon Call for Content is officially open! Get started here.

Karen Lazarenko
ServiceNow Employee
ServiceNow Employee

Please post comments and questions via the Comment link below.

Comments
caroleanderson
ServiceNow Employee
ServiceNow Employee

Good morning all! Welcome to Service Portal Advanced!

Please post questions/comments in this article and enjoy the class!

john_andersen
Tera Guru

Good morning!  What better way to kick of Knowledge than with some super Service Portal goodness!  Glad to meet you all, at least virtually.   Looking forward to having some great discussions.  

ben_hollifield
Tera Guru

Don't forget to hook up on wifi @ SSID 'Knowledge18' w/ password 'worksforyou!'.

martinpalacios5
Giga Contributor

ROOM C ONLY: if you are having issues getting the reservation page click on this link 

https://pctt2020c-001-instructor.lab.service-now.com/instance_reservation.do

goulart
Tera Contributor

Good morning !

jessicah
Tera Contributor

ROOM 1 ONLY: Hi everyone!  If the class file share link http://sp.ht4.org isn't working for you (it was blocked for me) below is the final HTTPS URL: https://yansalabsdemo01.service-now.com/sptrain

caroleanderson
ServiceNow Employee
ServiceNow Employee

This is for ROOM 1 only.

 

caroleanderson
ServiceNow Employee
ServiceNow Employee

good morning!

caroleanderson
ServiceNow Employee
ServiceNow Employee

ROOM 1 - Lab Reservation link: http://clabs.link/pctt2020a

 

Bill_lefkoski1
Kilo Contributor

Hey hey we are the monkeys

 

goulart
Tera Contributor

Can I use other javascript frameworks like Angular 5 or React ? 

caroleanderson
ServiceNow Employee
ServiceNow Employee

Fun to hear all the "fun facts" about beat boxing, comic book creation, snowboarding, coastal living, big families, and more - welcome all!

ben_hollifield
Tera Guru

Yes and no. You can load up any manner of dependencies you want within ServicePortal and utilize them. However, those add-ons will be in addition to the Angular-based framework is in place. As such, using other frameworks can add bloat to your deployment, and may conflict with the existing libraries. There currently is no capability to replace the Angular-based framework with another.

goulart
Tera Contributor

Is there a roadmap to upgrade the Angular version for Service Portal ?

Kevin Nasir
Tera Explorer

Will the presentation slides be available to download or to view anywhere?

caroleanderson
ServiceNow Employee
ServiceNow Employee

Your book contains the information from the slides.

ben_hollifield
Tera Guru

Internal SN folks may know better than I. I'm sure it will happen, but not sure where it is on the roadmap. As you likely know, Angular 2 and beyond are quite different from Angular 1, so the transition could be tricky.

jessicah
Tera Contributor

Probably not since this is a pre-con training course.  Don't lose your book!

Dave L
Tera Contributor

I wondered the same thing but as Ben said, AngularJS 1 is very different from the later versions. None of it is transferable it seems. However, I think the framework that comes close is VueJS with the bindings and stuff. 

conanlloyd
Giga Guru

Good morning, finally managed to get my mac to link to the wireless here.

caroleanderson
ServiceNow Employee
ServiceNow Employee

Welcome!

conanlloyd
Giga Guru

Oh, for the photography buffs... Canon or Nikon?

goulart
Tera Contributor

It is possible to have multi language service portals ? I mean to automatically change title and other information of widgets ?

ogMGOPW
Tera Contributor

I want to say that's a feature in Kingston. This maybe? https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/localization/reference/r_TranslationTables.html

OliverDoesereck
Tera Guru

Its more a matter of personal taste. Many like the Sony Alpha range.

Personally though...Nikon all the way 

ben_hollifield
Tera Guru

Absolutely! Many baseline widgets honor the language of the logged-in user currently. You can internationalize your custom widgets via a number of means, both server-side and client-side.

adamrasmussen
Giga Contributor

Historically presentations and materials were made available in PDF format a week or two after the conference is over.

OliverDoesereck
Tera Guru

Using ${Content} allows ServiceNow to automatically translate "Content" if found in the Messages Table. "Content" can also be used as a key for longer texts. So using ${home_title} would be better than ${Welcome to the Self Service Portal for IT Management}

OR, you can use Server Sided coding, set a variable with a translation (data.home_title = gs.getMessage("key")) and then calling the server variable in the client sided code (c.data.home_title)

proco
Tera Contributor

I've always been a Canon guy - but mostly because when I bought my first SLR the Canon Rebel had a good set of features at the right price point. When I switched to a DSLR, I already had Canon lenses, so it seemed best not to switch mounts. Though I do have a Nikon W300 for underwater shooting and I really like it.

thirschi
Tera Expert

Help on a issue having with sp-date-picker.   When I load the widget in Chrome = no problems, when loaded in Firefox or Edge, get an error message of: {{translations['Enter date in format']}} {{format}}

Below is the code:

<sp-date-picker ng-model="c.data.taskDate" sn-change="c.dateChange()"></sp-date-picker>

goulart
Tera Contributor

Thank you very much Oliver

goulart
Tera Contributor

It is possible to use GIT instead of Update Settings to promote service portals from dev instance to prod instance ?

ben_hollifield
Tera Guru

For scoped Service Portals, yes - the portal files become a part of the associated Scoped Application, which can be sync'd to git via ServiceNow Studio. For non-scoped Service Portals, we're stuck with update sets.

OliverDoesereck
Tera Guru

this works fine on my side using Chrome 66, Firefox 59 and Edge. I just put an alert in the dateChange function and it popups up in all browsers

john_andersen
Tera Guru

I stick with Update Sets.  To use the platform's GIT integration you need your portal to be in a scoped app.  Even if you are in a scoped app, I wouldn't deploy via GIT.  With GIT updates, the platform is uninstalling the app and reinstalling the app when delivering.  This could cause problems in production environment.

thirschi
Tera Expert

I have code on the server side that does the following:

var todayGDT = new GlideDateTime();

var endDate = new GlideDate();
endDate.setValue(gs.getSession().getClientData("tk_week_end"));//For this week is 2018-05-11
var todayDate = new GlideDate();

// We need to correct the time to midnight on the current day
// because the default GlideDate has the current time
// somehow associated with it.
todayDate.setValue(todayGDT.getYearLocalTime() + '-' + todayGDT.getMonthLocalTime() + '-' + todayGDT.getDayOfMonthLocalTime());

var dateDiff = gs.dateDiff(todayDate.getDisplayValue(), endDate.getDisplayValue(), true);

if(dateDiff < 0){
// this is a previous week
data.taskDate = endDate.getDisplayValue();
} else {
// this is the current week
data.taskDate = todayDate.getDisplayValue();
}

OliverDoesereck
Tera Guru

Doesnt seem to be a server sided issue. I updated the widget, still works on all 3 browsers.

When does the issue pop up?

 

Any users with a different date format?

Nate Anderson
Tera Contributor

For life: https://www.google.com/aclk?sa=l&ai=DChcSEwii-4iczfHaAhUJwmQKHeHECq4YABABGgJwag&sig=AOD64_3Mhwy29KDIA6X2L3JOqqIfHlwvYw&ctype=46&q=&ved=0ahUKEwie-IOczfHaAhUX-GMKHY2mBH0Q9aACCC8&adurl=

OliverDoesereck
Tera Guru

It would be awesome to allow you to choose your framework in the portal. So which versions of angular, jquery, bootstrap, fontawesome etc. With addition to adding your own frameworks. I wouldnt bother with trying to migrate widgets between Angular 1 and 2, its just too different

ogMGOPW
Tera Contributor

Hey guys! On page 37, step 19.b: the name should be 'cloud_events_home' not 'cde_index'.

🙂 Just giving a heads up~

howellm
Kilo Expert

FYI for use in widgets that is not in the book. You can access g_form by using $scope.page.g_form.

 

Example:

var g_form = $scope.page.g_form;
$scope.g_form = $scope.page.g_form;

g_form.setVisible('field name', bool);

Sean7
Kilo Explorer

During our last SNUG's someone shared the snexperiences.com website. The Innovation Design System has some great widgets and examples around bootstrap components. 

There main website has some great overall/experience examples built out.

caroleanderson
ServiceNow Employee
ServiceNow Employee

Thank you for sharing this, Sean!

conanlloyd
Giga Guru

Yeah, I'm Canon for the same reason.  Too much glass to switch.  Also I'm very used to the Canon button layout.

Currently have a Canon EOS 6D and a 7DmkII. Also have an EOS 60D that has been converted for IR photography.

Looking to get an underwater rig at some point but need "the boss'" approval for the expenditure 🙂

conanlloyd
Giga Guru

Gotta say, those do look tempting.

caroleanderson
ServiceNow Employee
ServiceNow Employee

Great info! Thanks for sharing!

OliverDoesereck
Tera Guru

Any chance of getting Jon Crane to sharing the Crisis Center code? 😄

conanlloyd
Giga Guru

Yeah, it's not quite Sharks/Jets or Apple/Microsoft and most people seem to have what they used by what they were started with.  I've used a friend's Nikon and liked it but am too used to the Canon ergonomics and have far too much glass to switch now.

howellm
Kilo Expert

Build the portals in scoped applications so you can then integrate with GIT, and they are scoped so that's even better.

Paul Porter
Tera Expert

Thanks for this!

Version history
Last update:
‎04-12-2018 10:44 AM
Updated by: