It's very good explanation, please make it whole clientscript, business rules and ui policies it's very useful for us. Thanks
@theBeastMastersDojo4 жыл бұрын
Thanks. I will create a few videos on the mentioned topics as well.
@sarahsanhithavemuri76044 жыл бұрын
Thank you it is very useful
@vishaljawalkar3422 жыл бұрын
thank you for guiding it the right way!! however I got a question. why doesnt getXML works instead of getXML Answer although both yielded the same logs
@theBeastMastersDojo2 жыл бұрын
getXml returns the whole xml document so you will have to make an extra effort via code to fetch the response/answer from it whereas getxmlanswer gives you the exact response you are looking for without an additional effort.
@srinivasarao296511 ай бұрын
If possible please share the piece of code where I am having first and last name variables in the catalog item and I have to auto generate the email before setting the auto generated email to the email it should validate if the email is already present in the user table or not if not it should set the value to the email field if it is present it should add the number to the end of the last name. The Validation of email should happen before submitting the form Thanks in Advance
@NEHA-ci3qi2 жыл бұрын
Hii, there is a reference field called caller field when we select a user in the caller field then user email field should get populated after selecting caller field using client script and script include please tell me the solution for this paste here both scripts code... As early as possible please...
@mansigupta72912 жыл бұрын
Script include is not callable from on submit ,can u make video on submit script include
@theBeastMastersDojo2 жыл бұрын
what is your use case?
@4_Haters Жыл бұрын
hello harshad can u make more videos on onchange client callable script include 1. if a user gone through a catalog form and when the user enters his email address and after making the check box type variable true then the details of user should be fetched it is like searching some thing in google
@theBeastMastersDojo Жыл бұрын
the same thing is already explained in this video. It will use the same concept of glideajax as already explained in this video. Is there a specific use case that you are not able to figure out even after watching this video?
@4_Haters Жыл бұрын
@@theBeastMastersDojo i have a check box type variable when it is check to true then it has to fetch the other details
@theBeastMastersDojo Жыл бұрын
@@4_Haters this video is the exact demo you are looking for. On selection of checkbox just pass the appropriate values to glideajax to fetch the required information... That's it.
@srilatha-sn5vx4 жыл бұрын
hi how to achieve :While creating a new Incident, check with CI, if already a CI exists in the incidents. Then assign new incident as child incident for existing Incident.
@theBeastMastersDojo4 жыл бұрын
Write a before insert business rule on incident table. you can check current ci details using 'current.cmdb_ci' and then pass this as a parameter in your gliderecord query for incident table. If any such incident exists then update the parent for current incident to the one you found via gliderecord...
@snehaldixit13272 жыл бұрын
I have done the same as per my requirement....but it doesn't reflecting the values
@theBeastMastersDojo2 жыл бұрын
did you check at script include end if the expected values are returned?
@levanshiaa69464 жыл бұрын
I'm trying to do the same for the catalog item , well it's displaying on the try now catalog page but it's not displaying on Service portal, can you suggest what am I missing .
@theBeastMastersDojo4 жыл бұрын
Make sure you have selected Ui type as 'All' in your client script for it to work in platform as well as portal.
@levanshiaa69464 жыл бұрын
@@theBeastMastersDojo Thank you, yes it's working after i choose UI type as 'all'
@mylittlejaanu5655 Жыл бұрын
Same script I tried but which is not working.. Please help on this
@theBeastMastersDojo Жыл бұрын
What is the issue?
@playwithjava3923 жыл бұрын
I tried this approach to populate the values in catalog form but in form it is populating "undefined" But in table corresponding data is present... Can u suggest any solution.
@theBeastMastersDojo3 жыл бұрын
Add logs in your script include and check before returning anything whether there is a value or not
@playwithjava3923 жыл бұрын
I treid with gs.info but some is coming ... Actually i want fetch the details from custom table and populate values on catalog form... In custom table i have 4 colum and one of then is snet with is unique... Ifuser will enter ip and first 3 sections of ip and snet first scectiob will match in that case that particular recod data will populate in catalog forms variables
@playwithjava3923 жыл бұрын
I used gr. addQuery('snet', 'STARTSWITH',' ip') in ip i captured first 3 sections of user's ip adderess
@theBeastMastersDojo3 жыл бұрын
@@playwithjava392 if you are getting data after your gr.query() runs then it should work fine. Whatever data you are returning from the script include, before returning convert it into a string and then add those variables to object and then return that object from the script include.