permalmberg
01/15/2017, 8:27 PMsaveable
is spelled savable
edvin
01/15/2017, 9:02 PMedvin
01/15/2017, 9:03 PMthomasnield
01/16/2017, 1:43 AMthomasnield
01/16/2017, 1:57 AMStage
? Just throwing ideas out there. I would definitely use that.thomasnield
01/16/2017, 2:01 AMhttps://www.amibroker.com/guide/gifs/pane_docking_nested.gif▾
thomasnield
01/16/2017, 3:03 AMTableView
at work and don't often use Master/Detail setups because screen real estate is precious with our analyst users. Therefore we make TableViews directly editable or have complex editing features, like multi-selecting records and applying actions to all of them. But I see the ItemViewModel
can potentially be helpful here for managing the dirty state of each record. Here is my use case below:thomasnield
01/16/2017, 3:06 AMthomasnield
01/16/2017, 3:10 AMcellDecorator
does not seem to be working. It should be making that cell text red the moment it is dirty.thomasnield
01/16/2017, 3:10 AMItemViewModel
in a way that is not intended. Typically, the ItemViewModel
is used for Master/Detail setups and replacing the "selected item" and rebinding properties against it, which is brilliant. But how exactly should it be applied if I want to simultaneously track the dirty state of every record in a TableView
? And use it for dirty formatting?thomasnield
01/16/2017, 3:10 AMthomasnield
01/16/2017, 3:12 AMItemViewModel
is not streamlined for it, is there a way we can extract that dirty tracking functionality into an open class that extends onto ItemViewModel
? If we want to take it a step further, are there ways we can streamline dirty formatting in a TableView
too?edvin
01/16/2017, 7:43 AMedvin
01/16/2017, 7:46 AMcellDecorator
is overridden by the call to useTextField()
. They both set the cellFactory
, but only cellDecorator
is smart enough to wrap the existing cellFactory
. Will make sure to mention this in the guide. Will try out your sample soon 🙂ron
01/16/2017, 7:56 AMron
01/16/2017, 7:56 AMron
01/16/2017, 7:57 AMron
01/16/2017, 7:57 AMedvin
01/16/2017, 8:06 AMbutton("Save") { setOnAction { onSave() } }
.edvin
01/16/2017, 8:10 AMron
01/16/2017, 8:11 AMedvin
01/16/2017, 8:11 AMclass CustomerModel(customer: Customer) : ItemViewModel(customer)
.ron
01/16/2017, 8:12 AMedvin
01/16/2017, 8:12 AMron
01/16/2017, 8:12 AMedvin
01/16/2017, 8:12 AMedvin
01/16/2017, 8:12 AMron
01/16/2017, 8:12 AMron
01/16/2017, 8:13 AM