Hide buttons by user scriptcase3/20/2024 ![]() ![]() We put the CSS in Events -> onScriptInit, and for example, the box-shadow you see in the Deployed version of the image I provided, is given by this rule: #sc_grid_body >. Nohing was changed on the project since our last deploy on the previous Scriptcase version, so the only change was to update Scriptcase this morning! The new Installer configures an Apache service (ApacheScriptcase9php81) with a different port (8092) than the installers with the PHP 7.0 or PHP. Installing Scriptcase with PHP 8.1 will not conflict with an existing Scriptcase installation using PHP 7.0 or PHP 7.3. The Menu on the left side was also broken, but I fixed that quickly by not using an ID selector but a Class selector like I mentioned in my initial post here. Scriptcase Automatic Installer is compatible with the following Windows versions. You can see that the main grid is missing all the css rules (box-shadow and so on). Hi, maybe your problem is related to application themes, select a new theme for your application, generate and run, possibly it will work. Please look into this ASAP and can someone explain to me how can I go back to the previous version? ctx. Here instead of message object we have ctx - context object, which almost doesnt have big difference from first one but has many another methods. Application list : All Grid applications from current project, that contain global variables, will be listed. Adding a new Nested Grid : Enter the name and the label for the link that will be created. Then other bugs are happening, like “TABS” have stopped working, you click on a tab and it doesn’t switch to it (yesterday with the previous version of SC everything was working as intended) To initialize we use new Telegraf(token).To react on /start command we type bot.start which is more readable than in previous package. To create a Nested Grid link click on the New link within the Link folder. This is a major issue, as we have thousands of lines of CSS using ID’s in our 110 apps project. I just updated after being prompted to do so, Scriptcase to the latest 9.4.003 version and now our whole project is broken.Īfter 30min analyzing everything, the first thing I noticed is that ALL the CSS where the selector was " #idName ", are broken.Īpparently Scriptcase doesn’t recognize ID selectors anymore.Īs soon as I change the selector from #idName to. ![]() It is also true that if we remove the right to insert the NEW button will not appear in the Grid, even if we have established this in the properties of the link with the form.Sorry for writing in English, but on the english forums it takes forever to get an answer! ![]() That is, if the User has the right to insert, we cannot remove it dynamically, at least in the Grid. Therefore, what is established in security in the Applications section in User Groups, the options defined for each Application are above what we do with macros. This option allows you to select the family and the font type that will be used in the button. Added some macros for handling the action buttons: scactionbarclickedstate - Returns the current state of the ajax button created in the action bar. In this event we must code the procedures that we want to carry out. For anyone who goes through this circumstance:Īlthough we use sc_btn_display (‘new’, ‘off’) in the Grid to disable the button, if in the security module we have established the form that is linked to the Grid for the User Group to which the active user belongs (although not is Privileged), with the INSERT property to YES, SC in the Grid’s onScriptInit will interpret that this user has enabled the possibility of creating new records, and will prevent the Grid’s new button from being disabled with the sc_btn_display (‘new’, off '). Helpful When you need to hide fields through various conditions within the Grid, we can do it through a query. The ajax event will be created, which will be executed on the button’s onClick.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |