[Forge] Infinite Scroll
[Forums] Saving To Local Storage From Rest API Response in Mobile App
Hi Rakesh,
Mobile training materials include information on data sync that can give some clues.
The best solution for your case depends on why do you want to store the data in the device:
- Are you trying to make the app available while offline?
- Are you trying to increment performance?
Also, you need to understand the type of data you are using:
- Is it reference data that does not change much?
- Is it transactional data that must be shown always with the latest updates?
After answering this questions it's possible to dig further and find the possible scenarios.
Cheers,
Tiago.
[Forge] Infinite Scroll Demo
[Forums] Saving To Local Storage From Rest API Response in Mobile App
wrote:
Hi Tiago,
As i said, I am doing a POC as a practice for my certification. Saving response data in local storage is a common practice in mobile application to increase the performance and to not to hit the service multiple times and to support offline.
Regards
Rakesh.K
Hi Rakesh,
Mobile training materials include information on data sync that can give some clues.
The best solution for your case depends on why do you want to store the data in the device:
- Are you trying to make the app available while offline?
- Are you trying to increment performance?
Also, you need to understand the type of data you are using:
- Is it reference data that does not change much?
- Is it transactional data that must be shown always with the latest updates?
After answering this questions it's possible to dig further and find the possible scenarios.
Cheers,
Tiago.
[Forums] Saving To Local Storage From Rest API Response in Mobile App
wrote:
Hi Tiago,
Data sync is something i can take a look after i successful implementation of Local storage. Most applications do not use data sync. So i want to understand first how to achieve saving response object into local storage, like coredata in IOS.
Regards
Rakesh.K
Hi Rakesh,
Mobile training materials include information on data sync that can give some clues.
The best solution for your case depends on why do you want to store the data in the device:
- Are you trying to make the app available while offline?
- Are you trying to increment performance?
Also, you need to understand the type of data you are using:
- Is it reference data that does not change much?
- Is it transactional data that must be shown always with the latest updates?
After answering this questions it's possible to dig further and find the possible scenarios.
Cheers,
Tiago.
[Forums] Saving To Local Storage From Rest API Response in Mobile App
Most straightforward scenario may be found at https://www.outsystems.com/learn/lesson/782/local-storage/.
[Forums] Saving To Local Storage From Rest API Response in Mobile App
wrote:
I feel the explanation in this lesson is not clear enough for newbie. If u have any sample app which has the simple response saving to Local storage could be helpful.
Most straightforward scenario may be found at https://www.outsystems.com/learn/lesson/782/local-storage/.
[Forums] MQTT vs serial or both
Hi Tjaart,
This might be a more complex answer and I don't have the full context.
Can you elaborate a bit more the solution you have in mind?
Cheers
[Forums] 503 Error When Publishing Module
Hi
I am publishing a "Blank" module (CORE Module) while the publish is running, just at the end of the publish an error of 503 pops up and the module can't publish.
Please help and thank you.
[Forums] 503 Error When Publishing Module
[Forums] HighCharts (Pie) defining color.
Hi Kilian,
Thank you for the linked discussion. I understand J's approach to setting the series color and have looked at his example oml, however I cannot figure out how to use AdvancedFormat_Init. Specifically how do I add records to advanced format as J has done below?
"using the advancedFormatInit.
add per series an record to the advancedseries_format.
simply do
name : your series name
seriesJSON: "{color: #ffd900}"
[Forums] Infinity Scroll - Unknown native web feature
Hi Guys,
Today I saw in forge someone posted a InfinityScroll webblock. Nice guys, this is very useful. I will try it for sure :)
But here is a curiosity. This remember me that there is one native webblock to do it. But the problem is that component is not placed in a standard module. So I guess a lot of people know its exists.
In module ECT_Provider you have:
See documentation of it:
'InfiniteScroll'
Add infinite scroll effect to your tables.
1. Simply remove the pagination and table counters originally created by scaffolding and place the InfiniteScroll web block in the same place. This web block will detect when the user is reaching the end of the screen and, in that case, trigger a notify event.
2. Assign the OnNotify from the InfiniteScroll web block to the RefreshTable event, which was also created by scaffolding, and set both parameters to false as you are not reseting the filters nor the pagination.
3. Create a screen variable - e.g. NumberOfRows - that will store the number of rows that are currenly being shown to the user. This variable will increase each time you are going to load more records. Set its default value for the number of rows you initially want to display, e.g. 20.
4. On the RefreshTable action, change the logic to increase the NumberOfRows (e.g. NumberOfRows + 20) if you are not resetting the pagination or filters. If you are resetting the filters or pagination, set the NumberOfRows to its initial value.
5. Finally, go to your table record and set the Line Count property to the NumberOfRows variable and the Start Index to 0.
Best Regards
Fabio
[Forums] HighCharts (Pie) defining color.
Hi William,
Perhaps you didn't notice, but J added an OML that shows it :). AdvancedFormat_Init has an Input Parameter, DataSeriesFormats, that is a List of AdvancedDataSeriesFormat Structures (actually a Record List, as the Action was introduced pre-P10). To create the List, add a Local Variable of type AdvancedDataSeriesFormat, and a Local Variable of type AdvancedDataSeriesFormat List. For each series you want to set the colour of, set the DataSeriesJSON Attribute of the Local Variable to "{color: seriescolour}" (where seriescolour is the desired colour), and ListAppend the Local Variable to the Local Variable List. Then, pass the List to the DataSeriesFormats Input Parameter of the AdvancedFormat_Init Action.
[Forums] Movie app assignment 7.5: Display tickets
wrote:
Hi Julie
Indeed, you're never setting the "selectedSessionId" variable. I believe that should be set up as an input parameter, and passed from the seats block. It would be the same parameter the block is getting as an input.
Hope this helps!
CLSJ
Hi:)
I think I didn't get it well. I've followed your recommendations but unfortunately, have the same result.
[Forums] HTML Latest Version
Hi Pasar,
In what way do you mean "support"? Whether it produces it?
[Ideas] Close button normalized shortcut (Alt+C)
Currently, there are a lot of Alt+<Key> shortcuts. As an example, if you edit an If statement, you can choose "Done" by pressing Alt+D.
There isn't a shortcut for closing the entity/action description.
PS: Yes, I'm a shortcut freak.
Screenshots attached for better comprehension.
[Forums] Movie app assignment 7.5: Display tickets
Hi Julia
I just took a better look at your screen. What you're trying to do is show all the user tickets right?
In that case you don't need any input parameters, you need to query the ticket table filtered by user Id. Join with Seat, MovieSession and Movie to get all the data that you need to display.
Additionally, you're not displaying the content as a list, so the user would only have seen one ticket regardless if the user had several tickets or just one. I have attached an OML exemplifying this (though of course have not tested it).
Hope this helps!
CLSJ
[Forums] How to Inactive Group in Outsystem
Hi,
I have a group with certain users, i want to inactive group without deleting group from database
[Forums] How to Inactive Group in Outsystem
Is there a reason why you wouldn't want to delete the group?
The entity itself does not have a sort of IsActive flag, so inactivating is not a possibility here
What is your use case?
Best regards,
PC
[Forums] Movie app assignment 7.5: Display tickets
wrote:
Hi Julia
I just took a better look at your screen. What you're trying to do is show all the user tickets right?
In that case you don't need any input parameters, you need to query the ticket table filtered by user Id. Join with Seat, MovieSession and Movie to get all the data that you need to display.
Additionally, you're not displaying the content as a list, so the user would only have seen one ticket regardless if the user had several tickets or just one. I have attached an OML exemplifying this (though of course have not tested it).
Hope this helps!
CLSJ
Oh, now I see. Thank you a lot, Carlos!