I'm having a difficult time getting the openRecordPicker function to work. I changed "?a=GenNewRecord&bg=1" TO "?a=recordPicker&rpqid=6&showNewMaster=1&rpinstance=reffield". it doesn't seem to understand/find this form. I tried a couple different variables of the URL of the record picker but it doesn't seem to work. ANy ideas? Below is the full function.
function OpenRecordPicker(mdbid, item, fid) {
alert("module.js is now loaded - I now own your page");
var width = 1200;
var height = 600;
var centerLeft = (screen.width / 2) - (width / 2);
var centerTop = (screen.height / 2) - (height / 2);
var settings = "";
settings += "width=" + width;
settings += ",height=" + height;
settings += ",scrollbars,resizable";
settings += ",left=" + centerLeft;
settings += ",top=" + centerTop;
AM_window = (window.open(mdbid + "?a=recordPicker&rpqid=6&showNewMaster=1&rpinstance=reffield", "_blank", "width=1200,height=600,scrollbars,resizable"));
if (!AM_window || AM_window.closed) {
return
}
masterDBID = mdbid;
detailRPfids = fid;
AM_window.focus();
window.setTimeout(UpdateDetailPage, 50)
}