Here's is an array with 5 elements 2.1.2 :001 > arr = ["a", "b", "c", "d", "e"] => ["a", "b", "c", "d", "e"] Lets look at few different cases Insert a new element at starting position Using unshift 2.1.2 :002 > arr.unshift("f") => ["f", "a", "b", "c", "d", "e"] Using insert 2.1.2 :005 > arr.insert(0, "f") => ["f", "a", "b", "c", "d", "e"] In the above example 0 is the position(index) Move existing element from one position to another The element in this case is "e" Using uniq to show only unique elements 2.1.2 :009 > arr.insert(0, "e").uniq => ["e", "a", "b", "c", "d"] With uniq we are only showing unique records but the element is listed
There are multiple ways to implement one-to-many relationship in ServiceNow Reference Fields GlideList Document ID fields ServiceNow has provided "Document ID" field to hold a reference of any table because at some times we have a requirement to hold the reference irrespective of the table. Document ID lets the user choose the table and the associated record
What is sys_id? Which protocal is used for create, update and delete incident through emails? How do you reference a Request Item's variable pool from any table? In a client script when should the call back option be used in 'getreference' How are workflows captured in update sets? How to flush out the servicenow instance chache? What are the few 'best practice' client side technologies that can speed up form speed without affecting performance? If you add a short description field to the task table? Does it also get added to child tables of the task table? When Using "g_form.getReference()" what is best practice? What would improve the performance of loading forms within ServiceNow? Can you call a business rule with the help of a client script? How Can You Cancel A Form Submission Through Client Script? What happens when a user make some changes to the homepage ? How you can remove Remember me check box from logi
Comments
Post a Comment