Hello Isomorphic!
I stumbled upon a problem with showPickListOnKeypress: false
I'm using it in my Listgrid which works fine with editorProperties : { showPickListOnKeypress: false } ,.. it only appears when i click the arrow-button or press alt arrow,
but if the picklist opens it won't create the criteria with the already written value..
getting output from here
getPickListFilterCriteria: function (){
var super_crit = this.Super("getPickListFilterCriteria", arguments);
}
super_crit is {} on every first call but it should create the criteria with the already written value i guess?
Is this on purpose or am i missing something?
currently i am working with this workaround which works, but i dont think this is the proper solution
getPickListFilterCriteria: function (){
var super_crit = this.Super("getPickListFilterCriteria", arguments);
var entered_value = this.getDisplayValue();
if(Object.entries(super_crit).length === 0 && super_crit.constructor === Object){
var custom_crit = {
_constructor:"AdvancedCriteria",
operator:"or",
criteria:[
{fieldName: "field1", operator: "iContains", value: entered_value},
{fieldName: "field2", operator: "iContains", value: entered_value},
{fieldName: "field3", operator: "iContains", value: entered_value},
]
}
return custom_crit;
}
return super_crit;
}
Another Question related to the pickList ->
is there a possibility do add the canSelectCells property to the picklist?
--> my goal is to select a specific cell and get the value of that selected cell in addition to the whole selectedRecord();
because i need to compare the selected or clicked cell value and not only the selected value from the valueField
Is there any solution for this problem?
Thank you very much!
best regards Thaddäus
I stumbled upon a problem with showPickListOnKeypress: false
I'm using it in my Listgrid which works fine with editorProperties : { showPickListOnKeypress: false } ,.. it only appears when i click the arrow-button or press alt arrow,
but if the picklist opens it won't create the criteria with the already written value..
getting output from here
getPickListFilterCriteria: function (){
var super_crit = this.Super("getPickListFilterCriteria", arguments);
}
super_crit is {} on every first call but it should create the criteria with the already written value i guess?
Is this on purpose or am i missing something?
currently i am working with this workaround which works, but i dont think this is the proper solution
getPickListFilterCriteria: function (){
var super_crit = this.Super("getPickListFilterCriteria", arguments);
var entered_value = this.getDisplayValue();
if(Object.entries(super_crit).length === 0 && super_crit.constructor === Object){
var custom_crit = {
_constructor:"AdvancedCriteria",
operator:"or",
criteria:[
{fieldName: "field1", operator: "iContains", value: entered_value},
{fieldName: "field2", operator: "iContains", value: entered_value},
{fieldName: "field3", operator: "iContains", value: entered_value},
]
}
return custom_crit;
}
return super_crit;
}
Another Question related to the pickList ->
is there a possibility do add the canSelectCells property to the picklist?
--> my goal is to select a specific cell and get the value of that selected cell in addition to the whole selectedRecord();
because i need to compare the selected or clicked cell value and not only the selected value from the valueField
Is there any solution for this problem?
Thank you very much!
best regards Thaddäus
Comment