我将Magento与Adempiere整合, 成功创建/更新产品在产品中有一些属性,我想要在这些属性中更新值
属性集实例
{scope=global, code=manufacturer, attribute_id=64, required=0, type=select}
我的代码:
Product_DATA.put("sku",p.getSku());
Product_DATA.put("manufacturer",new Object[]{"Zipped"});
Vector ARGS = new Vector();
ARGS.add(SESSION_KEY);
ARGS.add(new String ("catalog_product.create"));
ARGS.add(new Object[] {p.getType().getType(),4,p.getSku(),Product_DATA});
this.newRequest(remoteHost, "", SESSION_KEY, "call", ARGS);
Object RESULT = (Object) this.sendRequest();
创建代码:
HashMap label_DATA = new HashMap<>();
label_DATA.put("store_id", 0/1);
label_DATA.put("value", "bpartner");
HashMap Vendor_DATA = new HashMap<>();
Vendor_DATA.put("label",new Object[] {label_DATA});
Vendor_DATA.put("order",0);
Vendor_DATA.put("is_default",0);
Vector ARGS1 = new Vector();
ARGS1.add(sessionid);
ARGS1.add(new String ("product_attribute.addOption"));
ARGS1.add(new Object[] {"manufacturer",new Object[] {Vendor_DATA}});
this.newRequest(remoteHost, "", sessionid, "call", ARGS1);
Object RESULT1 = (Object) this.sendRequest();
创建时出错:
XML-RPC Error: Default option value is not defined
我想创建/更新这个&#34;制造商&#34;在产品窗口中的列,请任何人帮助解决此问题