1. Michael Hartnett
  2. PowerServer Mobile
  3. Thursday, 11 April 2019

Hi All Appeon Experts,

We have been developing Desktop Apps for a significant number of years and have started developing Appeon Mobile Apps to compliment these over the last 2-3 years.  To date our Deskptop and Mobile App codebase have been kept in separate development projects, so there has been duplication of logic.

In one particular Mobile App we have been developing using a DAO and Bean methodology for encapsulating the Data Access Objects and also some of the Business Logic.  Much of this DAO will be common between the Desktop and Mobile developments, so we were hoping to share the DAO and Bean PBL's between the 2 development project (Desktop & Mobile).

Our initial thoughts were to create a standalone set of PBL's to house the common non-visual business logic and include the compiled PBD's (from the standalone project) in our projects, however an initial test this morning indicates that a compiled PBD does not seem to work or deploy as part of our Appeon Mobile deployment.

Prior to now, we have always just selected the PBT for the Mobile Application Deployment configuration, which has meant that the configuration used the selected list of PBL's specified in the PBT.

************Here is the Question bit!!

Would we be better integrating our Mobile PBL's into our Desktop Project and only selecting the required mobile libraries when creating our Mobile Application Deployment Profile.

This would allow us to maintain a single set of PBL's for deploying both types of application (Desktop and Mobile), inherently sharing the DAO and Bean PBL's.  However, the drawback I do see is that our Desktop deployment will grow to include the extra Mobile PBL's.

OR

Using the Mobile App as a Master project for the development of the DAO and Bean PBL's and instead include the compiled PBD only in the Desktop Project.

 

What advice would anybody have on doing this?

Have others had to deal with a similar situation?

Thanks In Advance,

Michael

Kevin Ridley Accepted Answer Pending Moderation
0
Votes
Undo

Why not create a web service layer for all of your common code (using PB2019).  Then you can have it deployed in only 1 place and have your desktop and mobile clients access the same code via web services?

Comment
This is definitely the way apps should be architected for a cloud deployment or app with multiple UI technologies (native desktop, web browser, mobile, etc.).
  1. Armeen Mazda
  2. Monday, 15 April 2019
There are no comments made yet.
  1. Monday, 15 April 2019
  2. PowerServer Mobile
  3. # 1
Chris Pollach Accepted Answer Pending Moderation
1
Votes
Undo

Hi Michael;

     This topic is "near and dear" to my heart from the perspective of my frameworks (EAServer, PocketBuilder, Native PowerBuilder, Web Service, Assembly, Web & Mobile) and trying to tie one code base that supports(ed) all of the above PB environments. Today of course, that common framework code base is for: Native PowerBuilder, Web Service, Assembly, Web & Mobile as the EAS and PKB products are no longer.

     I think that they key thing that I did when rewriting the frameworks in the third major revision (integration phase) was to make everything a "dynamic reference". In other words, there is no hard coded reference to any object that might be optionally used. Also, extensive use of the framework's "go_ac.of_get_client_type( )" method to inform the PowerScript code if the App is instantiated as Native, Web, Mobile, IWA, etc and then subsequent methods to identify the specific O/S, Device, Language, etc of the running application and allow further tailoring of the App at run-time from that information.

     The revised architecture that I came up with allows me to build any type of application with one base-line code, yet only deploy the PBL's and/or PBD's that an application needs depending on how it is to be used (ie: 32 bit vs 64bit) at run-time. This allows an unlimited way an App can be packaged depending on the environment, functionality and features you want to expose - while maintaining a "slim & trim" execution model.

    I gave a presentation at last years Elevate 2018 Conference on the integrated framework and how building Apps the way I do (via my framework's architecture approach) leads to more reusable, faster, more flexible, stable, etc business applications.

Regards ... Chris

 

Comment
There are no comments made yet.
  1. Thursday, 11 April 2019
  2. PowerServer Mobile
  3. # 2
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.