WebServiceClient client = new WebServiceClient(); client.setEndpointAddress("http://192.168.0.51:8080"); ADLoginRequest loginRequest = new ADLoginRequest("WebService", "WebService", "192", "11", "50004", "11", "103", "0"); client.setADLoginRequest(loginRequest); ModelCRUD modelCRUD = new ModelCRUD("getBPartners"); client.executeQuery(modelCRUD, new SOAP11ListObserver<DataRow>() { @Override public void onException(Request<List<DataRow>, SOAP11Fault> arg0, SOAPException arg1) { //Whenever a failure occurres, this method gets called } @Override public void onCompletion(Request<List<DataRow>, SOAP11Fault> arg0) { //When all DataRows are processed, this method gets called } @Override public void onNewItem(Request<List<DataRow>, SOAP11Fault> arg0, DataRow arg1) { //For each DataRow in the response, this method gets called } });
@Table(name = "AD_User")public class MUser extends Model {
@Column(name = "AD_User_ID") public String AD_User_ID; @Column(name = "C_BPartner_ID") public String C_BPartner_ID; @Column(name = "Fax") public String Fax; @Column(name = "Phone") public String Phone; @Column(name = "Phone2") public String Phone2; @Column(name = "EMail") public String EMail; @Column(name = "Name") public String Name;
public MUser() { }}
MUser m_user = new Select().from(MUser.class).where("AD_User_ID = ?", ad_user_id).executeSingle();
m_user.Name = "Test";
m_user.save();
new Delete().from(MBPartnerLocation.class).where("C_BPartner_Location_ID NOT IN (" + ids.toString() + ")").execute();
I forgot to mention that after installing the iDempiere Plug-in, you need to run the process which comes with the plugin. I reccomend you to run it for Client 11 and Org 0 so you can use the WebService user from GardenWorld for testing the App. Also in a default installation, there are no contacts in your business partners so i suggest that you create new contacts to see the full power of the app. Here are also some screenshots of the App running on an Asus Memo Pad FHD 10:
Hi Jan,
Your code can't compile. Here is the problem for class: BPartnerEntryAdapter.java
Hi
This does indeed look good! I’m just having difficulties to figure out what is the difference between this Android app and the SFAndroid app?
/Flemming