It is not too excat way, bacause it is assumes that there are no customers have same name and workers too. These Ajax onChange methods gets the key fields from the appropriate key fields from an sql statement, and puts the keyfields into the appropriate field1 and field2. If you do not want to have a reference to the grid in the handler, you can use this code: This will refresh the grid, if there is a refresh button. Than you have to make 2 onChange Ajax event for the 2 text fields. You have to make 2 capture field link for the new text fields, which are points to the 2 grid application, from the user can select the record for field1 and field2. Than you have to reload the text fields at form onLoad. Solution: you have to make two text field for field1, field2 which are contains the name of the record, instead of keyvalue. Updated: 2 years ago Helpful -Create a grid -At the Ajax Event -New Ajax Event: -Select the Event onClick and the desired field, and create: -Add the following macro: scajaxrefresh () -When clicking on the record in that field, the page would be reloading Corresponding. My primary idea is the when a user select from field1 than with the use of onchange I set the field2 value to 0, this is what doesn’t working.īy the way field1 points to customers table, field2 points to workers table. The problem is that there are two select field and the user can select only one of them. Scriptcase 9 General MarcelloC October 20, 2021, 8:14am 1 I have a control form that I open in modal from a grid. I’ve got the solution:) Bit complex, but it works. In this example we will see how to create and use the Ajax event in the grid application that allows to traffic information without reloading the page.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |