on 09-04-2008 5:02 PM
How can i do it? I need add a status image into a column. Someone know how can i do it?
[http://i35.tinypic.com/svn9ua.jpg]
Sorry, i dont speak english!
Thanks
Edited by: Giancarlo Sereni on Sep 4, 2008 6:02 PM
Giancarlo,
In your table Insert GroupedColumn->TableColumn.
In your newly inserted column insert TableCelleditor of type Image.
In NWDS, switch to Package Explorer view and Add your image to Resources->src->mimes->Components->your component Name
Reload the project.
For image element set as TableCellEditor, set Source property to your image.
Alternatively, you can choose ~sapicons/s_b_acsu.gif under 'sap icons' as this resembles to your image.
Deploy and Run the project, image should be visible in new column.
You can use 'visible' property of image element to display or hide the image.
Hope this helps.
Vishwas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!!! I did it! I test your method using a url Address.
Now you can tell me how can i reference to file into the project?
The file Path is:
/LocalDevelopmentdescpar~rhm.com/src/mimes/Components/com.rhm.Descarga_Participante/tilde_OK.gif
I tried:
"wdContext.currentTABLA_PARTICIPANTESElement().setSt_estado_imagen("src/mimes/Components/com.rhm.ConsultaVerificacion/tilde_OK.gif");"
Thanks for all again!
As I said earlier..
Copy your image.
In NWDS, switch to Package Explorer view and paste your image to Resources->src->mimes->Components->your component Name
Reload the project.
For image element set as TableCellEditor set Source property: Browse->Component Image->your image.
This will work.
Vishwas.
1. With Ctrl+C, Copy your image that you want to display in column.
2. In NetWeaver Developer Studio, switch to Package Explorer view. If Package Explorer view is not visible, open from Window->Show View->Package Explorer.
3. In your project, navigate to folder Resources->src->mimes->Components->your component Name.
4. Paste the copied image in this folder with Ctrl+V.
5. Right click on your project name and 'Reload' the project.
6. In image element that you set as TableCellEditor for column -> set Source like this: Browse->Component Image->your image.
7. Deploy and run your application. Your image should be visible in column.
Hope you can follow these steps easily.
Vishwas.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.