RedQueryBuilder does not select an option when using the Select (dropdown) Editor and parsing existing SQL and args

StackOverflow https://stackoverflow.com/questions/18236966

  •  24-06-2022
  •  | 
  •  

Pergunta

I've been experimenting with RedQueryBuilder to build a query interface for searching a table of users.

I've defined an enumerate(request, callback) function and successfully populated dropdown lists of options for the user to choose from (e.g. titles: Mr, Ms, Mrs, etc.). I can save the generated query and args list to a database. Later, I can get the query interface to rebuild itself using the previously stored sql and args.

However, when parsing existing sql and args, the selections from the dropdown editors are not preserved (whereas string values are).

Is there anyway to override the onLoad() function to set the correct dropdown option for existing sql and args?

Foi útil?

Solução

Sadly 0.4.0 does not support async call backs for this particular control (terribly confusing name of SELECT). Might be fixed in 0.5.0.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top