A
|
acpan 8/1/2021 |
Try this:
|
M
|
muammer author 8/1/2021 |
Dear acpan, thank you very much for your interest and suggestion.
|
A
|
acpan 8/2/2021 |
You can use simple SQL query statement to form unique rows, which is the basic purpose of SQL Query, SELECT Urun_Kodu, Kumas_Bilgileri, ... FROM Urunler GROUP BY Urun_Kodu OR SELECT CONCAT(Urun_Kodu, "-" ,Kumas_Bilgileri) as product_name_id, .... The idea is to create a unique lookup list, before you use it at List page with search. |
![]() |
Admin 8/2/2021 |
Yes, you can create a custom view in PHPRunner and use this custom view as a source of your lookup wizard. In that custom view SQL query you can use either DISTINCT or GROUP BY. The main question you need to ask yourself is what you want to display in the rest of the fields. For instance, you have two records with FIN14300. In the resutls there only will be a single record like this but the question is what to display in Kumas_Biglieri field as you have two options there. |
A
|
acpan 8/2/2021 |
Don't use concat, I like to use it for lookup, to show the name along side the ID when drop down, in this case it doesn't help to form unique values, just to be technically correct. |
M
|
muammer author 8/2/2021 |
Thank you very much for all your help and guidance. I love phprunner and his team. Good luck to you. your suggestions helped. I hope that in the next phprunner versions, the most requested requests here will become practical and do great work with less code. |