Skip to Content
author's profile photo
Former Member

Re: CFTable

Hello All,

I am on the process of understanding some Dynpage code, which unfortunately does'nt have any documentation.

The dynpage is drawing up a table with a header, and the content rows one after the other. I noticed a line..

---

tableViewer = new CFTableViewer(viewID, page, request, "onTableNavigate", "onColumnClick", "hideContent();", null, null, objects, null);

---

Can any body help me figure out what this syntax means, and what exactly is a CFTableViewer. Even though I can some how find out the place where the values are getting read, I am not able to figure out from where the CFTableViewer is able to get the values to be displayed on the Header row. There is also no explicit code any where in the project which draws up the header row.

Thanks in advance,

SPK.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 05:48 PM

    - check the definition of CFTableViewer(). it might be generating table model. (TableViewModel). Arguments passed are the event handlers when you click on the table for different types..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Andy,

      Thanks for the help. By checking definition did you mean checking up the API docs of CFTableViewer or, looking into the code itself? I don't know if CFTableViewer is a class which I can check the source code. I guess it does have a model associated, as the subsequent lines are like...

      tableViewer.getModel().setBegda(model.getCompensationReview().getSlbeg(), objects, null);

      tableViewer.getModel().setEndda(model.getCompensationReview().getEndda(), null);

      etc.