small question.
Is it possible to put some code in after making a capture in a form?
I would need to refresh some fields after the capture and set the focus to
a special field depending to the choice made in the capture field.
BR
Eric
small question.
Is it possible to put some code in after making a capture in a form?
I would need to refresh some fields after the capture and set the focus to
a special field depending to the choice made in the capture field.
BR
Eric
Re: code after capture
did you try automatic reloading using ajax processing?
Re: code after capture
If I understand correct, you suggest ajax onchange, or?
Not tested on ajax, because the normal event onchange did not recognize the changed value, but will try this afternoon.
Re: code after capture
A problem for you is that onchange trigger only fires when leaving the field. Is this ok for you? I believe that non of the SC events fires when capturing a value. You should test this first.
Re: code after capture
OK, I was a little bit confused, but tested it now again. Yes again, because I tested it before.
After making the choice in the capture-grid, the app returns to the form and let the focus on the capture-button.
The button has no possibility to give some behaviour to the app. The only chance to do that would be using the TAB
to another field an add the behaviour to the onfocus of that field. But this will not be the solution, cause the user also
can use the mouse to set the focus to another field …
It would be logical to set the focus back to the field, which is bind to that capture-button after making the choice.
This would trigger the onfocus-event, which matches to the functionality of the capture-button.
BR
Eric
P.S.: Another solution would be to give a field into the capture form, which tells the app where to set the focus after making
the choice. Or give simply some php-code at that point ^^
Re: code after capture
Maybe you can suggest SC to integrate such functionality in a future release.
… or maybe you can hack the generated code and put your code in there somewhere.
Re: code after capture
Problem of a hack would be that after the next generation of the code, the hack must be integrated again. Or is there the possibility to put in code which will not overwritten in future generated code-
Re: code after capture
no, this possibility does not exist.
I have some hacks in a few forms, and have these documented clearly in a so called “implementation plan”. Sometimes you’re forced to be creative…
Re: code after capture
I remember times of Builder C++, where I had some brackets to fill in my own code, which would not touched by
the compiler. Years ago. Nowadays, really nice
Re: code after capture
I know what you mean, I miss it too… Maybe you can suggest SC to integrate it in future versions.
Re: code after capture
I posted it into the suggestion section of the forum. Is there an other mail or person to which such a suggestion would be usefull to send it?
Would be nice if everyone who thinks such behaviour would be usefull would agree in that post:
http://www.scriptcase.net/forum_en_us/index.php?topic=3999.0