Thank you Hirschfeld, It works very well :)
Thanks again for your rethinking. -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : mardi 30 octobre 2007 11:00 À : [email protected] Objet : template_list Digest, Vol 5, Issue 4 Send template_list mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of template_list digest..." Today's Topics: 1. Back office Jahia (Mounir ZEKKAOUI) 2. Re: [SPAM] - Back office Jahia - Email found in subject (Hirschfeld, Max) ---------------------------------------------------------------------- Message: 1 Date: Mon, 29 Oct 2007 15:30:39 -0000 From: "Mounir ZEKKAOUI" <[EMAIL PROTECTED]> Subject: [template_list] Back office Jahia To: <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hello everybody, I want to change the field value "itemJvotes" <Content: declareField name = 'itemJvotes' title =' number of votes' type = 'SmallText' /> I used the following line of code but to no avail! JahiaContainer entry = getContainer (entryId, jParams); JahiaField voteField = entry.getFieldByName ( "itemJvotes"). SetValue ( "New Value"); Entry.setField (voteField); Entry.setChanged (true); Thank you in advance, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jahia.org/pipermail/template_list/attachments/20071029/112aa505 /attachment-0001.htm ------------------------------ Message: 2 Date: Tue, 30 Oct 2007 10:11:35 +0100 From: "Hirschfeld, Max" <[EMAIL PROTECTED]> Subject: Re: [template_list] [SPAM] - Back office Jahia - Email found in subject To: "Any questions regarding template development and/or about thetaglibs extension" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Hi Mounir, If I am not mistaken, you should call: voteField.save(jParams); instead of: Entry.setField (voteField); As I have pointed out in a previous posting to this list, the code of the FormContentMapperHandlerTag.storeForm method is a very good example of how to update a field programmatically. The code can be found here: http://svn.jahia.org/websvn/filedetails.php?repname=jahia&path=%2Fbranches%2 FJAHIA-4-1-BRANCH%2Fsrc%2Fjava%2Forg%2Fjahia%2Ftaglibs%2Fform%2FFormContentM apperHandlerTag.java&rev=11321&sc=1 Max. ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mounir ZEKKAOUI Sent: maandag 29 oktober 2007 16:31 To: [email protected] Subject: [SPAM] - [template_list] Back office Jahia - Email found in subject Hello everybody, ? I want to change the field value "itemJvotes" ? ? <Content: declareField name = 'itemJvotes' title =' number of votes' type = 'SmallText' /> ? ? I used the following line of code but to no avail! ? ? JahiaContainer entry = getContainer (entryId, jParams); JahiaField voteField = entry.getFieldByName ( "itemJvotes"). SetValue ( "New Value"); Entry.setField (voteField); Entry.setChanged (true); ???????????????????????? Thank you in advance, ------------------------------ _______________________________________________ template_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list End of template_list Digest, Vol 5, Issue 4 ******************************************* _______________________________________________ template_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
