what is table_sys_id while making a code for mandatory check

Bilal Ahmad2
Giga Contributor

what is table_sys_id   while making a code for mandatory check

and what is gel() method and which value do we fetch using this method

8 REPLIES 8

Deepa Srivastav
Kilo Sage

The table_sys_id field on the sys_attachment table is the sys_id of the target record - the record you want to add the attachments to.


'gel' is simply a shortcut for 'document.getElementById', which is standard javascript.


HTML DOM getElementById() Method



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy


hello deepa



your answer is very nice it has cleared my doubt but i am still confused with the parameter which is passed under gel()


for ex. in the below statement


var cat_id = gel('sysparm_item_guid').value;


from where   do we get this value "sysparm_item_guid "


var cat_id = gel('sysparm_item_guid').value; //'sysparm_item_guid--this will get current cart item in the order guide



//gel--It is a shortcut for " document.getElementById ", it's javascript function.


Regards
Harish

it is the html id of the element. you can find it by right click then choose 'inspect' and then in search box put sysparm_item_guid. Hope that answers your question.



find_real_file.png



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy