![]() ![]() ![]() Grid_filestorage_doc.php?script_case_init=1&script_case_session=pptcvdm4ao904p0utqjp0kvl07&nm_cod_doc=" + “0” + “&nm_nome_doc=” + “3d_scene Ecom105.jpg” + “&nm_cod_apl=” + “grid_filestorage” Here the window.open has the following value: So you eventually get the nm_mostra line: If you check nm_mostra_doc your see that for a file like: R&D document.pdf that the & gets replaced with ECom I can send you my grid_filestorage … either the app or the generated and deployed code… The nm_mostra function runs on the client in javascript. So if you convert it one way you surely have to convert it back… ![]() ![]() $$nmgp_var = NM_utf8_decode(NM_utf8_urldecode($nmgp_val)) In my grid_filestorage_doc.php I see the reference to:įoreach ($_GET as $nmgp_var => $nmgp_val) NovaJanela = window.open (“grid_filestorage_doc.php?script_case_init=Ini->sc_page) ?>&script_case_session=&nm_cod_doc=” + campo1 + “&nm_nome_doc=” + campo2 + “&nm_cod_apl=” + campo3, “ScriptCase”, “resizable, scrollbars”) Īll nice and well but where is the reverse function then? I see this function in m grid_filestorage_js0.phpįunction nm_mostra_doc(campo1, campo2, campo3) I use apache as server and guess what? It Hope this help someone else until SC creates a button option to be added next to fields or in their own field.That is odd, I use the latest scriptcase (just checked) on Windows 2008 R2 Enterprise and guess what. You can create link as text or I used front awesome as icon in button. Then I run the app and use Chrome to inspect code of button. I create a normal SC button as AJAX then create my PHP code needed. While using default button coding process. I know this I not the ideal way of doing this but until SC creates option to add buttons next to field this is the next best thing. This solution is great to create personalized buttons, thank you very much for sharing the knowledge. I hope this helps to have a button everywhere on a form. Now the new form has a button right to the field and if you click onto the button that field will show the current date/time. Polish: Remove the original button from the toolbar - do NOT delete it, cause the code is still needed for execution. In fact it is the code which we copied into the clipboard: (Make sure that the label of ‘click_me’ field is empty.)Ĭreate a ON LOAD event in the form and tell ‘click_me’ which HTML-code to show. There we copy the part of the … code into the clipboard.Ĭreate a new field ‘click_me’ (type LABEL) and place it onto the form where you want to have the new button. I’m using Chrome, therefore I right click onto the button to get the window to examine the code. Now get the HTML code to execute when you click onto that button: Run the form and get the code of that button, which now is within the toolbar of the form.Thus a click onto the button will insert the current date/time into that field. That’s where the button will insert the current date/time.Ĭreate a button on this form to place the code into. Create a form with one element: A Date/Time field named ‘date_of_last_Button_click’ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |