Skip to content

A Client Callable script include which will query to the table and will return the set of columns

Notifications You must be signed in to change notification settings

vandna07/glideAjax-table-column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

glideAjax-table-column

A Client Callable script include which will query to the table and will return the set of columns. Below is the example of this code. Client Side Usage Example:

var tableName = 'sys_user'; var user = g_user.userID; var query = 'sys_id='+user; var col = 'user_name,email'; var ga = new GlideAjax('getTableColumnsClientSide'); ga.addParam('sysparm_name','getColumnsClient'); ga.addParam('sysparm_tableName',tableName); ga.addParam('sysparm_encodedQuery',query); ga.addParam('sysparm_columns',col); ga.getXML(HelloWorldParse);

function HelloWorldParse(response) { var answer = response.responseXML.documentElement.getAttribute("answer"); alert(answer); } Server Side usage example:

var gr = new getTableColumnsClientSide(); var user = gs.getUserID(); var query = 'sys_id='+user; var col = 'user_name,email'; gs.print(gr.getColumns('sys_user',query,col));

Benefit: We can share this scripts usage examples with the regional developer, who don't have access to write custom scripts for catalog client script.

About

A Client Callable script include which will query to the table and will return the set of columns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published