I'm sorry, i forgot a line of code in the previous snippet, here is the correct snippet:
KKAdmin eng = new KKAdmin();
sessionId = eng.login(DEFAULT_USERNAME, DEFAULT_PASSWORD);
AdminOrder[] orders = eng.getOrdersCreatedSince(sessionId, yesterday, com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG);
for(int i=0;i<orders.length;i++)
{
AdminOrder tmpOrder = orders;
int orderId = tmpOrder.getId();
AdminOrder order = eng.getOrderForOrderId(sessionId, orderId);
AdminOrderProduct[] products = order.getOrderProducts();
for(int j=0;j<numProducts;j++)
{
AdminOrderProduct orderProduct = products[j];
AdminOption[] options = orderProduct.getOpts();
for(int k=0;k<options.length;k++)
{
AdminOption option = options[k];
int optionId = option.getId();
int valueId = option.getValueId();
}
}
}
Thank you very much
KKAdmin eng = new KKAdmin();
sessionId = eng.login(DEFAULT_USERNAME, DEFAULT_PASSWORD);
AdminOrder[] orders = eng.getOrdersCreatedSince(sessionId, yesterday, com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG);
for(int i=0;i<orders.length;i++)
{
AdminOrder tmpOrder = orders;
int orderId = tmpOrder.getId();
AdminOrder order = eng.getOrderForOrderId(sessionId, orderId);
AdminOrderProduct[] products = order.getOrderProducts();
for(int j=0;j<numProducts;j++)
{
AdminOrderProduct orderProduct = products[j];
AdminOption[] options = orderProduct.getOpts();
for(int k=0;k<options.length;k++)
{
AdminOption option = options[k];
int optionId = option.getId();
int valueId = option.getValueId();
}
}
}
Thank you very much