java - Unable to add product details while creating new quote -


I am developing an Android app to create a new quote in the vTiger (ver 5.4) CRM server.

I was able to generate a new quote but was not added to the product_id and the quantity I sent in addition to the bid details. Except other details, products, their quantity and pricing, are being shown in new bids.

I also studied but it was not helpful in this case. / Em>

I found the same thing but it is in php not in Android / JavaA .

Similarly I am sending the necessary details to create a new quote in the vTiger server. -

  try {objectJson.put ("subject", subject); ObjectJson.put ("account_id", account id); ObjectJson.put ("bill_street", address); ObjectJson.put ("assigned_user_id", "19x1"); ObjectJson.put ("conversion_rate", "1.000"); ObjectJson.put ("currency_id", "21x1"); ObjectJson.put ("hdnTaxType", "Groups"); ObjectJson.put ("productive", product ID); ObjectJson.put ("quantity", quantity); } Grip (JasonAxpection E) {// Two-Auto Auto-Generated Catch Block E.Pintstaxtress (); } String data = null; {Data = URLEncoder.encode ("sessionName", "UTF-8") + "=" + URLEncoder.encode (session ID, "UTF-8"); Data + = "& amp;" + URLNcoder.X Code ("Element", "UTF-8") + "=" + URLNcoder.xcode (Object Jason.tracing ("," ISO-885 9 -1 "); Data + = "& amp;" + URLEncoder.encode ("elementType", "UTF-8") + "=" + URLEncoder.encode (module-name, "UTF-8"); // moduleName = 'citation'} Catch (unsupported encoding exception e) {// TODO auto generated block e.printStackTrace (); } String text = ""; Buffer Reader = Faucet; // Try to send the data {// Defined URL where the data url url = new url ("http: //vtiger_url/webservice.php? Operation = create") to send; // Send POST data request URL connection Conn = url.openConnection (); Conn.setDoOutput (right); OutputStream Vector wr = New OutputStream Water (conn.getOutputStream ()); Wr.write (data); Wr.flush (); } Hold (Exception Pre) {}   

The above code helps me generate quotes without product description. After studying the above characters, I changed the URL that I was using in my code: http: //vtiger_url/webservice.php? Total = 23000 and Operation = Create . This helped me add the total amount in the newly created quote, but I did not succeed in adding the remaining details using this method.

You think this is appropriate, even if it is a php solution. You have put the problem:

I have also tried, but unfortunately I can not use the inventory print table.

Perhaps an indication of the lack of proper authentication or missing privilege already. That's why I recommend

  1. Find out why you can not access the table inventoryproductel . Try to use that table as your authentication privileges (session ID), check the response for any indication and try to resolve the table .
  2. Finally follow the suggestions from this. Just another indication if you can successfully use that table through that webweb, then I will snooze the request and look at the http parameters and their values. Will keep Based on those findings, you can modify your request. Always think, the web browser can do the same as Android application only.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -