cancel
Showing results for 
Search instead for 
Did you mean: 

How to Use IWDTableSingleMarkableCell?

Former Member
0 Kudos

Hi friends,

What do u mean by IWDTableSingleMarkableCell API? For which purpose this API is used ..I was assigned a task using this

<b>TableSingleMarkableCell</b>

I cannot find this API.....?

I need sample examples using this API.......\

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi friends...

I need to write the apllication using single markable cell where my tab strip contains four tabs and in two tabs of images...

if i press one tab i get 11 rows and columns.....

and in each cell has images

i need to generate that image if i click on each cell on the top......

explain in details starting from Layout properties, context attributes,writing the implemantation code etc,,,,,,,,\

Advanced Thanks&Regards

Shravan Kumar

Former Member
0 Kudos

Hi shravan,

TableSingleMarkableCell allows you to select an individual cell,

example code;

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec32d43b...

In this pdf,u visit page no - 219 to 222,

This example u write the code for here -> wdDoInit( ),and wdDoModifyView( )

Regards,

vino

Former Member
0 Kudos

Hi vino,

I need code how to make use of this Single markable cell API?where do we write the code in the implementation part?how the code flows from the in the view............ can u write a piece of code ......... describing the methods available in this API...

Thanks

Shravavn Kumar

Former Member
0 Kudos

Hi,

try this..in PDF

IPrivateUseSingleMarkableCellsView.ItableNodeElement elem;

int count = 10;

// Fill dummy data

for(int i=0; i<count; i++) {

elem =

wdContext.nodeTableNode().createTableNodeElement();

wdContext.nodeTableNode().addElement(elem);

elem.setCol1(“1.” + i);

elem.setCol2(“2.” + i);

elem.setCol3(“3.” + i);

// set TableSingleMarkableCell as a variant for the table

elem.setSelectedCellVariant(“variant1”);

wdDoModify( )

IWDAttributeInfo markedDataInfo =

wdContext.currentContextElement().getAttributePointer(“attributePointer”).getAttributeInfo();

((IWDTableSingleMarkableCell)

view.getElement(“TableSingleMarkableCell1”)).bindMarkedData(markedDataInfo);

((IWDTableSingleMarkableCell)

view.getElement(“TableSingleMarkableCell2”)).bindMarkedData(markedDataInfo); ((IWDTableSingleMarkableCell)

view.getElement(“TableSingleMarkableCell3”)).bindMarkedData(markedDataInfo)

Regards,

vino

Former Member
0 Kudos
Former Member
0 Kudos

Hi shravan,

it's allows you to identify a single cell,

This cell type can only be used if the property selectionMode of the table is set to none

Regards,

vino

Former Member
0 Kudos

How it is used to identify the single cell ? can i find X and Y coordinates Using this API??

Please guide me as i am new to this sap netweaver.....?

i need to get X and Y cordinates of the particular cell of tghe table where i clicjk the selected table cell

Thanks & Regards

Shravan Kuamr