Access server data from client (g_scratchpad)

  Рет қаралды 3,305

TechWithPri

TechWithPri

Күн бұрын

Пікірлер: 26
@shaafiqandshoaibvlogs
@shaafiqandshoaibvlogs 10 ай бұрын
super. waiting for next video
@techwithpri
@techwithpri 10 ай бұрын
Keep watching and keep learning, New video is coming today.
@VC777
@VC777 2 күн бұрын
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?
@techwithpri
@techwithpri 8 сағат бұрын
Yes , you are right 🤓
@lvallabhasricharankancharl5933
@lvallabhasricharankancharl5933 2 ай бұрын
at 15:51 how to get field name like for example - Configuration item | cmdb_ci and Problem | problem , Assignment group | assignment_group..
@baatyr_patta1068
@baatyr_patta1068 10 күн бұрын
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); }
@techwithpri
@techwithpri 9 күн бұрын
Hey 👋 What is current.incident ?? it should be current.sys_id.. isn't it?
@baatyr_patta1068
@baatyr_patta1068 6 күн бұрын
@@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.
@techwithpri
@techwithpri 4 күн бұрын
So are you trying to create Incident task or task in the problem table?
@baatyr_patta1068
@baatyr_patta1068 4 күн бұрын
@@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
@shikhasingh3873 Ай бұрын
Why does first use case is returning undefined?
@techwithpri
@techwithpri Ай бұрын
Hey 👋 Share me the code so that i can do analysis further 🤓
@MoeGriffin
@MoeGriffin 21 күн бұрын
check for spelling errors in your script.
@MohammadTabishAbdullah
@MohammadTabishAbdullah 6 ай бұрын
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
@techwithpri
@techwithpri 6 ай бұрын
Hey !! It should be A and B 🤓
@funfusion8712
@funfusion8712 2 ай бұрын
don't understand gr.get(current.problem);
@techwithpri
@techwithpri 2 ай бұрын
Trying to get the sys_id of the problem record with the help of this line of code 🤓
@GillerlaRajesh
@GillerlaRajesh 2 ай бұрын
What are drawback about it. I think you forgot it
@techwithpri
@techwithpri 2 ай бұрын
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.
@GillerlaRajesh
@GillerlaRajesh 2 ай бұрын
@@techwithpri it support only onload only not for onsubmit and onchange right this is the exact drawback right
@techwithpri
@techwithpri 2 ай бұрын
Yes the onChange client script works in a dynamic way only and for onSubmit g_scracthpad wont work that's right 👍
@Kannavolgs37
@Kannavolgs37 10 ай бұрын
How to use in real-time
@techwithpri
@techwithpri 10 ай бұрын
Please check the use case I have given which is also real time scenario..please watch the full video, to clear your doubts 🙂
@simhareddy1948
@simhareddy1948 10 ай бұрын
Nice info... case 2 scenario we can write After BR also right?
@techwithpri
@techwithpri 10 ай бұрын
@@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..!!
getReference ( no callback) vs getReference (callback)
14:32
TechWithPri
Рет қаралды 2,4 М.
What is Script Include?
16:49
TechWithPri
Рет қаралды 3,4 М.
Apple peeling hack
00:37
_vector_
Рет қаралды 123 МЛН
ServiceNow Order Guides and Record Producer
23:37
TechWithPri
Рет қаралды 8 М.
How to Create View Based UI in Pega Constellation
12:00
Pega Techie Chapters
Рет қаралды 245
Are React client components bad?
4:21
leerob
Рет қаралды 30 М.
ServiceNow CMDB Fundamentals - Configuration Management Database Demo
24:28
ServiceNow GlideUser (g_user) API
16:26
TechWithPri
Рет қаралды 2,7 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 460 М.
GlideRecord
18:55
TechWithPri
Рет қаралды 7 М.
On Demand/Classless Script Include (with use case)
15:03
TechWithPri
Рет қаралды 2,8 М.