Hi All,
While creating an Event, I have a suitlet code to search for all employees which are available and some other criteria, which is working fine. Now I need to select one among those employee search results and when submitted must get this employee name and set to the Attendee.
But selecting search result only is not getting because:
list.addColumn('custentity30','checkbox','Check me','RIGHT');
is throwing an error checkbox is not valid type.
So also help me how the selected result goes directly to Attendees line item in Event record.
I am also providing below the code snippet:
var list = nlapiCreateList('Simple List',true);
list.setStyle(request.getParameter('style'));
list.setScript(38);
var column = list.addColumn('entityid','text', 'Employee name', 'LEFT');
column.setURL(nlapiResolveURL('RECORD','employee'));
column.addParamToURL('id','id', true);
list.addColumn('address','text', 'Address', 'RIGHT');
var returncols = new Array();
returncols[0] = new nlobjSearchColumn('internalid');
returncols[1] = new nlobjSearchColumn('entityid');
returncols[2] = new nlobjSearchColumn('address');
var results = nlapiSearchRecord('employee', null,null, returncols);
list.addRows( results );
list.addPageLink('crosslink', 'Create Phone Call', nlapiResolveURL('TASKLINK','EDIT_CALL'));
list.addPageLink('crosslink', 'Create SalesOrder', nlapiResolveURL('TASKLINK','EDIT_TRAN_SALESORD'));
list.addButton('custombutton','Simple Button','testFunction()');
response.writePage( list );
I am getting list but how can i select 1 among them?
Awaiting your valuable replys....
Thanking You in Advance,
Sravan Surya