on 01-17-2008 1:17 AM
Hi,
My table column header is "My Header Text" but i dont want it two be displayed in one line. Just want to display the header
text in two lines.
"My
Header Text".
Is this possible?
Thanks
Anjana
Hi Anjana,
I am able to see the images in the header when i tired to attach it to the header text.
i did:
- Copy a file "BtnNext.gif" into the project directory src\mimes\Components\(choose your component) - Copy here.
- In the view layout, select the Table UI and select the "Header" then set the property "imageSource" to "BtnNext.gif"
No coding or no context element binding is required if this header image is constant.
If you want to make a dynamic change of images in the header go for the context element binding to the imageSource property.
Hope you get it.
Thanks & Regards,
Kiran Chennapai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI all,
Thanks a lot for your valuable suggestions. I am able to see the image now.
I created a folder inside src-images-component-<com.mycomponentpackage.mycomponentname>
then pasted the images as .JPG in that
gave the exact same name .JPG in image source.
Once again, Thanks a lot.....
Have awarded points to all helpful answers too!!!
Regards
Anjana
Hi,
When you deploy the application the image is not getting displayed. Right click in the image in the browser and select the properties. You will get the path of the image from the Address section. Now check if image is placed at the right place or not.
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.
Hi,
Click on the header UI Element in the column of table and go to it's properties.
Put the value of imagesource as "a.bmp".
Make sure that you have copied a.bmp under src->mimes->componentsname-><componentfolder.>
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 anjana,
Go to imagesource property of header and click on browse and then click on component image.
If you did not saved your file with .png extension it will not show it.
then show all . files and select "a.bmp".
And rebuild your application, create new archive and deploy.
some time it is only build problem.
Feel free to ask.
Regards,
Praveen
Hi Anjana
Image name is CASE SENSITIVE,so give the exact name as the file name
Ex: India.jpg, mention image source property as India.jpg,but not india.jpg
I think it will support only JPG,GIF,PNG extension files. try the above one first,if that is not successful then try to change your file into JPG and do the same process
Best Regards
Chaitanya.A
HI Anjana
By copying the image file into your components folder will not create a context automatically.you need to create the context on your own. but,for your scenario there is no need of context, you can directly type your image name in the imageSource Property. ex a.PNG , no need of binding any context attribute.
If you still want to use the context to show the image try the following procedure.
Copy your image into "project/src/mimes/components/<packagename>"
1) Create a Context in a view in which you are using Table Header
2) Value Node
Name : Image
Cardidality : 1..1
3) create 2 Value Attributes
3)a ImageAlt (Calculate property - true)
3)b ImageSrc (Calculate property - true)
4)Bind the properties of Table Header
alt - Image.ImageAlt
source - Image.ImageSrc
5) in getImageSrc()
{
//according to your condition use your image
retrun "a.PNG"
}
6) in getImageAlt()
{
return "Image Not Available"
}
Best Regards
Chaitanya.A
Hi,
You can specify the width of the Column. Try setting it in pixels so that it comes that way. It can be done that way.
Let me know if it works.
Regards,
Gita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjana,
I dont think its possible to have two lines in the header text.
But, you can try this using an image(which contain 2-lines of text) instead of text.
Just give maintain the image source property for the header text and try it out.
Regards,
Kiran Chennapai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.