on 02-05-2008 4:00 AM
Hello Friends,
I have a requirement, where i want to set image to the table column.
How can i do that?
Where can i get images like Traffic Lights? with combination of Red, Yellow and Green.
Thanks,
Learner
Hi,
When you add a column to a table, then select tableCellEditor as image UI.
Right click on Table column and select insert TableCellEditor and select image UI from the popup window.
Dont forget to set the source and alt property of the image UI.
Hope this will solve your problem.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is very simple.
Table Cell Editot - image map to a context varible, whose type is string.
From your implementation, use this code.
ITestElement testEle = null;
testEle = wdContext.nodeTest().createTestElement();
testEle.setTest1("greentraffic.gif");
testEle.setTEST2("Success");
wdContext.nodeTest().addElement(testEle);
You can get all the images from your server usr - folder. Search in usr for .gif images.
It has greentraffic.gif, redtraffic.gif, yellowtraffic.gif.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
first store your all 3 traffic images in your webdynpro projects.
(a) Go to the navigator Tab
(b) Open your project and paste the images at following path
src-mimes-components-<component_name>
or use the standard SAP icons.
(1)Add table column in the table and
(2)Add Table Cell Editor as image ui element
(3)Now create a context variable in the Table node as "source_image" of type string.
(4)Bind this attribute with the image source property of the image ui element.
Now let say you have images like 1.png, 2.png, 3.png
you can set it in following manner.
I<Node_Name>Element ele=wdContext.node<Node_Name>().createAndadd<Node_Name>Element();
ele.setSource_Image("1.png");
in the same manner you can do it for other images.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
All this images are part of ~sapIcons.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
26 | |
10 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.