![]() |
Admin 12/4/2023 |
Create an additional List page of Employee table in the Page Designer and on that page you can remove buttons, menu etc. You can show this additional page in a popup to achieve what you looking for. |
![]() |
fhumanes 12/5/2023 |
Hello, I think this example that I have done fits your needs: https://fhumanes.com/blog/guias-desarrollo/guia-57-lookup-eficiente-de-gran-volumen-de-informacion-select2/ Also, you could use the Select2 AJAX plugin. https://fhumanes.com/blog/guias-desarrollo/plugines-de-phprunner/ Greetings, |
A
|
aalekizoglou author 12/5/2023 |
Yes, that is the way to go. I inserted a search button next to the 'iEmployeeID' text field
I have created an 'onchange' event on the 'iEmployeeID' text field that runs queries when the user enters the employee code directly to the field.
Then created a new list page called 'listsearch' on the employee table, where I removed buttons, menu, and other unwanted elements
On listpage event 'After record proccessed' added some code
Then on search button 'OnBefore' added the following code
The button is working fine. I am wondering, is there a way I could create an edit pluggin utilizing this functionality with custom properties for popup form? |
A
|
aalekizoglou author 12/5/2023 |
Fernando hi, Thanks for the response. What I need in fact is a text box that the user enters the employee code for quick data entry. This employee code is often used in inline adding/editing. Regards, |
A
|
aalekizoglou author 12/13/2023 |
Here is the outcome... pressing the search button on the textbox pops up the list to select
|
![]() |
Davor GeciDevClub member 12/13/2023 |
This would be great if it could be build into the PHPRunner as we now have Listpage, dropdown,... It is having a Textbox and a Lookup button and a view Textbox, so that when we type the ID (or code of the employee) on validate event if the record is found in lookup table in the view textbox it displays the lookup value. If the user doesn't know the ID (or code) it clicks the button (or I have also added the abbility to use the F12 button if the focus is in the TextBox for faster entry) and it opens the listpage. Here are some screenshots, if guys from PHPRunner would consider to add something like this in future versions.
Whole Listpage:
|
A
|
aalekizoglou author 12/19/2023 |
That's exactly the functionality I am trying to re-produce. We have also build an ERP system, Win32 / Delphi / MySQL. Delphi's VCL is outstanding giving the dev team the opportunity to build whatever component they want, if it does not exist. The lookup wizard's funcionality was very close to what I was looking after, but it lacks a combination of "edit box" and "listbox with search". Cheers |