This will upcase the first letter typed in the textbox (e.g. rem > Rem)
I have edited the query to test for the search text in columns A&B
Button HTML OUTPUT will show the results in the webviewer
Button CSV OUTPUT will show the results in the label
The search term joy shows the query working on A&B.
If you like to view the data as an html table (from gviz) but also need to return all the table values as data, you can run some javascript on the webpage after it has loaded:
let oTable = document.getElementsByTagName('table')[0];
let data = [...oTable.rows].map(t => [...t.children].map(u => u.innerText))
window.AppInventor.setWebViewString(JSON.stringify(data));
This returns a stringified JSON array, which you can convert to an AI2 list using the Web component's JsonTextDecode block
you're a life saver sir.. i cant scrutinize it atm, but ill make sure to study it later. another thing sir, how can you turn the query condition into a part of a link code?it will help me in my other projects sir.. thank you so much
where do you get this extra blocks ? in my project i dont have this call query and upcase blocks..
how does webviewer work and let it display result without calling the web1.get?
im looking for the declaration of the variable value, but i dont see it. how did you declare the textbox value to that variable?
hoping to understand this things sir so i can integrate your work to mine. thank you sir
You have to create your own procedures like this using these blocks, then the socket or method procedure becomes available in the palette
ABG has pointed you to reference for this.
As you can see the textbox.text is inside the upCaseFirst procedure. If you do not want to use upcase, then just put the textbox.text block to the query value socket, like this: