Skip to Content
0
Jun 29, 2007 at 05:54 AM

very very urgent please-How to call the view from javascript method..

14 Views

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.