“模态”对话框调用的“APEX模态”对话框 - 如何返回所选数据APEX 5.0

时间:2015-07-17 18:29:58

标签: javascript modal-dialog oracle-apex

我有一个模态表单对话框,其中会弹出一个搜索按钮 联系人列表。 当我选择一个联系人时,我想将该联系人的数据返回到之前的模态对话框。 我看到我可以使用动态操作返回页面项。但我正在努力 从选中的列行返回数据,因此我不太确定如何返回列#COLUMN1#,#COLUMN2#。我试图用javascript尝试这个,但是在找到正确的父对象时遇到了问题, 使用这样的东西: 链接设置为NO

       function passBack(passVal1,passVal2,passVal3,passVal4,passVal5,passVal6,passVal7, passVal8,passVal9,passVal10,passVal11,passVal12,passVal13,passVal14,passVal15,passVal16,passVal17)
   {
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_FIRST").setValue(passVal1);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_LAST").setValue(passVal2);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_NUMBER").setValue(passVal3);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_DIRECTION").setValue(passVal4);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_STREET").setValue(passVal5);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_STREET_TYPE").setValue(passVal6);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_POST_DIRECTION").setValue(passVal7);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_SUITE").setValue(passVal8);
     parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_AREA").setValue(unescape(passVal9));
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_CITY").setValue(passVal10);
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_STATE").setValue(passVal11);
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_ZIP").setValue(passVal12);
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_AREA_ID").setValue(passVal7);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_PHONE_NUMBER1").setValue(passVal13);
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_EMAIL_ADDRESS").setValue(passVal14);
//document.getElementById("&POPUP_PAGE_APPITM."+"_RC_EMAIL_ADDRESS2").value = passVal14;
   parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_CONTACT_ID").setValue(passVal15);
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_CONTACT_METHOD_ID").setValue('96');
    parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_CONTACT_SOURCE_ID").setValue('120');
    //parent.apex.item("&POPUP_PAGE_APPITM."+"_RC_CONTACT_TYPE_ID").setFocus();

   apex.submit('CLOSE');
 //  apex.util.getTopApex().jQuery( this ).dialog( "destroy" ).remove(); 
   }

0 个答案:

没有答案