-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkboxgroup issue when used with View Model #463
Comments
Thanks Brent, for reporting this issue, and the other related ones. I hope to investigate further, though it might take a little whiile... |
Hi Brent - here is a candidate fix for issues 463 464 465 and 466. You should no longer get the "data.MayInviteOthers_list is not a function" error |
This fix works. |
Hi Boris, Although candidate v16 fixed the issue reported above, I have another Using v15, I get error Note: this issue seems different than the one reported above... I did some snooping to see if candidate v16 had an update that may have broken something (also testing my hacking skills ;-)... New code
Old code
If you need to see my code I can get it to you... Thanks, |
Thanks Brent. |
Hi Boris, I sent you test file testCanidate16A_forBoris.html...sorry, no small file. HTML line in question: Using Candidate v16A
Using v15
|
Good morning Boris, I am finalizing my code and doing cleanup, etc... Using v15 Using Candidate v16A I figured out this this issue: sloppy coding on my part; I was using an improperly defined
Because In summary, there were 2 coding issues on my part. However, in testing the different scenarios previously posted, I don't know why things worked in one scenario and not the other. Also, I don't know if there could have been a better error thrown than TypeError: Cannot read properties of undefined (reading 'base') that would have helped target the issue...maybe to broad? Apologies for sending you down a rabbit hole. PS. Issue #464 also involves |
In fact I am working on an update (Candidate 16C) with a few fixes, including for this issue. 16C fixes this error even with your previous convertBack and inArray code. So there was indeed a problem in my code, independently from any possible code issues in your code :-) I hope to get you this update before long. I think the only remaining one I am working on is #464 extra parens, and not updating... |
I think it is #465 - the other one with checkboxgroup. I have fixes for that already, including linkTo... Just wait until I have the candidate 16B available, so you can test. |
Interesting. |
Hi Brent, here is a jsviews.js candidate fix for issues 463 464 465 and 466. Can you test it in your environment? Thanks! |
Hi Boris, thanks for the update! Testing with V16B, it looks all issues addressed were fixed... However, a new issue has been introduced with V16B... To test:
A couple days ago I added a block of code (deeply nested) that isn't refreshing on 2nd + checkbox toggles... When To test:
I sent you a slightly modified test file: testCanidate16B_forBoris.html Thanks, |
Thanks Brent - this if very helpful. Your bug testing feedback is invaluable! |
Hi Brent,
But I think I have a fix for this and also the other issues we have been tracking. Can you test it in your environment? Thanks! |
Hi Boris, This and other related fixes are working with jsviews16 Candidate C. Thanks for the fixes, much appreciated...sorry this was a difficult one ;-) |
Hi Boris,
I am converting plain objects/arrays project to use View Models.
When using plain objects/arrays I have no problems with checkboxgroup in this scenario.
When using View Models I am getting error:
data.MayInviteOthers_list is not a function
.Here's a stripped down jsfiddle for testing.
https://jsfiddle.net/alnico/57Ldgs8e/
To test:
radio
to 'Normal', no error.radio
to 'Edit', error: not a function.data-link="{checkboxgroup ~People.MayInviteOthers_list()}"
, no errors in any scenario.The text was updated successfully, but these errors were encountered: