Skip to main content



      Home
Home » Eclipse Projects » NatTable » FormulaGrid
FormulaGrid [message #1817681] Wed, 27 November 2019 14:42 Go to next message
Eclipse UserFriend
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 #1817684 is a reply to message #1817681] Wed, 27 November 2019 15:14 Go to previous messageGo to next message
Eclipse UserFriend
It is not working when you are doing what? In the not editable column it can of course not work.
Re: FormulaGrid [message #1817698 is a reply to message #1817684] Wed, 27 November 2019 22:20 Go to previous messageGo to next message
Eclipse UserFriend
Coumn A is not Editable and Column B is always Editable. Now if Column A is not Editable, In Column B , Copy/Series not working . Copy/Series Popup menu is showing , but clicking on it not does nothing.) . IF Both Column A and Column B is editable then only Its working. I need , that FillHandler(Copy/Series will work for a particular editable column , while other column are in non-editable mode.

Re: FormulaGrid [message #1817703 is a reply to message #1817698] Wed, 27 November 2019 23:19 Go to previous message
Eclipse UserFriend
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.
Previous Topic:background image not showing in column header
Next Topic:Validation error style
Goto Forum:
  


Current Time: Sat May 17 08:55:29 EDT 2025

Powered by FUDForum. Page generated in 0.14202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top