TableDescription questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TableDescription questions

dtrussardi@tiscali.it
Hi All,
 
i have my ApplicationModel with some description.
 
Now i'm interested to display a small table based on TableDescription and TableMode.
 
I define the descriptionTable
 
descriptionTable
^MATableDescription
    columnsLabels: OrderedCollection ..........
    rowLabels: OrderedCollection .............
    selectorAccessor: returnTableModel
    beReadonly
 
Now my problem is:
        i can't not know the rowLabels: OrderedCollection......  definition because it depend on the my istance of ApplicationModel.
 
Questions:
 
    A) How i can dinamic update the rowLabels after the descriptionTable builder ?
 
   
    B) How i can dinamic update the data of the table ?
 
        Now when the data of the table change when press the save buttons the system create error : Input is conflicting with current modification.
 
        But the table is readonly.
 
 

Any pointers would be greatly appreciated!

Thanks!

Dario

 
   


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: TableDescription questions

Lukas Renggli-2
> Now my problem is:
>         i can't not know the rowLabels: OrderedCollection......  
> definition because it depend on the my istance of ApplicationModel.
>
> Questions:
>
>     A) How i can dinamic update the rowLabels after the  
> descriptionTable builder ?

See the first question at:

        http://www.lukas-renggli.ch/smalltalk/magritte/faq

>     B) How i can dinamic update the data of the table ?
>
>         Now when the data of the table change when press the save  
> buttons the system create error : Input is conflicting with current  
> modification.
>
>         But the table is readonly.

That's a bug. I fixed in:

        Name: Magritte-All-lr.264
        Author: lr
        Time: 30 April 2008, 10:32:50 pm
        UUID: d7c0752e-8680-40c2-aa45-2e0bdc179a71
        Ancestors: Magritte-All-lr.263
        Dependencies: Magritte-Model-lr.312, Magritte-Tests-lr.140, Magritte-
Seaside-lr.261, Magritte-Morph-lr.42

        - do not validate invisible or readonly fields


Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki