You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm generating massive reports, and want to only replace certain elements at a time. I noticed that if I have {d.value} elements in a document, and don't set a value, carbone just overwrites them with empty strings.
Is there some way to turn off this functionality? I essentially want to load a set of records into memory, run the rendering routine in carbone, produce a report, and have the empty values preserved in the generated report as {d.value} strings.
That way I can just update reports with loaded data instead of storing gigs of data in memory prior to generation.
Thanks! (Carbone is awesome btw, have used it to generate 1000 page+ reports so far with zero issues)
The text was updated successfully, but these errors were encountered:
Interesting usage thinking, Carbone does not have this kind of feature but this could be implemented.
If it was just a setting in the render options, I'd absolutely appreciate it. As of right now, I'm working around it by having replacements replace themselves with the same value (aka {d.value} gets replaced with {d.value}), but it doesn't work with values that utilize a formatter routine, so it limits me greatly.
Another request would be async formatters. That way when a formatter is called, I could "await" on remote values pulled from a database/network endpoint and dynamically fill in data. Right now, the formatters are normal functions only which means waiting for async data is a no-go.
I'm generating massive reports, and want to only replace certain elements at a time. I noticed that if I have {d.value} elements in a document, and don't set a value, carbone just overwrites them with empty strings.
Is there some way to turn off this functionality? I essentially want to load a set of records into memory, run the rendering routine in carbone, produce a report, and have the empty values preserved in the generated report as {d.value} strings.
That way I can just update reports with loaded data instead of storing gigs of data in memory prior to generation.
Thanks! (Carbone is awesome btw, have used it to generate 1000 page+ reports so far with zero issues)
The text was updated successfully, but these errors were encountered: