cancel
Showing results for 
Search instead for 
Did you mean: 

SSCE Event support.

former_member202208
Active Participant
0 Kudos

Hi Experts,

In SSCE how can we achieve the following;

1. Trigger a RowSelection event. [like   <param name="SelectionEvent" value="<<Script>>" />]

2. Hide a i5Grid. I want to use the i5Gird to retrieve the data and not for display

MII Version: 15.0 SP03 Patch 0.

Any help would be highly appreciated.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sridhar,

You can trigger a Row Selection Event for a i5Grid in SSCE by adding the below code in the custom code area.

grid_c0c0.registerRowSelectionEventHandler(myHandler);

function myHandler()

{

alert("Row Selected");

}

former_member202208
Active Participant
0 Kudos

Hi,

Thanks.

I tried it & is working.

Former Member
0 Kudos

Hi Sridhar,

For the 2nd point. you can create a Grid in custom code like this

var grid_c0c1 = new com.sap.xmii.grid.init.i5Grid("Default/i5Grid","Default/tagQ",true);

window["grid_c0c1"].update(true);

It will give an error, saying “oDomref must not null”, But in chrome we can still work.

Regards,

Sriram

former_member202208
Active Participant
0 Kudos

Hi Srram,

Thanks for your email.

I don't think, for ssce components we can update code. Only we can write scripts in 'Add Custom Code Here :' frame and attach it to the UI controls.

Is there a way we can set Events when the i5Grid object is created. [Ex: Rowselect, size, etc]?

For now, i am registering events on some other event.

Thanks,

Shridhar

Former Member
0 Kudos

Hi Sridhar,

Yes we cannot update code for SSCE components, we need to use custom code area to register the grid events.

you can register Grid creation event like this. In custom code area.

i5Grid.registerCreationEventHandler(myhandler);

function myHandler()

{

    // select 1st row, set size etc

}