We need a program which created using java under blackberry platform.
This program basically is simple form entry but we can define the form
controls by using xml file. If you know XAML than you will know what we mean but
our version is very simple one. There will only 10 object here
1. Menu
2. Form
3. ComboBox
4. Grid (Table)
5. Label
6. Text box
7. Number
8. Date time picker
9. Search text box (Allowing user to search spesific item)
10. Image
## Deliverables
Download [login to view URL] for blackberry version, that's the interface which we need to make.
Here is the sample XML file :
<xml>
<Title>Simple form entry</Title>
<splashscreen>[login to view URL]</splashscreen>
<header>[login to view URL]</header>
<majorversion>1</majorversion>
<minorversion>0</minorversion>
<menus>
<menu>
<icon>[login to view URL]</icon>
<caption>Enter New Order</caption>
<formid>enterorder</formid>
</menu>
<menu>
<icon>[login to view URL]</icon>
<caption>View Orders</caption>
<formid>orders</formid>
</menu>
<menu>
<icon>[login to view URL]</icon>
<caption>View stock</caption>
<formid>stock</formid>
</menu>
<menu>
<icon>[login to view URL]</icon>
<caption>Upload</caption>
<formid/>
<action>upload</action>
</menu>
</menus>
<forms>
<form>
<background>[login to view URL]</background>
<id>enterorder</id>
<controls>
<combobox>
<id>cbCustCode</id>
<caption>Customer Code</caption>
<datasource>[login to view URL]</datasource>
</combobox>
<textbox>
<id>txtItemCode</id>
<caption>Item Code</caption>
</textbox>
<textbox>
<id>txtQty</id>
<caption>Quantity</caption>
</textbox>
<datepicker>
<id>dpOrderDate</id>
<caption>Order Data</caption>
</datepicker>
</controls>
<submit>[login to view URL]</submit>
</form>
<form>
<id>orders</stock>
<controls>
<grid>
<datasource>csv:[login to view URL]</datasource>
</grid>
</controls>
</form>
<form>
<id>stock</stock>
<controls>
<grid>
<datasource>[login to view URL]</datasource>
</grid>
</controls>
</form>
</forms>
</xml>
The data collection program should work like this :
1. Download dan save the xml file from a website
2. Download all content like image which defined on xml to local storage
3. Execute xml
4. Show splash image which defined
5. Show main form, the [login to view URL] will replace [login to view URL] logo (Show it on top)
6. Show all menu Order Entry, View Orders,View Stock, Upload Data
7. When user select Order Entry than show enterorder form
8. All information which entered by user will be stored on csv (defined on submit tag)
9. When user select View Orders than all orders which stored on csv will be displayed on grid
10. When user select View Stock than a grid displayed with datasource (CSV format) loaded from web
11. When user select Upload than the CSV sent to a website gziped and encoded using base64, simply POST the result to spesific URL