GlideElement - getGlideRecord()

Gets a glide record.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideRecord A glide record

function task_ci_allocate() {
   var cnt = g_list.getRowCount();
   if (cnt == 0)
      return;
 
   var pct = 100.0 / cnt;
   var pct = (parseInt((pct + .005) * 100)) / 100;
   var gr = g_list.getGlideRecord();
   gr.query();
   while (gr.next()) {
      gr.u_allocation = pct;
      gr.update();
   }
}