Set color of inactive elements
Hii all
I have a table layout form
I have a field which called status(T ,I, O)
When i click a button the status of those elements which satisfy a condition is changed to T
and the elements with status T are disabled
now i want to change the color of the elements which are disabled
like Inactive record elements will be black foreground, r100g50b0 background.(orange)
how can i do it ??
plzz help
mandar
Loop through the records of your database block.
Check if the item is disabled (Get_item_property).
If true than change the back ground color of the record (Set_block_property(...,CURRENT_ROW_BACKGROUND_COLOR,...))
Similar Messages
-
Setting color in 3D chart series depending on values
Hi,
I have a problem with a flash chart.
Is it possible to set element color depending on element value?
I mean, I have a 3D column chart with a serie ranging from 0 to 100 possible values.
I would like to have blue color element (column) when element value is under 70 and red color element when element value is between 70 and 100.
Anyone has any suggestion?
Thank you very much
matteMateo -
In that example that I sent you, which I did not write by the way, you will notice that there is some custom XML generated by the On Demand Process. Near the beginning of that xml is a line defining the series
<series name="Salary Thresholds">The charting engine uses this name for the legend. You could either remove the name element or set the name="". I believe that would do the trick. You would also have to set the default color of the series to transparent.
I have not actually attempted this so I am suggesting this as a theory. I sincerely do hope it works.
Austin -
Getting error while setting color to table rows?
Hi All
I am trying to setting colors to table rows based on dropdown value.
lv_Dropdown vaue =1 i want to set one color, 2-another color like that.
For this I create attribute CELL_DESIGN of type WDUI_TABLE_CELL_DESIGN in node, and i bind this attribute to every column celldesign property in table. and my code in on select of dropdown.
data lr_column type ref to cl_wd_table_column.
data:obj_table type ref to cl_wd_table.
lr_column = obj_table->get_column( id = 'TABLE_WEEK1' ).
if lv_dropdown = 1.
lr_column->set_cell_design(
cl_wd_table_column=>e_cell_design-badvalue_dark ).
endif.
lr_column->bind_cell_design( path = 'SEGMENT1.CELL_DESIGN' ). ...Giving dump at r_colum = get_column( )
I follow correct code or not??
Cheers,
Venkys.Sorry Sarbjeet and baskaran i am not getting,
I want to set colors to row of a table on dropdown selection. In dropdown i ahve a code like
DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
DATA ls_segment1 TYPE wd_this->Element_segment1.
data lt_segment1 type wd_this->elements_segment1.
DATA lv_segment TYPE wd_this->Element_segment1-segment.
navigate from <CONTEXT> to <SEGMENT1> via lead selection
lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
get element via lead selection
lo_el_segment1 = lo_nd_segment1->get_element( ).
lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
get all declared attributes
lo_el_segment1->get_static_attributes(
IMPORTING
static_attributes = ls_segment1 ).
DATA : lv_dropdown type string .
lv_dropdown = ls_segment1-segment.
if lv_dropdown = 1. SET ONE COLOR TO THAT ROW
endif.
if lv_dropdown = 2. SET ONE COLOR TO THAT ROW
endif.
Now what should be the code in WDMODIFYVIEW method to set table row with colors.
Cheers,
Venkys. -
How to color the text elements in script?
how to color the text elements in script?
byeeeee
plz send the answersHi,
Please go through my blog to know how to do color printing in SAP scripts.
White Paper on 'Color Printing in SAP Scripts'
Regards,
Sireesha Ch -
Setting color codes for more than one photo at a time
Is there any way to set color codes for more than one photo at a time?
Hi John,
I will look at keywords. My issue is speed. Right now I am culling and editing an event shoot that spanned a week with 35 separate events and more than 5000 images. So I use the fastest most convenient method I can and it still takes a long time to have a completed and final shoot. On this shoot I will end up with a final set of around 1500 images. Right now I am finishing processing a show that will hang in the Deutsches Amerikanish Zentrum in Stuttgart.
As I am sure you are aware by now, having seen enough of my inane questions that over the last two years or since Lightroom version 1.xx if I could not figure out how to do something I skipped it. So many things in Lightroom are buried and unless you have a mind like a steel trap (and think that some of you guys in the forum do) locating how to do something is not obvious.
For example, I only learned (in the last hour) that I could assign colors as a group of selections by using Shift + number. I found this in a side head in Martin Evenings Lightroom book. I still do not know how to find a way to display the color filter "selection" set in Library mode. Is there a way?
To top it off, Stuttgart Media University asked me if I would add a Lightroom module to my schedule this year. Now I have a compelling reason to learn all those missing pieces that I have created workarounds for. Hence the number of posts you have been seeing from me over the past few of weeks.
I tell my class that there are no such things as stupid questions, only questions. Now I am practicing what I have been preaching for the last gazillion years. Guys like you have been great.
My workflow is
1. I first separate all images by event. I do that at the time of import.
2. I do a fast pass rejecting all the obviously bad images
3. I do a second pass grouping the images by sub-group (speeches, people talking, performances, etc.) This is where I run out of selection methods and your key-wording could work but it would probably take too much time to establish a keyword set for a single event. Where I have more than five subgroups I set up different collection sets with one collection for each sub group. However I would like to keep a single event in one collection.
4. I then select the images to be used by color code.
5. Next I process the final images (crop develop etc) by collection.
6. Last I output the set according to client requirement.
If you have a better workflow, I am all ears.
By the way, what is your photo specialty and where are you located?
Jim -
Unable to set Labelfield for child element in List
Hi All,
Below is code I am trying to execute
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:local="*" height="500" creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{list.dataProvider=arr;
]]>
</mx:Script>
<mx:List variableRowHeight="true" wordWrap="
true" id="list" labelField="
chidren.lastName" /></mx:Application>
I basically want to access the children.lastName on my List. Please let me know how exactly can I do it.
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
To set color for barchart having datetime column
Hi,
I have a datetime column in the XSD,
I was trying to set colors for the barchart through, chart expert --> colorhighlight ,here in colorhighlight when i click on new I am getting a dialogue box asking to enter datetime in M:D:YYYY H:MM:SS TT format. why is this dialogue displayed ? How to overcome this.
Regards,
Deepa V
Hi Deepa
Please inform us with the following information:
1: What is the version of Crysatl Reports that you are using?
2: What is the Chart Type that you are uisng?
3: Where are you placing this chart in the report?
Regards
Ashwini Yadav
How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.
Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
tell application "Adobe InDesign CC"
set newPreset to make new PDF export preset with properties ¬
{name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
tell newPreset to set PDF color space to unchanged color space
end tell
Set color for TableCellDesign for a table in readmode.
My Requirement is dynamic assiging the Tabcelldesgin color for table column, but Table in readonly = false.
is there any possiblity of assigining the values dunamically.
Thanks in advance
Yes, i have assigned to Table column to set color dynamically for different conditions.
But color is visible, when table in read mode.
My requirement is need to set color, when table in readonly = false.
Please can any one have the solution for this>
Where is the "set" method for this ELEMENT?
Hi
I'm trying to understand the relationship between the DTD and XJS, and the JAXB generated code.
Consider the example DTD, XJS, and generated source code (i.e., "value07.java") for ELEMENT value07, below ...
QUESTION#1: Why is there no "set" method generated for ELEMENT "value07a" within the generated value07.java ???
QUESTION#2: How to I code the DTD/XJS in order to force the generation of a "set" method in value07.java???.
-- I want to be able to set a new value for ELEMENT "value07a" in order to generate an XML document containing the new value!!
(NOTE: the reason that ELEMENT value07 (as well as other ELEMENTs) has only a single subelement, is in order to satisfy the XSLT definition in a preexisting application.)
* * * this is the DTD* * *
<!ELEMENT request (value01,value02,value03,value04,value05?,value06?,value07?,value08?,value09?,value10?,value11?,value12?,value13?,value14?,value15?,value16?,value17?,value18?)>
<!ELEMENT value01 (#PCDATA)>
<!ELEMENT value02 (#PCDATA)>
<!ELEMENT value03 (#PCDATA)>
<!ELEMENT value04 (value04a, value04b?)>
<!ELEMENT value04a (#PCDATA)>
<!ELEMENT value04b (#PCDATA)>
<!ELEMENT value05 (value05a, value05b?)>
<!ELEMENT value05a (#PCDATA)>
<!ELEMENT value05b (#PCDATA)>
<!ELEMENT value06 (value06a+)>
<!ELEMENT value06a (#PCDATA)>
<!ELEMENT value07 (value07a+)>
<!ELEMENT value07a (#PCDATA)>
<!ELEMENT value08 (value08a+)>
<!ELEMENT value08a (#PCDATA)>
<!ELEMENT value09 (value09a+)>
<!ELEMENT value09a (#PCDATA)>
<!ELEMENT value10 (value10a+)>
<!ELEMENT value10a (#PCDATA)>
<!ELEMENT value11 (value11a+)>
<!ELEMENT value11a (#PCDATA)>
<!ELEMENT value12 (value12a+)>
<!ELEMENT value12a (#PCDATA)>
<!ELEMENT value13 (value13a+)>
<!ELEMENT value13a (#PCDATA)>
<!ELEMENT value14 (value14a+)>
<!ELEMENT value14a (#PCDATA)>
<!ELEMENT value15 (value15a+)>
<!ELEMENT value15a (#PCDATA)>
<!ELEMENT value16 (value16a+)>
<!ELEMENT value16a (#PCDATA)>
<!ELEMENT value17 (value17a+)>
<!ELEMENT value17a (#PCDATA)>
<!ELEMENT value18 (value18a+)>
<!ELEMENT value18a (#PCDATA)>
* * * this is the XJS * * *
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE xml-java-binding-schema SYSTEM "http://java.sun.com/dtd/jaxb/1.0-ea/xjs.dtd">
<xml-java-binding-schema version="1.0-ea">
<options package="testSourceCode"/>
<element name="request" type="class" root="true"/>
<element name="value01" type="value"/>
<element name="value02" type="value"/>
<element name="value03" type="value"/>
<element name="value04" type="class">
<content>
<element-ref name="value04a" />
<element-ref name="value04b" />
</content>
</element>
<element name="value05" type="class">
<content>
<element-ref name="value05a" />
<element-ref name="value05b" />
</content>
</element>
<element name="value06" type="class">
<content>
<element-ref name="value06a" />
</content>
</element>
<element name="value07" type="class">
<content>
<element-ref name="value07a" />
</content>
</element>
<element name="value08" type="class">
<content>
<element-ref name="value08a" />
</content>
</element>
<element name="value09" type="class">
<content>
<element-ref name="value09a" />
</content>
</element>
<element name="value10" type="class">
<content>
<element-ref name="value10a" />
</content>
</element>
<element name="value11" type="class">
<content>
<element-ref name="value11a" />
</content>
</element>
<element name="value12" type="class">
<content>
<element-ref name="value12a" />
</content>
</element>
<element name="value13" type="class">
<content>
<element-ref name="value13a" />
</content>
</element>
<element name="value14" type="class">
<content>
<element-ref name="value14a" />
</content>
</element>
<element name="value15" type="class">
<content>
<element-ref name="value15a" />
</content>
</element>
<element name="value16" type="class">
<content>
<element-ref name="value16a" />
</content>
</element>
<element name="value17" type="class">
<content>
<element-ref name="value17a" />
</content>
</element>
<element name="value18" type="class">
<content>
<element-ref name="value18a" />
</content>
</element>
</xml-java-binding-schema>
* * * generated sourcecode for ELEMENT "value07"...i.e., "value07.java" * * *
package testSourceCode;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.bind.ConversionException;
import javax.xml.bind.Dispatcher;
import javax.xml.bind.Element;
import javax.xml.bind.InvalidAttributeException;
import javax.xml.bind.InvalidContentObjectException;
import javax.xml.bind.LocalValidationException;
import javax.xml.bind.MarshallableObject;
import javax.xml.bind.Marshaller;
import javax.xml.bind.MissingContentException;
import javax.xml.bind.PredicatedLists;
import javax.xml.bind.PredicatedLists.Predicate;
import javax.xml.bind.StructureValidationException;
import javax.xml.bind.UnmarshalException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.Validator;
import javax.xml.marshal.XMLScanner;
import javax.xml.marshal.XMLWriter;
public class Value07
extends MarshallableObject
implements Element
private List _Value07A = PredicatedLists.createInvalidating(this, new Value07APredicate(), new ArrayList());
private PredicatedLists.Predicate pred_Value07A = new Value07APredicate();
public List getValue07A() {
return _Value07A;
public void deleteValue07A() {
_Value07A = null;
invalidate();
public void emptyValue07A() {
Value07A = PredicatedLists.createInvalidating(this, predValue07A, new ArrayList());
public void validateThis()
throws LocalValidationException
if (_Value07A == null) {
throw new MissingContentException("value07a");
public void validate(Validator v)
throws StructureValidationException
public void marshal(Marshaller m)
throws IOException
XMLWriter w = m.writer();
w.start("value07");
for (Iterator i = _Value07A.iterator(); i.hasNext(); ) {
w.leaf("value07a", ((String) i.next()).toString());
w.end("value07");
public void unmarshal(Unmarshaller u)
throws UnmarshalException
XMLScanner xs = u.scanner();
Validator v = u.validator();
xs.takeStart("value07");
while (xs.atAttribute()) {
String an = xs.takeAttributeName();
throw new InvalidAttributeException(an);
List l = new ArrayList();
while (xs.atStart()) {
if (xs.atStart("value07a")) {
xs.takeStart("value07a");
String s;
if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
s = xs.takeChars(XMLScanner.WS_COLLAPSE);
} else {
s = "";
String uf;
try {
uf = String.valueOf(s);
} catch (Exception x) {
throw new ConversionException("value07a", x);
l.add(uf);
xs.takeEnd("value07a");
} else {
break;
Value07A = PredicatedLists.createInvalidating(this, predValue07A, l);
xs.takeEnd("value07");
public static Value07 unmarshal(InputStream in)
throws UnmarshalException
return unmarshal(XMLScanner.open(in));
public static Value07 unmarshal(XMLScanner xs)
throws UnmarshalException
return unmarshal(xs, newDispatcher());
public static Value07 unmarshal(XMLScanner xs, Dispatcher d)
throws UnmarshalException
return ((Value07) d.unmarshal(xs, (Value07 .class)));
public boolean equals(Object ob) {
if (this == ob) {
return true;
if (!(ob instanceof Value07)) {
return false;
Value07 tob = ((Value07) ob);
if (_Value07A!= null) {
if (tob._Value07A == null) {
return false;
if (!_Value07A.equals(tob._Value07A)) {
return false;
} else {
if (tob._Value07A!= null) {
return false;
return true;
public int hashCode() {
int h = 0;
h = ((127 *h)+((_Value07A!= null)?_Value07A.hashCode(): 0));
return h;
public String toString() {
StringBuffer sb = new StringBuffer("<<value07");
if (_Value07A!= null) {
sb.append(" value07a=");
sb.append(_Value07A.toString());
sb.append(">>");
return sb.toString();
public static Dispatcher newDispatcher() {
return Request.newDispatcher();
private static class Value07APredicate
implements PredicatedLists.Predicate
public void check(Object ob) {
if (!(ob instanceof String)) {
throw new InvalidContentObjectException(ob, (String.class));
I discovered something similar this morning...i.e., for
<element name="value07" type="class">
<content>
<element-ref name="value07a" />
</content>
</element>
-- I did something like this...
Value7 v7 = new Value7();
for (int i=0; i< Value7_input_array.length; i++)
((List)(v7.getValue07A())).add(Value7_input_array);
Thanks for responding, barry!
How to set color of our specified JTable's row
i need to set color of our specified JTable's row.so send the coddings of that part.
i need to set color of our specified JTable's row.so
send the coddings of that part.I think you misunderstand how this forum works...
If you have a problem, you post your problem here with example code which demonstrates said problem...
The people here then attempt to help you if they want to.
You do not post demands for code examples
How to set a field inactive at selection screen?
Hello, here is the definition of my selection screen.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_typcmd FOR EKKO-BSART DEFAULT text-003, "Type de commande
s_grpe FOR EKPO-MATKL ,
s_ebeln FOR EKPO-EBELN. "Numéro de commande
SELECTION-SCREEN END OF BLOCK b1.
I want to set s_grpe to inactive.thx
Static
Add the NO-DISPLAY option.
PARAMETERS: pxxxx TYPE xxxx NO-DISPLAY.
The parameter will only be reachable by SUBMIT WITH.
Dynamically
assign a MODIF ID xxx to the parameter, and in PBO (AT SELECTION-SCREEN OUTPUT) do a
PARAMETER param TYPE xxxx MODIF ID XXX.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'XXX'..
IF <test>.
screen-active = '0'.
ELSE.
screen-active = '1'.
ENDIF.
So you can choice when to display or not the parameter.
Regards
How to set color for a tabstrip in BSP
Hello all,
Can anyone please let me know how to set color for a tabstripn in BSP?
I am using the below syntax but it still gives me the default color.
<htmlb:content design="design2003" >
<htmlb:page title="test " >
<htmlb:form>
<htmlb:tabStrip id = "TabStrip"
bodyHeight = "200"
bodyColor = "red"
width = "700" >
</htmlb:tabStrip>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Thanks,
Sandeep
Hi...
The below code is working fine for me...
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="stg " >
<htmlb:form>
<htmlb:tabStrip width = "430"
bodyColor = "rgb(88,5,64)"
id = "t1"
bodyHeight = "112" >
<htmlb:tabStripItem id = "t1"
index = "1"
title = "Sales"
tooltip = "My Tooltip for Tab 1" >
<htmlb:textView text="Tab N 1" />
<htmlb:tree id = "treeReports"
showTitle = "true"
table2 = "<%= mt_nodes %>"
title = "Menu"
width = "100%" />
</htmlb:tabStripItem>
<htmlb:tabStripItem id = "t2"
index = "2"
title = "Production"
tooltip = "My Tooltip for Tab 2" >
<htmlb:textView text="Tab N 2" />
</htmlb:tabStripItem>
</htmlb:tabStrip>
</htmlb:form>
</htmlb:page>
</htmlb:content>
How to set focus on UI Element
Hi All,
I am using the below code to set the focus on the first row of the table given in the link [How to set focus at UI element ? ] on enter of an event.
data: lr_elem type ref to if_wd_view_element.
lr_elem = view->get_element( <ID of the Link to Action field>).
if lr_elem is bound.
view->request_focus_on_view_elem( lr_elem ).
endif.
I am getting "Cannot use NULL reference as object error at view".
Can you please tell me how to get the reference of the "view".
Thanks
Praveen
>
praveenkumar_81 wrote:
> Hi All,
>
> I am using the below code to set the focus on the first row of the table given in the link [How to set focus at UI element ? ] on enter of an event.
>
>
data: lr_elem type ref to if_wd_view_element.
> lr_elem = view->get_element( <ID of the Link to Action field>).
>
> if lr_elem is bound.
> view->request_focus_on_view_elem( lr_elem ).
> endif.
>
> I am getting "Cannot use NULL reference as object error at view".
>
> Can you please tell me how to get the reference of the "view".
>
> Thanks
> Praveen
Hallo Praveen,
have you controlled that id of the Linktoaction ? there you made error.
See it in the ViewElement designer .
should be something like this
lr_elem = view->get_element( 'LTA_name ' ).
How to set focus on an element inside a datatable on load
How to set focus on an element inside a datatable on load
Check out https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works and
Decompiling ADF Binaries: Checking for dirty data
Timo
Maybe you are looking for
-
Help with Moodle on Mac OS X server - PhP issue
I am a server newbie. I am setting up a server on a mac for the primary purpose of running a website for my students to use. I have a hosted site now, but the version of php they offer is not high enough to run moodle. I want to install moodle 2.4
-
Howdy, I've got an objects question and its driving me crazy. Basically I have two methods in a class. Method 1 passes values to method 2. Method 2 does some calculations and then passes the values to method 1. Well, that's how things are supposed to
-
Left justify images in slideshow
Is there a way to have the photos all line up on the left instead of centered in a slideshow?
-
hi gurus, we did the GR AFTER PO BUT THE PRICE IS 40 USD in po, DISPLAYING ZERO AMOUNT IN GR Please give me the solution for this problem Regards SAP MM
-
We have not been able to use the Manual Duplex Feature of our printer for quite some time. In the past we simply saw, in the Print dialog box, a check box option next to 'duplex'. This was available when using the Mac Text Editor, or our Microsoft