Page 1 of 1

Mobile App

Posted: Wed May 28, 2014 7:51 am
by Paul
I have been playing with the ProfoundUI mobile app from Apple Store and have a couple of points:

1) At first I was getting error messages when loading my app on an iPad because PROFOUNDUI was not in the library list. This was fixed by adding a line in the CL (but type USR), but why isn't it added automatically like a standared http program? Is there a setting I'm missing?

2) Is it possible to have more than one app per IBMi? I would like to have a different app per department, is there a way to do this?

Thanks,

Paul.

PS ... awesome app!

Re: Mobile App

Posted: Wed May 28, 2014 9:03 am
by Scott Klement
I'm not aware of any situation where it would not add your PROFOUNDUI library to the library list? The server side code is called by the HTTP server in all cases (whether it's from the mobile client or a browser doesn't matter) so I don't know why it wouldn't add PROFOUNDUI to the library list?

When you add your server settings to the mobile app, there's a place where you can define a parameter. This will be passed (as a 250A parameter) to your initial mobile program. So if you want to have a separate app per department, you can set up a CL program as your initial mobile program, and based on the parameter passed, you can have it do a CALL to different programs. This way you can have as many apps as you like.

Re: Mobile App

Posted: Wed May 28, 2014 10:08 pm
by Paul
Thanks Scott, the parameter fixes this problem. For the first problem (no PROFOUNDUI in libl):

When I use the app this is what I get by default, taken from job in QHTTPSVR:

Cannot resolve to object PROFOUNDUI. Type and Subtype X'0203' Authority
X'0000'.
Message MCH3401 received for RPG procedure

Library list:

Code: Select all

Library     Type
QSYS        SYS
QSYS2       SYS
QHLPSYS     SYS
QUSRSYS     SYS
QTEMP       USR
...
For a normal browser sign on as expected I get PROFOUNDUI as a system library:

Code: Select all

Library     Type
PROFOUNDUI  SYS 
QSYS        SYS 
QSYS2       SYS 
QHLPSYS     SYS 
QUSRSYS     SYS 
QTEMP       USR
Not sure why this is happening, I don't have any special authorities for PROFOUNDUI and there is nothing in joblog. Adding PROFOUNDUI in initial CL:

Code: Select all

Library     Type
QSYS        SYS 
QSYS2       SYS 
QHLPSYS     SYS 
QUSRSYS     SYS 
PROFOUNDUI  USR 
Library in in user portion of libl. So no problem, just curious why I need to add the library.

Thanks,

Paul

Re: Mobile App

Posted: Wed May 28, 2014 11:15 pm
by Scott Klement
Ok, I see the problem. I'll create a bug report for this.

Re: Mobile App

Posted: Thu May 29, 2014 3:39 pm
by Scott Klement
Paul, the problem with the PROFOUNDUI library not being automatically added in a mobile session has been corrected on our dev box, and will be included in the next release of Profound UI

Re: Mobile App

Posted: Fri May 30, 2014 2:53 am
by Paul
Great, thanks Scott.

Re: Mobile App

Posted: Fri Aug 08, 2014 3:47 pm
by Scott Klement
Paul, version 4.8.5 of Profound UI is now available for download, and contains the fix for this issue.

Thanks!