Skip to Content
0
Former Member
Nov 09, 2007 at 05:37 PM

Get values from VIEW1 to VIEW2

17 Views

Hi all,

Sorry, i have read all the forum and blogs, but i cannot undestand.

I have one window and two two views.

All elements on this views created dinamically.

How i can get ID of the button in VIEW2, on what i have click in VIEW1.

I have Inbound Plugs on VIEW2.

There i have written:

wd_context->set_attribute( name = 'MY_TEXT' value = ID ).

MY_TEXT it is a only one static field, wich i have created on VIEW2.

In method WDDOMODIFYVIEW i am write:

CALL METHOD WD_CONTEXT->GET_ATTRIBUTE

EXPORTING

NAME = 'MY_TEXT'

IMPORTING

VALUE = MY_CONSTRUCTION_TEXT.

And all works correct!

Then i create CAPTION on VIEW2 with text = MY_CONSTRUCTION_TEXT.

But when i click BACK button on my VIEW2 and return to VIEW1, i try to click at onether button with another id.

When i do this, after

CALL METHOD WD_CONTEXT->GET_ATTRIBUTE

EXPORTING

NAME = 'MY_TEXT'

IMPORTING

VALUE = MY_CONSTRUCTION_TEXT.

MY_CONSTRUCTION_TEXT is EMPTY.

Why when i do this second time - a have empty value, but first run is all OK?

P.S.: EMPTY is default value of MY_TEXT.

P.S>: When i call VIEW1 and VIEW2 all time the nodes removed and then created again(i need so).

Sorry for my english.

Please, help me. It is very important for me!!!

Points guaranted.