Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: AET Field Value is not being saved at first time and second time onward it's saving on the database

$
0
0

Hi Anandh,

 

The on_new_focus method will help you fetch the buffer using the parent node, For business transaction document BTAdminH would be the root node and the BTCustomerH is dependent on BTAdminh.

 

By adding code in ctxt class system will set the correct buffer data while creating instance for BTCustomerH context node class.

 

In you case since there is no on_new_focus method system is not creating instance for the customer h first time.

 

Why are you adding in BTAdminH context node class, you have added the field from customer_h context node right..

 

You have to add on_new_focus method for customer_h context node class. The code i have provided in my earlier post will help to retrieve customer_h data.

 

Apart from creating on_new_focus method in customer_h context node class, you have add below in view context class( ends with ctxt) create_btcustomerh context node.

 

* initial setting for depandant model node

     coll_wrapper =

       BTADMINH->get_collection_wrapper( ).

     TRY.

         entity ?= coll_wrapper->get_current( ).

       CATCH cx_sy_move_cast_error.

     ENDTRY.

     IF entity IS BOUND.

       BTCustomerH->on_new_focus(

                    focus_bo = entity ).

     ENDIF.


Best Regards,

Dharmakasi.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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