Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

Updating data with ABSL Script

$
0
0

Hi, experts.

I write some ABSL script in one BO that can update data of another BO with this code.

 

foreach (var tempBO in SampleBO.QueryByElements.Execute()) {     // temp BO

       if(tempBO.conditionField==this.conditionField){

            var newBO: elementsof SampleBO;

            var nodeRef;

            newBO.newdata1= tempBO.SampleData1;            // back up newdata1

            newBO.newdata2= tempBO.SampleData2;            // back up newdata2

            newBO.newdata3= this.updateData1;                    // update new data3

            tempBO.Delete();                                                //delete tempBo

            nodeRef = SampleBO.Create(newBO);                 

            SampleBO.QueryByElements.Execute().Add(nodeRef);

       }

}

 

It kind of works. But I wan to know other possible ways because I m a newbie and still can't write efficiently in ABSL. Is there any other way around to get the same result???

Please share your opinions.

Regards.

May T.


Viewing all articles
Browse latest Browse all 8914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>