I have nearly completed my mobile app using Bootstrap and it works great. But I’d feel more comfortable of it getting approved on the App Stores if it was in FW7. So I spent the last three days going over FW7 docs and trying to build something.
To get started I really need to know two things:
1: How to build a login page. Heck, I can’t even build a login form let alone a page.
2: How to create other pages and link using routing to make a single page app.
I think if I can get help with these two things I can be well on my way. But right now, I’m stuck.
I’ve tried copying and pasting code from the docs site and it either doesn’t work (looks different for example) or breaks the Wappler App structure.
There just is no documentation for using FW7 in Wappler. It seems that FW7 in App Connect is different than in the FW7 docs.
Can someone point me in the right direction to get me started? Much appreciated in advance.
Link it to the main page by setting the “Head Page” property to point the the main page
In the Page Content region add a Server Connect Form for the login
As Action of the Server Connect Form choose your Login Server Connect Action from the Server Connect API site.
Make sure on the other Server Connect API Site when defining the login action with the Security Provider to enter the value of 1 as remember field - as we want always to remember the login.
On the login page within the form, add a List
In the list add the login input controls like user name and password and a login button
Add a dynamic action click on the button to submit the login form
On the “unauthorized” dynamic event of the Server Connect form - add action show alert from the App Root. Enter text like “Invalid Username or Password”
On the “success” dynamic event of the same Server Connect Form, add action from the View to go back to index. If your index have some server connect actions that are dependent on the logged in user, you might want to reload them here.
So that is about it
Maybe @teodor can make more detailed docs about this.
I will also see if we can add a predefined login page to choose from, so you don’t have to make it all by yourself. But just add it.
Just as any other link to content pages, make sure it is in the routing manager and then just link to it. Use tge routing manager icon to pick up on any links