Hi again,
On [1] I have my new experiment:
[1] http://ws.stfx.eu/FC5EQX66TWMA
This shows the current index and the changes on the text port in the Transcript, but when the uncomment the line
"data at: (data indexOf: value) put: textPresentation text asString"
I get a message "SubscriptOutOfBounds after typing the first change on the selected element. This is understandable because, as the error window shows, now I have and updated array, but the value that I'm looking for is not updated.
There is any way to update the value?
Thanks,
Offray
Ps: By the way, sharing code and questions on it using stfx.eu is really good for me. I know the code is published for future reference and uploadable with ZnWorkspace. Just some suggestions:
- To have numbered code lines, to refer and specific line of a published code. - Would be nice to open the code in a playground instead of a classic workspace. They're more interactive and newbie friendly. - Can the code be published optionally with the author? I imagine searching for the code I have posted on stfx for solving some future questions.
El 04/12/14 a las 18:20, Offray Vladimir Luna Cárdenas escribió:
Hi :),
Comments inlined below
El 04/12/14 a las 09:48, Tudor Girba escribió:
On Thu, Dec 4, 2014 at 3:35 PM, Nicolai Hess <nicolaihess@web.de mailto:nicolaihess@web.de> wrote:
[...]
The real problems might be, - how to access the list, that is used by the left presentation and
Why do you need that? You typically need something from that list and if you need that you pass it along in the transmission. Any transmission can have multiple from: clauses specified and in doing so you get the values of those ports in the block.
Well I need particular values on the list. So this part is almost solved.
- how to access the selected *index* of the list, so he can do a
at:put: on that data
That is not possible.
For the moment I'm thinking in 'indexOf: value' and then replacing the current selection with "at: put:" using that result. Once I have this two instructions I would like to update the selected value on the list with the current textPresentation value in a similar way to what is done with the Transcript. This is a workaround for the direct writing of values in list/trees inside GT Moose, but I think that this could work. I would make some test about this idea and keep you posted.
Cheers,
Offray
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev