After the introduction of Globals (which I appreciate very much) some things go wrong like getting details of logged in user.
Steps taken:
Security restrict
Database query
Server Connect
Data Bind
Result (ZERO)
Been struggling with this for two days now, but can’t get it done.
What have I done wrong here?
Teodor
December 12, 2020, 9:29am
2
In step 2 where do you get the identity value from?
From the Security Provider
Teodor
December 12, 2020, 9:43am
4
Please make your security provider a global option:
Using the Security Provider you can define the security settings for the whole project and reuse them on all of your pages. We will go through each of the available options - from single user to database users and explain how to set them up.
Setting Up Security Provider
The Security Settings you create are globally available for all your server actions across your project. You need to setup your Security Provider once, and then you can reuse it in all the steps which require any kind of secur…
then use the identify step:
Intro
The Globals allow you to define and re-use Database Connections and other Settings (1), Variables / Input Parameters (2) and API Action Steps (3) across all your API Actions in the project:
[Screenshot_2]
Whenever you need a Database Connection, Mailer or Security Provider you just need to define them once in the Globals and they will be available for all your Server Actions in the project.
Defining Global Variables / Input Parameters
You can easily define a variable and access it f…
and use this identify step in the query filters.
Remove the security provider step form the server action as well. Security provider should no longer be used as a step in your server action.
Wow, totally different approach, but working now.
Thanks Teodor
Teodor
December 12, 2020, 10:03am
6
Right, but it saves you a lot of additional steps. You only define the provider and the identify steps and they are available in all the server actions.
Yes it does save a lot of steps. Still happy with Globals. Would have liked finding the “How To’s” a bit sooner though.