cancel
Showing results for 
Search instead for 
Did you mean: 

Links in Table

Former Member
0 Kudos

Hi

I want to put link to the one column in the table.

plese let me know the solution for this

regards

mmukesh

Accepted Solutions (0)

Answers (5)

Answers (5)

satyendra_dhar
Employee
Employee
0 Kudos

Hi Mukesh,

Insert tablecellEditor as linktoaction control for the column.

Assign one action to it and write your code in this action.

do the context binding with column.

Regards,

Satyendra

Former Member
0 Kudos

Hi Mukesh,

I think you have made the table cell editor of that column as LinkToAction.

You need not assign any of its attributes/properties, but create a method for the event onAction of that Link to Action UI element.

The string you need to display as the link can be assigned as context (string type) to the TEXT property of the LinkToAction.

Hope this helps..

Regards,

Alka

Former Member
0 Kudos

Hi

I created onAction to the Column

in the action i have fired plug

but its not showing the link

and i did not get this sentance.

The string you need to display as the link can be assigned as context (string type) to the TEXT property of the LinkToAction

regards

mmukesh

Former Member
0 Kudos

hi mukesh,

In the table make the <b>tablecelleditor</b> as <b>linktoaction</b> i mean if the tablecelleditor type is textview then delete it and rightclick on column and select <b>Inserttablecelleditor</b>. It will ask to the type of UI you require. select link to action.

if you go the properties of tablecelleditor(linktoaction) you can see <b>onAction</b>.

you write your code in this onAction.

Regards,

Gopi

Former Member
0 Kudos

hello mukesh,

"The string you need to display as the link can be assigned as context (string type) to the TEXT property of the LinkToAction"

the above sentense means that the string which should be clickable should assigned to the TEXT property of LinkToAction.

Jeet

former_member188556
Active Contributor
0 Kudos

Hi

Use this code in ur doInit() method

IPrivateUserView.ITableElement tableElement;

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

tableElement = wdContext.createTableElement();

tableElement.setLinkToActionText("Give Text here");

wdContext.nodeTable().addElement(

tableElement);

I have my view named as "UserView".

And my table Value node as "Table".

So change the first line accordingly.

Do let me know the ouput

Regards

BP

Sharadha1
Active Contributor
0 Kudos

Hi Mukesh,

Please use a UI Element of type LinkToAction for that column

REgards,

Sharadha

Former Member
0 Kudos

Hi Sharadha

Thanks for your reply

I assigned UI Element of type LinkToAction

and its asking to change the attribute type to "Boolean"

but my attribute type is not boolean .

let me know how to make this one working.

Former Member
0 Kudos

hi mukesh,

if you are speaking about making one column in the table as link then, make the table cell as linktoAction instead of text view.

if you are speaking about displaying a table when you click a link, then place the table in another view and fire a plug when you click this link.

Regards,

Gopi