Skip to content

addTotals() to CRUD Grid causes edit popup to blank. #102

omarmir opened this Issue Sep 19, 2012 · 3 comments

3 participants

omarmir commented Sep 19, 2012

The CRUD element uses Grid for its basic display, calling addTotals on that display works when displaying the data but crashes the edit portion.

$finances = $grant->ref('Finances');
$crud=$tabs->addTab('Finances')->add('CRUD', array('allow_add'=>false, 'allow_del'=>false));
$crud->grid->addTotals(array('requested', 'committed', 'spent'));

This adds the total row but caused the popup displayed by the edit button to have nothing inside - just a blank white popup. Anyway to get totals without "crashing" the CRUD Grid?

Agile Toolkit member
omarmir commented Sep 19, 2012

Thanks Roman, but I'm not a hundred percent as to why the if check is needed first.

@omarmir omarmir closed this Sep 19, 2012
Agile Toolkit member

Because this same page will render also when you see Form of the CRUD and not Grid.
That's quite standard approach of ATK4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.