Done the test: it returns False just after```
var x = forms[v_filter_form][‘v_f_’ + forms[v_rf_form].fld_field_name];
**EDIT:** checked if "v_filter_form" was calling other methods but in fact the form in the variable doesn't exist. I know, there is a problem with the forms names apparently but I don't think it's the cause of the find to be OFF <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" />
Foobrother:
Done the test: it returns False just after…
I don’t understand. What test did you do? Did you check the method you have registered for onLoad method of form represented by “v_filter_form” to see if it gets called?
Andrei Costescu:
I don’t understand. What test did you do? Did you check the method you have registered for onLoad method of form represented by “v_filter_form” to see if it gets called?
In the post you have edited you told me to verify with the following line```
var x = forms[v_filter_form][‘v_f_’ + forms[v_rf_form].fld_field_name];
Btw I have replied to your new post by editing my old one
**EDIT:** Ooops sorry my mistake! Was reading your post in page 1 (the last post of the page)! <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" />
Ok. And what about “v_rf_form” form? Could it trigger an onLoad method?
Andrei Costescu:
Ok. And what about “v_rf_form” form? Could it trigger an onLoad method?
For v_rf_form all Events are at “none”
Is “v_rf_form” based on the same table as “v_form”?
I have checked again the whole solution. I have made another discovery now and I really don’t understand why it’s working on Developer!
In fact some “family” of forms have “_copy” added to their name. I don’t know if it’s Servoy which changed their name or my colleague who changed it. But in the program apparently it still do as if it wasn’t change. And indeed, v_form that I’m testing from the start doesn’t exist.
But I don’t have any error when I run it on Developer ![Shocked :shock:]()
Andrei Costescu:
Is “v_rf_form” based on the same table as “v_form”?
No
Hmm, maybe the problem is more basic then. You should see what all the code is doing and what’s the matter with those forms first. Maybe correct the wrong accesses to forms and fields… Debug some more.
Also check that you committed all the changes from developer into the application server. Don’t know how you are developing… for example if you are using the Servoy team provider with “localhost” to commit to your server, doing a team-synchronize should show any differences between your workspace based repository and app. server repository.
Andrei Costescu:
Hmm, maybe the problem is more basic then. You should see what all the code is doing and what’s the matter with those forms first. Maybe correct the wrong accesses to forms and fields… Debug some more.
Yeah probably.
Andrei Costescu:
Also check that you committed all the changes from developer into the application server. Don’t know how you are developing… for example if you are using the Servoy team provider with “localhost” to commit to your server, doing a team-synchronize should show any differences between your workspace based repository and app. server repository.
Actually I never touched this solution (its code) before. The guy, who developed it, is on holiday, as I said, and gave me the .servoy file to install it on our test server and then test it. He was the only person who worked on it. But I know that the forms were not called like that (with “_copy”) in the previous versions.
Anyway, will try to find and let you know if I have something new.
Another funny one ![Confused :?]()
When I call the method “application.getMethodTriggerFormName();” from a form which has “_copy” at the end it returns the name of the without “_copy”.
I double-checked: I don’t have any form in developer called like what is output by the solution! Only “formNameReturned+_copy”.
Foobrother:
Another funny one ![Confused :?]()
When I call the method “application.getMethodTriggerFormName();” from a form which has “_copy” at the end it returns the name of the without “_copy”.
I double-checked: I don’t have any form in developer called like what is output by the solution! Only “formNameReturned+_copy”.
In fact I’m wrong! The forms are there. They are build by the application itself using the database and solutionModel. My colleague just implemented it in this last version and I totally forgot about it!
So in fact everything is ok in the code for the moment. I’m still searching why this find() goes to false on the server.
You were right! It because of another search() done while the first one is running.
I found another function which runs the search(). I’ve made prints to check what happens and it’s clear. The 2 functions running a search are FilterList and InitSplit
On Developer:
frm_assets //in InitSplit
Start Search InitSplit //in InitSplit
End Search InitSplit //in InitSplit
Start Search FilterList //in FilterList
TRUE //in FilterList
TRUE //in FilterList
TRUE //in FilterList
TRUE //in FilterList
TRUE //in FilterList
TRUE //in FilterList
End Search FilterList //in FilterList
On the Server:
frm_assets //in InitSplit
Start Search InitSplit //in InitSplit
End Search InitSplit //in InitSplit
Start Search FilterList //in FilterList
TRUE //in FilterList
frm_assets //in InitSplit
Start Search InitSplit //in InitSplit
End Search InitSplit //in InitSplit
FALSE //in FilterList
FALSE //in FilterList
FALSE //in FilterList
FALSE //in FilterList
FALSE //in FilterList
ERROR - Debug - Throwable
...
So why are the search done in sequence on Developer and not on Server? I’ll look at the code.
So in fact you were right.
v_filter_form from ```
forms[v_filter_form][‘v_f_’ + forms[v_rf_form].fld_field_name]
is calling the onLoad event which runs InitSplit.
Why is loaded another time when I do "forms[v_filter_form]['v_f_' + forms[v_rf_form].fld_field_name]"? Apparently it's linked to solutionModel as I think this code was used before using using solutionModel.
How can I avoid it?
Ok I’ve found the answer there: viewtopic.php?f=22&t=11724&start=0&st=0&sk=t&sd=a
So now I just have the issue to understand the application to make the change without changing the behaviour ![Confused :?]()