cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with to fill a cell of a table

Former Member
0 Kudos

Hi experts,

I have this problem: I have my table where I want that a cell (DESCRIPTION Oda) is filled with its value when I select the value of another cell with search help... For exemple, I have a column table named Number ODA and a column table named Description ODA. When I choose a number ODA with search help, I want that automatically the cell Description ODA is filled with its value. I write the code for fill this cell in the ModifyView, but it doesn't work, because the ModifyView is running also in others events, and I want that this code is running only when I choose a number ODA with search help. How can I do?

Tks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think you are using the SH . No ovs is written right. Yes, upon using of SH the modfiyview gets triggered.

Have you checked in the Deugging for VIEW value..check wether you can find anything specifc to the SH.

Regards,

Lekha.

Former Member
0 Kudos

Sorry, I don't understand... Can you be more clear please? I don't understand how to use the search help, because when I choose my number ODA, the description of the number doesn't filled, so I think that I don't have to use only the search help, but I have to retrieve this description...

Tks...

Former Member
0 Kudos

HI

How are you selecting the value for that NUMBER column. Is it a F4 help or directly enetering the value in the cell or a drodp down..

Former Member
0 Kudos

I choose my number with a search help... and I would like that the cell description is filled when I choose the corrisponding number...

Former Member
0 Kudos

Yes, I got your point...On selection of value from SH only modofyview gets triggered....

If it is OVS or FVS(freely programmed) then you can have an event to catpture the values..

If the values in F4 are not huge, then you can use the dropdown right.

Either you need to store those values that SH is retieving for F4 in an internal table then

You need to read the value from the NUMBER field, hit this table with that number and popuplate the Description.

Does teh SH has Desc as exporting value..

Former Member
0 Kudos

Hi,

I think that I have to write the code for retrieve the description in the ModifyView and I can fill a internal table, but I have to show this description in my main table, so where I can put the code for retrieve the description from my internal table?

Tks and regards.

Former Member
0 Kudos

Hi,

One thing you clarify, these 2 columns are in teh same table right.

Now you have to get the table for the description.

Now, read the node to whcih the table UI elemnet is bound at given index.

Now using the value of that structure(elemnet at index is returned right) hit the descipriton table and bind the description value to this element..

One thing you cross check.

Implement the context change log for this node.

When selected from F4, in teh modifyview, get the context change log for that column.

If you find the value getting changed, then update the node.

Is this clear.

Regards,

Lekha.

Former Member
0 Kudos

Yes, the columns are in the same table, one is the column where is the number that I choose with the SH, and the second column is the description...

Sorry but I don't understand what is the "context change log"? Is there a property of the node?

Former Member
0 Kudos

Yes, try to enable the context cahnge log for this node.

When you select an item from F4, in modfiview get teh change log of this node. Using which you can update the description.

Search SDN on context change log.

Former Member
0 Kudos

Tks, solved!