Hi.
How to use the global method of a ValueList.
I have it written, but as I run it and pass it parameters.
Someone could help me with an example.
My global method is:
function getDataSetForValueList(displayValue, realValue, record, valueListName) {
if (displayValue == null && realValue == null) {
return databaseManager.getDataSetByQuery("Interdata", "select adn_nombre, adn_id from adn", null, 100);
} else if (displayValue != null) {
var args = [displayValue + "%", displayValue + "%"]
return databaseManager.getDataSetByQuery("Interdata", "select adn_nombre, adn_id from adn where adn_nombre like ? or adn_apellido like ?", args, 100);
} else if (realValue != null) {
var args = [realValue];
return databaseManager.getDataSetByQuery("Interdata", "select adn_nombre, adn_id from adn where adn_id = ?", args, 1);
}
}
How they run and where?
Thank
Roberto Diez.
Interdata.
Rep.Argentina.