Dario Trussardi | 30 Apr 22:09

TableDescription questions

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
Lukas Renggli | 30 Apr 22:35

Re: TableDescription questions

> 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


Gmane