open database southwind use order_details ? getdatamapping(1,"productid") keylookup("products", "productid",{}, productname) ? getdatamapping("order_details","productid") keylookup("products", "productid",{}, productname)
https://www.lianja.com/doc/index.php/GETDATAMAPPING()
open database southwind use order_details ? setdatamapping(1,"productid") keylookup("products", "productname", "{}", productid ) ? setdatamapping("order_details","productid") keylookup("products", "productname", "{}", productid )
https://www.lianja.com/doc/index.php/SETDATAMAPPING()
open database southwind alter table "products" modify constraint supplierid set choices 'select companyname from suppliers order by companyname' alter table "products" modify constraint supplierid set getdatamapping 'keylookup("suppliers", "supplierid",{}, companyname)' alter table "products" modify constraint supplierid set setdatamapping 'keylookup("suppliers", "companyname","{}", supplierid)'
https://www.lianja.com/doc/index.php/SETDATAMAPPING_Column_Constraint
open database southwind alter table "products" modify constraint supplierid; set choices 'select companyname from suppliers order by companyname' alter table "products" modify constraint supplierid: set getdatamapping 'keylookup("suppliers", "supplierid",{}, companyname)' alter table "products" modify constraint supplierid; set setdatamapping 'keylookup("suppliers", "companyname","{}", supplierid)'
https://www.lianja.com/doc/index.php/GETDATAMAPPING_Column_Constraint
The Get data mapping determines the value that will be displayed in the cell.
keylookup("products", "productid", {}, productname)
The Set data mapping determines the data that will be written back to the table when the cell’s value is updated.
keylookup("products", "productname", "{}", productid)
https://www.lianja.com/doc/index.php/Data_Mapping