1 Reply Latest reply: May 4, 2012 12:38 PM by HakanBiroglu RSS

    Populating grid dynamically

    906707
      Hi, I am trying to populate grid dynamically. Here is the scenario.

      I am providing supervisor_id as input, on submission, the employee details of employee under that supervisor must be populated in grid. How do i achieve it?
        • 1. Re: Populating grid dynamically
          HakanBiroglu
          Assuming the grid it at level 1.

          Local RowSet &rs;

          /*Get a reference to the employee grid.*/
          &rs = GetLevel0().GetRow(1).GetRowset(Scroll.RECORDWITHEMPLDATA);

          /* Clear current grid content */
          &rs.Flush();

          /* populate grid with employee for supervisor */
          &rs.Select(RECORDWITHEMPLDATA, "where supervisor_id = :1", &supervisor_id);

          Edited by: Hakan Biroglu on May 4, 2012 7:38 PM