From: Yaron K. <ya...@gm...> - 2010-10-18 19:58:18
|
Hi, Well, it's up to you; but, as I said, there's no way to automatically add the value to the "history" field. -Yaron On Mon, Oct 18, 2010 at 2:40 PM, Etienne Hirt <hi...@ar...> wrote: > Hi Yaron, > > Thanks for your explanation. The storage of the data works very well > with the template below to create table colum entries and SIO. > > The quotes could also be stored in separate pages. However, I would want > the user the access them from the project page and I did not understand > how to generate the history on a separate page. > > Maybe I'm wrong but I assume that the History shall be included as > template. We could store additionally a copy of the status in a separate > template field and define it as hidden in the Form. Then might use > Javascript to add a new item to the history upon save of the page and > change of the status? > > Thanks > > Etienne > > > > <noinclude> > This template shall be filled in a Project page > {{AotQuoteHeader}} > </noinclude> > | {{{QUOTE_STATUS}}} > | {{{QUOTE_STATUS_DATE}}} > | {{{SHORT}}} > | {{{QUOTE_VOLUME_WORK}}} > | {{{QUOTE_VOLUME_SUBCONTRACT}}} > | {{{QUOTE_VOLUME_PRODUCTION}}} > | {{#expr: > {{{QUOTE_VOLUME_WORK}}}+{{{QUOTE_VOLUME_SUBCONTRACT}}}+{{{QUOTE_VOLUME_PRODUCTION}}} > }} > | {{#if: {{{FILELINK|}}} | [file://{{{FILELINK|}}} Quote]|}} > | {{#if: {{{WIKILINK|}}} |[[{{{WIKILINK}}}]] | }} > | {{#arraymap:{{{HISTORY}}}|,|x|* x|\n}} > | {{#if: {{{QUOTE_RESPONSIBLE|}}} > |{{#arraymap:{{{QUOTE_RESPONSIBLE|}}}|,|x|[[User:x|x]]}} }} > |- > <noinclude> > {{TableFooter}} > </noinclude> > > {{#set_internal:AOT_QUOTE > |PROJECT={{PAGENAME}} > |QUOTE_RESPONSIBLE#list={{#arraymap:{{{QUOTE_RESPONSIBLE|}}}|,|x|User:x|,}} > |QUOTE_STATUS={{{QUOTE_STATUS}}} > |QUOTE_STATUS_DATE={{{QUOTE_STATUS_DATE}}} > |SHORT ={{{SHORT}}} > |QUOTE_VOLUME_WORK={{{QUOTE_VOLUME_WORK}}} > |QUOTE_VOLUME_SUBCONTRACT={{{QUOTE_VOLUME_SUBCONTRACT}}} > |QUOTE_VOLUME_PRODUCTION={{{QUOTE_VOLUME_PRODUCTION}}} > |QUOTE_VOLUME_KCHF={{#expr: > {{{QUOTE_VOLUME_WORK}}}+{{{QUOTE_VOLUME_SUBCONTRACT}}}+{{{QUOTE_VOLUME_PRODUCTION}}} > }} > |FILELINK =file://{{{FILELINK|}}} > |WIKILINK = {{{WIKILINK|}}} > |HISTORY#list={{#arraymap:{{{HISTORY|}}}|,|x|x|,}} > }} > > > On 18.10.2010 04:04, Yaron Koren wrote: >> Hi, >> >> What you're asking about can't be done. There may be a better >> approach, though - it sounds like you're trying to store a >> three-dimensional array of data on the page, which is really >> stretching the whole system a little too far, I would say. Why not >> have a separate page for each quote? If the issue is coming up with a >> name for each quote, you can use the automatic-page-name creation >> feature of Semantic Forms. >> >> -Yaron >> >> >> On Sun, Oct 17, 2010 at 6:59 PM, Etienne Hirt <hi...@ar...> wrote: >>> Hi, >>> >>> We have multiple templates "AotQuote" such as shown below. The data is >>> shown in tables and stored as SIO. If the QUOTE_STATUS property is >>> changed upon save of the form the HISTORY property should be extended >>> automatically. How can this be performed? >>> >>> Thanks >>> >>> Etienne >>> >>> {{AotQuote >>> |QUOTE_STATUS=Replaced >>> |QUOTE_STATUS_DATE=2010/09/29 >>> |SHORT=Step by Step >>> |QUOTE_VOLUME_WORK=50 >>> |QUOTE_VOLUME_SUBCONTRACT=0 >>> |QUOTE_VOLUME_PRODUCTION=0 >>> |HISTORY=Request 2010/07/30, Make 2010/09/07, Sent 2010/09/16, Replaced >>> 2010/09/29 >>> |QUOTE_RESPONSIBLE= Etienne.Hirt >>> }} >>> {{AotQuote >>> |QUOTE_STATUS=Lost >>> |QUOTE_STATUS_DATE=2010/10/13 >>> |SHORT=Complete Packet >>> |QUOTE_VOLUME_WORK=120 >>> |QUOTE_VOLUME_SUBCONTRACT=2.5 >>> |QUOTE_VOLUME_PRODUCTION=0 >>> |HISTORY=Sent 2010/09/29, Lost 2010/10/13 >>> |QUOTE_RESPONSIBLE= Etienne.Hirt >>> }} >>> >>> >>> ------------------------------------------------------------------------------ >>> Download new Adobe(R) Flash(R) Builder(TM) 4 >>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >>> Flex(R) Builder(TM)) enable the development of rich applications that run >>> across multiple browsers and platforms. Download your free trials today! >>> http://p.sf.net/sfu/adobe-dev2dev >>> _______________________________________________ >>> Semediawiki-user mailing list >>> Sem...@li... >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>> >> >> > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |