...
Normally one query is installed in Odysseus when executing a QDL-query. However, sometimes it might be useful to create several queries in a loop. Therefore you can call methods in a QDL-query to manually create queries. In this context you should set the metadata auto_create
to false.
Code Block | ||
---|---|---|
| ||
query Q_3 (auto_create=false){
for (int i = 1; i<=5; i++) {
ODLSelect select{predicate = "bid.AUCTION = "+i};
bid -> select;
start(select);
}
} |