M
|
MikeUk author 1/9/2024 |
nextControl.sefFocus; Ignore the typo .. It is setFocus |
C
|
cristi 1/9/2024 |
|
M
|
MikeUk author 1/9/2024 |
Hi Cristi Part 1. ctlFailureModeChange //Before client
//Server
//after client
|
M
|
MikeUk author 1/9/2024 |
Part 2. The second combo - ctlPriceTable value is set by //Before client // Select price table //Server // Build query and execute // //client after //Client After This event works fine, it the selection is made directly from the combo box. However the customer want's it to select the correct value, to avoid errors. They need other options showing in the list, but want a default. I thought about setting a button 'Get prices' but the tri part does not seem to accept, getPeer as that drop a JS bomb. |
M
|
MikeUk author 1/9/2024 |
I spotted this typo // Select price table I fixed it but it made no difference. |
M
|
MikeUk author 1/11/2024 |
So, is this possible? So far it has raised 3 problems that I'm trying to work around. I have to do a subtotal, vat and final total using an edit and change event, they dont fire either when the cobobox is changed. |
M
|
MikeUk author 1/12/2024 |
Ok I fixed this using a custom button; Using a slightly modified version of Corries example
The code below works the same, and involves a little less typing.
Then, I moved the code from the original control to the button tri-part( changing the getPeer to Runner.getControl(pageid,'ctrl'); ) Now when I make a change to the first field, I use the click event on the button to populate the fields and it works! I also altered the change_event on the second dropdown, to click the button. |