james_sgp Active Member Licensed User Longtime User May 29, 2020 #1 Hi, I am using MiniSearchView; it looks and works beautifully until I try to do anything (search database, et) with the text selected using [xxx.textfield.text] the CLV appears again above the text box with the selected text? Ok...problem found, I was putting the value back into the field, sorry for my stupidity Last edited: May 29, 2020
Hi, I am using MiniSearchView; it looks and works beautifully until I try to do anything (search database, et) with the text selected using [xxx.textfield.text] the CLV appears again above the text box with the selected text? Ok...problem found, I was putting the value back into the field, sorry for my stupidity
james_sgp Active Member Licensed User Longtime User May 29, 2020 #2 So is there a way to close/hide the CLV, when i enter values into the textfield with code? Right now, the LV appears, with the same text in it, above the textfield. Upvote 0
So is there a way to close/hide the CLV, when i enter values into the textfield with code? Right now, the LV appears, with the same text in it, above the textfield.
Erel B4X founder Staff member Licensed User Longtime User May 31, 2020 #3 Make CLV a public variable in the class. You will be able to hide it with: Code: Copy SearchView.CLV.GetBase.Visible = False Upvote 0
Make CLV a public variable in the class. You will be able to hide it with: Code: Copy SearchView.CLV.GetBase.Visible = False
james_sgp Active Member Licensed User Longtime User May 31, 2020 #4 Thanks, but I`m not getting the option to enter the class name 'minisearchview.' (which is the name of the class) thats why I`ve been banging my head. Upvote 0
Thanks, but I`m not getting the option to enter the class name 'minisearchview.' (which is the name of the class) thats why I`ve been banging my head.
james_sgp Active Member Licensed User Longtime User May 31, 2020 #5 Ok, just re-read your message and realised 'searchview' should be the name of my MiniSearchView... But I`m still getting the problem that the 'TextField_TextChanged' is being triggered after I have updated everything and it turns the CLV`s back on? B4X: Copy in_name.TextField.Text = values(1) in_ic.Text = sf.Right(EncDec.AESDecrypt(values(3)),4) in_org.Textfield.text = values(4) in_temp.RequestFocusAndShowKeyboard in_phone.CLV.GetBase.Visible = False Looking at the 'TextField_TextChanged (Old As String, New As String)'.... OLD is blank, and NEW has the value I put into it. Obviously this is correct, but why is it triggering much later? Upvote 0
Ok, just re-read your message and realised 'searchview' should be the name of my MiniSearchView... But I`m still getting the problem that the 'TextField_TextChanged' is being triggered after I have updated everything and it turns the CLV`s back on? B4X: Copy in_name.TextField.Text = values(1) in_ic.Text = sf.Right(EncDec.AESDecrypt(values(3)),4) in_org.Textfield.text = values(4) in_temp.RequestFocusAndShowKeyboard in_phone.CLV.GetBase.Visible = False Looking at the 'TextField_TextChanged (Old As String, New As String)'.... OLD is blank, and NEW has the value I put into it. Obviously this is correct, but why is it triggering much later?
Erel B4X founder Staff member Licensed User Longtime User May 31, 2020 #6 james_sgp said: But I`m still getting the problem that the 'TextField_TextChanged' is being triggered after I have updated everything and it turns the CLV`s back on? Click to expand... Add a global boolean variable named IgnoreTextChanged and use it in the class to ignore the TextChanged event. Set it to True before you modify the text, Sleep(50) and set it to False. Upvote 0
james_sgp said: But I`m still getting the problem that the 'TextField_TextChanged' is being triggered after I have updated everything and it turns the CLV`s back on? Click to expand... Add a global boolean variable named IgnoreTextChanged and use it in the class to ignore the TextChanged event. Set it to True before you modify the text, Sleep(50) and set it to False.
james_sgp Active Member Licensed User Longtime User May 31, 2020 #7 Erel, Great thanks...I`ll give that a try. Upvote 0
james_sgp Active Member Licensed User Longtime User May 31, 2020 #8 Erel, your a genius....it worked perfectly ???? Upvote 0