cancel
Showing results for 
Search instead for 
Did you mean: 

Re: CFTable

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

- 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..

Former Member
0 Kudos

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.