post ui action interview questions ?

Raju kunde
Tera Contributor

post UI action interview questions?

4 REPLIES 4

Sanket Khabiya
Kilo Sage

Hi,

Below are few frequently asked question on UI Action:



1. Can we write client side and Server Side code in UI Action?
2. How to control visibility of UI Action?
3. Type's of UI Action?
4. How to right both Server side and client side code in UI action.
5. What is gsft in UI Action?
6. How can you send notification using UI action?

Regards,

Sanket

AbhishekGardade
Giga Sage

Hello Raju,

here are some questions and answers.

1. Can we write client side and Server Side code in UI Action? What is gsft in UI Action? How to right both Server side and client side code in UI action.

Anwer : Yes, we can. With the help of gsftSubmit we can achieve this. gsftSubmit() triggers the UI Action which is specified in the 3rd parameter, which is the action name/element id.

It is mostly used in UI actions that have a client side and a server side script. At the end of the client side script, you call gsftSubmit in order to trigger the UI Action again - this time running only the server side code.

Refer this blog for detailed explination.

https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/

2. How to control visibility of UI Action?

Answer: a.You can Control UI action visibility by role

             b. Control UI action visibility with views 

You need to have the conditions in the condition field box in UI action.

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/list_administration/co...

3. Type's of UI Action?

Answer: UI actions can be client side or server side or it can be both at same time

4. How can you send notification using UI action?

Answer: You can trigger notification from ui action by using gs.eventQueue()

https://community.servicenow.com/community?id=community_question&sys_id=528213a1db101fc01dcaf3231f96...

5. How we can override existing UI action for specific table? how to Override global UI action ?

Answer:  I believe I have a solution. If the UI Action has current.canWrite() in the condition, then creating a security rule where the name is the name of the table and the field names is set to none, not * and then adding the appropriate role seems to work. Marking this as resolved.

Read this blog by Chuck :

https://community.servicenow.com/community?id=community_blog&sys_id=d01e6e2ddbd0dbc01dcaf3231f9619df

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/list-administrati...

Please mark as Correct Answer and Helpful, if applicable.
Thank You!
Abhishek Gardade

Thank you,
Abhishek Gardade

Any updates on this?

Can you please mark my response as correct and close this thread so that others with the same question in the future can find it quickly.

Thank You!

Abhishek Gardade

Thank you,
Abhishek Gardade

Azim Kazi
Giga Guru

Hello Raju,

            Here are some UI Acton's important ques which might be asked in interview:

  1. Types of UI Action
  2. Send notifications using UI Action
  3. On which side UI Acton work
  4. Give scenarios for UI Action
  5. can we write only client side script in UI Action
  6. elaborate gsft submit
  7. did you overridden UI Action
  8. what is visibility in UI Action
  9. what are restrictions for UI Action
  10. How you can redirect URL using UI action
  11. can we use UI action for making field read only
  12. can we call UI Action in Business rules

Hope these Question will help You

 

 

Mark my response helpful and correct if it is satisfactory.

                         ALL THE BEST!!!

 

Regards,

Ajim.