How to hide a factbox part in a listpage using code? How do you do it?

I can get that to work for a regular form but not for a listpage. The problem I have is that I can only run the code through the listpage interaction class. I can’t figure out how to instantiate the PartsList class there:::

partList = new PartList(element);

what to use at the place of element in above line?? or if there is any other way to access Formrun object .

hi try in this way , it may help you .

PartList partList;
Counter partCount;
Object partFormRun;
NumberOf numberOfParts;

partList = new PartList(this);

numberOfParts = partList.partCount();

for (partCount = 1; partCount <= numberOfParts; partCount++)
{
partFormRun = partList.getPartById(partCount);

if (partFormRun)
{
partFormRun.init();
partFormRun.run();
}
}

thanks,

srikanth

Thanks for replying…

Bt as i have already mentioned I am able to perform operation at Normal forms bt not at Forms where Form Template Type is ListPage.

Any type of operation on these forms can only be performed using their Interaction classes.e.g, Custtablelistpage form, where any operation is to be performed at CusttablelistpageInteraction class. Since, these kind of forms doesn’t allows you to add your own methods on Form level.

partList = new PartList(this);

this/element in above line of code will work at form level. Bt what is their alternative at class level???

pass the record boss , element…datasource.cursor();

and try it

thanks,

srikanth

and… from where ???