管道执行后,扩展的OrderForm不会保存数据 [英] Extended OrderForm don't save data after pipeline execution

查看:71
本文介绍了管道执行后,扩展的OrderForm不会保存数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,





我正在执行Total PipeLine并在管道中添加了运费计算成本零件。我扩展了OrderForm类,并添加了一个新字段。在一些计算之后我在管道组件内部设置了Order的值扩展字段,并且在
测试之前,我在保存之前得到它,我可以看到它。但是当管道结束时,我检查篮子里的orderForm,字段值是0.¿我做了什么坏事? ¿我可以检查什么来确定问题?


谢谢。


Jotamarios

解决方案

和!我只是测试Web应用程序并尝试设置我的扩展类的字段的值,并在将值设为值后再次为0! ¿为什么?!


 


 
这个 .CheckoutData.BasketHelper.RunTotalPipeline();
MyOrderForm miOrden =(MyOrderForm) this .checkoutData.BasketHelper.Basket.OrderForms [0];
miOrden.manejoFlores = 20000;


Hi all,


I'm executing the Total PipeLine and I added a shipping calculation cost in a pipeline Component. I extended the OrderForm class and I added a new field. Inside the pipeline component after some calculation I set the value extended field of the Order and to test I get it just before saved and I can see it. But when the pipeline ends I check the orderForm inside the basket and the field value is 0. ¿What did I do bad? ¿What could I check to determine the problem?

Thanks.


Jotamarios

解决方案

And! I just test the web application and try to set the value of the field of my extended class and after asign it a value, it is 0 again!. ¿Why?!

 

this.CheckoutData.BasketHelper.RunTotalPipeline();
MyOrderForm miOrden = (MyOrderForm)this.checkoutData.BasketHelper.Basket.OrderForms[0];
miOrden.manejoFlores = 20000;


这篇关于管道执行后,扩展的OrderForm不会保存数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆