You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom Script in Report to access Custom Object.

Accepted answer
16
Views
2
Comments
edited Jun 8, 2022 12:00PM in General Technical Discussions 2 comments

Content

How do I access a CustomObject value from a Report? I used Custom Script availble in the Report and uses sql_prepare and fetch. But in sql_prepare statement I always get _ is an unexpected token. Appreciate any help on this.

Code Snippet

             $querystring = "Select blah blah";
$query=sql_prepare(sprintf($querystring));

sql_bind_col($query,1,BIND_NTS,250);
while ($temp = sql_fetch($query))
{
$rows[0][8]->val = $temp[0];
}
sql_free($query); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!