Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » FormulaGrid
FormulaGrid [message #1817681] Wed, 27 November 2019 19:42 Go to next message
dhruba kumar is currently offline dhruba kumarFriend
Messages: 51
Registered: September 2012
Member
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 20:14 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2814
Registered: July 2012
Senior Member
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] Thu, 28 November 2019 03:20 Go to previous messageGo to next message
dhruba kumar is currently offline dhruba kumarFriend
Messages: 51
Registered: September 2012
Member
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] Thu, 28 November 2019 04:19 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2814
Registered: July 2012
Senior Member
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: Wed Jun 16 14:27:42 GMT 2021

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

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

Back to the top