cancel
Showing results for 
Search instead for 
Did you mean: 

Java iviews and PDV Urgent!!!!

Former Member
0 Kudos

Hello FOlks

I am working on EP5.0SP5. I need to do some modification to the existing custom developed java iviews. These iviews were developed using PDV. There is no much documentation available on this. So if any one could tell me where begin the modifications for these iviews it will be of great help to me.

I need to make some columns removed from the iviews etc.

Any help will be of great help. I am working on PDV for the first time.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In <b>beforePdvExecuteSource</b>(IDataViewer portalDV) you should set the portalDV source, ususaly using a JCO.Table:

JCO.Table table = getDataTable();
ISource myJCoSource = portalDV.createSource(table);
portalDV.setSource(myJCoSource);

when getDataTable() is a method you should write (probably exists in some way or another in the code you have), which creates a new JCO.Table, fills it with data and returns it.

Removing columns will be done in that method, by deleting lines like:

table.addInfo("ID", JCO.TYPE_STRING, 0);

In <b>afterPdvExecuteSource</b>(IDataViewer portalDV)

you can add meta-data used by the portalDV while displaying the table, like personalization settings,

columns display types, target url for data in a column with a link display type, etc.

In <b>afterTableViewCreate</b>(TableView table) you can handle the display properties of your table (e.g. setting columns visibility, etc.)

In <b>onContainerCreate</b>(TableView tableView) you construct your gui. The given tableview contains the data you put in the source, formatted according to afterTableViewCreate, and should be added to the form (like in doProcessBeforeOutput in ordinary dynPage).

Hope that helps,

Yoav.

Former Member
0 Kudos

Thank you Yoav

But I dont have beforePdvExecuteSource(). I have myAfterPdvInit(IDataViewer portalDV) and onEndPdvInitialization (IDataViewer viewer)

Do you think this is right or am I missing something.

Somebody Please help me

thanks

Former Member
0 Kudos

Hi,

myAfterPdvInit is new to me, but maybe replaces beforePdvExecuteSource in some methodology I'm not aware of, becuse it does get the IDataViewer as a parameter.

Look at its content for a definite answer.

onEndPdvInitialization should exists, and handles (as its name suggets) initializations.

How about the other methods? did you find them?

And (just to make sure) what class exactly your dynPage extends? (should be PDVDynPage)

Yoav.

Answers (1)

Answers (1)

Former Member
0 Kudos

Look for a customize PDV icon in the top right corner of the iview. You might be able to remove it from there. Second approach would be using the .profile file for it.

Pankaj