Sampsa Sohlman 1 Year Ago - Edited Thanks for this post. Came in time as just now, I was looking at how to write DSL Queries for my Groovy Scripts Reply Reply as... Cancel David H Nebinger Sampsa Sohlman 1 Year Ago - Edited Should just be a matter of getting all of the right imports, but otherwise this should all work in Groovy without too much difficulty, although you won't get the great code assist you would from an IDE... Reply Reply as... Cancel Sampsa Sohlman David H Nebinger 1 Year Ago - Edited Script is done and now it is running :) Reply Reply as... Cancel Alla Sapozhnikova David H Nebinger 1 Year Ago - Edited Would I be able to use DSL queries in templates? Reply Reply as... Cancel David H Nebinger Alla Sapozhnikova 1 Year Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Reply Reply as... Cancel
David H Nebinger Sampsa Sohlman 1 Year Ago - Edited Should just be a matter of getting all of the right imports, but otherwise this should all work in Groovy without too much difficulty, although you won't get the great code assist you would from an IDE... Reply Reply as... Cancel Sampsa Sohlman David H Nebinger 1 Year Ago - Edited Script is done and now it is running :) Reply Reply as... Cancel Alla Sapozhnikova David H Nebinger 1 Year Ago - Edited Would I be able to use DSL queries in templates? Reply Reply as... Cancel David H Nebinger Alla Sapozhnikova 1 Year Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Reply Reply as... Cancel
Sampsa Sohlman David H Nebinger 1 Year Ago - Edited Script is done and now it is running :) Reply Reply as... Cancel
Alla Sapozhnikova David H Nebinger 1 Year Ago - Edited Would I be able to use DSL queries in templates? Reply Reply as... Cancel David H Nebinger Alla Sapozhnikova 1 Year Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Reply Reply as... Cancel
David H Nebinger Alla Sapozhnikova 1 Year Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Reply Reply as... Cancel
Bhargav R Vaghasiya 1 Year Ago - Edited This is really good one, is it faster than custom SQL? Reply Reply as... Cancel David H Nebinger Bhargav R Vaghasiya 1 Year Ago - Edited No, it will be translated into SQL, so there's no impact performance-wise. But it will help in building the query to ensure table and column names are correct, whereas with custom SQL since it is just a string it is easy to misspell something, forget a quote, etc. Reply Reply as... Cancel
David H Nebinger Bhargav R Vaghasiya 1 Year Ago - Edited No, it will be translated into SQL, so there's no impact performance-wise. But it will help in building the query to ensure table and column names are correct, whereas with custom SQL since it is just a string it is easy to misspell something, forget a quote, etc. Reply Reply as... Cancel