Hi everyone,

To develop an offline capable mobile App, Is the offline feature which give us the option to provide whitelist,blacklist Etc to define rules and enabling offline support for Access group and Case types are good enough to work? or we need to write functions using JS?

Thanks
Vinoth

    Vinoth
    From a theoretical stand-point, We need not write any functions or scripts to implement Offline capability. Just to summarize, it's enough if you follow the below steps to implement mobile offline capability.
    1) Enable you Access Group to support offline capability
    2) Enable your Case Type rule to support offline capability
    3) Manage business rules involved in your offline mode using blacklists and whitelists mechanism by editing the appropriate HTML record.

    There are lot of restrictions in terms of rules execution when it comes to offline mode. Please make yourself aware of those before getting into the implementation of offline capability.

    Let us know if this answers your question or get back to us if you need any specific information WRT your implementation.

      ospteam Thanks for the reply!! I know theoretically these things but practically it is not working. I read somewhere we need to write Js.. but I’m not sure. First why Js is needed ? to many confusions and differences with theory part and practical.

      Vinoth Let's keep this thread open so that someone who has practically implemented Offline mobile app can guide you on the steps.

      In the meantime can you please elaborate on your need? you're trying to develop an offline mobile app, is it not working or it's throwing an exception. If you can send us a document with screenshots describing your issue, we can parallelly investigate from our end.
      Please include which version of Pega you use and other needed details.

        Vinoth — So basically every pega mobile application have a custom java code ,because most of the built in ootb features doesn’t support on the client (mobile)like decesion table, data pages, when condition etc... which can be achieved by JS. We need to configure Or call our pega code in JS in order to complete/finish the case.

        please refer snnipet —-If you want your custom JavaScript scripts to be available offline, you must include the scripts in one of the following ways:
        Add a custom script by saving the pypega_ui_userscripts_offline script bundle to the application ruleset, and then add your script files to this bundle.
        Save the script as a JavaScript file named pypega_ui_userscript_offline to the application ruleset, and then add custom JavaScript functions to it.
        When adding custom JavaScript scripts, you can configure data synchronization by calling the following JavaScript methods:
        pega.offline.DataSync.setIntervalBetweenSynchronizationsWhenServerAccessible – Sets the interval (in milliseconds) between subsequent synchronization sessions when the server is available. By default, it is set to 5 minutes.
        pega.offline.DataSync.setIntervalBetweenSynchronizationsWhenServerInaccessible – Sets the interval (in milliseconds) between subsequent synchronization sessions when the server is not available. By default, it is set to 1 minute.
        pega.offline.Indicator.setDeferDurationTime – Sets the time (in milliseconds) that must pass from the start of the synchronization session before the Syncing/Synced label is displayed on the screen. By default, it is set to 4 seconds.
        pega.offline.Indicator.setHideSyncedAfterTime – Sets the time (in milliseconds) that must pass from the end of the synchronization session before the Synced label is no longer displayed on the screen. By default, it is set to 5 seconds.
        All values must be greater than 0.-->
        When using the defer load option:
        The defer load sections or layouts are loaded on the initial load, and the defer load preactivity is always ignored. This behavior affects the performance of loading screens.
        Defer load is not supported in tabs. You must use a layout group instead.

        We are implementing the offline capability in our current project. While most of the things can work straight away in offline mode, you would need customization on a few of them.
        e.g you would need to change the Tables to repeating dynamic layouts. this is just one of the designs we need to follow for offline enabled applications.
        Now replying to the custom JS part, this will be used to populate a Data Page, basically a cascading one. This is one of the scenario where we have written JS to source the data page.

          mahi Which version you guys are using and is that major application for the business. I mean major revenue for the business.
          compare to 7x - 8 x is better but need a more enhancement and dependency on JS.

            Our app is on version 8.1.2 and yes there are some features that are included in the higher version.

              6 days later

              mahi I was saying about the application which is builtin only for business, which means that the app is not available on any app stores to download. It is configured installed in the individual handset which is purely for business. The customer will own the handset, not the individual.

              Sharing a piece of knowing what I Know.

                Write a Reply...

                -An Initiative Of OneStopPega- Love our work? Support Us🖤