cancel
Showing results for 
Search instead for 
Did you mean: 

FlashIsland.setLeadSelection() and other FlashIsland methods

wouter_peeters
Participant
0 Kudos

Could somebody explain to me what the leadSelection method of Adobe Flash Island is? And perhaps a link to an overview what all methods of the FlashIsland library mean (such as storeProperty) because I can't seem to find one.

Thanks in advance

Wouter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wouter,

FlashIsland.setLeadSelection(); sets the leadselection in your backend.

eg:

[Bindable]
public var Orders:ArrayCollection;

(In your frontend Orders is bound to the contextnode ORDERS in your backend)

FlashIsland.setLeadSelection(this, Orders, dbOrders.selectedItem); 

this: your application

Orders: your bindable arraycollectoin from your frontend to your backend.

dbOrders.selectedItem: Here you give the changed item in your frontend. In my case: The item that has been selected in my frontend application. Here it was a datagrid, and you can easely give the whole item by the selectedItem.

After you fire an event to your backend (FlashIsland.fireEvent(this, "change") the leadselection will change.

In your backend you can get the selected item via your context node -> get element


DATA: LO_ND_ORDERS  TYPE REF TO IF_WD_CONTEXT_NODE,
            LO_EL_ORDERS  TYPE REF TO IF_WD_CONTEXT_ELEMENT

 LO_ND_ORDER = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_ORDER).

* get element via lead selection
  LO_EL_ORDERS = LO_ND_ORDERS->GET_ELEMENT(  ).
* get all declared attributes
  LO_EL_ORDERS->GET_STATIC_ATTRIBUTES(
    IMPORTING
      STATIC_ATTRIBUTES = LS_ORDERS).

LS_ORDERS is your structure, and if you made your changes in your frontend, those changes will be in here.

Then save it to your table through a bapi or with a modify function and its set.

ps: i havn't found the library neither but if you watch all the video's at http://wiki.sdn.sap.com/wiki/display/EmTech/SAPRichIslandsforAdobe+Flash

you will find out a lot.

Kind regards,

Michael

Edited by: decafmeyerm on Nov 23, 2010 12:46 PM

Edited by: decafmeyerm on Nov 23, 2010 3:18 PM

Answers (0)