I have a KCF Single Autocomplete customfield. This customfield appears in Create screen and in transition1 screen. This customfield has a Datasource SIL script associated.
I need to launch a different sql in "create" transition and than in "transition1" transition.
The problem is that argv["screen"] returns "" in both cases and I don't know how specify in the datasource sil script this case.
I thought to do something like that:
query += "SELECT c.servicio";
if (argv["screen"]=="create"){
query += " from vmmet_catalogoactivo c, vmmet_grupos g";
query += " where c.issue_id=g.issue_id and";
}
else {
query += " FROM vmmet_catalogoactivo c";
query += " WHERE ";
}
query += " c.proy_key='"+proyecto+"'";But argv["screen"] returns always null.
Anyone knows how can I do this?