Search script field name should comes from text1

Hello Everyone;

I use this script at below.it works fine

“select * from data where field1 LIKE '%” + document.childByName(“text2”).content.text + “%’”

but i want to use text1 instead of field1.I mean, field name should come from text1
I tried that code but it didnt work

“select * from data where '” + document.childByName(“text1”).content.text + “’ LIKE '%” + document.childByName(“text2”).content.text + “%’”

Try this one

“select * from data where ” + document.childByName(“text1”).content.text + “ LIKE '%” + document.childByName(“text2”).content.text + “%’”

Thank you michael,

I have another question.On mobile phone it start to search when i say ok(click tick)How we can change that to letter enter?

I mean,when i enter a letter it should start to search,no need to wait say ok.

You can simulate a button press when the text changes:

image

I tried that,i didnt work. :frowning:

image


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.