Grid ActionBar

I’ve defined two actionbar buttons in a grid.

Depending on the setting, one or the other button is displayed!

OnRecord
if({LearnControl} == ‘1’)

{
sc_actionbar_hide(“blank_RatingGrid”);

sc_actionbar_enable(“DrivingStudentRequirements”);

}
else

{
sc_actionbar_hide(“DrivingStudentRequirements”);

sc_actionbar_enable(“blank_RatingGrid”);

}

This works fine, but then the actionbar stops displaying the button at some point in the grid!

If I search for a specific entry, it works! I think this is a bug!

I solved the problem. Instead of sc_actionbar_enable, I used sc_actionbar_show and it works!

// ActionBar Buttons for LearnControl
if({LearnControl} == ‘1’)
{
sc_actionbar_hide(“blank_RatingGrid”);
sc_actionbar_show(“DrivingStudentRequirements”);
}
else
{
sc_actionbar_hide(“DrivingStudentRequirements”);
sc_actionbar_show(“blank_RatingGrid”);
}
//--------------------------------------