logo

NJP

Community Live Stream - Behind the Answers - Views and view rules

Import · Sep 28, 2020 · video

[Music] good morning good afternoon good evening wherever you are and whenever you are welcome to the community live stream my name is chuck tomasi from servicenow and i am here to talk to you about views and view rules this is september 28th 2020 and this is the place where you can learn more than you ever thought you'd know about something seemingly so simple thank you to viewer john for contributing today's topic we are going to take a look behind the answer of how to manage views and view rules some of the parameters and settings and we're going to get we're going to start easy and get deep into this real quick just a reminder if you're watching this on youtube don't forget to hit like subscribe turn those notifications on you know what to do this is youtube after all and a number of you have been so kind as to leave comments in the past thank you very much for the kind words and the helpful tips that you've got there may be a question or two in here that i can't answer but uh they've always seemed to come out either in the community which i'll post this video back to the community actually i think it's already live there so if you're watching that way thank you very much we also do this on twitter if that's your choice of watching it'll be around for a couple of weeks just in case there's some technical issues good morning to everybody checking in on youtube i do have a a chat just off to the right so if you see me glancing around in odd places it's either to quickly review my notes or to check the chat to see if there's a question but we will get that going thank you very much for everybody who's joined me again if you do have a question outside the topic of views and view rules then please post those to the community community.servicenow.com is where you can post those questions those issues those answers many many subtopics i could see over here on the communities menu on the left and if you scroll down it says even more there are things that are geographically centric there are things that are topically oriented there are things that around applications lots and lots of great information in the community i encourage you go be a participant in there not just a passive observer but ask your questions and as you learn something share it in a blog post it's a wonderful experience great way to grow your brand and share your expertise and other people will consider you a subject matter expert on at least something it's it's a lot of fun i've been having a wonderful time in there also reminder that along with the community we've got the developer portal invite you to go over there you know what i'm going to show that in real space let's see if i can do that there we go i am logged in we've got a number of badges across the top here that you want to pay attention to see if i can get that yeah up there so that you can uh keep track of upcoming events new things that have been released we've got the breakpoint podcast i'll talk about in just a second and then free learning plans free personal developer instance under connect we've got the share community where we can share code snippets and applications and integrations we've got the running blog which is currently featuring our hacktoberfest article i just did the podcast with jason mckee last wednesday this wednesday we will be talking about two andrew barnes about hacktoberfest which is right there if you're not familiar with that it's a way to contribute to an open source project i've got two or three of my own in the pipeline started them this last weekend i will be contributing those to get and making those available to other people who want to help participate in that a lot of fun doing that so developer portal at developer.servicenow.com it's around somewhere i lost the subtitle there it is we'll do that developer.servicenow.com is where you want to go to get all that wonderful wonderful information grow your career get more pay buy a bigger house have a happy family okay i can't promise you all that but what i can promise you is that the developer portal is at developer.servicenow.com after that one of the things we do offer up there is meetups over at meetup.com this is also available on that connect menu at the top of the developer portal lots of meetups coming up all around the world we've got you can see chapters chapters chapters lots of places for people to meet many actually all of them are virtual at this point uh we'll be attending the vancouver and phoenix meetups this week so if you can join even if it's not in your time zone you got to stay up an extra hour or wake up an extra hour early hopefully you can learn something there really looking forward to both of those i will be doing a short presentation at i thought it was phoenix it could be phoenix i know there's one coming up in texas that i'm going to be presenting out on the 16th so trying to keep this all straight yeah the texas one in austin i'll be talking about the paris platform features very similar to the tech now episode 77 that we did at the end of july so let's get on with that i do these announcements for those of you that are new to the series not to waste everybody's time we've been here a long time but for many people this is the first time they've ever watched any one of the community live stream videos so i want to introduce you to the ecosystem let you know there's a lot of stuff out there great great information including creatorcon coming up october 27th mark your calendars block that time off just just block out the whole day i know it's a half day event but i don't know what half day it is for you it could be spaining the midnight hour don't know it could be 2 a.m to 6 a.m so block that off of course if it's that late then it might be actually the 28th for you if you're in australia don't mess me with don't mess me up with time zones the the on-demand content the workshops will be coming out on the 20th so you can actually do those beforehand and then when we get to our water cooler our networking session at the end of creatorcon on the 27th you'll have something to talk about you can go in and ask the product managers and the experts about that specific topic i've got a question about ci cd for example and then the registration october 8th so that's a little over a week away looking forward to that keep your eyes open on your mailbox for creatorcon this is the developer event for q3 for the fall i want you to be aware of that this is also the last community live stream that i will be doing for 30 days i need to focus on creatorcon that right there so there's a lot of stuff that needs to be done before we get to the 20th and the 27th so in order to do that and help promote and increase the signal-to-noise ratio i will be not producing any of these videos until october 28th which is the next planned date october 28th will be the next community live stream i've got three or four of them planned after that so this will also give me a chance to go back into the backlog look at topics see how they line up make a logical order out of this stuff maybe even align it with some of the other discussions that we're going to have and then blink again it's going to be quebec time so time marches on waits for no one and i apologize that i won't be able to share more of this information but maybe you missed a few in the last two months it's a good time to go back and catch up since we've started focusing on topical ideas in mid-april of 2020. there's a lot of great stuff out there and i invite you to watch that so you could also catch up on break point we've got eight episodes i think i said episode eight will come out on september 30th with andrew barnes talking about hacktoberfest go over listen subscribe share that information bitly sn breakpoint this is the developer servicenow developer podcast discussions with product managers customers a lot of great people that will be talking to also we'll do break point we will be doing i forgot to put the registration link on there again bitly tn80reg apologize for that totally spaced on that by the time i get back to the 28th it'll be too late to fix that so tuesday october 20th go register i'm going to be talking with yaron guess about pla see if i can say this properly process automation designer and playbook he just got me his slide deck today i'm not going to bore you with powerpoints we want to get into some demos and whatnot so i'll be looking that over and organizing all of that today shortly after i conclude this program there's always something to work on always something fun to share with you this is going to be a good one i look forward to learning a whole bunch about that so not doing any code today so i'm going to skip over the github and the javascript stuff okay real quick plug for javascript if you want to learn more about javascript you're not comfortable with it maybe you're an admin it wants to become a developer maybe you're new to the platform you've programmed in another language here's a video series for you bitly slash sn-learn js and you can go learn more about javascript whole bunch of people have been reviewing these just got some more comments this morning responded to them thank you very much for the kind words i'm really really glad you find these videos helpful and it inspires me to do more and there's more coming more videos not more javascript although if we go to es6 at some point that'd be nice too so i'm going to leave it at that and i believe that means it's time to start our main topic about views and view rules let me scroll down to my notes where we can actually get started on this in short a view defines the layout of a list or a form that's it thanks have a nice day let's take a quick look at an example if i go to the incident for example i have incident open here and this is a layout a list layout and if i go into the form i have a form layout okay take a quick mental picture of that how many fields are on the form and how many fields are on the list okay it even has horizontal scrolling nobody likes that i must have done this as an exercise at some point to really mess with things on the list menu there is a view option now in order to see this you need the view underscore changer role admin automatically has it i'm logged in as admin but you need the view changer role to change views i believe it's included with itil there are some other ways that you can change the views for your users we'll get to that in just a second but this is currently the default view i also have as you can see portal self-service workspace so it's not just this list and this form i could have a vtb view which defines how the fields are laid out on the visual task board card card view no the form view of that so i can have different views if there isn't a view defined some are very special like self-service portal mobile workspace the system recognizes those keywords and knows when to apply those if it doesn't have a view with one of those names it will use default so let me for example go to self-service and when i switch views a couple of things happen one you'll notice up here on the top bar it says incidence self-service view and it's also behind the scenes changed my user preference to say you now want the in the self-service view when you go to the list so if i were to type up here incident.list it says oh that's the incident table and the last time you looked at that you chose the self-service view so i'll remember that that's a user preference you can find those under user preferences or the sys user preference table and look right at the top it says chuck's view is now ess that's the view name not the label that's the view name for self-service and it says your form view and your list view are now set to that so if i say incident dot do and just open up the form it's also in the self-service view ta-da okay no great magic there it's storing a user preference same thing happens when you sort a column same thing happens in a lot of places it says this is specific to chuck and this is the way he wants to remember things so i'll set that as a user preference we'll talk about those in a little bit i do have an upcoming topic on user preferences but suffice for now puts a little bookmark away for you goes that's the way chuck likes it that's the way chuck's going to see it that's a little bit about views notice that when i also go to incident.list and i drill into one of these forms it's got the self-service view so it remembers the list to form view if i change it here what do you think happens look there's a vtb notice i didn't have a vtb list view because visual task boards don't have a list so that's not a practical thing for it so it doesn't list it if i go back to default view different layout some people do this crazy thing with client scripts and ui policies where they start with the default view and go put it all out there for the itil people for example and they've got let's say 50 fields on the form and then they'll use a client script or a ui policy to sort of tweak it and shape it and i've actually seen people with 50 ui policies and client scripts and they load the form and you see this thing start morphing and changing like a transformer robot and it looks hideous and it takes time and it's just a bad user experience so rather than employing a lot of client scripts and ui policies for certain conditions consider using a view if the type is emergency change for example have an emergency change view if the type is standard have a standard change view use that as a basis and cut down on the number of scripts and ui policies that you have to write how database views are different from form or list views database views are a completely different topic good question because they have the word view in it it's simply an amalgam it's a virtual table if you will that combines two or more tables so if you're a database administrator or you remember anything about that you can create a view which is a almost like a calculation that says all right i've got a relationship between this table and this table let's combine them so that it makes one big virtual table that's what a database view is it has nothing to do with the ui view itself thank you good question because that could be slightly confusing let's go on that's the basics of views to create a view there's a couple of different ways i'm going to start with the list so let's go back to my incident list view i'm back on default it changed this user preference back to default and notice i want to show you this too user preference notice the value of the default view is nothing if you specify no view you get the default view i want to point that out when we start getting into creating views because which is what we're going to do right now when i go back to the incident list and i can go to list layout pick the column menu configure list layout and it says congratulations incident is in the global scope you're in the cls 323 scope i'm not going to let you play with this but i'll let you do a couple of other options i could create a view in the cls 323 scope sure why not i do that and it says what would you like to call this view let's call this the cls view and now i can edit the list layout okay pretty standard sysadmin stuff here let's for example shorten this up because i don't like horizontal scrolling i'm going to put the minimum things on here let's put the caller in the second field okay five columns and it's called cls i have created a new view it didn't exist before i can't uh change it it hasn't used it yet and when i look under views now i have cls i choose it and it does exactly what i would expect so creating views is very simple also notice that when i drill in here it's now on the default view it said oh you didn't have a cls view for the form but i can easily create one same kind of thing either through form layout or form design i go through form layout it's going to look a lot like it did before it's going to say hey this is a global app i'm not going to let you touch it i could create a view notice that it already has a cls view selected it says okay i know where you're headed that's what you had picked before i also want to point out the url is helping with this stuff a lot of information you find it very fascinating to look at the url in the url it has in here sysparm view equals cls okay the equals is encoded so it doesn't mess it up with the other parameters because equals is a special character but sysparm percent 3d cls says when you display this form when you display this list i want you to use this view so just so you know what's going on and how this information is getting passed from list to form if i were to create one if i go to configure form design it's not going to let me because it's going to say all right well to read all me because you're not in the right scope notice i can't click any cogs or anything but i could create a new view call it cls and now i can edit it it has created a new view in here let's put the number we're going to make this really really oh interesting where's my number field that's fascinating instead it has a number field i wonder where it went curious is caller in there no where are the normal fields this is really bizarre okay we're going to just make a really crazy simple form i don't know that feels like a bug to me let's see if we can pull that up in form layout so refresh way down here reload the form and it says oh now you have a cls view that's good let's find out what happened to that i want to go to this is a curious thing form layout do i have a number over here limit i do i wonder what's up with form designer okay that was bizarre now it remembers because the user preference said cls view for list cls view if you don't have cls view in the form it goes back to default kind of get the idea that's how you create that view you may be saying but chuck when i click self-service incidents it regardless of saying chuck remembered the cls view it always bring me back to you know what that shouldn't even be there it should be like that okay nine times out there my cls view must have been messing it up oh i know what it is i'll get to that in just a minute when you click this it says i'm going to the self service you every time on this module well that's odd there is a way to define on modules where the view goes and if your link type is set to i think it was none that was url that's interesting i'll show you an example that i did let's go to the cls application and i have an incident forced here and it has i got to go back to the cls app when will servicenow stop carrying views to other forms not sure what the question is there what the problem is in in many cases you want to inherit that view i don't know what you mean by other forms because if there isn't another view for that you got to use something so it's going to be default if you're on workspace it's going to look for a view called workspace it's not going to use self-service the uh unless there's some place you can specify that what i've got is i'll take that out for a second we'll get back to that does none allow you to specify that no okay if it's url you can put in here incidentunderlist.do which will bring up my incident list and i can say sysparm view equals portal every time somebody hits this it's going to go to the portal view that's the simplest way to do this so if i say this notice that it says portal view up here in the upper left of the list it's specifically driving me there there's a couple of ways you can do this one is through the module the other is through view rules and the view rules are typically used on forms to define based on the data let's let's get into that in just a little bit a couple things i wanted to tell you about because you may have run into it if that's the case with sysparm under view in the module url what is going on here in self-service incidents because we saw clearly there is it's going to the self-service view but there is no sysparm under viewing here ooh well a long time ago i thought it would be fun to create a couple of specially named functions these are no longer supported no longer used not even in the documentation but i point it out here so that you're aware of them in case you run into this and go where is this view being set if i go to business rules let's go to the system definition business rules there is one called incident functions that has a couple of scripts in it this is a global business rule do not use these okay i'm telling you right now there should be no reason for you to ever ever create a global business rule if you need a function put in a script include if you need to do one of these view kind of things there's something that i'm going to get to in a little bit but i point this out so that you're aware of it these have a format called table name get view name and it is and table name underscore list view name this one's for the form this one's for the list you can see the list one just calls the form one the function is global so it's known throughout it's not the global scope it's on the table global which means it's on every table so don't do that and it has this little script that says if you have itil or sn incident read then you can use whatever view you were going to start out with if the view starts with ess then get out of here if the view starts with sysref list one of those pop-ups for an incident otherwise it's going to send you to ess so this is how it calculates what view you should have based on a script a little bit brittle little bit obscure but i'm pointing it out because it's no longer documented these view i'm going to call them legacy view scripts i'm not even going to call them a rule are one way of doing that but i don't recommend it again just pointing it out here so that you're aware of them there is also this thing called view rules which you may have run into before a view rule uses data to determine which view should be displayed so let's take a look at the incident table does it have any i did not research this part well enough no but i know change request does at least it used to oh for crying out loud did i spell it right i spelled it right let's do this table group by we'll find a table okay cmdb cip switch has two view rules depending on what type of switch it is it may show you certain fields that are applicable to one type or another the condition let's go to global so we can actually read that condition not the encoded query says if you are looking at a record or a list on this view on this table in a browser i'm going to use the switch rule if it can route is false and can switch is true makes sense right if it's a switch versus something else it'll use this rule if it let's see the condition on the other one this was can route false can switch true this is can switch true can route true so both are true it will use switch with routing different view so this comes into play but let's go try that and it won't tell you what view it's using if i remember right cmdbecip switch.list hopefully we've got some data that we can use oh there's one can route false can switch false it's probably going to use whatever i tell it to and if i switch some of these parameters around those aren't even listed on the form how am i supposed to update this from the list of course let's go true true can route true can switch come on true and open it up again and i should get the ip switch view doesn't look terribly different to me and the view menu is gone when a view rule is in effect which is very important because you want to steer people to that view but don't change it because they may in fact change it to something incorrect if you start exposing fields that they shouldn't so view rules are very prescriptive they say i am going to put you in this view if this condition is true and you can't change out of it so if you're ever wondering why don't i have a view menu but i have views available it's likely a view rule is taking care of that for you there is let's see did i miss anything here if you need to we talked about creating views what if you need to delete a view well if you read the documentation it says go to ui views system ui and here are the views which is also on the table sysunder ui under view we talked about the view list form data model a few episodes back you can go read into that and it says check this and delete it i say no don't do that because especially with the out-of-box views that would be horrifically bad if you deleted the default view because look the default view here's something interesting that you really should pay attention to the default view has no name which is why it said sysparm under view equals nothing that says oh therefore i'm going to use the default view another interesting bit of trivia copy the sys id sometime out of oh i broke that let's do this copy this id out of that look what the sys id is it's one of the few places where it isn't a 32 character x id everything else looks fine okay that's what a society should look like very very rare that happens and i don't know why or i don't know how who who decided to do that but it's not there you can force a view depending on role or group yes you can and i'm going to get to that in just a second because that is the newer version of that script that i showed you before where it was saying gs.has roll itil and go to the ess view that global business rule script don't use that use what i'm going to tell you at the end so if you need to delete a view we just created a cls view there it is and it applies to only one table this is the view it again if you deleted this it would say all these form sections are going away all these lists look what would happen if you deleted the default view [Music] you would be in trouble on 2000 six hundred and thirty three views or i would your your number may be even greater they i would have a problem with a lot of forms and a lot of lists and a lot of related lists that don't it's just it's it's a big old mess don't delete an out of the box how do you know which ones came out of the box well if you're not sure don't delete it okay so what do you do instead well i'm not sure if cls was out of box or somebody created that for me hmm of course you could always tell by looking at who created and who updated it on the list but if you're not sure a safer way is to go and delete the form section and lists go to this related list you'll still have the view but it says ah this one applies to the incident table i don't need that form section anymore let's delete that it will probably come up with a thing that says oh by the way i'm also taking some fields off of this because they're related to this section you're deleting that's a cascade delete we talked about that and let's take care of the list as well much safer to do it this way do not just go delete a view or you are going to really really regret it leave things uh when in doubt leave cis ui view alone don't delete those records interesting that it's hidden you can also you know i never even noticed that does not show up on the view selection unless the user has admin role so you can hide some of these views you could make your own specialized views and drive them by the sysparm view parameter or a view rule or something else so very cool never noticed that just learned something as we were going around where else are we going view rule we can define using table custom field as well let's go look it's using the condition builder so if you put that on there yes that's how you delete a view you may also see let's go back to views views couple other things i want to show you in here before we move on system ui views is there are some views that start with rpt you can probably guess what those are those are for reports when you build a report a list report with a certain column layout it will start with the default view but then it will create a new one so let's go do that real quick i'm in the cls view let's do reports reporting create new and i'm going to make a very very simple list report not sure how that got so big i have my cursor back there we go report name cls demo table employee employees not the import not the import that one and let's make it a type list there's a there's a list okay and when i configure and say choose columns let's let's just say we want name and number take the rest out of there this is a view that doesn't exist it started with the default view that is what shows up on the default list but if i create my own and save that i will now have a new system ui views down here click sort these reverse order updated and it has created me not one but two new views that have to do with that and in there of course i will have a list on this table for this particular thing this is the society of that report record so now you know how reports are separate from other views again you may have a lot of reports with different views from their list their default list layout or their portal list layout or something of that nature just wanted to point those out that rpts are for reports don't delete them or your reports get really funky you can also specify i mentioned how you can still kind of in that system admin zone for those of you who haven't done this before if you have a cls incident where'd they go incident forced you can also specify in a list view so this is the portal view and i mentioned that you can specif you can put in here sysparm under view in the module definition ta-da okay no great surprise there there are a number of other places that you can do this and one is ui policies so if i look at and client scripts system ui ui policies if i take a ui policy that is in my application i don't know if i have any try that again application is cls not sure if not we'll make one we'll make one ui policy allows you to build conditional forms here is my client table let's see client view i can apply a specific ui policy to a view so in rather than saying global see the checkbox that says global right there i can specify a view very cool and pick one what views apply to this none i don't have a view that's on that table bummer let's try the employee table although i think i deleted that view already yeah i probably deleted that so it's not allowing me to do that but you can make this ui policy specific to that view same kind of thing with client scripts if i remember last time i checked client scripts had a text field that you just typed in the view name but we're going to check new come on slow browser take a drink nope same kind of thing ever wonder what that checkbox for global was that means it applies to all views this one you type it in you'd have to type in cls why one is a reference and the other isn't i don't know maybe for maybe ui policies had a little more love and they wanted to protect users against typing the wrong thing so that is that view rules let's talk about those real quick so i have a number of incident views and i have system ui view rules view rules allow you to specify which group by table again group by table there we are how they're do use data on the table and i believe the question was can you use custom fields yes you can because it's the condition builder the condition builder knows for example i've got a custom table called employee or the course table here we go course and then the condition builder says here's all the fields on the course table so if the state is draft i may want to see the form in one particular presentation you can build that out draft course okay you can use advanced and put in script that would be another way of doing this if you need to say dot walk to some other fields well you could not walk through the condition builder but if you need to do a glide record look up that kind of thing be careful though because you may run into performance issues when you script and do glide record lookups okay standard caveat that's one way you could put in script to say well maybe i want to do this based on a role not the data on there you could say if the user has that you've got access to a view you've got access to glides session in knock light session actually you do have but glide system gs.has roll is available in here you can tell if this is a list maybe you don't want to apply this to a form or a list so much better than that global business rule we saw before there's one other thing in here let's see don't delete any baseline views default advanced ess itil portal mobile vtb you get the idea use views as a baseline those are my good practices there is one other thing in here called navigation handlers and i did not know about these until i started looking up this topic and all of this comes from the docs page docs.servicenow.com you want to read yourself and do that i'm using the wrong pointing device manage it's view management okay don't let it steer you anywhere else go to view management and there's a page right at the top called view management and down here i said all right good stuff about how to change views and use them creating and deleting views make that a little bigger creating a view rule controlling when the system displays a view that's an interesting one i want to get into another one of those sysparm things for you and navigation handlers what is a navigation handler it's the modern version of that old crummy script and global business rule so i have a navigation handler under i thought it was under well i had a module but apparently it doesn't because it tells you right here go to sysnavigator sis navigator again if you've got questions of where is this view being set could be a view rule could be a global business rule could be a navigator but those are the places where you'll get that leave leave lead leave okay again specify a table i'm going to sort those oh i also forgot something else remind me about the default view one more time before before we close out because there's something that i did once upon a time that confused the heck out of me and i don't want you to follow into that so if i look at the syshub flow navigation handler look does this look familiar if you're on the particular view and it says manage security do some other stuff like this this is a simple script that is going to tell it where to go so a navigation handler let me read that yeah thanks navigationhandler is a scripted view rule and runs each time data from the specified table is requested in the form view does not apply to lists okay the following script comes from a navigation handler included with the hr plugin this script forces records from the table in the table field to use ess view for users with no roles sound very simple similar to what we had for the uh employee self-service the ess view in incident a little while ago very very similar only now you return an answer to which user which gets done first depends on a property you've got view rules and you've got navigation handlers you can flip them around with this property glide.ui.viewunderrule.check under after under nav under handler okay so it says rules come first or handlers come first by default i believe it's false yeah because you could set it to true don't quote me on that uh set it to true and then you can get those first not that you go into this level of detail very often this is a pretty advanced thing that i want to show you the other thing about default views before we get out of here looks like there's some other things going on there's there's a parameter called sysparm under view under forced and that is i had a hard time finding this but it uh it was available on a high kb article like if you google sysparm under view under forced you will see an article on hi how to override a list view using the application module if you put this into your application module when i had sysparm under view equals portal on that particular one i could say look you're going to the portal view whether you like it or not and when it does that it would normally change your preference and say okay you're not going to have the portal view i don't care what you had before you're going to get the portal view there's a couple of other parameters in here one is cis parameter forced equals true and the other is sysparm user pref module equals false says don't touch my preferences just temporarily this is the way you're going to see this list forever and for always when you click this module so keep that in mind you might come across it i haven't really seen it much yet default view watch this i go down to system ui views this is something that caught me do not create a view called default if you want the default view you use nothing it's as simple as that if you don't specify a view you get the default view if you specify one called default you are going to get a view called default default it's really bizarre a view called default view if i look in the ui views table and i look for sort a to z by name remember this one with empty has the society that's not a society it's called default view which means when i go to that view i don't see any string it's kind of weird there is another one called default i told you not to somebody did at some point create a view called default when they came up with a form or a list they typed in default and it has two lists on here sys push notification which i will go to and you see what happens cis push these are entirely different views when you click view look what i've got i've got default and default view tell me that's not confusing to somebody which one is which when should i use this one okay this is just insanity don't do it and if i don't even know which one's picked if i oh i do know which one's picked because it has a check mark default view and then i click well now it says default view wait what was the difference between that one wait what okay totally confusing and if you go in here it offers you just default view what happened to the other one oh it was for the list only don't go there don't call your view default or you will run into all kinds of problems it's just more confusing than it needs to be so i switched that back to default no that's what it was so i switch it back to default view oh there now i'm on the default view okay uh do you request wasn't it deprecated to you to use processor processors were deprecated but i can't really speak that much to the scripting in the view rules good question gerald every time when a report is created does it does a new view will be created to start with rpt that's an excellent question what do you say we go find out let's go create a new report and let's use a list report that has a default view so create report i will call this unimaginatively cls demo two on the table that i have before employer course i can't remember it must have been employee let's use course and let's make it a list that's good enough for me run save i don't believe it does because this is using the default view if that last segment wasn't confusing enough now let's go to sys uiview.list and sort this way and did it just create this at 748 it did so every list you every list report you create has its own pair of view definitions i'm not sure what this temp one does if that's a template or a temporary let's see if we can dissect this and figure out what the difference is we don't have a form section but we have a list and the list view says here are the fields one two three four five six from name to credits which is a carbon copy of the default view for that list and if i look at the temp one it says here is a list one two three four five six from name to credits not real sure why it creates two don't know one of those wasn't apparent was it no oh this is interesting look how long that is that is way longer than i expected this one is not long curious okay it must i don't know fascinating very fascinating so did i miss anything we got that um again don't use this example you find in incident functions in the global business rule that's been deprecated not documented use the advanced in the view rules or a navigation handler would be another example of that summary summary use views to give specific personas a unique display in lists and forms that's what they're good for use them to minimize the number of ui policies and client scripts you need to transform it start with a baseline use the view as a baseline and then if you need to use a view rule to enforce to lock somebody into that specific view again you can make that view hidden so they don't manually select it when they shouldn't be that is what i've got thank you again john for the wonderful topic and uh our next show again will be on october 28th that's when it's scheduled hopefully technology and health and everything else will be with me and with you until then i wish you all the best have a great week watch your mailbox for creatorcon email sign up get registered do the workshops and we can all have a wonderful time on the 27th wow 27th 28th it's going to be a busy busy month and i wish you all the best i'll talk to you on breakpoint and i will also talk to you on tech now and probably a meetup or two in between so until then take care be safe have fun learn something share something join the community and keep on developing thanks everybody take care [Music] bye [Music] you

View original source

https://www.youtube.com/watch?v=zsRLJGFFT_o