Solution 2: have the section of line 285 NOT occur before the OnApplicationInit place (line 549) so either move OnApplicationInit forward or that code around line 285 after the OnApplicationInit by setting it somewhere in the app constants and then initialising with it. Solution 1: introduce a way to set the variables in the first line, e.g. There are various ways to fix this on YOUR side: This still looks like a serious bug that was never fixed even tho I gave all the details already in version 6. So for example I would want $_SESSION = “c:/documentstorage” $_SESSION and $this->path_doc in my OnApplicationInit code in order to have the file uploader work as I want it. In order to be able to do that properly all I can do is set: So basically $_SESSION variable and $this->path_doc variable have already been set the _lib/… dir.īut I want it to point to MY dir, e.g. Then on line 549 is my OnApplicationInit: Here $_SESSION is also pointing to $str_path_apl_dir. On line 451 the following code is generated. So here $this->path_doc is set to what is determined on line 273, hence it is set to $str_path_apl_dir. If (!isset($_SESSION) || empty($_SESSION)) This generated file then has the following code in the first lines: I create a form called form_SCRIPTCASE_SC_UPLOAD with a database field called FILENAME, thus a form_SCRIPTCASE_SC_UPLOAD.php is generated. Wand law and behold the exact same bugs are in 7. Hope this help someone else until SC creates a button option to be added next to fields or in their own field.I mentioned some serious error already in version 6 in the uploads. 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 |