cancel
Showing results for 
Search instead for 
Did you mean: 

Enable the cell of a table for LinkToAction property

former_member219737
Participant
0 Kudos


Hi Experts,

I have used the LinkToAction property for the cell inside the Standard table NOT the ALV .

Can you tell me ..how can I Enable out the field which has LinkToAction Property dynamically not the Grey out one .

I have attached the screen shot for reference ...

Regards,

Karthik s

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Karthik,

take a new attribute in the same node which you binded to the table of type boolean. Bind this attribute to the read only property of the Cell editor in the column. Then maitain the values true for enable and false for disable in the newly added property.

Thanks,

Raju Bonagiri

former_member219737
Participant
0 Kudos

Hi Raju,

I am not able to find the READONLY Property for the field of LinkToAction inside the field of a table ..

Can u suggest me an idea to achieve the same ...

Regards,

Karthik S

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

Could you elaborate your requirement in detail? What do you mean by enabling link to action? is it disabled now?

Regards,

Rama

former_member219737
Participant
0 Kudos

Hi Rama,

Old Req :

TextEdit property was feeded in the field of a table

Process:

Once the user check the button of "Check to Edit Rejected hours"...based on some conditions...

fields in table which is grey out...wil get ENABLED (attached Screen)

New Req :

TextEdit property was changed to LinkToAction Property

Process:

Once the user check the button of "Check to Edit Rejected hours"...based on some conditions...

fields in table which is grey out...is not getting Enabled like Earlier

Can u suggest me an idea of achieving the same ...

When I compared TextEdit and LinkToAction...In Properties of LinkToAction...I am not able to find the ReadOnly Property ...

Do I need to do any other actions in it .

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

For ui element LinkToAction,  you dont find read_only property But you can use ENABLE property to achieve your requirement.

The screen shot attached shows only text edit ui elements, is this latest output?

When you set ENABLE = X, you should see a UNDERLINE/link on particular cell & ENABLE = ' ', you would not see any link on that particular cell.

Regards,

Rama

former_member219737
Participant
0 Kudos

Hi Rama,

Thanks for yr reply..

I have attached the screen shot for yr' reference ..

I have used Enable property ...still i am not able to achieve it...

Can u suggest an idea for the same ...

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik ,

From screen shot can see that all cells are having links I.e enable = X.

How were you doing earlier using Readonly Property of text elements.

I think you bound readonly property to an attribute or used dynamic READONLY property setting logic.

NOW, you just have to bind the enable property to attribute .

Please refer my document below and try to bind ENABLE property instead of READONLY.

Hope this helps you.

Regards,

Rama

former_member219737
Participant
0 Kudos

Hi Rama,

For TextEdit Binding :

For LinkToAction :

I have attached the screen shot for reference ...

Regards,

Karthik S

former_member219737
Participant
0 Kudos

Hi Rama,

I have Binded the Enabled Property for the Field ...Still , i am not able to achieve it.

Can u suggest an idea ...am i missing any property to add it .

Regards,

Karthik S

former_member219737
Participant
0 Kudos

Hi Rama,

Thanks a lot for your valuable document and it was working fine with Enable and Disable Property .

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

You are welcome and good to know that your issue is resolved

former_member219737
Participant
0 Kudos

Hi Rama,

Can u share the Link..where I can learn WebDynpro Functionalities ...

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

You can go through the tutorials / documents available in

Happy learning.

Regards,

Rama

former_member219737
Participant
0 Kudos


Hi Rama,

I have a doubt in the apllication that i made ....

I have made the field of a table with "LinkToAction"

When I click on the Insert Row button, a new line item is created ....But I want the fields with Editable fields ....not the LinkToAction

Can u suggest me an idea to achieve the same ...

I have attached the screen for reference ...

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

You have to use cell variant feature to achieve your requirement.

Define cell variant for link to action and other as text edit. For initial line just do not pass any variant and for other lines you can pass variant name. So that you get link to action and text edit as required.

Refer the below link

Table with cell variant | Team ABAP

Hope this helps you.

Regards,

Rama

former_member219737
Participant
0 Kudos

Hi Rama,

Thanks for yr' reply ...

I have kept Fields in the Table as "LinkToAction"...

When I click on Insert Row Button, I want the fields to be Editable one...for the rows that is created for the one which i have mentioned above ...

Can i know , how to make it dynamic ...

Can u suggest an idea for it ....

Regards,

KArthik S

former_member219737
Participant
0 Kudos

Hi Rama,

When i click on the Insert Row Button, I want an Input field in the fields of a table ...In other case,

its enough showing it in LinkToAction in field of a table ....

Can u suggest the snippet to achieve the same ...

Regards,

KArthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

As I suggested in the previous reply, you have to create two cell editors i.e. text edit & link to action for each column and set celvariant key same for all columns.

As per the blog given earlier, you can set the variant key in action of INSERT NEW ROW button.

....

I think your requirement of having different cell editors based on action is not related to the TITLE of your current issue. In case you are not able to solve as suggested, please open new ticket for the same.

Regards,

Rama

former_member219737
Participant
0 Kudos

Hi rama,

I have tried the below steps and i request you to guide me further ..

1. I have created the Cell Variant with Variant Key as "VAR_KEY"

2. I have created the Input Field and I have binded the other properties as earlier ...

3. I have assigned the Cell Variant name into Column of table as below ...

Can u suggest me on furrther steps to proceed /.....

Regards,

Karthik S

ramakrishnappa
Active Contributor
0 Kudos

Hi Karthik,

I have replied in the below ticket.

Please close this ticket by marking answers as helpful/correct which helped you in resolving this issue.

Regards,

Rama