David, yesterday I made you a suggestion and as I continue working with this great product I keep coming up with others. This one is about the dataset classes. As I find my self in the need to extend their functionality, it turns quite ugly to inherit their functionality, this is because the data structure behind the class is always private. How about changing it to protected? or, proyecting them via some public method?.
What do you think?.
Regards,
Diego.
suggestion about dataset classes
Re: suggestion about dataset classes
Hi Diego,
Can you give me an idea of how you are extending the dataset classes, and which attributes you are trying to access? I'm not against opening up the access, but to figure out the best way I'd like to understand your approach...
Regards,
Dave Gilbert
Can you give me an idea of how you are extending the dataset classes, and which attributes you are trying to access? I'm not against opening up the access, but to figure out the best way I'd like to understand your approach...
Regards,
Dave Gilbert
Re: suggestion about dataset classes
Dave, what I wanted to do is to implement somehow the suggestion I made you in another message, which is to be able to hide/show the series inside a TimeSeriesCollection (or maybe other Dataset).
In order to do that I needed to remove the series to be hidden (keep intanct the references, so the user wont get confused), and then show it again later in the same place inside the references.
So I extended the TimeSeriesCollection class and tried to access the data property, so that I could Insert directly there my showing series whereever I needed, but that was impossible since the property is private.
So I ended up extending but also copying the entire class into mine so that I could override the data property and keep the original functionality.
I know it could be solved in several different ways, but none of those (at least the ones in my mind) convinced me.
Thanks you for hearing (reading) me out. Regards,
Diego.
In order to do that I needed to remove the series to be hidden (keep intanct the references, so the user wont get confused), and then show it again later in the same place inside the references.
So I extended the TimeSeriesCollection class and tried to access the data property, so that I could Insert directly there my showing series whereever I needed, but that was impossible since the property is private.
So I ended up extending but also copying the entire class into mine so that I could override the data property and keep the original functionality.
I know it could be solved in several different ways, but none of those (at least the ones in my mind) convinced me.
Thanks you for hearing (reading) me out. Regards,
Diego.