[TYPO3-formidable] access of values in class.tx_myextension_pi1.php

Domi Garms djgarms at gmail.com
Fri Aug 20 14:40:26 CEST 2010


Hello Stephane,

this is how I got now the values from oParent. Still wondering why it
is didnt worked, tried it with the <userobj> itself, but there I
couldnt get the value with the function
$this->oForm->oParent->thisPerson. Only in the init() of the sandbox
it worked.
		<sandbox>
			<userobj>
				<php><![CDATA[
				
					var $person = "";
					var $feuser = "";
				
					function init() {
						$this->person = $this->oForm->oParent->thisPerson;
						$this->feuser = $this->oForm->oParent->feuser;
					}
		
				]]></php>
			</userobj>	
		</sandbox>

Regards,

Domi



2010/8/20 Stéphane FILLION <s.fillion at ameos.com>:
> Hello Domi,
>
> if you still need help, can i have the snippet of your event for help you ?
>
> Regards,
> Stéphane
>
>
> -----Message d'origine-----
> De : typo3-project-formidable-bounces at lists.typo3.org [mailto:typo3-project-formidable-bounces at lists.typo3.org] De la part de Domi Garms
> Envoyé : mercredi 18 août 2010 08:46
> À : TYPO3 project list for the FORMidable extension
> Objet : [TYPO3-formidable] access of values in class.tx_myextension_pi1.php
>
> Hello,
>
> its me again. I dont understand, in the snippet:
>
> http://formidable.typo3.ug/tutorials/ajax-with-the-sandbox.html
>
> values from the main-extension php is called. I try to reproduce it
> with following snippet, but its failed. my value var $test = "some
> test" is empty in the output of my majix event.
>                <sandbox>
>                        <userobj>
>                                <php><![CDATA[
>                                        function getPersonId() {
>                                                $sText = $this->oForm->oParent->test;
>                                                return $sText;
>                                        }
>                                ]]></php>
>                        </userobj>
>                </sandbox>
>
> In tx_mytestextension_pi1.php:
>
> var $test = "some test";
>
> Do I missunderstood something?
>
> Thanks for any help
>
> Regards,
> Domi
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>


More information about the TYPO3-project-formidable mailing list