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.
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
Hi Bryan. Thanks. jQuery is version 1.8.3 with UI version 1.9.2
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
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 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(<control_name>) (for example, O4WGetValue("TABOX_CUSTOMER")) to return the value in the box, or O4WGetValue(<control_name>_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