Sampsa Sohlman 5 Months 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 Please sign in to reply. Reply as... Cancel David H Nebinger Sampsa Sohlman 5 Months 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... Please sign in to reply. Reply as... Cancel Sampsa Sohlman David H Nebinger 5 Months Ago - Edited Script is done and now it is running :) Please sign in to reply. Reply as... Cancel Alla Sapozhnikova David H Nebinger 5 Months Ago - Edited Would I be able to use DSL queries in templates? Please sign in to reply. Reply as... Cancel David H Nebinger Alla Sapozhnikova 5 Months Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Please sign in to reply. Reply as... Cancel
David H Nebinger Sampsa Sohlman 5 Months 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... Please sign in to reply. Reply as... Cancel Sampsa Sohlman David H Nebinger 5 Months Ago - Edited Script is done and now it is running :) Please sign in to reply. Reply as... Cancel Alla Sapozhnikova David H Nebinger 5 Months Ago - Edited Would I be able to use DSL queries in templates? Please sign in to reply. Reply as... Cancel David H Nebinger Alla Sapozhnikova 5 Months Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Please sign in to reply. Reply as... Cancel
Sampsa Sohlman David H Nebinger 5 Months Ago - Edited Script is done and now it is running :) Please sign in to reply. Reply as... Cancel
Alla Sapozhnikova David H Nebinger 5 Months Ago - Edited Would I be able to use DSL queries in templates? Please sign in to reply. Reply as... Cancel David H Nebinger Alla Sapozhnikova 5 Months Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Please sign in to reply. Reply as... Cancel
David H Nebinger Alla Sapozhnikova 5 Months Ago - Edited Yes, although I wouldn't recommend it: https://liferay.dev/blogs/-/blogs/a-word-about-web-template-freemarker-scripts- Please sign in to reply. Reply as... Cancel
Bhargav R Vaghasiya 5 Months Ago - Edited This is really good one, is it faster than custom SQL? Please sign in to reply. Reply as... Cancel David H Nebinger Bhargav R Vaghasiya 5 Months 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. Please sign in to reply. Reply as... Cancel
David H Nebinger Bhargav R Vaghasiya 5 Months 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. Please sign in to reply. Reply as... Cancel