I just think I am missing something or I've stumbled on a feature that does not seem to work. If that would work as it seems to state in the manual one could develop a custom validate as javascript to add to the drop down and be reused very easily and no require you to place dode in many pages. It does get put into the uploaded /include/validate directory on the server however, I do not see it showing up anywhere while I set up the screen or while I run the application. There is test.js in the directory by default, but it does not show up in the dropdown. See: phprunner manual there is a 'Validate As' option within the part about 'Validation Types' / 'How to add a custom validation plugin' Lets say we have a list of orders and want to be able to update several orders at once selecting status from dropdown list on the same page. Looking at the maunual for phprunner it suggests one could develop javascript and add it to the default validate as dropdown and thus it would edit as hte field is entered vs. This is a little more advanced version of 'Update selected records' tutorial PHPRunner manual. If you, in fact, use 64bit version of PHPRunner, you won't see that plugin. According to your message, you are adding this plugin to 32bit version of PHPRunner. However, if you follow an example in the manual, and add a new plugin, it wil show up. While that solves the immediate problem I was looking to have the error show up while editing the fields much as they do if you put an invalid resonce to one that is validated as a US zip code. test.js is not supposed to show up in the 'Validate as' dropdown. League1 British Columbia (L1BC) is a semi-professional mens and womens soccer league in British Columbia, Canada, which began play in May 2022.The league is sanctioned by the Canadian Soccer Association and the BC Soccer Association as a pro-am league in the Canadian soccer league system.The league is a member of League1 Canada. When you code it for instance as Before Record Added you do not see a message until you try to save the record - it shows up at the top of the screen in a red box. That works however, not giving me what I was trying to accomplish. I did utilize Before Record Added and that is done with php code not javascript. I am expecting it to show up in validate as dropdown in edit as screen, but it does not show up.Ĭan someone point me in the right direction? I then followed the manual and placed this in the directory where phprunner is installed C:\Program Files (x86)\PHPRunner10.7\source\include\validate Return 'Carrier Present so you must specifiy a cell phone number' If carrier specified we must have a cell phone specified Return 'Cell Phone Number Requires that a Carrier be specified' If cell phone number present we must have a carrier specified Var ctrl_carrier = Runner.getControl(pageid, 'associate_first_name') Var cell_phone = ctrl_cell_phone.getValue() Var ctrl_cell_phone = Runner.getControl(pageid, 'associate_first_name') Get the data entered on the screen for both cell_phone and carrier js code (untested at this point) function cell_ck(sVal) I want to present error while user is inputting the data so that if cell_phone is entered they would see edit error that carrier is required.Ĭonversely if carrier is entered and there is no cell_phone enetered it would also present an error. Name it 'Update selected'.I have two fields cell_phone and carrier. Make sure to amend the SQL query (select status from statuses) and field name (status).Ģ. To display a dropdown box with list of statuses proceed to the List page in Visual Editor and insert the Code Snippet where you need this dropdpown box to appear.This is a little more advanced version of "Update selected records" tutorial PHPRunner manual.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |