cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3 SP3: Performance of dependent dropdowns

kammaje_cis
Active Contributor
0 Kudos

Hi there,

We are on Personas 3, SP3.

I have created couple of custom combo boxes, where drop down values in second combobox depends on what was selected in first combo box.

All the dropdown values (for both the combo boxes) are loaded when the screen is initially loaded. Upon a value is selected in combobox 1 (onSelect event), I calculate the dropdown values for the second dropdown and update the combobox entries.

Below is the event handler for 'onSelect'


//Clear Current entries of second combobox

var damageCombo = session.findById("wnd[0]/usr/cmbPersonas_146789411528788");

var damageCodes = damageCombo.entries;

damageCodes.removeAll();

//New selected Key from the first combobox

var damageCodeGroup = newKey;

if (damageCodeGroup === ""){

  return;

}

//Previously loaded data

var allDamageCodes = session.utils.get("damage_codes");

var data = JSON.parse(allDamageCodes);

//Calculate the values for second dropdown

for (var i=0; i<data.length; i++){

  if (data[i].KEY === damageCodeGroup){

       var values = data[i].SUBKEYS;

       for (var j=0; j<values.length; j++){

            damageCodes.add(damageCodes.createComboBoxEntry(values[j].KEY, values[j].VALUE));

       }

  break;

  }

}

//Assign it to second combobox

damageCombo.entries = damageCodes;

When I select a value in first combobox, it takes up to 4 seconds for the screen to be ready for input. Since I have all the value at client side, I did not expect this. In the network tab I see that there are three calls to the server.

How can I get rid of this 4 seconds delay? Am I doing anything wrong?

Regards

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Krishna,

I was not able to reproduce this issue in our local environment. Kindly create an incident and we will investigate.

Best regards

Kranthi

kammaje_cis
Active Contributor
0 Kudos

Thanks Kranthi for the effort, Raised a message 239053 / 2016.

Regards

Krishna

Answers (1)

Answers (1)

0 Kudos

HI Krishna

Did you find any way to improve the performance for dropdowns. I am facing the same issue

Please let me know if you have a solution.

Regards

Sambhu Manideep