FormulaGrid [message #1817681] |
Wed, 27 November 2019 14:42  |
Eclipse User |
|
|
|
We have a table with Two Column : Column A, Column B
Column A -> Is Not Editable
Column B -> Is Editable
Now If we make all cell editable then only "Copy/Series"is working . But if Col A is not editable and Col B is editable , then "Copy/Series" menu is showing . But clicking on it has no effect.
we are using below code:
natTable.addConfiguration(new FillHandleConfiguration(bodyLayer.getSelectionLayer()));
// This is the formula specific configuration
natTable.addConfiguration(
new MyDefaultFormulaConfiguration(
bodyLayer.getFormulaDataProvider(),
bodyLayer.getSelectionLayer(),
natTable.getInternalCellClipboard()));
bodyLayer.getFormulaDataProvider().setErrorReporter(new FormulaTooltipErrorReporter(natTable, bodyLayer.getDataLayer()));
this.natTable.configure();
natTable.doCommand(new EnableFormulaEvaluationCommand());
In MyDefaultFormulaConfiguration ,:
Instead of All column Editable , we are making editable only Column B. Column A is not editable, The Cell Fill "Copy/Series" is showing , but not working:
public void configureRegistry(IConfigRegistry configRegistry)
{
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE,COLUMN_B_LABEL);
If we make all cell editable , then only its working.:
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE);
|
|
|
|
|
Re: FormulaGrid [message #1817703 is a reply to message #1817698] |
Wed, 27 November 2019 23:19  |
Eclipse User |
|
|
|
With the given information I can't help.
a) The fill handle stuff is not related to formula handling. It is just placed in the formula example.
b) You can debug in FillHandlePasteCommandHandler to see what happens and why the update is not applied.
|
|
|
Powered by
FUDForum. Page generated in 0.14202 seconds