1. Clarence Chamorro
  2. PowerServer Mobile (Obsolete)
  3. Thursday, 16 August 2018 02:38 AM UTC

I have an app using PFC. When execute the logon process I get an Initializacion error. Could not Initialize database settings using the following settings:  INI File myinifile.ini Section: Database.

I tap ok & the app works ok.

Could you please give me an advise how to  solve this issue. Here the content of the ini file.

[Database]

DBMS = ODBC

Database = mydatabase_test

LogId=''

LogPasswor=

ServerName=

UserId=''

DatabasePassword=

DBPARM= ConnectString='"DisableBind=1";DSN=mydatabase_test;UID="";PWD='

 

I am using PB2017 R3 with PS R3.

 

Any advise please.

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 20 August 2018 01:25 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Clarence,

You cannot use fileexists to judge if the ini file exists or not for the Appeon web application. Please refer to article below to solve this issue.
https://support.appeon.com/index.php?/Knowledgebase/Article/View/97/10/it-is-failing-when-the-appeon-web-application-tries-fileexists-for-ini-file

And please refer to the article below to set up Appeon Server data sources and the transaction object to data source mapping:
https://www.appeon.com/support/documents/appeon_online_help/2016/server_configuration_guide_for_net/ch03.html

Regards,
ZhaoKai

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 16 August 2018 12:18 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Please carefully follow the getting started guide, especially the connecting to database part: https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/powerserver_getting_started/ch03s03.html

You cannot set database connection simply through code/INI file in the n-tier architecture of PowerServer, no matter deploying as mobile or Web app.  

Comment
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 16 August 2018 11:40 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 3

I'd recommend stepping through in debugger to see what's going on.  You often learn alot about the PFC while doing that, as an added bonus!

Comment
  1. Clarence Chamorro
  2. Thursday, 16 August 2018 11:47 AM UTC
In windows work perfect; I get the message only when i run the mobile app.

And I there is not debugging option onece you deploy to PowerServer mobile.

But I appreciate your answer.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 16 August 2018 12:13 PM UTC
Try using the Web debugger in the PowerServer product. Often times that can be used to debug mobile app issues except if the issue is related to the device APIs, for example using the camera, GPS, etc.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 16 August 2018 04:46 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 4

Not sure if it might be important, but you are missing a "d" at the end of the word "Passwor"

 

LogPassword=

Comment
  1. Clarence Chamorro
  2. Thursday, 16 August 2018 11:53 AM UTC
I appreciate your answer. It was a typo when I wrote it in the block. In the ini file it is correct.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


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