Dragging from a grid to stringEdit with 2 forms

BudjeBudje Member Posts: 5
edited 2006-11-16 in Dynamics AX
Hi,

I need to drag a record from a grid on form1 to a stringEdit on form2.
I than need the correct column(a string) from that record and show it in the
stringEdit on Form2.

I set both the grid and string property dragDrop to manual.
But I don't know how i can identify the record on the receiver form.

How can I perform these actions?

Comments

  • BudjeBudje Member Posts: 5
    Found a solution myself.

    In the beginDrag of the first form i add the value I want to transfer in my globalcache:
    globalCache = classFactory.globalCache();

    globalCache.set(_owner,_key,_value);

    in my dragend i remove it from my cache:

    globalCache.remove(_owner,_key);

    and in the drop of my second form I retrieve it:

    return globalCache.get(_owner,_key);

    greetz
Sign In or Register to comment.