28
Views
4
Comments
Solved
[QR Code Scanner] Update Entities from another app
qr-code-scanner
Mobile icon
Forge asset by Vitor Teixeira
Application Type
Mobile
Service Studio Version
11.53.25 (Build 61588)
Platform Version
11.17.0 (Build 37099)

I'm building a app for a school project called "school as state" I'm trying to make two applications:
1. For the Admins to see all balances and names of students.
2.A simple "Card Reader" that uses QR-Codes to identifie students.

The problem is that the database is in the Admin application and I can't update the balance with the card reader, because there aren't the update/create server actions. The Database is shared, I can acces the data but I can't write.

Thanks for your help

2020-12-30 08-58-13
Hillman
Staff
Solution

Hi Silas,

You can't see the actions, quite likely because of the fact that you have configured the expose read only to true. There are some other forum post like the following that explains why you should do so.

https://www.outsystems.com/forums/discussion/53020/why-we-should-use-an-exposed-read-only-entities/

What you will need to do as suggested by Jesus, is to create a server action (for example create), set the record as an input, then execute the CreateXXX action in there, closing with XXXid in return as output parameter. That should do.

Cheers,

UserImage.jpg
Silas Hille

Thanks, you really helped me out.

UserImage.jpg
Jesus Uresti

You will need to create server action for the create/update in the admin application and make this public actions, if this create a cyclic reference you will need to create a third module that holds the database and both apps consume from there. 




UserImage.jpg
Silas Hille

Thanks, but I'm new, so could you maybe make an example?

2020-12-30 08-58-13
Hillman
Staff
Solution

Hi Silas,

You can't see the actions, quite likely because of the fact that you have configured the expose read only to true. There are some other forum post like the following that explains why you should do so.

https://www.outsystems.com/forums/discussion/53020/why-we-should-use-an-exposed-read-only-entities/

What you will need to do as suggested by Jesus, is to create a server action (for example create), set the record as an input, then execute the CreateXXX action in there, closing with XXXid in return as output parameter. That should do.

Cheers,

UserImage.jpg
Silas Hille

Thanks, you really helped me out.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.