a badge of the value-based list background color

Hello

I am using Apex5 on Oracle 11 g. I'm playing the plugin list Badge to come with Apex packaged Application, I would like to know if it is possible to change the background color (fill color) of the badge round based on the range of values, for example, I'm working on a few badge tickets report, I am critical, high, medium, low budget, what I want is that the values is 0 (no tickets) and then display the badge as green Cycle; If 1-10, show orange. If greater than 10, shows red.

Thank you

Mike

I thought about it. Here's what I did:

Create a refreshment after DA (java script based) and java scripts:

$(".t-BadgeList-value").each (function () {}

If (parseInt ($(this) .text ()))<>

$(this).css({"background-color":"green"});)

on the other

$(this).css({"background-color":"red"});)

});

Thank you

Tags: Database

Similar Questions

  • Reset the values of foreground/background color?

    Y at - it equivalent command in scripts to reset the default values of black and white color or you simply resets the script value? Was not sure if there was an equivalent command to hit just wouldn't "on the keyboard.

    Thank you!

    // =======================================================

    var idRset = charIDToTypeID ("Rset");

    var desc1 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    var idClr = charIDToTypeID ("Clr");

    var idClrs = charIDToTypeID ("CLR");

    Ref1.putProperty (idClr, idClrs);

    DESC1.putReference (idnull, ref1);

    executeAction (idRset, desc1, DialogModes.NO);

  • Appeal of pages based on the value of list of choices

    Hello
    I use jdev11.1.2.1.0


    I created the page with a list of simple choices and 3 buttons.

    in the list of choices, all selected items are static only. I created 3 items selected in the list of choices.

    and I created 9 jsff fragments.

    Now these 9 jsff called regions in the page when I select the value of list of choices and button.

    How can I achieve this?



    Thank you..

    try to set a value for variable1 in the constructor.

  • Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each i

    Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each...

    Try:

  • Is there a way to child entities of control based on the values of list drop down Parent entity on the screen of the user interface

    Hi team,

    Need your inputs / help on the scenario below.

    I created the interested part called parent entity (created attributes stakeholder list dropdown attribute with values 'Individual' and 'Organization' and a few other attributes on this entity).

    Child entities created called 'the individual' and 'organization' and created interview screens as below.

    1 entity parent on a single screen (interested party)

    2. child entity on a single screen (the individual)

    3. the entity child another (the Organization) on another screen and created vibility rules like this and applied at the level of the screen.

    Individual information should be displayed, if

    for each all instances of the interested party , the interested party is individual

    Organization identity information should be displayed if

    for each all instances of the interested party , the Type of party's organization

    I created 2 instances. We're interested type as an "individual" and other is by "organization". But as soon as I click on the next button, it doesn't show any entity child screen because it is directly go to another screen.

    If I create instances with the same type, he has been creating the filter based on the type. Please let me know if there is any change to the rules of visibility.

    Thank you

    Viv

    I created as below and the problem is solved without the help of the functions of the entity.

    Individual information should be displayed, if

    the interested party Type = 'individual '.

    Organization identity information should be displayed if

    the party interested in Type = "organization".

    Thank you

    Vivek

  • Cange based on the value of the line in IR background color...

    I'm not if good with jquery/javascript stuff so I hope someone will / can help me?
    I want to change the background color of a row in an interactive report based on a value in the request (or the value of an element on the page).
    I don't want to use the highlight of the IR function.

    I think that it should be possible with jquery or javascript (or even a dynamic action) but I can not understand.

    If the column with the name "current" in the query (or a part of the Pxx_huidige page) is 1, then the background color should be red.


    Kees.

    Thank you for thinking with me guys.
    Solved it, with jquery and dynamic actions ;-)
    Bit of a chore, but it works

  • The drop-down list changes color with background option selected

    Hello!

    I m stuck with this drop-down menu that I need to have a red background, if the TBD option is active (which is the default) and have no backgrond if no other option is selected.

    drop01.png

    drop02.png

    drop03.png

    The red background is a red rectangle that is visible or hidden, I have all code in the event of modification of the drop-down list:

    if (this.rawValue == "TBD"){
        RectangleRed2.presence = "visible";
    }else{
        RectangleRed2.presence = "hidden";
    }
    

    But the thing is that the event checks the value when is changed, so if I'm in the value of TBD and I selected point 1, the recntagle is still visible, because at the moment, I have chosen point 1 value was to be determined, so does not in the way I need to.

    Anys ideas?

    Thank you!

    You must use

    if (xfa.event.newText == "TBD"){
    ...
    

    Then it works fine.

    "xfa.event.newText" evaluates to dropdown in the runtime.

    Hope it is useful,

    Mandy

  • The values of list box dropdown legend value changes

    Hello

    I have a combo box with 2 fixed values, and when the user changes the value I want the text caption for the fields on the screen to change automatically. I saw this post http://forums.adobe.com/message/3358411#3358411 and did something similar but despite no error on screen legends are not changed.

    The formcalc code I have is:

    If (DropDownList1.rawValue is "1")

    then NAME2.caption.value. #text = $record.IS_DATA. PERS_NAME2_CAPTION

    else NAME2.caption.value. #text = $record.IS_DATA.COMP_NAME2_CAPTION

    endif

    I also tried to use resolveNode:

    If (DropDownList1.rawValue is "1")

    then xfa.resolveNode("NAME1.caption.value.#text").value = $record.IS_DATA. PERS_NAME1_CAPTION

    endif

    This is encoded in the OUTPUT from the drop-down list event list1. The background to this is that the form is generated from a SAP user interface and interactive.

    If someone can see what I'm doing wrong / missing? -Is this something that should be possible?

    Kind regards

    David

    Hello

    Unfortunately he's changing Javascript does not work either. However, I have discovered that on the side SAP I was not having filled all the parameters of the system and structure of type SFPDOCPARAMS has a field called DYNAMIC inside. Once I put my original code worked :-)

    Problem solved! Thanks for your help.

    See you soon,.

    David

  • Select the value of list view

    Hi all
    Does anyone know how to make a ReadOnly list select and display the display value not the return value when you change the data? I made the list select a text field, text box, etc... but the return value is displayed and not the display value. I don't want my end users to edit the article, but I don't want to show them the value of display. Ideas and help is appreciated, thanks.

    Hello

    As you do not want your users to change the item, could you not use one of these 'View text (based on LOV)' instead?

    Andy

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • manually scan the values based on the multicolumn listbox

    Hello

    I have developed a program that includes the area of multicolumn as shown below list

    DUT VGS_Start VGS_Step VGS_Stop VDS_Start VDS_Step VDS_Stop

    1        0.1              0.05            0.2               0.3           0.05            0.4

    I want my scanning program between the VGS_start to VGS_stop in the procedure of VGS_step for each VDS_Start in VDS_Stop of VDS_Step and have come a long way in doing that, but something is missing. I am able to sweep the VGS from start to stop in the steps of just VGS_step for the value of VDS_start but I'm not able to continue sweeping values VGS from start to stop at the other values of VDS (VDS_start + VDS_Step up to the VDS_Stop).

    I enclose the vi that I have developed for reference. If any1 can help out me by giving some suggestions will be of gr8 help.

    Thank you

    Robin

    You can use the ramp to do this, and then loop through each table.

  • NPE when you set the value of list binding

    Hello

    JDev 11.1.2.4

    I have a list named Country1 linked to an executable variable country of type String binding. I'm trying to programmatically set the value but I get a NPE.

    public static BindingContainer {} getBindingContainer()

    return (BindingContainer) JSFUtils.resolveExpression("#{bindings}");

    }

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("country1"));

    _logger.info ('Information' + country1.values () .size ()); Returns the value 100

    country1.setInputValue("*");

    I get the following NPE while * is a correct value in the list:

    java.lang.NullPointerException

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findIndexFromObject(FacesCtrlListBinding.java:390)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:455)

    Thank you

    I got it to work but it makes no sense:

    Ok:

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));

    Country1.getInputValue ();

    country1.setInputValue("*");

    KO with NPE

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    JUCtrlListBinding Country1 = ((JUCtrlListBinding) lBindingContainer.get ("country1"));

    Country1.getInputValue ();

    country1.setInputValue("*");

    It seems that I have to read the value before it is changed.

  • XQuery insert node and assign the value based on an XPATH expression

    Hello

    I am trying to write a function that receives an XML as input parameters and return updated XML output

    -nodes are removed from the input XML code

    -a node must be inserted and the node value must be 1 or 0, based on an XPATH expression

    I discovered how to remove nodes, I discovered how to insert a new node, but I can not set the value of the conditionally inserted node an XPATH expression.

    Here's my current procedure and below a sample of one XML of entry. I use Oracle 12 c.

    CREATE OR REPLACE FUNCTION STRIP_XML
    (
      IN_XML IN SYS.XMLTYPE
    ) RETURN SYS.XMLTYPE AS
    p_result XMLType;
    BEGIN
      select
          xmlquery(
             'declare default element namespace "http://mad.evs.com/search"; (: :)
              copy $d := .
              modify (
      delete node $d//MainCategory/@logId,
               delete node $d/MainCategory/@id,
    -- a lot more of those delete node
     -- insert a node, but the value 1 is conditional
               insert node <DMZ>1</DMZ> after $d/MainCategory/SDataSection/EventDate)
              return $d'
            passing in_xml
            returning content
            ) into p_result
            from dual;
    
    
      RETURN p_result;
    END STRIP_XML;
    

    The condition for the value of is


    HASPATH (//DigitalAssets/DigitalAsset [@ available = "true" and @videoFormatId = "11"] / VideoLocations/Videorental [@typeId = "8"]) then 1 else 0


    It is complex because DigitalAssets/DigitalAsset is a collection. Here is an example of an XML to entry



    <MainCategory xmlns="http://mad.evs.com/search" id="9" logId="3349" logType="3">
      <Name>Sport</Name>
      <Serie id="163" externalId="557">
      <TitleAKA>UCL 2006/07</TitleAKA>
      <DigitalAssets available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3">
         <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="3">
            <VideoLocations>
                <VideoLocation id="3" path="003349MA.mxf" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="5" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
          <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="11">
             <VideoLocations>
                <VideoLocation id="101" path="003349MA.mpg" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="8" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
      </DigitalAssets>
      <SDataSection xmlns="http://mad.evs.com/search">
        <EventDate>2006-08-09</EventDate>
        <LogType>3</LogType>
      </SDataSection>
    </MainCategory>
    


    In this case, because HASPATH expression could be set to true, the value of the added node must be 1.


    Any help or advice how I should fight against that would be appreciated. I have no experience with XML and XQuery, I create my function through from trial and error of the doc.


    Thanks and regards, Pierre

    Hi Pierre,.

    You can use the if-then-else statement, like this:

    Insert the node

    {

    If ($d/MainCategory/DigitalAssets/DigitalAsset[@available="true' and @videoFormatId = '11'] / VideoLocations/Videorental [@typeId = '8'])

    then 1

    0 otherwise

    }

    After $d, MainCategory, SDataSection, EventDate

    XSLT can be an alternative to the XQuery Update in this case.

  • Get the value based on the column names for the custom of the Webcenter content metadata field

    University Complutense of MADRID, I created a custom text metadata field.  I then activated optlist this area.  I fill the optList values, I use a view.  The view has three columns.  Let us call their ID, Key, Value.  OptList shows keys in its list.  I then create content (Content ID: MyContent) Webcenter content and choose the OptList values for my new field of metadata (MyField).

    WebCenter portal, I'm filling a selectOneChoice with MyField values in the content ID: MyContent.  Remember the previous step, the values entered in selectOneChoice lists them selected values from the field MyField optList.  The optList is filled from view.  After the user selects a value in selectOneChoice, in Javascript, I need to alert a message in this format "selected value - matching value from the view of the optList that fills MyField.

    In my opinion, only an example will be useful:

    This is a view that I created in Configuration Manager applet in Webcenter content Admin cmdlets :

    ID | State | Capital

    1. North Carolina | Raleigh

    2. California | Sacramento

    3. Illinois | Chicago

    Then I create a custom field (name: MyField).  MyField is an optList values are filled with view created above.  Internal value and the display value are the two State.  Then I have a new content with Content Id Check-In: MyContent.  To MyContent, I select these values in OptList MyField: {North Carolina, Illinois}.

    In my portal Webcenter application, I create a Taskflow presenter content.  I have set up as single content item presenter.  I attribute as content ID MyContent.  Then, in templateView, I get all the values of MyField in MyContent and display as selectOneChoice.  I created a javascript function that would get the value that the user selected in selectOneChoice.  In the view created in the Webcenter content Configuration Manager (see above), there is a value corresponding to each displayed value.  So, for the selected value, I need to get the corresponding Capital and display in my alert message.

    Starting from Javascript, how can I get the value of the Capital, since I have the status value.

    Hello.

    The idea to reach your requirement is planned:

    • Create an Assistant manage bean that will appeal as access map: #{stateUtil ['Calofironia']} (it will return Raleigh). This value will get calling GET_SCHEMA_VIEW_VALUES IDC service using RIDC in your managed bean.
    • Pass the result of #{stateUtil ["statename"]} to your JavaScript function to help

    I hope this information help you.

    Kind regards

  • Calculate the value based on the selection of the checkbox

    People from g ' Day,.

    I have myself a little stuck on a job that I have here, this javascript Gets the better of me.

    The idea is that this script takes the total sub and adds a surcharge for credit card (in percentage) based on a selection of the checkbox, then spit out the value to be entered in another field.

    If someone could have a quick look over what follows and let me know where I went wrong, it would be appreciated.

    ---

    Subtotal var = this.getField("SubTotal").value;

    var mastercardTick = this.getField ("MasterCard");

    var visaTick = this.getField ("Visa");

    var amexTick = this.getField ("Amex");

    Var extra = this.getField("CreditSurcharge").value;

    card credit var = this.getField("PayCredit").value;

    If (creditcard.value = 'Off') {}

    Event.Value = 0;

    } else {}

    If (mastercardTick.value = 'Yes') {}

    overload. Value = (1,2 / 100) * subtotal.value;

    } ElseIf (visaTick.value = 'Yes') {}

    overload. Value = (1,2 / 100) * subtotal.value;

    } ElseIf (amexTick.value = 'Yes') {}

    overload. Value = (3.75 / 100) * subtotal.value;

    } else {}

    Event.Value = 0;

    }

    }

    ---

    For lines like these:

    overload. Value = (1,2 / 100) * subtotal.value;

    If it should not be as:

    Event.Value = (1,2 / 100) * subtotal.value;

    The variable supplement is defined at the beginning of the script to the value of the field, so the surcharge.value parameter is not any sense.

Maybe you are looking for

  • El Capitan. Date of last change sorting

    In collaboration with El Capitan. Actually, the "Last modified" column displays the date that the file was last opened.  If I open a file, but make no changes, not near "last modified" always show an earlier date? Me always changes to today's date, w

  • Qosmio G30-137: how to change the English language OS?

    Hello!I just bought Qosmio G30-137 of the Germany and he has Windows Xp MCE in German language.The recovery disk is also in German also. I would like to know if someone can provide me with the recovery in the English language disc or can someone tell

  • How to remove the Satellite Pro 2100 BIOS password?

    Hi one of our former workers have our business sp2100 laptop and recently left, now we went to use the laptop and it has a password on it. We cannot get in touch with the ex-worker and now have a laptop useless? can anyone help?

  • Erasure of data from MacBookPro

    Hi, I am about to sell my Macbook and to erase all data. Is there than a simple reset button or what is the prayer of process?

  • AJAX troubles after the Beta 3

    Hello I recently installed the Beta 3 SDK. After which, the widget that I built under Beta 2 stops working. After that some digging, it seems that the piece that broke is the Ajax requests. The error: The answer comes back with an error 500 and a res