cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help in MVC(within subcontroller)

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank You Tanguy.. its workin fine now..

Best regards,

Maya.

Answers (1)

Answers (1)

former_member188685
Active Contributor
0 Kudos

did you check the tutorial mentioned in this thread

if not check it once.

Former Member
0 Kudos

Thank u vijay for ur reply..

I already checked that link... but its not working only with in subcontroller... its working fine with normal pages...

Best regards,

Maya.