what is the problem in my code here....

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

what is the problem in my code here....

indela
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);
        }