on ‎2014 Apr 09 4:02 PM
Hi Experts,
I have been trying to add a RowSelection event to a UI5 grid and am unable to.
I am not using MVC but adding charts and grids in the HTML pages in place of applets.
I have seen through the discussion in thread
But I am unable to find the right property to use to add these events.
I have tried to find the property in the UI5 libraries but I guess this is of no avail as the chart I am using (com.sap.xmii.grid.init.i5Grid) is MII specific.
I couldnot find any mention of properties in MII help.
I have also tried to add these in addProps as
var addProps = '{'+
'"QueryTemplate":"<path to template>",'+
'"DisplayTemplate":"<pathe to template>",'+
'"RowSelection ":"<function>",'+
'"Content-Type":"image/png"'+
'}';
Please advise.
Maaz
Request clarification before answering.
Hi Maaz,
You can use the following function to register for rowselection in i5Grid.
function funcToBeCalledOnRowSelect() {
alert("Row selected!!");
}
var g = new com.sap.xmii.grid.init.i5Grid(....);
g.registerRowSelectionEventHandler(funcToBeCalledOnRowSelect);
For this event to get triggered, Allow Selection should be true and Allow Cell Selection should be configured as false for the i5Grid.
Do let me know if you still face issues.
Regards,
Ria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ria,
Thanks for the prompt reply.
Is there any help or document refrence that provides details of these functions.
Following this I will be using the i5Grid Object Methods aswell and I donot see any help for that aswell anyways will try it first before I post any queries.
Also, can I assume that to add an event I can use the function register<Event>EventHandler where <Event> are the events described in the help document?
Regards
Maaz
Hi Maaz,
You can access the js doc for i5Chart & i5Grid by using the following URL:
http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
Alternatively there is a menu item in the workbench which launches the above documentation url as shown below:
Hope this helps!
Regards,
Ria
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.