Forum Discussion
Hi Folks
I have just uploaded the WebViewer2 browser wrapper for Access - an ActiveX control - added it to my code that has worked for 5 years plus - and using the new ActiveX screen tried to get my Authentication Code with my initial GET call that is erroring on a chrome/edge browser.
My MYOB logon popped up - I authenticated, it asked me to ALLOW ACCESS - then an error page came up - don't know the payload but suspect same error as direct post to chrome or edge browser.
Haven't quite worked out AntView2 - its obj controls are very different from the original control - so I haven't captured the return from MYOB but
Here it is - seems like running up a VB.Net program likely produce the same error - MYOB's lic server is giving out the wrong Authorisation Codes to some people.
The Doc
Hi The_Doc , the "code" should be in the "Source" property of the AntView control. It should return something like this:
http://desktop/?code=fiuohsdfgiuhyre8t7t83643hfigiues&^Ufu89hdfs7ty4jhr&scope= ....
So you will need to strip the first 21 characters at the start, and then everything from "&scope" onwards.
I've put my sample code in this thread if that helps.
- The_Doc4 months agoUltimate Cover User
Thanks for the information - I just didn't know the methods that came with Antview2 - very different from Access web browser - so was manually posting and on error page - Right clicking page but no "source" - so manually processed the above line = code as a legit Access Code and finally this morning the returned tokens were correct.
Now to sort out all my code - appreciate you code posted - will be very helpful - just don't need to lose time getting going - If I can just get my 7d Refresh I don't need anything more except to Refresh to work.
Hopefully all will work.
Regards The Doc
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.