![]() The element where the time is to be shown is named mytime. Fist you have to define the position where to display the time. Best to use is the menu application, cause it usually wraps the other applications of a project. You cant replace scriptcase’s Native 1.8.2 jquery runtime. In Scriptcase projects you can show the current time interactive. It is actually the JQuery js that’s causing the problem, as Bootstrap 3.3.7’s JavaScript requires jQuery version 1.9.1 or higher, if you add a link to that JQUERY js version it interferes with the native SC scripts. I have however been able to change the look and labels of grids and editable grid views using bootstrap. When I add the Bootstrap js libraries to a control application in the onLoad Event it screws with the native SC libraries eg the SC datepicker and timepicker stop working and the formatting of other controls change. I’m confused in which event to add the library links, would be helpful if they added “external libraries” to the programming section under javascript. Hope this help someone else until SC creates a button option to be added next to fields or in their own field.I have not had much success so far, the article basically just shows you how to import bootstrap as an external library. 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. It should be created in the tmp dir and it is then normally called something like scpdf you can check the creation date. ![]() ![]() 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. Remember that the API must have the same name used in the development environment so that applications can use them. Therefore, it is necessary to configure the API in the production environment during the deployment. This solution is great to create personalized buttons, thank you very much for sharing the knowledge. When publishing the project, the API data configured in the development environment within Scriptcase is not sent. 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. The second blank app has a ‘foreach’ loop that goes through each date in the array that was passed from the original control. The control redirects to the first blank app which contains HTML/AJAX, and that calls the 2nd blank app that runs the PHP to do the task. Polish: Remove the original button from the toolbar - do NOT delete it, cause the code is still needed for execution. That matches the date format in the csv filenames. In fact it is the code which we copied into the clipboard: (' idscfieldenddate ').datepicker(option, minDate, new Date(Date. (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: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |