Search…
Resources
Related Links
openRecord
To jump to the related table and open a given record
This function closes your current form and opens the form of the given record together with the respective table. If you want, you can also specify the tab that should be opened.
To open the form of a record without leaving your current table, use popupRecord().
The function doesn't work if it's executed on the server. So using this function in a do as serverblock doesn't work. It works fine when used without a do as server block on a button. Learn more about execution context​

openRecord(nid)
openRecord(nid, string)

void

openRecord(myRecord) To jump to the related table and open a given record.
openRecord(first(select Customers))
Result: Opens the Customers table and the form of the first record.
​
openRecord(myRecord, tabName) To jump to the related table and open a given tab of a given record.
openRecord(first(select Customers), "Company information")
Result: Opens the Customers table and the form of the first record with the Company information tab selected.

​openTable, which opens a given table.
​popupRecord, which opens a given record in a pop-up form.
Export as PDF
Copy link
On this page
Syntax
Return
Examples
See also