Reference Qualifier- Current object

niitnishant
Tera Contributor

Hi Experts,

I have a simple 'client callable' script include which i use to retrun active tickets for the user/caller selected on our 'new call' form. So we have Caller reference field to select a user, and a Ticket number reference field to list his/her active tickets.

I am trying to pass the caller identity i.e. sys_id using the current object, but looks like to the current object is not being passed.

javascript:new myTickets().getTickets(current.caller);

Current is not being considered for some reason, however for testing if i give any hardcoded user sys_id, it does work.

Any help will be appreciated!

Thanks,

Nishant

10 REPLIES 10

You written your reference qual wrong... you should only have the javascript part as I have, then return the whole string in the script include as I do.



//Göran