Hi All,
I have to create a dynamic search form with a dynamic datasources (in this case dynamic form variables).
I create the form and maintain a struct of the current state of the form in a global object.
When clicking a button “+”, I add rule(4 fields with their sources) and update my form state descriptor(the global object).
When I try to add a rule I got the following error msg
Valuelist: myValueList2 used with different types
The valuelist was already created for type: INTEGER
for the dataproviders: sel_1
So it can’t be uses also for type: TEXT for the dataprovider: sel_2
Please check these dataproviders of this valuelist: myValueList2
Valuelist: myValueList used with different types
The valuelist was already created for type: INTEGER
for the dataproviders: searchid_1
So it can’t be uses also for type: TEXT for the dataprovider: searchid_2
Please check these dataproviders of this valuelist: myValueList
Valuelist: myValueList used with different types
The valuelist was already created for type: INTEGER
for the dataproviders: searchid_1
So it can’t be uses also for type: TEXT for the dataprovider: operatorid_2
Please check these dataproviders of this valuelist: myValueList
When I debug the dataprovider searchid_2,its value is a number and not TEXT!!!
Here is a sample solution that illustrate the issue.
to reproduce the problem:
1- launch the solution
2- click the “open search form” button
3 - try to add a rule through the ‘’+" button.
version servoy : 5.1.2
OS:windows xp
I overcome for the moment the problem by creating a new value list for each field
Grateful to hear your suggestion or explanation of that behaviour…
Thank you for your support.
SGM_SEARCH_ENGINE.servoy (7.08 KB)