How to show a negative value in diffenet color in af:inputText inlineStyle

Hi Friends,
i am facing a problem with <af:inputText /> in Jheadstart.
i want to show a value in red color, if that value get's into the negative value in <af:inputText />.
I was tyring with following code using inlineStyle attribute in af:inputText />
inlineStyle="color:#{ (bindings.EmployeesAmount.inputValue) < 0 ? 'red':'black'}"
it's not working....
is there any other solution other then inlineStyle attribute, please suggest me.
can you please help in solving this issue.
Thanks in advance,
Rahul

hi,
This is not jheadstart problem.
Your code should be like this:
inlineStyle="#{bindings.EmployeesAmount.inputValue lt 0 ? (' color:red;'):(' color:black; ')}"
I suggest to use this:
inlineStyle="#{row.EmployeesAmount lt 0 ? (' color:red;'):(' color:black; ')}"

Similar Messages

  • How to show property bag values of site collection in web part on landing page in sharepoint online?

    How to show property bag values of site collection in web part on landing page in sharepoint online - office 365?

    You can use JavaScript Client object model to read the property bag values. Example:
    function getWebProperty() {
    var ctx = new SP.ClientContext.get_current();
    var web = ctx.get_site().get_rootWeb();
    this.props =  web.get_allProperties();
    ctx.load(web);
    ctx.load(this.props); //need to load the properties explicitly
    ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
    function gotProperty() {
        var myPropBag = this.props;
        alert(myPropBag.get_fieldValues()["allowdesigner"]); //returns the value of the key allowdesigner
    function failedGettingProperty(args, sender)
         //handle errors here
    Source:
    http://sharepoint.stackexchange.com/questions/37198/grab-a-specific-property-bag-using-ecma-script
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How to show register attribute value in my register users report in FIM 2010 R2

    Hi,
    How to show register attribute value in my register users report in FIM 2010 R2?
    Please suggest on this.
    Regards
    Anil Kumar

    hello,
    the only way I know is manage the attribute descriptiona s a property and then enable the pivot table option "Show properties in tooltip".
    But I'm interested in what you mean with  "using
    "OLAP pivot table extension" is an option". How this works?
    Thanks
    bye
    Norman

  • HOW TO SHOW A DEFAULT VALUE IN AN UPDATABLE TABULAR FORM

    I have an updatable form that has three columns:
    Employee Name (display only)
    Reporting Name (select list)
    Element Type ID (hidden and updatable)
    When the user select a value in the reporting name column it updates the
    element type id with the appropriate value. But when they look at the select list
    it has the select list values as well as the selected value in the list. How do I
    overcome this. My example is setup and ready to be reviewed at http://apex.oracle.com/pls/otn/f?p=32409:1
    Thank you
    Forrest
    p.s. weather in Anchorage Alaska Sunny and 45 degrees!

    Woody,
    I'm a little confused (not uncommon), as I don't understand why you have a hidden column to hold the element_type_id value.
    It looks like you're doing a simple SELECT LIST/LOV that shows the display value and stores the code value. I guess I don't understand why you need the hidden column. Shouldn't the code value end up in the APEX_ITEM array, so you can save it to your table?
    I would think you'd have a hidden value to hold the primary key for your table in one APEX_ITEM array, and the element_type_id column is the second parameter of the APEX_ITEM.SELECT_LIST() call. Then your manual update procedure saves that value to the right record, using the primary key from the hidden column?
    What am I missing here?
    Good luck,
    Stew

  • How to show the Description value in af:inputListOfValues

    Hi all,
    I have created LOV using the af:inputListOfValues .In that when the user press the search icon near the LOV field it is displaying the Description of the country.after the user selects the value it is showing the code in the main page.how to show description in the main page also.but it should store the code in the database.
    Thanks in advance
    C.Karukkuvel

    Hi,
    There are a couple of ways to do this. If you search the forum and blogs you can find them.
    A nice way to implement this is here http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html
    Gabriel.

  • How to show the Characteristics Values of Batch appear upon Search?

    Dear all
    We are implementing SAP for Wood Industry.
    Facts:
    1. There are 3 batches created for the raw material.
    2. Each batch has the characteristics of Thickness, Width, Length with characteristics value  24mm, 140mm, 1530mm
    3. 1 Production Order has been create to produce raw material (RM) to semifinised goods (SM).
    Quetions:
    During GI to Produciton Order using MVT 261, when we try to select batches from the Item Detail level, the pop up search windows only show us the existing 3 Batch Numbers available for the RM, it does not show the characteristics value "thickness, Width, length" that describe each batch.
    And this has caused serious problem to use during their selection of batch as batch number will only make more sense to them if it is shown together with the characteristics value.
    Apart of opening additional screen to show the batch information of each batch, is there any config I need to do to solve this situation?
    Mark will be given handsomely.
    Thanks.

    Hi,
    it is possible to use another search help (Tab Strip: Search for batches via classes, when you press F4 in the batch field).
    Here you have to enter the class number first.
    Then you get a list of all characteristics in this class, and you can narrow your selection, by setting values for specific characteristics.
    After that, press F8 (Find in initial class)
    You will get a list of batches, assigned to the selected class, and fullfilling your selection criteria.
    Now you can display either the characteristics of a single batch, or you can define a layout for the ALV-Table control, with all characteristics, which you want to see in the overview.
    Another possibility is, to open up the 'batch information cockpit' (transaction BMBC) in a separate mode. Here you can see the characteristics ( if you define a selection class on tab strip 'Characteristics' ), e.g. in combination with stock information, which might be relevant as well.
    Here you can download some screenshots (link wiil be valid for 80 days)
    Link: [https://sapmats-de.sap-ag.de/download/download.cgi?id=B7BKFOTZKKGJ73YA86VZISCMALG8DTQRTX1YX02892OT1D308Z]
    Kind Regards
    Michael Franz
    IBU Mil Products & Mining
    SAP AG

  • How to show Grand total values in Chart view....

    Hi,
    I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
    column Metric1 Metric2
    AAA 10 20
    BBB 30 15
    CCC 20 15
    TOTAL 60 50
    so here i need the values 60 and 50 also also to be displayed in a line graph
    cheers

    Pretty simple to achieve :)
    In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
    Hope answered

  • How to display only Negative values in the report.....

    Hi,
    I want to display only negative values for one particular column.
    Any suggestions ?
    Thanks,
    Jeetu

    Hi,
    define a condition for all characteristics and for specially the keyfigure. Set it to < 0. That should do the trick.
    regards
    Siggi

  • Set Negative values in red color

    Hi, i want to set the negative values in the table in the red color.I have created the table dynamically.So i have created a context node called "ColorData" and in that i created a context attribute "grossSemantic". I have set the type of this attribute as "com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor" .And i have written the below code.
    But there is no effect at all. Where am i going wrong? Please suggest.
    String color = "ColorData";
    IPrivate<ViewName>.IColorDataNode colorNode = wdContext.nodeColorData();
    IPrivate<ViewName>.IColorDataElement colorElem = colorNode.createColorDataElement();
    for(int flag = 0; flag < wdContext.node<BapiNodeName>.size(); flag++){
    IPrivate<ViewName>.I<BapiNodeElement> tableElem = bapiNode.get<BapiElement>(flag);
    if(tableElem.get<ColumnName()>.signum() == -1){
    editor.bindDesign(color "." "grossSemantic");
    colorElem.setGrossSemantic(WDTextViewSemanticColor.NEGATIVE);
    column.setTableCellEditor(editor);
    Regards,
    Padmalatha.K

    Say the table data source is named "Rows".
    Add a calculated context attribute "color" of type TextViewSemanticColor to node "Rows" (or an 1:1 subnode if needed).
    Bind the table cell editor (TextView) property "semanticColor" to attribute "color".
    Implement calculated attribute as
    WDTextViewSemanticColor getRowsColor(..., IRowsElement element)
      return element.getSign() == -1 : WDTextViewSemanticColor.NEGATIVE : WDTextViewSemanticColor.STANDARD; 
    Armin

  • How to use a colum value as background color in a report template

    I need to use a colum value as background color of report template
    es.
    <td style="padding:0px;border-bottom:1px #cccc99 solid;border-right:1px #cccc99 solid;font-size:8pt;background:??????;" #ALIGNMENT#>#COLUMN_VALUE# </td>
    I have a column named COLORE_VAL1
    I try with:
    <td style="padding:0px;border-bottom:1px #cccc99 solid;border-right:1px #cccc99 solid;font-size:8pt;background:#COLORE_VAL1#;" #ALIGNMENT#>#COLUMN_VALUE# </td>
    but the value remain #COLORE_VAL1#.
    Please, help me.
    Barbara

    You need to change the processing type to customer exit of that variable.
    Now in i_step = 1 write the following code:
    Data:dt LIKE sy-datum,
          zper  TYPE /bi0/oifiscper,
          YR type /bi0/oicalyear,
          per LIKE t009b-poper.
    IF i_step = 1.
    WHEN 'X_FSCPRC' .---User input variable based on cmod.
          dt = sy-datum.
          CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
            EXPORTING
              i_date         = dt
              i_periv        = 'M3'---Give the fiscal year variant                             according to your system
            IMPORTING
              e_buper        = per
              e_gjahr        = yr
            EXCEPTIONS
              input_false    = 1
              t009_notfound  = 2
              t009b_notfound = 3
              OTHERS         = 4.
          IF sy-subrc = 0.
    Concatenate YR Per into Zper.
            l_s_range-low = Zper.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDIF.
    endif.

  • How to show a field value and a message text in a message box

    Hi
    I have made a message box that shows the value of a text field when a button is clicked. I would like to add some message text to the message box as well, so that my message box will show something like:
    You have entered this data: "textField value"
    This script works to show the text field value but I cannot figure out how to combine it with an ordinary message box text message. I have tried various combinations of () and “ “ but no luck.
    if 
    (TextField1.rawValue != null){
    xfa.host.messageBox(TextField1.rawValue
    , "Message box title");}
    Kirstine

    you can use below code:xfa.host.messageBox("Word  you want to add in start "+TextField1.rawValue
    +" Word you want to add in the end","Message Box Title")
    Thanks

  • How to show a database value in a text field

    Hi,
    i 'm using hibernate and jsf . i need to show some text field values . these values i need to take database and show. how can i do that ?
    Regards and thanks ,
    Sukesh

    What is the problem exactly?

  • How to show the variable values in key format in the information tab

    Dear all
      in the information tab of the query, we can see all the filters and the variable value. But we can only see the infoobject <b>text</b> of this variable, how can we do if the user needs to see the <b>key</b> of this variable?

    I've referred to the Web API, and find a way to display some specified variable, but since this is the standard webtemplate and we need to show all the possbible variable used in the query. Anybody has better solution?
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="StaticFilter"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="CAPTION" value="SAP_BW_TEXT?program=SAPLRRSV&amp;key=722"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="WIDTH" value="330"/>
             <param name="ELEMENT_TYPE_100" value="VARIABLE_KEY" />
             <param name="ELEMENT_NAME_100" value="0P_WBSO"/>
             <param name="ELEMENT_TYPE_101" value="VARIABLE_KEY" />
             <param name="ELEMENT_NAME_101" value="0P_PRJ"/>
             ITEM:            FILTERS
    </object>

  • How to show only six values in dropdown box in design studio 1.3

    Hi,
    There was an requirement from our client to show only last six months in the drop down, when actually there is almost past 30 months are coming from the database. The data format also looks similar to "2014007", "2014006:..etc. Any idea to achieve this through loop.?
    Thank You,
    Palani

    Hi Karol,
    I like your idea, but i have difficulties to use it
    i have a datasource DS_2 and i just want to show specific Members of my keyfigures.
    When i fill my dropdown with this code it just gets empty and returns an error. Somehow i have to say if i want to show the Key or Text ?
    i also need this infiormation to be able to compare my elements in the if clause ?!
    Can you help me out ?
    Best regards
    Manfred
    DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0).forEach(function(element, index) {
    DROPDOWN_2.addItem(index, element);
    /*  if ((element == value1) || (expression2 == value2)) {
       if_statements
      } else {
       else_statements
    EDIT ....
    I've found the way how to access the keys and values ... i have to define an array and then i am able to access the internal keys and Text.
    Just for others searching ....
    var ArrayMem = DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0);
    DROPDOWN_2.addItem("#", "No Filter");
    ArrayMem.forEach(function(element, index) {
      if ((element.text == "Anzahl Sätze") || (element.text == "Gepäckgewicht")) {
       DROPDOWN_2.addItem(element.internalKey, element.internalKey + " - " + element.text);
    This SCN article helped me out: http://scn.sap.com/community/businessobjects-design-studio/blog/2014/09/19/learn-about-arrays-in-design-studio-13
    Best regards
    Manfred

  • How to show the subtotal value of a field without showing the rows in ALV?

    Dear All,
    In my ALV I am showing the sub total value of a calculated field. But the requirement is, only the category and sub total value will be shown in the ALV not the all rows, i,e
    CATEGORY     VALUE
      Z01       186,000 (the subtotal value)
    Here, the rows whose values are calculated to 186,000 will not appear. Plz give some idea.
    With regards,
    Rosaline.

    Hi
    Using the fieldcatalog, you can achieve this.
             no_out(1)      type c,        " (O)blig.(X)no out
    use this in fieldcatelog. u can achieve this.
    All the best
    Edited by: Sudeesh Ravindran on Mar 23, 2011 9:22 AM

Maybe you are looking for