Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Adding DataSet columns at runtime
jameskoch
Is it possible to add columns (preferably computed ones) to a regular DataSet at runtime using DataSetEventAdapter?
I'm fairly certain I can accomplish this by using a ScriptedDataSet to add some columns at runtime, but I'd rather leverage an existing ODA DataSet.
If this is possible, are there any samples around? I'm a bit of a newb.
Find more posts tagged with
Comments
jameskoch
After several hrs of experimentation, I can begin to answer my own question, in case it helps others.
I've had the best luck w/ this by avoiding a DataSetEventAdapter and instead adding a new ComputedColumn using a ReportEventAdapter's beforeFactory method. The code is very simple, it just took me a long time to figure out that it needed to be in this method.
Dynamically adding this item to an existing Table on a report is another requirement of mine, and a bit trickier, but I seem to have it working thanks to a co-worker's diligence. No point in discussing that here unless others have questions.