Help with linked list
Started 10 Dec 2012 · 9 replies
-
moon_371On this code
$result='<table><thead><tr><th>What</th><th>How much</th><th>Cost</th><tr></thead><tbody>';
for($i=0;$icount($what);$i+)
for($i=0;$icount($what_linked);$i++)
fo($i=0;$i<count($howmuch);$i++){
$result.='<tr>';
$result.='<td>'.$what_linked.'</td>';
$result.='<td>'.$howmuch.' m€</td>';
$result.='<td>'.$matrixlist."] *$howmuch.'</td>';
$result.='</tr>';
}
$result.='</tbody></table>';
i'm getting only the first character in my first section , second char in my second section and so on
how can i get $what_linked to extract the exact value from matrix es. T1_S1 insted of T -
Moonsoft supportHello,
Linked value is a 'string', not an 'array', so, to get exact value from linked list, you should use $what_linked instead of $what_linked.
Hope this help. Regards, -
moon_371how can i get $what_linked to work in a section...it gets only the value in the last section...can you correct my code pls ...tnx
Edited by moon_371 - 11.12.2012 19:38 -
Moonsoft supportHello,
We can´t see what´s wrong in code without all calculator. Please export the calculator and upload it to a new ticket in helpdesk (Customer access) to give you a better support.
Thanks. Regards, -
moon_371Hello
The problem is that i'm getting the same value in all sections for $what_linked . My code work only with one section... with multiple section gets only the last section value for all sections
Thanks
Edited by moon_371 - 12.12.2012 18:02 -
Moonsoft supportHello,
In Backend, in Sections, 'what_linked' is checked as part of your Section?.
'what_linked' appears in 'Form Layout' as list of fields that could be used in your section?
Thanks. Regards, -
moon_371I have $what and $what_linked. $what is checked as part of the section .
$what_linked is a sub_category of $what
Edited by moon_371 - 12.12.2012 18:28 -
Moonsoft supportHello,
At this time Linked list is not fully working on sections. That´s why this type of fields doesn´t appears in Section declaration.
We are working to get linked list working on Sections for next version of Calc Builder.
Sorry for inconveniences. Regards, -
moon_371The "hide / show forms depending of the selected option " example works in a section? If yes , can you show me a example? Thanks
-
Moonsoft supportHello,
we have just added a new example to download at customers page:
Simulated linked list in Sections
It includes some lines at javascript tab, that you don't have to change. It links the lists using the variable name, and it hides/shows the dependant lists, so it works as if you were using linked lists. Please check it and get back to us if you have any question about how it's done.
Regards
Still stuck?
Customers with an active license can open a support ticket.