on 08-09-2007 8:25 AM
Hi All,
I am using "link to url" UI Element in a table column. I have mapped the column (i mean the "reference" property of "link to url" UI to a bapi node). Now, when I am populating the table, for some rows the bapi is not returning the url links. So, the column is getting disabled and not even showing the links for the rows which are getting the url link from the bapi.
Is there any way to set the mapping row wise, so that the rows which have data get enabled with the link and which do not have data will be disabled.
Also, can I make the whole table readonly, except for one column.
Please help me in this regard.
Regards,
Murthy.
Hi
If the reference is null the link will be disabled.
Even if you want some ofthe links enabled and some are disabled you can use the Enable Property of the control.
But if you use Model Node directly you can not add new attributes to the node
So Create similar Value node by Structure Binding and bind it to your table control.
create a new Attribute(enable) in the Node which is binded to your table control of type boolean.
bind it to the control.
and just loop at the value node elements and set the attribute(enabled) true or false accordingly.
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhimanyu,
I have tried that, but still it is disabled. This is because, the node is mapped to the column of the table and also the enabled(attribute) is also mapped to the column.
Is there any way to assign properties row wise, so that one row doesn't effect another.
Also, is there any way to make a table readonly, except for one column.
Regards,
Murthy.
Hi Armin,
Thank you very much. The problem is solved. 10 points for you.
Another Question.......
Can we make the table readonly, leaving just one column to select.(that is the column with link to url). Is it possible? If so, please tell me how....
Also, can you tell me the reason for the following exception.....
<b>com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: DataNodeInfo(CreateTemplateComp.Zad_Bapi_Get_Template_Details_Input.Output.T_Template_Details): structure field Ad_Height not found
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:299)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:687)
at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:238)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
... 49 more</b>
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.