3 Replies Latest reply: Jan 21, 2013 1:41 AM by Sushant Sharma RSS

    how the meaning of line 1 is related to the meaning of line 5??

    978565
      Hi all

      1) Row row=vo.first();
      2) if(str.equalsIgnoreCase("454254"))
      3) {
      4) System.out.println("JAKAS");
      5) row.setAttribute("Pos_Flag",Boolean.TRUE);
      }

      I want to know how the meaning of line 1 is related to the meaning of line 5.Can anybody do the favour??

      Thanks & Regards
        • 1. Re: how the meaning of line 1 is related to the meaning of line 5??
          Sushant Sharma
          Hi,

          In line 1, you are fetching the first row of the VO.
          and in line 5, you are setting a value to the row's attribute, Pos_Flag. You can also do the same by using method row.setPos_Flag(TRUE);

          --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                   
          • 2. Re: how the meaning of line 1 is related to the meaning of line 5??
            978565
            hi

            But if i skip the line 1 ,the whole program does not work well.

            Thanks & Regards
            • 3. Re: how the meaning of line 1 is related to the meaning of line 5??
              Sushant Sharma
              Hi,

              Yes. That will not work because in first line you are fetching the first row of VO and then in line 5, you are setting attribute of the same row.

              --Sushant