A
|
Arkie 9/16/2016 |
I'm very interested in how this turns out. I was doing something along this line and couldn't get the check mark bit to work the way I expected it to. I wound up using another feature like this: |
jadachDevClub member 9/16/2016 | |
Peter, if you comment out the JavaScript, then add data to "ProposedName" and "Rationale" - does the data stick to the database table? |
Pete K author 9/19/2016 | |
I'm very interested in how this turns out. I was doing something along this line and couldn't get the check mark bit to work the way I expected it to. I wound up using another feature like this: if (confirm('some statement here ??')) It puts up a box for a yes/no response. So if the response is Yes, my system does something akin to: var ctrlName = Runner.getControl(pageid, 'Name'); var ctrlNewName = Runner.getControl(pageid, 'NewName'); function func() { ctrlNewName.setValue(ctrlName.getValue()); }; ctrlName.on('keyup', func); And if the response is No, it simply falls through to the next thing. and it all works as expected. HTH... ~Joe
|
Pete K author 9/19/2016 | |
Peter, if you comment out the Javascript, then add data to "ProposedName" and "Rationale" - does the data stick to the database table?
|
jadachDevClub member 9/19/2016 | |
Yes it does, Jerry. It seems that something about my JS code is causing those fields to not get saved.
|
A
|
Arkie 9/19/2016 |
hmmmm.... Is the only substantive part that's different is the |
jadachDevClub member 9/19/2016 | |
hmmmm.... Is the only substantive part that's different is the if (this.getValue()== This is what I had a problem with. A check box versus a selected value (like your 6). Whatcha think Pete? ~Joe
|
Pete K author 9/20/2016 | |
also works for me when using bit fields.
|
jadachDevClub member 9/20/2016 | |
Yep. The test is working, as the fields are shown/hidden as expected. It's just that even when shown, one group does not get saved. The biggest difference between my code and yours is that I'm using two separate functions due to having two checkboxes to test. I did notice that you are passing a parameter (e) while neither of mine passes a parameter. What is the significance of e and should I be doing something similar?
|