cancel
Showing results for 
Search instead for 
Did you mean: 

Assign action issue

Former Member
0 Kudos

Hello,

I have modeled a view which contains two text editors and one button.

The first text editor A is read-only, the second text editor B is not.

The button invokes an assign action which perfoms the following assignment:

@A = @B & @A

That means that the content of text editor B is copied to the beginning of text editor A, doesn't it?

However, the desired behaviour is only visible when clicking twice on the button. The first click seems to change nothing.

What am I doing wrong?

Best regards

Alexander

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Alexander,

I tried your scenario and it works perfectly fine , just with one click. [Here|http://img92.imageshack.us/img92/4408/texteditorot4.jpg], I have the two editors at runtime and also [assign action|http://img237.imageshack.us/img237/9712/assignqg3.jpg].

The input form has the 2 fields defined.

If you could share the design and define action or try what I have done, I am sure it would work. Let me know if it helps...

Good luck and Regards,

Dharmi

Edited by: Dharmi Tanna on Jul 23, 2008

Former Member
0 Kudos

Hello Dharmi,

what does your assignment looks like?

As I mentioned, simply using

@B = @A & @B

does not work for me.

A more complicated assigment like

@B = IF(ISNULL(@B), @A, @A & @B)

seems to work.

Best regards

Alexander

PS: I am using NetWeaver CE 7.1 SR 5

Former Member
0 Kudos

Hi Alexander,

The assignment action is simple one, the first option in your case. See the screenshot of the same on the previous thread (later added).

Best regards,

Dharmi

Former Member
0 Kudos

Hi Dharmi,

I just tried the simple version of the assignment again and it still refuses to work.

However, as the more complicated assignment seems to work, I consider my question as answered.

Best regards

Alexander