With a click on that field I want to open that person's record.
So I created a small generic gotoPerson() function that performs this task.
- Code: Select all
/**
* @param {JSEvent} event
* @param {String} sUUID - UUID of a person
* @public
* @properties={typeid:24,uuid:"B4D8147E-ACA5-468B-95CD-AD41140567C1"}
*/
function gotoPerson(event, sUUID) {
if (sUUID) {
scopes.nav.showForm('frm_person_general_dtl', sUUID);
}
}
When I want to hook my onAction() event of the tableField to gotoPerson(), my problem is that my second parameter creation_user_id is assumed to be a string and automatically surrounded by quotes.
But I want to provide the value of this field to the function, but how?
I already tried to put %% around it, but that gets also surrounded by quotes.
(What I want to avoid is to code an explicit function inside the form.js for this simple task, instead I want to call the function directly by using the onAction() property.)