[TYPO3-english] formhandler, value.current, CASE...understanding problems

Sören Kracker s.kracker at kopfstand-mail.de
Thu Feb 9 15:01:58 CET 2012


Hi list,
the subject is a bit strange, but couldn't put this in one single category.

I have this preProcessing for a dbfield in my Finisher_DB of formhandler:
mydbfield {
     preProcessing = CASE
     preProcessing {
         key.data = GP:myvar
         val1 = TEXT
         val1.value = a
         val2 = TEXT
         val2.value = b
     }
     mapping = myvar
}

The above works, but I couldn't get it working using this for the key:
key.value.current = 1

Seems that, the current value isn't present there.
When trying this, current value is present:
mydbfield {
     preProcessing = TEXT
     preProcessing {
         value.current = 1
     }
     mapping = myvar
}

Does it get lost in CASE?

Another question regarding formhandler and this example: Is it somehow 
possible to get the values using .field? Something like that (which is 
not working):
mydbfield {
     preProcessing = CASE
     preProcessing {
         key.field = myvar
         val1 = TEXT
         val1.value = a
         val2 = TEXT
         val2.value = b
     }
     mapping = myvar
}

It feels a bit strange to use the global vars although value.current is 
present in some cases.


More information about the TYPO3-english mailing list