on 08-11-2021 6:38 PM
HI ,
Wanted to apply Search function for dropdown by using inputfield
Previously have done in Sup lumira by using below blog
Can anyone let me how to replicate in SAC .?
any help would be highly appreciated
Thanks,
Varun
Since QRC3 release you can use the "input controls" widget in applications which have a standard search functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
var Input= this.getValue();
var i=0;
var variable_name=Table.getDataSource().getMembers("Dimension");
var filter_data = {""};
var a =0;for(i=0;i<variable_name.length;i++)
var des = variable_name[i].description;{if(des.startsWith(Input)){
filter_data[a]= variable_name[i].id;
a++;}}
Table_1.getDataSource().setDimensionFilter("Customer_Name_",filter_data);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
var Input= this.getValue();
var i=0;
var variable_name=Table.getDataSource().getMembers("Dimension");
var filter_data;
var a =0;for(i=0;i<variable_name.length;i++)
var des = variable_name[i].description;{if(des.startsWith(Input)){
filter_data[a]= variable_name[i].id;
a++;}}
Table_1.getDataSource().setDimensionFilter("Customer_Name_",filter_data);
Try this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Step 1 - Create a global variable it should be array = matinput
step 1 Insert the Image of search in the canvas (on click event try to display the popups)
step 2 .try to develop a one new popups
step3 - on popups try to insert one input text box and one OK button
step4 - on OK select button write the below code
matinput = InputField_1.getValue().split(",");
CheckboxGroup_Material.setSelectedKeys(Matinput);
after this apply the filter to the chart .using matinput variable.
Note when user input in the text box they have to insert commo after every material .
Check the below link
https://answers.sap.com/questions/13043320/how-to-add-search-option-to-checkbox-group-in-sac.html
Thanks ,
Saurabh S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Saurabh,
Thanks for your reply
Just followed your script (below) in other blog like where input field should act as filter to table and set value to dropdown
but somehow it is not working when i type anything table is empty it is fitering out but table is empty it is not capturing data
do i need to enter full name in input field?
can you please help me?
var Input= this.getValue();
var i=0;
var variable_name=Table.getDataSource().getMembers("Dimension");
var filter_data;
var a =0;for(i=0;i<variable_name.length;i++)
var des = variable_name[i].description;{if(des.startsWith(Input)){
filter_data[a]= des;
a++;}}
Table_1.getDataSource().setDimensionFilter("Customer_Name_",filter_data);
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.