Session Two - Video 2 | Service Portal basics |ServiceNow tutorial BY :: Dhruv Gupta
hello guys how are you myself drop CAPTA you are watching video 2 section 2 of service coat will be 6 Series in the last section in the last video we developed this portal using out-of-the-box stuff now we will raise a bar and will understand how to clone widgets so I will give you a scenario ok so assume you have demonstrated this to client this portal to client and here you we have used my approvals approvals widget basically out which comes out of the box and the customer has asked you you know to add one or two more feels like CMD BCI or the risk and do some update on this approvers doesn't look nice ok so in this situation assume that you have an albatross around your neck and you have the knowledge that much knowledge only that you have got through my videos ok so how to deal with these kind of situations ok so let's get started me in the impersonation let's go to our favorite H so we know that approvals widget will help me out that I just need to tweak it a bit and it would be fine for you ok so let me just open that widget for you ok so as you can see this widget is read-only and cannot be edited okay so this is out of the box baseline measures and these are read-only so we need to clone this so grown-up tools let me just get some good name we can create a test page but currently we do it okay so let's check our widget if we have got it I guess we have got it correct name let it open to the two now we are in situation you know we in future videos I will tell you how all these things work okay we will create widgets from scratch will understand how global objects work okay but currently we are in a situation like we have to give it by tomorrow okay so you're just trying it okay so first thing first first thing that would come to our mind you it's getting these records from somewhere so it must be gliding the change table or the task table so first let's get that data and then we'll put it in HTML okay so first let's search for it it must be in the server script as the name suggests so just see if we can get something indeed there must be some thing you see here it is open by start date end date okay so what I will do I'll just let me just copy this you must be some object that they are using I know this is wrong way we should be you know getting things learn first about all of these HTML Javascript and all but if you are on situation now for creat me creating this video done I mean this is something that you know you will get on daily basis so I'm just bringing out CMDB CIA at risk so in the HTML I must be putting it somewhere so ya see here it is okay so let me just put it after the empty it and so I'll try to put ctrl-c ctrl-v one force MDB and one for risk okay so let's first to the MTP underscore CI CI I'm just assuming that it will work in this manner only okay I might be wrong but I have to give some heat and dry risk risk I have put it like this over here do not risk it looks fine so let's save it and let's just open our /sb underscore 150 page what I'll do I'll just add this widget you know below the approval widgets so sure I can compare okay so first we need to check whether we are in the correct portal yes we are in the creek portal and let's open our next yeah and remember changing the index thing but don't worry I will do that surely we'll do that math okay so let's search for our approval button in the same container I won't put it in the sea the same container you just throw it back okay so blue one is mine okay so we might person it that guy again okay let's go back let's impersonate look so somehow we were able to get the CIA and risk now what we need to do we need to put Collins and this approved let's first try with Collins let's end that impersonation you need to put : so it shows me it's a label so it must be here 1d your friend is saying you know test that is these two if it would be wrong I'll just retest it again but I feel like I'm sure that it won't be wrong right it must be for some card a lot kind of thing so let's put over here Israel let's save it let's again impersonate Luke tada don't think that it left is this so yeah going good man you're doing good okay so let's end our impersonation and now we have to somehow play with this so so let me define one customer over here five pixel fine okay so I'm setting it over here it won't help I need to update that button as well that's the feeling that I'm getting so where's that button button button it should be a button button button button it's close it off it off rural state is the pie right don't track that approve button name of who so it must be the one you just try putting work here let's see this that's again impersonate Luke Wilson and let's just refresh it's working fine so let's just give it a let's configure its options I don't want it to have look 10 because it's looking like a schmuck it some 5 is fine so I need to reload instance options number of elements I want to show 4 or 5 so 4 + + page editor let's remove this yes ma'am please notice and that's impersonate you look once again and let's refresh this tada so it's looking nice so target for this video is a cheese all the things that I want to tell you you know majorly we get stories you know to configure the portal using out-of-the-box widgets but sometimes we get stories majorly we get story something like this thing that we have done just right now is like just tweaking up it the out-of-the-box widgets creating widgets from scratch we do get but will also create in the future videos but that count is very less and for that we I used to lie I still rely on the community so sometimes it is very important to understand these things as well and we have got so catch you later
https://www.youtube.com/watch?v=EjlBjwdpDoU