{{tag>category:"O4W" author:"Andrew Roberts" author:"bshumsky"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== O4WTABox not working as expected (O4W) ==== === At 14 APR 2020 12:20:25PM Andrew Roberts wrote: === I am attempting to use O4WTABox, however it is not working as expected using the code below: custList = "Customer 1":@VM:"Customer 2":@VM:"Customer 3":@VM:"Customer 4" codeList = "101":@VM:"102":@VM:"103":@VM:"104" O4WTABox("", 40, "CUSTOMER_TABOX", 0, custList, codeList, "", "", "", "TABOX", "") I just get a regular text box with Customer 4 inside and no search functionality. What am I missing or doing wrong? I am running O4W 1.5 Thanks. ---- === At 14 APR 2020 04:53PM bshumsky wrote: === I am attempting to use O4WTABox, however it is not working as expected using the code below: custList = "Customer 1":@VM:"Customer 2":@VM:"Customer 3":@VM:"Customer 4" codeList = "101":@VM:"102":@VM:"103":@VM:"104" O4WTABox("", 40, "CUSTOMER_TABOX", 0, custList, codeList, "", "", "", "TABOX", "") I just get a regular text box with Customer 4 inside and no search functionality. What am I missing or doing wrong? I am running O4W 1.5 Thanks. Hi, Andrew. If you call up the "O4W Configuration" screen, what version of jQuery does it say you're using? You can get to the configuration screen by going to the O4W start page, then choosing the "DB Management", "O4W Maintenance", and "Config Records" options. Finally, go to the Scripts tab and you can see what version of jQuery you're set up to use. O4WTABox uses different code depending on whether you're running jQuery pre-, or post-, version 1.8. Let me know which you're running, and I'll see if I have any suggestions. Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 15 APR 2020 11:15PM Andrew Roberts wrote: === Hi Bryan. Thanks. jQuery is version 1.8.3 with UI version 1.9.2 ---- === At 16 APR 2020 09:26AM bshumsky wrote: === Hi Bryan. Thanks. jQuery is version 1.8.3 with UI version 1.9.2 Hi, Andrew. Thanks, that means you should be using the newer version, the one that's built in to jQuery (the underlying library that O4W uses). If you make a very, very simple O4W page - one that has nothing EXCEPT the autocomplete and a 'submit' button on it - does that work? If not, can you right-click on it in the browser, and choose "view source", and then copy and paste that source somewhere and email it to me? You can send it to info at revelation.com, and mark it for my attention. I want to make sure that your system is producing the jQuery code that it's supposed to... Thanks! - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 16 APR 2020 03:30PM Andrew Roberts wrote: === Hi Bryan, I created a page with just the Type Ahead Box and Submit button and it responded the same -- just a text box with the last value in the list as the text. I have emailed the source code of the web page as well as the subroutine as text files to info@revelation.com Thanks again! ---- === At 17 APR 2020 12:12PM bshumsky wrote: === Hi Bryan, I created a page with just the Type Ahead Box and Submit button and it responded the same -- just a text box with the last value in the list as the text. I have emailed the source code of the web page as well as the subroutine as text files to info@revelation.com Thanks again! Hi, Andrew. Thanks for the code sample and the source! I believe I've tracked down and fixed the issue(s) - please look for the zipped RDK in an email that I sent. Let me know if you don't receive it. Also note, I don't think the documentation explains this, but after you create the TABox, you can either call O4WGetValue() (for example, O4WGetValue("TABOX_CUSTOMER")) to return the value in the box, or O4WGetValue(_code) (for example, O4WGetValue("TABOX_CUSTOMER_code")) to return the code value associated with that text. If this appears to work for you, we can make it available to other 9.4 users as well. Thanks! - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=82401EA4B1C05F43A8C1202ECCC521EB|View this thread on the Works forum...]]