Hi,
I start to use magritte last week. Nice tool but I need some advices. I use "post := self call: (Profile new asComponent addValidatedForm; yourself)." for insert data into my fields. Works well. But If I need to update the data I do not know how to do. :( Any good tips ? Cheers Henrik _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
2007/6/18, Henrik Ekenberg <[hidden email]>:
> I use "post := self call: (Profile new asComponent addValidatedForm; > yourself)." for insert data into my fields. > > Works well. > But If I need to update the data I do not know how to do. :( What do you mean by update? Do you mean you already have a model and you want to have a form already filled with the information contained in the model? If that's the case, try: self call: (myProfile asComponent addValidatedForm; yourself). -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hello,
thanks for your reply. Yes I have a form with data and I want to change one value. I have try your solution but I get one error. Profile class(Object)>>doesNotUnderstand: #persnumber .... All method exist :( I have to check tomorrow..... HeG On 6/18/07, Damien Cassou <[hidden email]> wrote: 2007/6/18, Henrik Ekenberg <[hidden email]>: _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Please give us your model source code.
2007/6/18, Henrik Ekenberg <[hidden email]>: > Hello, > > thanks for your reply. > Yes I have a form with data and I want to change one value. > I have try your solution but I get one error. > > Profile class(Object)>>doesNotUnderstand: #persnumber > .... > All method exist :( > > I have to check tomorrow..... > > HeG > > > > On 6/18/07, Damien Cassou <[hidden email] > wrote: > > > > 2007/6/18, Henrik Ekenberg <[hidden email] >: > > > I use "post := self call: (Profile new asComponent addValidatedForm; > > > yourself)." for insert data into my fields. > > > > > > Works well. > > > But If I need to update the data I do not know how to do. :( > > > > What do you mean by update? Do you mean you already have a model and > > you want to have a form already filled with the information contained > > in the model? If that's the case, try: > > > > self call: (myProfile asComponent addValidatedForm; yourself). > > > > -- > > Damien Cassou > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Object subclass: #Profile
instanceVariableNames: ' persnumber ' classVariableNames: '' poolDictionaries: '' category: 'Boil' persnumber: aPersnumber persnumber := aPersnumber. self changed persnumber ^persnumber ---- WAComponent subclass: #Profilview instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Boil' "new that works" NewAdr | post user | user := self session user userName. post := self call: (Profile new asComponent addValidatedForm; yourself). post ifNotNil: [Profile repositoryadr at: user put: post] How should I write the newAdr ? Henrik On 6/19/07,
Damien Cassou <[hidden email]> wrote: Please give us your model source code. _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Please give us the full source code. You can fileOut a package (right
click on the package). 2007/6/20, Henrik Ekenberg <[hidden email]>: > Object subclass: #Profile > instanceVariableNames: ' persnumber ' > classVariableNames: '' > poolDictionaries: '' > category: 'Boil' > > > persnumber: aPersnumber > persnumber := aPersnumber. > self changed > > > persnumber > ^persnumber > > ---- > > WAComponent subclass: #Profilview > instanceVariableNames: '' > classVariableNames: '' > poolDictionaries: '' > category: 'Boil' > > "new that works" > > NewAdr > | post user | > user := self session user userName. > post := self call: (Profile new asComponent addValidatedForm; > yourself). > post > ifNotNil: [Profile repositoryadr at: user put: post] > > > How should I write the newAdr ? > > > Henrik > > > > On 6/19/07, Damien Cassou <[hidden email]> wrote: > > Please give us your model source code. > > > > 2007/6/18, Henrik Ekenberg <[hidden email]>: > > > Hello, > > > > > > thanks for your reply. > > > Yes I have a form with data and I want to change one value. > > > I have try your solution but I get one error. > > > > > > Profile class(Object)>>doesNotUnderstand: #persnumber > > > .... > > > All method exist :( > > > > > > I have to check tomorrow..... > > > > > > HeG > > > > > > > > > > > > On 6/18/07, Damien Cassou <[hidden email] > wrote: > > > > > > > > 2007/6/18, Henrik Ekenberg < [hidden email] >: > > > > > I use "post := self call: (Profile new asComponent addValidatedForm; > > > > > yourself)." for insert data into my fields. > > > > > > > > > > Works well. > > > > > But If I need to update the data I do not know how to do. :( > > > > > > > > What do you mean by update? Do you mean you already have a model and > > > > you want to have a form already filled with the information contained > > > > in the model? If that's the case, try: > > > > > > > > self call: (myProfile asComponent addValidatedForm; yourself). > > > > > > > > -- > > > > Damien Cassou > > > > > > > > _______________________________________________ > > > > SmallWiki, Magritte, Pier and Related Tools ... > > > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > > > > > > > > > > > _______________________________________________ > > > SmallWiki, Magritte, Pier and Related Tools ... > > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > > > > -- > > Damien Cassou > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |