|
hi i am writing code for get the data from table
Query is Select * from catalog_store_email where store_catalog='demo'
i created table catalog_store_email with two columns storeCatalog and storeMailId.
but i not getting any value...where i am wrong in this code please help me....
thanks
try
{
GenericValue storeEmailId = delegator.findByPrimaryKey("catalogStoreEmail", UtilMisc.toMap("storeCatalog", currentCatalog));
Debug.logError(storeEmailId.getString("catalogStoreEmailId"), module);
if(orderAdditionalEmails == null || orderAdditionalEmails.length() == 0)
{
orderAdditionalEmails = storeEmailId.getString("storeMailId");
}
else
{
orderAdditionalEmails = orderAdditionalEmails + "," + storeEmailId.getString("storeMailId");
}
}
catch (GenericEntityException e)
{
Debug.logError(e, module);
}
|