erp - Auto set active subitem segment value in Stock Item screen -


how can set active sub-item segments in subitems tab stock items screen using code ? insubitemsegmentvalue class not contain active field...

here's solution

pxcache cache = base.caches[typeof(insubitemsegmentvaluelist.svalue)];  foreach (insubitemsegmentvaluelist.svalue item in cache.cached) {     item.active = true;     cache.update(item); } 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -