95
Views
6
Comments
[Camera Plugin] Camera Plugin - Local Storage
Question
camera-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hi,

im pretty new to outsystems. I made an app using the camera plugin. I want to take a picture and then show the result on another screen. But if I take a picture it doesnt save in the local storage. I would appreciate it if someone could check out my oml and tell me whats wrong.

Furthermore is there a possibily to just show the pictures taken with the app instead of every picture on the phone?

Kind regards,

Bob

PicSolo.oml
2019-02-07 15-45-59
Rodrigo Rocha

hello Bob

you did everything right, you just need to redirect to the detail pagedata is being saved to the local database correctly

UserImage.jpg
Bob Törzs

Hey, thank you very much! That worked fine.

After getting it to work i tried to make the connection to the detailpage with an extra button on the mainscreen, because i think the app is better to use if you take several pictures and then check out which picture is the best rather than getting redirected to the detailpage right after you take a picture. But it doesnt work... (see the attached oml)

If i use the app with the flow you showed me, it only saves the one picture i took. I cant go back, take another picture and then see the 2 pictures in that screen. Can you help me with that problem as well?

Thank you very much!!

PicSoloII.oml
2019-02-07 15-45-59
Rodrigo Rocha

hi Bob

I don't know if I understood your need 

I made two small changes to your code and the list was displayed

PicSoloIII.oml
UserImage.jpg
Bob Törzs

Thank you so much! This turned out great! Can you tell me the two small changes? I only found the one where you changed PicturesId to NullIdentifier().

2019-02-07 15-45-59
Rodrigo Rocha

I also changed the aggregate filter in PicturesDetails 

if the ID is informed it filters by the ID, otherwise it returns all records 

2019-02-07 15-45-59
Rodrigo Rocha


you can also check all changes using the comparison option in the Module menu


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