F4 help in MVC(within subcontroller)
Hello,
F4 help is working fine if both the parent and popup are pages with flow logic.....In MVC model, i tried to get the F4 help within a sub controller. I am getting the popup but couldn't pass the value back to the parent view..
JavaScript code in popup window
-
function getData()
{
if (window.opener && !window.opener.closed)
window.opener.transf("<%= lv_blart %>");
window.close();
return true;
}
JavaScript code in parent view
-
function getDocTyp()
{
document.open('docTyp.htm',window,"height=400,width=215,resizable=0,menubar=0,toolbar=0,location=0,directories=0,scrollbars=0,status=0");
}
function transf(fval)
{
document.getElementById("blart").value = fval;
}
Please some help me to rectify this..
Thanx in advance...
Best regards,
Maya.
Tanguy PARES replied
Hi,
In MVC-based applications, input IDs are modified by the framework. That is, the input field with ID "blart" is changed to "subcontrollerID_blart", where subcontrollerID is the ID you gave to your sub-controller in bsp:call tag.
So try replacing:
document.getElementById("blart").value = fval;
by:
document.getElementById("subcontrollerID_blart").value = fval;
Regards,
Tanguy