cchiacchierini
Member
I am having a similar issue to the one described in this thread: http://fabrikar.com/forums/index.ph...all-rows-using-inline-edit.36391/#post-183229, but I can not tell if this was ever resolved.
The problem: when I edit a record in list view using inline edit, the following calculation breaks for all rows in the list, returning a value of "false" instead of returning the appropriate image. The calc field works fine when editing is done via a form.
This is the calc element code:
I have the inline edit set up like this:
And the calc element setup like this:
Enabling "Only Calc on Save" breaks the calculation altogether. "Ajax Calculation" works when using the form. The calculation also works when "Ajax Calculation" is set to no when using the form.
I am on J2.5.16 and Fabrik updated from Github on 11/21/13.
The problem: when I edit a record in list view using inline edit, the following calculation breaks for all rows in the list, returning a value of "false" instead of returning the appropriate image. The calc field works fine when editing is done via a form.
This is the calc element code:
PHP:
if ('{opsinitiatives___status}' == 'Opportunity')
return '<img src="images/opsinitiativesstatus/opportunity.png" />';
else
if ('{opsinitiatives___status}' == 'Needs Analysis')
return '<img src="images/opsinitiativesstatus/needsanalysis.png" />';
else
if ('{opsinitiatives___status}' == 'Cost Benefit')
return '<img src="images/opsinitiativesstatus/costbenefit.png" />';
I have the inline edit set up like this:
And the calc element setup like this:
Enabling "Only Calc on Save" breaks the calculation altogether. "Ajax Calculation" works when using the form. The calculation also works when "Ajax Calculation" is set to no when using the form.
I am on J2.5.16 and Fabrik updated from Github on 11/21/13.