I execute a method that displays a form, make visible fields, creates a new record etc.
Some of the fields that should appear on my form, do not appear. It seams that part of a method is not executed.
By running the solution with the debugger enabled, everything works correctly.
Is that normal ?
No. Is there any error in the client’s trace file or the console?
Ricc:
I execute a method that displays a form, make visible fields, creates a new record etc.
Some of the fields that should appear on my form, do not appear. It seams that part of a method is not executed.
By running the solution with the debugger enabled, everything works correctly.
Is that normal ?
this is possible, for instance when you are trying to load data in an onLoad method or something, will work in developer with debugger on. (because it has the time than, to load the data) In client this will not work, because the data is not there yet.
So yes, it is possible that methods with debugger on, will sometimes act differently, but most of the times it is a designing issue, which you can fix
Hi All
I don’t think it’s a design issue, it’s quite a big problem if you have some modules in a solution with attached value lists to a form. I discussed it with Jan Block at ServoyWorld and showed him (reproducable) cases. It has to do with initialization (for example a value list) or the lack of it. We had some ideas how to generally solve the problem but I don’t know how far Jan already is. May be he able to comment.
Best regards, Robert
HJK:
Ricc:
I execute a method that displays a form, make visible fields, creates a new record etc.
Some of the fields that should appear on my form, do not appear. It seams that part of a method is not executed.
By running the solution with the debugger enabled, everything works correctly.
Is that normal ?this is possible, for instance when you are trying to load data in an onLoad method or something, will work in developer with debugger on. (because it has the time than, to load the data) In client this will not work, because the data is not there yet.
So yes, it is possible that methods with debugger on, will sometimes act differently, but most of the times it is a designing issue, which you can fix
Thanks to all for replying !
I think Harjo is right. I use an onShow method to hide combos and display text fields and also a doEdit to make the opposite (like the samleCRM). I added an IF in the onShow method and nothing is executed if there are active transactions and … it works correctly !
You say in the onShow method! that’s a little bit strange, because that should work the same as in the client.
in the onShow the data is allready there. (not in onLoad)
Always use onLoad to do element stuff, not data stuff
Hope this helps
By moving the method from the onShow to the onLoad, works correctly also the old code. That helps me a lot!
in the onShow the data is already there. (not in onLoad)
Always use onLoad to do element stuff, not data stuff
I found other errors (not related with this issue) in the servoy_log.txt (is this the trace file?)
No. Is there any error in the client’s trace file or the console?
Many thanks