The code below is for Administrator field:Address book ==> Groups ==> Pick a group ==> Administration tab ==> Administrator field.
The address book is located on my machine and am able to look at the code. The field name is LocalAdmin as shown below:
_tFieldName := “LocalAdmin”;
But when the file is on the server, how do I know the name of the field since I need to retrieve data from this field. How can I do this?
============================================
REM {Web address picker};
@If(@ClientType = “Notes” | !@IsDocBeingEdited; @Return(“”); “”);
_tLabelOneItem := “administrator”;
REM {DNT};
_tFieldName := “LocalAdmin”;
_tDb := @ReplaceSubstring(@Subset(@DbName; -1); " “:”\" ; “+”:“/”);
"<a onclick="
initTools();
var hDlg = window.hDlgAddrMulti;
hDlg.sMsgOneEntry = '"+ _tLabelOneItem +"';
hDlg.hDestField = document.forms[0]." + _tFieldName + ";
hDlg.dlOpen();
return false;
" href=""><img src="/" + _tDb + “/btnPicker.gif?OpenImageResource" width="15" height="11" border="0" alt="">”
Thanks for your help.