Hello, experts!
I need to trigger event withot JavaScript. This is the sample of my code in view page.
<%@page language="abap" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<%
Data: l_abcode type string,
l_param type string.
l_abcode = '*'.
DATA: id TYPE c LENGTH 10 ,
value_mem TYPE string.
DATA: p1_value TYPE string.
id = 'LS'.
IF p1_value IS INITIAL.
IMPORT p1 = value_mem
FROM MEMORY ID id.
ELSE.
MOVE p1_value TO value_mem.
ENDIF.
FREE MEMORY ID id.
move value_mem to l_abcode.
concatenate 'megaclose:'
l_abcode
into l_param.
%>
<meta http-equiv="refresh" content="0; url=<%= l_param%>">
<style>
#<%= controller->component_id %>_BUTTONCLICK {display:none}
</style>
<thtmlb:button id = "BUTTONCLICK"
onClick = "BUTTONCLICK_RUN"
enabled = "true"
text = "Закрыть"
type = "<%= cl_thtmlb_util=>gc_icon_draftrule %>" />
<script type="text/javascript">
document.getElementById('<%= controller->component_id %>_BUTTONCLICK').click();
</script>
<meta> - tag is calling exe-file with argument l_param, path to that exe stored in Windows registry. Hidden button neeed for handle event for navigate to home page. How to rise this event do not using JavaScript? If I add navigation code to view it is execute but navigation does not occur. How to I can rise event for navigation to default page do not using click on hidden button?