cancel
Showing results for 
Search instead for 
Did you mean: 

Table sIngle Markable cell

Former Member
0 Kudos

Hi friends,

I got a task to find the X and Y coordinates of a table cell using Table Single Markable cell.......

Is it possible to get X,Y coordinates using the above API.....

Is there any alternative for this......

please code me and help me....

Thanks &Regards

Shravan kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shravan Kumar,

you need a context attribute of type "AttributePointer". To define it, see:

http://help.sap.com/saphelp_nw70/helpdata/en/ed/785a42793d1653e10000000a155106/frameset.htm

To get the coordinates:

IWDAttributePointer attPointer = wdContext.currentContextElement().getAttributePointer();
String colName = attPointer.getAttributeInfo().getName();
//get row number as x
int x = attPointer.getNodeElement().index();
//get col number as y
int y = 0;
if (colName.equals("name of column1"))
y = 0;

and so on.....

hope this helps

regards

Stefanie

Answers (7)

Answers (7)

Former Member
0 Kudos
Former Member
0 Kudos

Hi freind,

I would be very thank ful to u if u send that link as early as possible

since my work is delayed due to that....

Advanced Thanks

Shravan Kumar

Former Member
0 Kudos

hi Shravan Kumar,

I submitted a sample project to SDN, I will you link as soon as I got it.

Have you set

selectionMode

of your table to

none

?

regards

Stefanie

Former Member
0 Kudos

HI friend

Where to write that piece of code in the implem,entation i triesd it but i am getting errors ......... is there any other solution.......

Thanks &Regards

Shravan Kuamr

Former Member
0 Kudos

Hi Friends,

I am having the ample of resources....on them biut i am unable to use them ....

i need piece of code to find the X and y co ordinates.....

How to write piece of code using them..?

Thanks and Regards

Shravan Kumar

Former Member
0 Kudos
Former Member
0 Kudos

Hi Shravan kumar,

there is a topic called "Defining Cell Variants", this might help:

http://help.sap.com/saphelp_nw70/helpdata/en/c1/fa7842fdb70f53e10000000a155106/frameset.htm

regards

Stefanie