CalcBuilder Forum

Help with linked list

User moon_371 2012-12-10 21:35:20

On 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 support 2012-12-11 09:10:22

Hello,

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,

User moon_371 2012-12-11 19:35:16

how 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 support 2012-12-12 09:46:27

Hello,

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,

User moon_371 2012-12-12 18:01:27

Hello
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 support 2012-12-12 18:15:31

Hello,

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,

User moon_371 2012-12-12 18:22:13

I 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 support 2012-12-12 18:37:01

Hello,

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,

User moon_371 2012-12-12 18:42:11

The "hide / show forms depending of the selected option " example works in a section? If yes , can you show me a example? Thanks

Moonsoft support 2012-12-12 20:12:48

Hello,
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

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!