How do I update the Query for the Dataset at runtime?

newbie321
edited February 11, 2022 in Analytics #1

Suppose I have a pojo dataset, ds. In its equivalent XML representation, it will have tag somewhere, which can be set via ds.setQueryText(...)

Suppose my XML representation is something like this:


...
</Column Mapping>

if I want to add another column mapping to QueryText(), would I need to override the entire thing via .setQueryText(...) or is there some method that allows for adding more column mappings to already existing ones, for example, maybe .addToQueryText() or something like that?

Answers