1. Pepe Cuenca
  2. PowerBuilder
  3. Tuesday, 12 February 2019

Good Morning Everyone, 

We are thinking about developing an app for Android Devices in Powerbuilder. We 've never developed in Android, so for us is easier to do it in PB. 

The App just has to read a barcode, and 2/3 manual imputs. 

Is this possible with Appeon Mobile?

We have a license for appeon PowerBuilder 2017 R3.

Shenn Sellers Accepted Answer Pending Moderation
0
Votes
Undo

Are you really "provided with 3 Powerserver Production licenses with the Universal Edition for deploying your Mobile Apps within your organization"?  I have the Universal Edition and it was my understanding that the licenses provided for Web and Mobile were only for testing purposes.  That in order to deploy these types of apps, you had to buy an additional license.  Am I confused here?

Comment
Hi Shenn,



Production servers for PowerServer Mobile can be granted to Appeon Enterprise Account holders who own PowerBuilder Universal.



You may learn more about the Appeon Enterprise Progam here: https://www.appeon.com/appeon-enterprise-account-program.html
  1. Mariano Collado
  2. Wednesday, 13 February 2019
There are no comments made yet.
  1. Wednesday, 13 February 2019
  2. PowerBuilder
  3. # 1
Pepe Cuenca Accepted Answer Pending Moderation
0
Votes
Undo

Hi guys, just to let you know it's solved.

SoapConnection is not going well in mobile. Using appeonwebservicecomponent works. 

Thank you very much again, as always. 

Comment
There are no comments made yet.
  1. Wednesday, 13 February 2019
  2. PowerBuilder
  3. # 2
Michael Hartnett Accepted Answer Pending Moderation
0
Votes
Undo

Hi Pepe,

You must upgrade your license to PB 2017 R3 Universal in order to develop Mobile Apps.

The Cloud Edition does not provide Mobile App capabilities.  You are also provided with 3 Powerserver Production licenses with the Universal Edition for deploying your Mobile Apps within your organisation.

I am sure if you contact Appeon they will be able to assist you with upgrading your licensed version of PB.

Michael

Comment
Hi Michael,

I've downloaded an Universal Demo, just to test.

Now, I've created a Workspace and a target, but how I Start my mobile app? I can see no different options now...
  1. Pepe Cuenca
  2. Tuesday, 12 February 2019
There are plenty of demo mobile apps, I would suggest getting one and reviewing the code to understand. But the development process is much the same as normal PB



You can download some sample apps from here: https://www.appeon.com/developers/library/code-samples-for-apb



You will also need to setup your environment, see Appeon documentation...

https://www.appeon.com/support/documents/appeon_online_help/2.0/appeon_mobile_tutorials/index.html

  1. Michael Hartnett
  2. Tuesday, 12 February 2019
There are no comments made yet.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # 3
Pepe Cuenca Accepted Answer Pending Moderation
0
Votes
Undo

Morning Marco, 

Thank you very much, as always. 

So, I think it is possible, and Easier, of course. 

The thing is that I don't understand how the thing works...

We have installed Powerbuilder 2017 R3, cloud edition.

How do I start the app?

Does it generates an .APK file that I will later install in the device?

 

 

 

Comment
There are no comments made yet.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # 4
Marco Meoni Accepted Answer Pending Moderation
1
Votes
Undo

Hi Pepe,

it is extremely simpler to implement your barcode reader using Appeon Mobile than Android SDK.

Create a regular PB window, add a button, and in the clicked event write this 3 lines of code:

eon_mobile_barcodeex barcode
barcode = CREATE eon_mobile_barcodeex
barcode.of_read(ls_code, li_format)

The code will activate the camera, which will turn into a barcode reader (a scanning square) and will return the actual code (ls_code variable) and the related format (li_format variable) among the many that are supported (EAN-8, UPC-E4, CODE 128, CODE 93, CODE 39, QR CODE to name a few).

Have a look at the simple API:

https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch01s04s03.html#eon_mobile_barcode_object

With PowerBuilder Universal edition you can install PowerServer (PB Edition) too.
Once done, add to your PB workspace the PBL containing the Mobile extensions (e.g. eon_mobile_barcodeex object). This PBL is installed located at

C:\inetpub\wwwroot\appeon\developTempFile\appeon_workarounds\appeon_workaround.pbl

Best,

.m

 

Comment
Hi Marco,

I've done it and almost everything is going well.



I 've made de APP, and deployed it. The app opens in the phone, but the deployment shows me some errors:



17:20:13 00005: Failed to parse the source code. Line: 6

17:20:13 Failed to parse UserObject soappbcookie.

17:20:13 00005: Failed to parse the source code. Line: 6

17:20:13 Failed to parse UserObject soapexception.

17:20:13 00005: Failed to parse the source code. Line: 6

17:20:13 Failed to parse UserObject soapconnection.

17:20:15 00901: Cannot connect to DSN. The database server is amcdb2_tcp.

17:20:15 Failed to generate DWSQL.

17:20:19 01005: Configuration for Web service object (webservice) is incorrect.

17:20:19 01001: Failed to generate ProxyObject webservice.



The app runs OK in PB2017, and the connection to the WebService works fine.



This is the code of my "Enviar Button":



SoapConnection conn // Definimos conexión SOAP

webservice proxy_obj // Declaramos proxy

long rVal



string ls_codbar, ls_calibre, ls_resultado

decimal lc_bultos

boolean lb_vacio





lb_vacio = false



if isnull(sle_codbar.text) then

messagebox("Atencion","Debe rellenar el codigo de barras")

end if



ls_codbar = sle_codbar.text

ls_calibre = sle_calibre.text

lc_bultos = dec(sle_bultos.text)



conn = create SoapConnection



rVal = Conn.CreateInstance(proxy_obj, &

"webservice")







ls_resultado = proxy_obj.palletmarcadora( "marcadora",ls_codbar,lc_bultos, ls_calibre)



if ls_resultado = "OK" then

messagebox("", "Marcaje Correcto")

else

messagebox("Error", "Fallo al insertar el pallet")

end if









  1. Pepe Cuenca
  2. Tuesday, 12 February 2019
There are no comments made yet.
  1. Tuesday, 12 February 2019
  2. PowerBuilder
  3. # 5
  • Page :
  • 1


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