Keep watching and keep learning, New video is coming today.
@VC7772 күн бұрын
Was the reason a new GlideRecord object wasn't needed in the first use case because the field used was a reference field, which already had access to the fields of the sys_user record through the sys_id?
@techwithpri8 сағат бұрын
Yes , you are right 🤓
@lvallabhasricharankancharl59332 ай бұрын
at 15:51 how to get field name like for example - Configuration item | cmdb_ci and Problem | problem , Assignment group | assignment_group..
@baatyr_patta106810 күн бұрын
Hello Pri, thanks for your videos. I tried the same code (g_scratchpad) in your video for incident --> incident_task but it did not work. Could you explain, why it is not working? BR var gr = new GlideRecord('incident'); gr.get(current.incident); g_scratchpad.inc_parent = current.incident; g_scratchpad.short_description = gr.short_description; g_scratchpad.description = gr.description; g_scratchpad.assignment_group = gr.assignment_group; Clent Script if(g_scratchpad.inc_parent){ g_form.setValue('short_description', g_scratchpad.short_description); g_form.setVlaue('description', g_scratchpad.description); g_form.setValue('assignment_group', g_scratchpad.assignment_group); }
@techwithpri9 күн бұрын
Hey 👋 What is current.incident ?? it should be current.sys_id.. isn't it?
@baatyr_patta10686 күн бұрын
@@techwithpri thank you for your reply. I have tried with current.sys_id but it did not work. In your example you used current.problem that is why I used current.incident because incident is field name in the task record. I assume because incident task is created over right click not over related list, there is another script running which has higher order or priority.
@techwithpri4 күн бұрын
So are you trying to create Incident task or task in the problem table?
@baatyr_patta10684 күн бұрын
@@techwithpri My challenge is to create incident task from incident (right click --> create incident task) and pass some field values (description, assignment group) form Incident to incident task via g_scratchpad method (BR and Client Script). But for some reason it is not working.
@shikhasingh3873Ай бұрын
Why does first use case is returning undefined?
@techwithpriАй бұрын
Hey 👋 Share me the code so that i can do analysis further 🤓
@MoeGriffin21 күн бұрын
check for spelling errors in your script.
@MohammadTabishAbdullah6 ай бұрын
Which of the following is true about g_scratchpad? (Choose two.) A. Used to push information from the server to the client B. Does not exist on the mobile platform C. Has constructors and methods D. Has default properties passed by client-side scripts What will be the correct answer
@techwithpri6 ай бұрын
Hey !! It should be A and B 🤓
@funfusion87122 ай бұрын
don't understand gr.get(current.problem);
@techwithpri2 ай бұрын
Trying to get the sys_id of the problem record with the help of this line of code 🤓
@GillerlaRajesh2 ай бұрын
What are drawback about it. I think you forgot it
@techwithpri2 ай бұрын
Hey 👋 Yes that's very important point !! I think the most important drawback is definitely its not dynamic, you have to load the form to see the changes every time.
@GillerlaRajesh2 ай бұрын
@@techwithpri it support only onload only not for onsubmit and onchange right this is the exact drawback right
@techwithpri2 ай бұрын
Yes the onChange client script works in a dynamic way only and for onSubmit g_scracthpad wont work that's right 👍
@Kannavolgs3710 ай бұрын
How to use in real-time
@techwithpri10 ай бұрын
Please check the use case I have given which is also real time scenario..please watch the full video, to clear your doubts 🙂
@simhareddy194810 ай бұрын
Nice info... case 2 scenario we can write After BR also right?
@techwithpri10 ай бұрын
@@simhareddy1948 After business rule works only after the form is saved, but check the use case..it should display those information while you open the create task form (problem_task table.). So it should not work by using after business rule..!!