Allow Add for Database View as Lookup Table (v2021)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
FedeLopez
User
Posts: 107

Allow Add for Database View as Lookup Table (v2021)

Post by FedeLopez »

Hi all, I have a project that use a View as Lookup Table... then finally get item_id...
That works fine, and allow me to change how data is displayed and sorted in lookup...
But then, I can't use "allow add", except that I could change the url fram lookupviewadd to lookup tableadd...

There is any way to do that?


arbei
User
Posts: 9384

Post by arbei »

You may set the update table for the view by Table_Load server event. (v2024) Search "UpdateTable" in this forum.


FedeLopez
User
Posts: 107

Post by FedeLopez »

It is a phpm 2021 project, because is for PHP 7.4 version.
There is any way to work around that in phpm 2021?


arbei
User
Posts: 9384

Post by arbei »

You may try other available server events.


FedeLopez
User
Posts: 107

Post by FedeLopez »

Ok, this is what I finally did...
Added Custom Field in Lookup Table "Concat(field1,field2,field3)"
Then in Lookup setup I used same table, id as link, but this Custom Field as Detail field...
Using Modal for lookup any part of field 1 2 or 3 in any order works to find the record, if not exists Allow Add will work firectly with the table.
So there is no need to use the view


Post Reply