I follow the tutorial from saptechnical .com about F4 in BSP and it works.
But my problem, is that is not working in my BSP I get javascript error "document.getElementById() is null" the popup appear I select the value but when I press the button to close the popup and pass the value nothing appears.
I think that is because im Using MVC and Views that call a controller (like view inside views).
I have in my main.htm this:
<htmlb:form id = "search" method = "get" > <bsp:call url = "search.do" comp_id = "search" > </bsp:call></htmlb:form>
The code with the help values is in the search.htm(this the page associated with controller search.do)
So Im thinking that my problem is because the form isnt in the SAME page than my inputField and that is why im getting that error. Can be this true ?
And if it is, how can I solve it?, I have several pieces of page with controllers and If I try to put the form tag in each "piece" I get an error that a button was left without a parent form tag, and I there isnt any button tag without form tag. So I think that another element tray, tabstrip or something require form tag also.
I hope that I could explain my problem and someone can give me a hand.
Can It be that this js statement
document.getElementById("i_VKORG_low").value = fval;
only works only if the form tag is in the same htm page, and cause I have teh form tag declared in the main.htm and the fieldtext i_VKORH_low in search.htm it doesnt works ?
Thx
EDIT: I cant post my javascript source code...dont know why I get an error from the forum that the post is not supported