cancel
Showing results for 
Search instead for 
Did you mean: 

Tabl caption not updated

Former Member
0 Kudos

Hi all.

I have the following scenario.

One Table displays order headers. Another table displays the items of the

selected order header.

My context is as follows:

- order header (0...n) initialize lead selection

- order items (0..n) singleton

The subnode order items has a supply method which selects all items of the

selected order and binds them to the context. In this supply method I create

the caption of the item table -> Items of order 971623197236 and bind it to a

context element via element->set_attribute. The attribute gets written!

So when I initially show the view the order header table gets filled and the supply

method for the items is called and the caption is created correctly but not

displayed. When I select the next entry in the order header table the new items

are displayed but the previously created caption is diplayed. And so on.

Any hints?

Thank you in advance,

Sascha

Accepted Solutions (1)

Accepted Solutions (1)

former_member182190
Active Participant
0 Kudos

Hi,

As you are using a supply function you are facing this problem, try putting the same code in WDDOMODIFYVIEW method of the View.

Hope this will help.

Regards,

Ismail.

Former Member
0 Kudos

Hi Ismail.

Thank you very much. That solved my problem.

But anyway I am not sure why the items which gets filled in the supply method are

displayed correctly but the caption of the same table gets not displayed when it is

filled in the same supply method.

I'll study the phase model again.

Cheers,

Sascha

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi.

Still no ideas?

Just for info.

order items is a subnode of node order header.

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

For these type of things we can't expect because these thins can be found thorugh Dubuging the application only. So What i will do,

In the New Debugging tool, you will have the Webdynpro option. Choose that check the value is updated into the context or not? and Put the breakpoints in the WDDOINIT of the view and check the value is present or not. By using these breankpoints you can definetly find out what could be the problme is>>>>>>>>>>.

Give me some information if you find anything other than this.

Warm Regards,

Vijay

Former Member
0 Kudos

Hi Vijaya.

I already debugged this and as already mentioned .. the element of the context is updated.

Cheers,

Sascha

Former Member
0 Kudos

I guess your node selection should be 1 n. The the lead seleciton is set for the supply function to access.

- Harish.

Former Member
0 Kudos

Hi Harish.

No ... the table could be empty. The lead selection is set initially anyway which

means when the order header table has entries the item table is filled with the

items of the first order in any way. The supply method is called and the caption is

set also. But the view does not update the caption of the item table but does update the items of the item table.

I do not have any idea.

Someone else?

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey