La Ragic Guía
Transformando la manera en que tu negocio funciona con sistema TI y servicios cloud
¡Síguenos en redes sociales!
Trending
Applications
Case Studies
What is Ragic
Talking Ragic
Facebook Twitter YouTube
Producto
Guía
Acerca
Trending
Applications
Case Studies
What is Ragic
Talking Ragic

New SDBQuery filter methods in Javascript workflow and Java API

Por Jeff Kuo

When you use the query object to query data, which is the SDBQuery in Java API or the query object retrieved through the db.getQuery method in the Javascript workflow engine. If you want to add a query criteria according to a field, you used to have to do this:

SDBQuery q=...//existing query

SDBQuery subQuery=new SDBQueryFull(worker);

subQuery.go(queryFieldId);

subQuery.filter("filterConditionString");

q.filter(subQuery,false);

We now provide you with a series of convenience methods like SDBQuery.filter(int fieldId, String filterValue). All existing filter methods you can now add an int argument as the query field, so you no longer have to create a subquery to filter a query on another field. Now you only need to do this:

SDBQuery q=...//existing query

q.filter(queryFieldId,"filterConditionString");

This should save you a few lines of code each time you filter something with our API.

¡Impulsado por Ragic! : La Gestión de Datos Que Sí Funciona.
Mantener tus datos en Excel no sólo afecta tu productividad, también es propenso a errores sin tener manera de auditar. Mientras tu equipo crece, el manejo de datos con hojas de cálculo se vuelve extremadamente tedioso.
¡Crea tu primera base de datos ahora!

Iniciar Ragic Gratis

Registrarse con Google