on 08-23-2012 7:51 PM
Hi,
Does anyone have an example sup-db.xml file for an Android application that I could refer to? I'm unsure as to what goes in the database name and database-class name fields. The description in the documentation I have seen so far is unclear:
<package name="EXAMPLE" short-name="EXAMPLE" sup-name="EXAMPLE" version="1.0"
java-package="com.sybase.example.db" /* For Blackberry or Application */
cs-namespace="Sybase.Example.db" /* For Windows Mobile Application */
oc-namespace="example_db_"> /* For iOS Application */
<!-- Update with new host and port, listener.url must end with /doe/publish. -->
<property name="listener.url" value="http://<Unwired_Server_host>:<listener_port>/doe/publish" />
<database name="example-database" />
<database-class name="ExampleDatabase" />
<personalization-parameter name="language" type="string" owner="client" />
<include file="afx-esdma.xml" />
</package>
Thanks,
Krishneel
Hi Krishneel,
Say the name of your application/ESDMA is XYZ. The database name should be XYZ-database and the database class name should be XYZDatabase. This will be the name of the application database file that will be generated when you perform the codegen, these files will be used in your client application. Make sure the name does not contain spaces or this could reult in deployment errors. Here is an example of sup-db.xml for android application:
- <package name="XYZ" short-name="XYZ" sup-name="XYZ" version="1.0" java- package="com.sybase.XYZ.db" cs-namespace="Sybase.XYZ.db" oc- namespace="XYZ_db_">
- <!-- Update with new host and port, listener.url must end with /doe/publish -->
<database name="XYZ-database" />
<database-class name="XYZ_CLASS" />
<personalization-parameter name="language" type="string" owner="client" />
<include file="afx-esdma.xml" />
</package>
Hope this helps!
Regards,
Sankeerthana P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.