|
Re: Get data for form from database [message #1817368 is a reply to message #1817346] |
Thu, 21 November 2019 09:32 |
|
The Scout backend knows the authenticated user. You could for instance call ServerSession.get().getUserId() in your backend to get the user-ID. The user-ID is set by the AccessControlService#getUserIdOfCurrentSubject. From there it's regular SQL logic: you can lookup the user in the USER_ACCOUNT by its ID. I don't know your data-model: maybe the "token" _is_ the ID? or you need to join over a TOKEN table to find which user-ID belongs to that token? Anyway, you don't need to pass the user from the client to the backend.
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
|
|
Re: Get data for form from database [message #1851200 is a reply to message #1817346] |
Wed, 30 March 2022 12:41 |
ferra rutu Messages: 1 Registered: March 2022 |
Junior Member |
|
|
Try to see the content of your UserTablePage, UserNodePage, and for your UserForm. Look if there are any mistakes that you oversaw. What are the errors on display? I have a different way of categorizing the data. Last time SALVAGEDATA restored it after a stupid mistake. Don't exhaust the program with too many commands, especially if they are not clear, they can put the whole information in danger. I like the advice Andre gave you. Go to the section "adding form fields", and from there follow every step in detail. Send us some pics if nothing changes.
[Updated on: Fri, 01 April 2022 22:54] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds