Could someone explain to me please how to use the Trigger after open?
Hello,
Could someone explain to me please how to use the Trigger after open?
When I click on it it s all empty...
Thank you
9 replies
-
It's the same as the trigger after open of a table only this one fires on opening the Database.
An use example is to open a record or table fullscreen. Here's an example:Steven
-
Another option (really useful to me) is to open a specific table and view upon opening like this:
---
if getPlatform() = 3 then
openTable("Journal", "iPhone")
else
if getPlatform() = 4 then
openTable("Journal", "Android Phone")
else
if getPlatform() = 2 then
openTable("Journal", "iPad")
else
openTable("Journal", "All")
end
end---
Sorry steven for jumping in...
-
Sorry I meant Steven (not steven)
-
Thank you Nick and Steven
The issue I have is that when I try to do a Trigger after open it's all blank (This picture above) so it doesn' t let me program anything if that makes sense...
-
You mean there are no fields on the left side? That is normal ( there are no tables loaded), you can go in the editor and type your code...
-
Thank you for your reply Steven.
I'm not really good with Ninox.. I do have tables in my database, what do you mean by go to the editor and type your code...
Thank you for helping :)
-
-
Thank you Steven
I've done that but when I type my code it says that the field is not found. Do we have to code differently than a normal Table when coding there?
-
You can see this as if you are working in the root of the database, there are no fields available because no tables have been addressed. You can do this by first choosing a table with the select command or the record command. This is kinda similar to a view in a form.
Content aside
- 4 yrs agoLast active
- 9Replies
- 1595Views