Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
titleExample
query Q_3 (auto_create=false){    
    for (int i = 1; i<=5; i++) {
        ODLSelect select{predicate = "bid.AUCTION = "+i};
        bid -> select;
        start(select);
    }
}