How to change colour of the Cell in a table
Hi,
Could you please let me know how to change the coluor of the cell at table.
here i m having a column called "STATUS". i m getting data from backend and filling this column with two values(success/failed).
when i get success, the cell should be in green color, when it is failed cell color should be red.
i followd below:
created a context attribute "color" of type
com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign
i binded this with the column proerty "cellDesign".
when i executed bapi i sohlud get different colors according to output.
here is my execute function
wdContext.currentZemp_Compare_InputElement().modelObject().execute();
wdContext.currentUploadElement().setStatus(wdContext.currentMessageElement().getSuccess());
if(wdContext.currentMessageElement().getSuccess().length()>6)
wdContext.currentContextElement().setColor(WDTableCellDesign.GOODVALUE_LIGHT);
else
wdContext.currentContextElement().setColor(WDTableCellDesign.BADVALUE_LIGHT);
but when i get value failed it filling red for all other cells in that column
when i get value success, cells all r filling with green.
how can i get only perticual cell colur should b green/red.
plz try to solve this problem.
wer i need to do changes?
thanks in advance
venkat
Hi,
For your scenario, you need to have two cellVariant as TableStandardCell (say successTSC & failTSC). Add tableCellEditors to these 2 TableStandardCell as you like. Mark there variantKey property as var1 & var2 respectively.
Do change the cellDesign as you like the color for the TableStandardCell.
Bind an attribute selectedVariant to your column selectedCellVariant property.
Now in wdDoModify you can write:
for(int i=0;i<wdContext.nodeCountries().size();i++){
if(wdContext.nodeCountries().getCountriesElementAt(i).getStatus().equals("SUCC")){
// Here node countries is the datasource of your table.
wdContext.nodeCountries().getCountriesElementAt(i).setVariantKey("var1");
} else if(wdContext.nodeCountries().getCountriesElementAt(i).getStatus().equals("FAIL")){
wdContext.nodeCountries().getCountriesElementAt(i).setVariantKey("var2");
The article below will definetly help you in your requirement.
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961]
Hope this will surely solve your problem.
thanks & regards,
Manoj
Similar Messages
-
How to change colours of the document?
Hi,
I am working on a form that was build from Microsoft Doc and then scanned onto Acrobat Pro to create the form fields etc.
Mananagement just told me that they did not like the colour of the document and want it changed to another colour. (from Blue to Green).
Is there a way where I could 'edit' the colour change using Acrobat Pro ?
Unfortunately, I do not have Photoshop nor do I know how to use it....
your help is much appreciated!Believe it or not since the form was created from a scan (a Picture) its uneditiable
Your going to have to go back into word recreate the document as a document
Save as an adobe quality PDF from print menu (print menu > Hold PDF button down > Choose Adobe PDF or Adobe quality PDF.)
Save the original.
Open Acrobat and add the Fillout fields. Leave background White.
go to OfficeMax,Office Depot, Staples, or any office suppy and a couple of packs of the proper color blue paper
Load up colored paper in Printer and print the PDF.
It will save you a lot of head ache's
If its to be filled out by hand You don't even need Acrobat.
just create the form use a series of Tabs and format the tabs with solid leaders (Format Menu Tabs)
Type one space after the last word before a tab that is to be a field
Format that tab for a solid leader. example "________"
Fields that go to right edge of paper you shoul use it and set it to 7.5" if your using lettersized paper.
If you need checkboxes make sure in Word 2011 click developer Tab and you can insert click boxes
When finished save Document.
Then save as a PDF.
In acrobat follow first set of directions. except you can make the check box clickable field when clicked on with insert a chck or an x.
Hope this helps -
How do you change/adjust border width for all the cells in a table created in Pages?
How do you change/adjust border width for all the cells in a table created in Pages?
Note- I am trying to figure out how to create and format tables in the latest version of the Pages app on an iPad air (iOS 8.1.1.1) . Creating tables, adding or removing borders for individual/all cells in a table seems straight forward. However the default border style seems to be a heavy black line. How do I change this?
I found the option add or remove borders for all/ individual cells in a table, however I can't find any option within style/format dialogue screens for changing colour or line thickness for table cells. Likewise I can't find any clear instructions on how to do this in apple help pages or support website
Btw- I'm assuming it is possible to customize/adjust the colour & thickness of selected lines in a table created in this app (it's fairly easy to do this word processing apps like MS Word) please let me know if this is not actually possible in PagesThey know perfectly well what they took out of Pages '09.
Well over 90 features.
Do you think you posting feedback is going to remind them of what they did?
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Pages '09 should still be in your Applications/iWork folder.
Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
Peter -
Changing colour based on cells for ALV in Web Dynpro ABAP
Hi,
I have a requirement where I need to change the font color for some cells of ALV in Web Dynpro ABAP. I am able to change the font color for whole row or whole column but need to know how to change it based on cells.
My output should be something like the picture attached to this discussion. The coloumns/cells where I need the font colour can change for different rows, based on some internal condition.
Please let me know how to achieve this...... Thank you.
- Divya PosanpallyHi Divya,
Your requirement can be achieved as below
Create an attribute for each column of alv i.e. COLOR_F1, COLOR_F2, COLOR_F3...... COLOR_F10 of type WDY_UIE_LIBRARY_ENUM_TYPE in the context node which holds the color value
Now while configuring ALV, set the field name of semantic color for each column as below
data lv_color_fld_name type string.
data lo_text_view type ref to cl_salv_wd_uie_text_view.
loop at lt_columns into ls_column.
concatenate 'COLOR' ls_column-id into lv_color_fld_name separated by '_'.
lo_text_view ?= ls_column-r_column->get_cell_editor( ).
if lo_text_view is bound.
lo_text_view->SET_SEMANTIC_COLOR_FIELDNAME( value = lv_color_fld_name ).
endif.
endloop.
Set the color based on the condition
loop at lt_data into ls_data.
if ..... "your condition here.
ls_data-color_f1 = cl_wd_text_view=>e_semantic_color-NEGATIVE.
ls_data-color_f2 = cl_wd_text_view=>e_semantic_color-POSITIVE.
elseif...... " another condition
endif.
endloop.
Note: You can optimize the code as per your requirement
Hope this helps you.
Regards,
Rama -
Changing Data in the Cells in webanalysis
Hi
Iam trying to change Data in the cells,in my report for the combination's which i didn't have data it is showing as (-99).
according to my functionality '-99' means 'NO',my USER is asking instead of showing -99 it has to display 'NO'.
I tried to change the display from -99 to 'NO' through "CONDITIONAL FORMATTING" but it was not happening can anybody plz gave me the solution how to change the display.Hi,
When you execute your report, You press right button in your mouse over the column. Later, you select Analyis Tools->Analysis Tool Manager.
A box appear on your screen and you press double click in the column format (that you need) , another window appears and you press a button called Data Format.
A window appear and yo find the label "Substitution" (Or something like that) and you select Text and put the text that you need.
I don't know if You'll understand... but I can send you the images with steps.
PD: My options are In spanish and maybe the configuration is a little different in English.
Regards. -
How to change Apple ID in cell
Hello,
I have a problem. Somebody broke into my Apple ID and changed e-mail and pass, so now I can't get in.
I made new Apple ID, but I don't know, how to change it in my cell, primary in iCloud setup.
Can you help me?
Thanks
Best RegardsIf the old ID is your ID, and if your new ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
How to change password in the default realm programtically?
Hello,
Does any one have experience in how to change password in the default realm programtically in WebLogic 8.1?
Thanks.
Bimal PatelHi again;
Please also check previous thread about same question:
Forum Password
Change password on forum
How to change the password of the site/forum ?
Re: change password for this forum
I belive you can find answer in those thread more easly ;)
Regard
Helios -
How to change color in the title line?
Hi experts, How to change color in the title line, i show an image for explained better
!http://img688.imageshack.us/img688/9259/imagenjar.png!
thanksin Views.css file
file below object.and change border-color as you desired to reflect.
.TitleTable {
font-family: arial, helvetica, sans-serif;
border-width: 0 0 4px 0;
border-style: solid;
border-color: #6666cc; ----> change here.
hope this helps !
-Niranjan K -
How can I turn off the cell service on my phone while traveling out of the country?
How can I turn off the cell service on my phone while traveling out of the country?
Airplane Mode
-
How to change language of the server monitor ?
hi all,
How to change language of the server monitor ? i got it in japanese and would like to turn it into English.
Thx for your help,We use japanese strings only when your server locale has "jp": FindNoCase("Japan", GetLocale()) NEQ 0. So you may not be able to individually change server monitor's flash client, but there are two ways to change it back to english on server level
1) Check your server locale and change it to anything but japanese.
2) Rename smresource_en.xml to smresource_jp.xml in CFIDE\administrator\monitor (take a back up).
Thanks,
Chandan Kumar -
How to change size of the fonts in report
Hello:
How to change size of the fonts in report for when I print it?
Thank'sHi..,
You cannot do that with REPORTS.., With scripts or smartforms u can do that !!
plz do remember to close the thread, when your problem is solved !!
reward if it helps u..
sai ramesh -
My Reader11.0.07 is showing a dark grey background today. Why? How to change back to the original white.
I have no idea what you are asking; can you post a screenshot of what you see: https://forums.adobe.com/thread/1070933
-
I wanted to purchase an item on my iPad and I was redirected to the US store, now I don't know how to change back to the Tanzania store, which is the store my account is linked to.how do I change back?
Change your country on iPhone, iPad, or iPod touch
Tap iTunes Store, App Store, or iBooks Store.
At the bottom of the Featured page, tap Sign In.
If you're already signed in, skip to step 5.
Tap Use Existing Apple ID.
Enter your Apple ID and password and tap OK.
Tap your Apple ID.
Tap View Apple ID or View Account.
Tap Country/Region.
Tap Change Country or Region.
Tap the Store menu and tap your country.
Tap Next.
Review the Terms and Conditions and Apple Privacy Policy.
Tap Agree if you agree to the terms and conditions.
In the prompt that appears, tap Agree.
Select a payment method and enter your payment information.
Enter your billing address and tap Next.
http://support.apple.com/kb/ht6119 -
How can I make that the cursor of a table ...
Hello,
how can I make that the cursor of a table (on the frontpanel) go to the starting position? I have placed a table that give back the number of the row if I doubleclick a row on the frontpanel, but when I restart the vi the cursor of the table is on this position. If I have many informations in the table and after restarting there are just one or two, I can`t see this information without scrolling to the top of the table. I want that the cursor (that I see) is at the first row. How can I make it?
thankyou
SchwedeHello,
Sorry, I forgot to attach it in the previous post.
Regards,
Paulo
Attachments:
EditPos.vi 16 KB -
can you write vertically in the cell of a table, can you write vertical
If you don't understand that my response was a smiling echo of the stammering question I really can't help you.
I guess that my 36725 points prove that I may be helpful. It seems that at this time you don't really know what are helpful answers.
Using spreadsheets since more than twenty years, I know that storing something in an auxiliary object floating upon a cell isn't a serious workaround to the asked question. We may be sure that more or less soon, the object will no longer be were it was supposed to be.
At this time, if we want to put a vertical text in a cell it's safer to insert a character, a linefeed, a character, a linefeed … which, one more time is echoing the stammering question.
Yvan KOENIG (VALLAURIS, France) vendredi 29 avril 2011 14:37:08
Please :
Search for questions similar to your own before submitting them to the community
Maybe you are looking for
-
How to? change to different paragraph style only after column/frame break
I'm all over paragraph styles and next styles option, all good, sweet. Love em but... But when I'm flowing in a long document with multiple text frames on different pages I would like the first paragraph in each of those text frames to be paragraphy
-
IE 11 not able to add Search Provider
This is brand new Windows 8.1 install, freshly installed O365 and all critical updates installed. So I click on the gear in IE, select Manage add-ons. This opens the Manage Add-ons window, I click on Search providers, it only shows Bing. I click on F
-
After the upgrade, my Apple TV pretends to connect the HDMI to a USB connector...
-
Networking with Windows XP on a Mac
I have parallels on my MacBook. I amtrying to set up my network connection thru XP. I have done all the things that I need to do in order to connect to the network, but it still won't connect. Is there something that I have to set up in my MacBook se
-
Can only bring some CSV's online on one specific host
Hi. I have a three node Hyper-V (2012 R2) cluster. It has 12 CSV's connected. Two of the CSV's can only be brought online on one of the hosts. It seems, they are locked to that host in some way. The end result is that when I take that host down for m