First things first:
If I click into a NOT editable cell in a WebDynpro grid, its parent ( the entire row ) gets selected.
For that it is properly set up in the layout painter ( row selectable = true ) .
If I click into an editable cell, nothing like this happens.
Instead the cursor prompt appears allowing me to edit the cell according to the assigned cell-editor.
But I need this selection-changed event also for editable cells.
Because, if the user chooses the F4 in that cell, there shall only be values available, which depend on another cell-value in this specific selected row.
Any clues ?
I would go this way to implement your requirement:
Make IF_FPM_GUIBB_OVS implementation directly in the grid (in the IF_FPM_GUIBB_LIST impl class)
Adjust grid to cause FPM event on each row selection
Configuration >> General settings >> "selection event type"
Store the selection in the main implementation class attribute at each selection
Read selection attribute in the IF_FPM_GUIBB_OVS~HANDLE_PHASE_0() OVS method
Related
There is currently a form, suppose there are two labels, I want to have a field with a value for the label ex2 to appear, if not, hide the label ex2.
Is there a place to set it?
After I tried, the tab still visible...
In the Designer :
In the Client :
To hide a TAB you simply hide its contents. If you e.g. would want to hide ex2 you would select the complete content of the tab", open the text properties (Alt + Enter) and enter something like:
HideEx2 = "Yes"
in the hide- when formula. Then the tab will disappear as soon as the field "HideEx2" gets the value "Yes".
Take care: Hide whens are NOT calculated "automatically". If your Hide- When depends on the value of an option or checkbox field you need to check the mark "Refresh fields on keyword change" in the field properties of the HideEx2- field.
Otherwise your user needs to press F5 or save the document to make the tab appear / disappear
If there are Tables in the tab, then you need to do three steps:
select everything before the table (red BEFORE in the screenshot), set the hide- when
select all cells of the table, set the hide when
and at last select the text after the table (red AFTER in the screenshot) and hide it.
3 different selections, 3 times setting the checkmark, 3 times inserting the hide when! You CAN'T do it in one step, it's not possible to select a table AND its surronding and set the hide when for everything at once. You can select it, but hide when will only be set for some of the stuff.
If there is one single line that is not hidden in the tab, then it will be visible.
When right clicking on a cell view in a view based table view with an assigned menu the cell's row gets a blue outline and the context menu appears. How do I get the index of that row? The property clickedRow only works for cell based table views.
Note: my question is significantly different in that I need a solution for menu updates es explained previously:
I need the clicked row in the menuNeedsUpdate function when creating the new menu.
It appears that clickedRow indeed also works for view based table views, but it's not yet set in menuNeedsUpdate. So it cannot be used to adjust the items in the menu (e.g. show specific items only that apply to the clicked row). However, you can use the menu validation to enable/disable entries (there the clicked row value is set finally).
I am playing with this example by Kendo: http://dojo.telerik.com/EneFe
I have modified it so that the rows are selectable (selectable:true).
I have added a button on the top which calls the grid.clearSelection() function.
This is supposed to clear all selection but it does not clear the selection of rows that are selected in the dropdown table. (Recreate: click on the first row "Nancy", expand it and click on "10258 - Austria", then click the "Clear Selection" button and only "Nancy" will clear)
Is the function not working properly or am I misusing it?
In any case - how can I achieve a total clearing of all selected rows?
This is because they are two separate grids. Check this:
http://dojo.telerik.com/EneFe/2
I want to allow the user to color selected cells by clicking a button (say, red, green and blue buttons).
To get the selected cells I found this code:
$('div#example1').handsontable(options);
//get the instance using jQuery wrapper
var ht = $('#example1').handsontable('getInstance');
//Return index of the currently selected cells as an array [startRow, startCol, endRow, endCol]
var sel = ht.getSelected();
//'alert' the index of the starting row of the selection
alert(sel[0]);
But I can't run this code when clicking a button, because the selection "disappear" after clicking and before the function starts to run.
I try following this instruction but I need a workaround this issue.
please add outsideClickDeselects: false, to your options in constructor and you can perform the 'ht.getSelected()' method.
How about using the afterSelectionEnd event to store the selection in a hidden field?
Then when pressing the button, you highligh/color the cells using the hidden selection info.
Would that work?
I have a grid (master/detail) with keys bound. I'd like to have the first row in the master grid automatically selected when the page starts.
I used setSelection in the GridComplete event and can get the row selected. However, the up/down arrows (and the detail grid) do not function until the user actually clicks on a row with the mouse.
Does anyone have any ideas about how to get a row selected programatically so that the grid operates as if the user had clicked the row?
Thanks,
-Bill
The problem is that the grid does not have focus, so keyboard commands are not routed to it when the grid is initially displayed. You can work around this by explicitly calling focus after setting your initial selection:
jQuery("#myGrid").setSelection(myID).focus();