You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by indela <in...@gmail.com> on 2012/05/16 15:57:00 UTC
what is the problem in my code here....
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);
}
--
View this message in context: http://ofbiz.135035.n4.nabble.com/what-is-the-problem-in-my-code-here-tp4631824.html
Sent from the OFBiz - User mailing list archive at Nabble.com.