on 06-29-2007 6:54 AM
Hi ,
I have a view test.htm
MultipleAssets.htm
==============<%@page language="abap"%>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@page language="abap"%>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design = "design2002+design2003"
rtlAutoSwitch = "true"
forceEncode = "ENABLED" >
<htmlb:page title = "BSP Extension: HTMLB / Element: tableView">
<script language="JavaScript" type="text/javascript">
function fun()
{
s=window.opener;
txt=s.document.getElementById("f_product");
if ( document.form1.rw_sel.value )
txt.value = document.form1.rw_sel.value;
window.close();
}
</script>
<htmlb:textView id = "tv2"
text = "Here you can edit or maintain your own entries.If you Click 'Confirm'option, your maintained assets will be saved.If you Click 'Cancel'option ,your assets are all the same."
tooltip = "Simple quick info"
encode = "true"
/>
<%
%>
<htmlb:form id='form1'>
<htmlb:group>
<htmlb:groupBody>
<htmlb:tableView
id = "tv1"
columnHeaderVisible = "TRUE"
design = "alternating"
fillUpEmptyRows = "TRUE"
footerVisible = "TRUE"
headerVisible = "TRUE"
table = "<%= t_maintain %>"
iterator = "<%= iterator %>"
visibleRowCount = "<%=CONTROLLER->G_NO_ASSETS%>"
width = "100%"
selectionMode="singleSelect"
filterButtonText = "Go"
filterButtonTooltip = "Filter content"
tableLayout = "AUTO"
/>
<htmlb:button id = "sub1"
onClientClick = "return fun();"
text = "Confirm" />
<htmlb:button text="Cancel"
width="100"
onClientClick="parent.HideMessages();"
/>
</htmlb:groupBody>
</htmlb:group>
</htmlb:form>
</htmlb:page>
</htmlb:content>
2) When i call OnClientClick = onClientClick="javascript:window.showModalDialog('MultipleAssets.htm','GT','dialogWidth=604px;dialogHeight=377px;center=yes;help=no;scroll=no;status=no;');"
I am getting the modeldDialog. Inside Model dialog i am not getting the view data.. Error:
call of BSP page terminated due to error..
Note:
Following error text processed in system.
i suppose MultipleAssests.htm is ur view right? i guess u can make a call to controller e.g. controller.do from the show dialog method which will render the view for u.
regards
rajeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What i meant was instead of view page in the URL u can give controller.do which is rendering that view
OnClientClick = onClientClick="javascript:window.showModalDialog('controller.do','GT','dialogWidth=604px;dialogHeight=377px;center=yes;help=no;scroll=no;status=no;');"
but i guess this is required to be called from another page or view.
regards
rajeev
i can able to call controller class. but i have mentioned the view program code in on_event_maintain in the do_handle_event.. How can i mention these process. If i mention controller.do ,it is calling the main page of controller.. i don't want that one. i need the view whatever i mentioned in do_handle_event..
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.