It seems there could be a bug in sc_apl_conf() marco.
I’m setting this
sc_apl_conf("grid_fs_order", "start", "filter");
in the menu application during the initialization.
I correctly call the “grid_s_order” application that opens with the filter requester.
When I submit the filter the result page became blank.
Looking at the code I find the browser i get:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>List - Monthly orders</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
<META http-equiv="Last-Modified" content="Tue, 10 Mar 2015 21:47:53 GMT"/>
<META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
<META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
<META http-equiv="Pragma" content="no-cache"/>
</HEAD>
<BODY class="scGridPage">
<FORM style="display:none;" name="form_ok" method="POST" action="./" target="_self">
<INPUT type="hidden" name="script_case_init" value="1">
<INPUT type="hidden" name="script_case_session" value="nel3q4invbnuqr9ou0n44dhuf0">
<INPUT type="hidden" name="nmgp_opcao" value="pesq">
</FORM>
<SCRIPT type="text/javascript">
self.parent.tb_remove();
parent.nm_gp_submit_ajax('inicio', 'save_grid');</SCRIPT>
</BODY>
</HTML>
It seems the application is running without errors.
When I’ve tried this code below in the init of my menu the grid was executing correctly and starting with the grid.
Applying the filter within this “normal” flow (grid -> advanced search -> set -> filtered grid) all is working correctly.
sc_apl_conf("grid_fs_order", "start", "filter");
sc_reset_apl_conf("grid_fs_order");
What I should do to better investigate about that?