when i am trying to access user.id value from designer, i am getting 13 but when i am trying to access from the browser, its giving me email. What is happening here could anyone elloborate this one?
Could any one provide me the reason for this one?
You'll have to give us more details.
How are you trying to access that prop ?
As u seen that i am trying to pass user id in named query to insert the record
This query is working fine inside the designer but when i run the same query in browser, user id is receiving as email
Are you using the default identity provider ?
To debug, add a label into the view and bind its text property to self.session.props.auth.user
so you can see what's going on.
Note that the correct format is,
session.props.auth.user.id
without the "self". Picking the property with the Property Browser button will generally avoid this kind of problem.
Tip: post code, not pictures of code. See Wiki - how to post code on this forum.
Inside the designer , it is giving as value as 13 inside label. But on runtime, it is giving as email
No i am using the customized one where my user source is of type database not the internal one
I don't understand that. Please provide more context and any relevant scripts.
Are you logging in with the same user from the same user source in both the designer and the client? What user sources do you have defined, and do you have your user defined in both? What is your designer user source set to, and what is your project's perspective user source set to?