A map based on Leaflet and Open Street Map (OSM) at the right hand side of a busines partners table view. Whenever selection changes, the client fetches geo coordinates, stored in an postal-addresses-table, from the server and renders points-of-interest (POI's).
Note the dynamic sizing and automatic centering of the map according to the selected business partners' addresses.
A few extensions over the day:
Please note that the functions shown here will be available by the end of 2020, probably
As you may already know a master record may have detail records in a different table. AppGini can generate tabs for each detail table and will show the tabs below the master record's data.
You can see there may be many columns in the children tab table. There are a few CSS tricks to hide columns you don't need. And in next version there will be two smart solutions for hiding columns.
When we open that details-table in table view, users can configure the columns they want to see by using the column-selector at the top-right:
Wouldn't it be great if those user preferences would apply to the children tabs table of the detail-view, too?
Just add that one line of code to your hooks-dv file of your master table:
// file: MASTERTABLE-dv.js new AppGiniDetailView().getChildrenTabs().autoHide("tasks");
Next time the hidden colors of table view will also be hidden in children tabs of a master record:
Instead of applying user preferences of table view we can also programmatically hide specific columns:
// file: hooks/MASTERTABLE-dv.js var subtable_name = "tasks"; var subtable_column ="created_by"; new AppGiniDetailView().getChildrenTabs().hide(subtable_name, subtable_column);
// file: hooks/MASTERTABLE-dv.js var subtable_name = "tasks"; // array of column names var subtable_columns = ["created_by", "created_on", "modified_by", "modified_on"]; new AppGiniDetailView().getChildrenTabs().hide(subtable_name, subtable_columns);
Sometimes, in our AppGini applications we'd like to share data with co-workers or other users by sending a link via email, for example. Unfortunately, this does not work as expected, by default.
By default, if we are not logged in already, AppGini redirects us to the login-page first, then to the homepage (
index.php) after login.
This means the user will not see the requested page unless he/she clicks the link again (or copies the url into the browser's address bar).
But this is not what we want at all. We'd like to redirect the user to the requested page after login, not to the homepage.
What we want is, when the recipient clicks the link, his/her browser should open up and show the shared page after login.
Please note that this is BETA for testing purposes. Please provide feedback if this works for you or not.
We have done all the hard work for you and provide a simple solution:
<!-- file: hooks/header-extras.php --> <script> var common = new AppGiniCommon(); common.autoRedirect(); </script>
That's all you have to do. Just call the
autoRedirect() function on the AppGiniCommon object. Our library will do the rest.
Wanna see it in action?
This integrates nicely with QR-Codes