Professional Documents
Culture Documents
Iui Mobile: Created by
Iui Mobile: Created by
created by
TECHNICAL GUIDE
Written by
REDHUAN D. OON
Version 1.3
ADAXA iUIMobile
Access iDempiere on the go via your mobile phone
A step-by-step guide on the first mobile interface from Down Under
The top photo is not of Gotham City but the Kuala Lumpur skyline from the 34th floor of
SetiaSky Residences, which a good friend purchased at about U$270k some three years ago
now costing U$400k. You hardly see the KL Tower on the right side with its top mush-
room head obscured by a puff of morning fog. The Petronas Twin Towers of course needs
no narrative. Sprawled below is what is left of the Malay enclave stubbornly refusing to sell
out to be part of the golden triangle. They want more money. Greed. And that is when I
thought about Batman and his quest for ridding the world of darkness and evil.
Picture taken with a Canon EOS Rebel T3.
Dedicated to little Mariana in cold peaceful Siberia.
sponsored by
BANGLADESH
This upgrade to iDempiere is sponsored by Zeeshan Hasan from above.
RED1’s THREE LAWS:
Information is Free
YOU HAVE TO KNOW
These are not taken with my camera. I just Googled for Batman in the Internet. Of
course I took many hours of digging before arriving at some sense to ensure I got
the theme perfect for this otherwise boring documentation, which took less hours to
produce. Hope this will reduce your phobia for bats eventually while your mobile
ERP works beyond your imagination. Still at peace and with me on the same page?
TABLE OF CONTENTS
Resources
6
Features
6
Improvements
6
Setup
7
Installing
7
Initialising
8
Walk-through with Phone
9
Eclipse Environment
11
SourceForge Artifacts
12
Learning Resources
13
A Russian Bug
14
Nicolas Micoud
16
I spent some time in awesome Siberia, Russia earlier this year, helping these two highly energetic girls on the right
with English that took my mind away from the stress of bug fighting. It was at this huge house behind them that I
finally solved the iUIMobile login sequence. Who knows, they will grow up one day into real super-people in the
fight for justice and freedom in their own land. Their home itself is a kinda cold but cosy Gotham City.
Adaxa iUIMobile Technical Guide
RESOURCES
iUIMobile is the brilliant work of Paul Bowden, a hybrid Irish-Chinese in Australia with our top
ERP implementation and accounting expert partner, Adaxa.
It requires the idempiere-server to be up and running and unlike SFAndroid, which needs not.
So it is more of a host-centric system rather than a client-server one.
Nevertheless iUIMobile is simple, clean-looking and works exactly on the meta-data from the
ERP. It therefore has no maintenance and no extra coding needed when any new table model is
added. It is very light-weight and thus runs very fast during demos.
This document will describe how to run the demo as well as well as setup on own server. The re-
pository to download plugin, 2Pack and tutorial is at
http://sourceforge.net/projects/red1/files/p2/Mobile/
Features
The latest is version 0.2 because there are some improvements to it. Firstly the basic features as
done by Paul Bowden are:
1. Integration with iUI presentation layer from the http://www.iui-js.org/ project.
2. Fully defined by meta-data from the ERP’s Application Dictionary design from Compiere.
3. Light-weight and fast to operate on mobile phones.
4. Allows editing of data and creating new orders
Improvements
SETUP
Installing
Similar to the other plugins I did, you can either download first, then install from local location,
or install directly via remote online location without downloading first. Below are the scripts you
can run off your OSGi console of iDempiere. Please refer to www.idempiere.com’s wiki for any
basic or background information on iDempiere ERP setup and operations.
Here is the online script method, just copy and paste in your OSGi console:
install http://downloads.sourceforge.net/project/red1/p2/Mobile/org.idempiere.iuimobile_1.0.0.201310260513.jar
(note: as usual if the jar has been updated in the repository you may need to amend the above to
fit the timestamp).
Upon starting the bundle, the 2Pack will work itself. Again if this fails you can fetch the
iUIRoleEnable.zip from the SourceForge repository to do a manual Pack-In.
Now you have to do the usual Login via WebUI first (or via Swing client from adempiere-client)
to do a Role Access Update and logout. Otherwise you may need a dsyfunctional screen like here:
Initialising
stopping the
idempiere-server
and with the close
command and then
launch it again.
You know things are working when you get the choice of the role after login screen. Also if the
language selection does not appear, just login into /webui will get your language into play. Let’s
try logging in as SuperUser/System to another installed language which I am doing below using
Spanish Colombia. The images are from an actual mobile phone (Nexus 4 gift from the Krefeld
iDempiere Conference!).
The subsequent screen above, you can see the main menu listing in Spanish. Let’s tap on Ventas
(Quote to Shipment).
Eclipse Environment
SourceForge Artifacts
There are few uploads I done that is sufficient to run this add-on.
The iUIRoleEnable.zip is the 2Pack just in case the embedded one misfires and you wish to
manually Pack-In.
The ExpDat<time-stamp>.jar is the Database dump at the moment of Pack-Out of the 2Pack so
that you can return to modify some more things to PackOut. Note that there are other pack-outs
in there such as for SFAndroid and LiberoMFG. Below is the screenshot of the Pack-Out record-
iUIRoleEnable.
Learning Resources
http://youtu.be/aSkmB9I2iGc
May all evil be banished from this planet Earth. Stay safe.
A Russian Bug
Peter Shepetkov was excited about this and tested it but alas was sad to find that the Russian lan-
guage remains the exception in getting to work in the iUIMobile. So remembering the good time
I have with him in Moscow around April this year I set out since last night and continuing early
this morning before soon discovering the root cause of the bug. Here is Peter posing with me
before the entrance of the Red Square in Moscow, a great Gotham City indeed. - October 25th.
The bug was due to the Russian character set been > 255 and filter check, called from my iUIMo-
bile, WMenu (body.addElement(buf.toString());) finally setFilterState(true):
/** STRING ELEMENT.java
* Set Tag Text
* @param text text
* @return Element
*/
public Element setTagText (String text)
{
if (text != null && text.length() > 0)
{
StringCharacterIterator sci = new StringCharacterIterator(text);
for (char c = sci.first(); c != CharacterIterator.DONE; c = sci.next())
{
int ii = c;
if (ii > 255)
{
setFilterState(true);
break;
}
}
}
return super.setTagText (text);
However Carlos Ruiz flew into the picture, solving it by just removing setTagText method. See
his ticket: IDEMPIERE-1475.
Nicolas Micoud
(see http://red1.org/adempiere/viewtopic.php?f=45&t=1753#p8502)
So how do you get your own translation for those control keys? Here is how: