Hello everyone,

I am kinda new to Outsystems but I am trying to understand differences between Web App and Mobile App. In Service Studio, you have the possibility to add a preparation to a Web App screen, but I did not find this feature on Mobile App screen.

Can you explain to me how I can prepare a screen in a Mobile App ?

Web App :


Mobile App :


Cheers,


Roxane.

Hi Roxane,

Like you mentioned there is no preparation in mobile applications.
You can fetch data from database drag/drop entity or right click fetch data from the database.

But of course, If you want to do some actions after data fetched you can create action on the aggregate onAfterFetch event.

Here is the official video for mobile lifecycle. Also, of course, I recommend watching all learn materials for OutSystems mobile.
https://www.outsystems.com/learn/lesson/1797/mobile-screen-lifecycle/?LearningPathId=0
https://www.outsystems.com/learn/courses/12/developing-outsystems-mobile-apps/

With best regards,
F.Karatay

Ferhat Karatay wrote:

Hi Roxane,

Like you mentioned there is no preparation in mobile applications.
You can fetch data from database drag/drop entity or right click fetch data from the database.

But of course, If you want to do some actions after data fetched you can create action on the aggregate onAfterFetch event.

Here is the official video for mobile lifecycle. Also, of course, I recommend watching all learn materials for OutSystems mobile.
https://www.outsystems.com/learn/lesson/1797/mobile-screen-lifecycle/?LearningPathId=0

With best regards,
F.Karatay

Hi Ferhat,

thank you for the quick response! In fact, I was following this exercice : https://www.outsystems.com/learn/lesson/1850/retrieving-data-from-a-rest-api-get/ and I run into trouble trying to reproduce it on a Mobile App. Is there an easy way to consume a rest api and populate a list on a Mobile App?


Cheers,

Roxane


Solution

Hi Roxane,

  1. in the logic tab reference your rest api
  2. go to your screen right click and choose fetch data from other sources
  3. put your rest api action in your "other source" action and set output
  4. drag and drop your source to your screen


With best regards,
F.Karatay

Solution

Hi Ferhat,

Thank you very much for your help. I was able to reproduce what I needed.

Have a nice weekend!


Cheers,

Roxane.