mudshark79
Member
Hello Everyone, I think this one might have a short answer I'm just unable to find the answer in the wiki or through forum search:
Suppose I want to access data of elements in a repeated join from a calc element in a list view. The calc-element is not part of the repeated join but it is situated in the "base table".
Like
or
Gives me the data array (we can't use $formModel->formData in a calc element, can't we?) only gives the first repeat (first screenshot), even though a
repeats the data array for every repeat there is and then also reflects on the repeated data.
The Funny thing is, that
inserted to an Eval-Tool Tip exactly gives me the $data array with the elements in the repeated parts containing the the repeated data as a comma separated list of strings (see 2nd. Screenshot).
Of course I Could get the data from the database via mysql but i just want to get my head around this so thanks for a pointer in the right direction .
Regards
Suppose I want to access data of elements in a repeated join from a calc element in a list view. The calc-element is not part of the repeated join but it is situated in the "base table".
Like
Code:
echo "<pre>";print_r($data);exit;
Code:
$data = print_r($data, true);
return $data;
Gives me the data array (we can't use $formModel->formData in a calc element, can't we?) only gives the first repeat (first screenshot), even though a
Code:
echo "<pre>";print_r($data);
repeats the data array for every repeat there is and then also reflects on the repeated data.
The Funny thing is, that
Code:
$data = print_r($data, true);
return $data;
inserted to an Eval-Tool Tip exactly gives me the $data array with the elements in the repeated parts containing the the repeated data as a comma separated list of strings (see 2nd. Screenshot).
Of course I Could get the data from the database via mysql but i just want to get my head around this so thanks for a pointer in the right direction .
Regards