Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

F4 help in MVC(within subcontroller)


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 %>");


return true;


JavaScript code in parent view


function getDocTyp()



function transf(fval)


document.getElementById("blart").value = fval;


Please some help me to rectify this..

Thanx in advance...

Best regards,


Former Member
Former Member replied


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;


document.getElementById("subcontrollerID_blart").value = fval;



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question