On value selected in dropdown, set border and border color to subform

Ok, I'm busy creating a form which has a dropdown field. There are five values inside the dropdown. I also have four subforms which contain tables and fields for each option in the dropdown except the first one. Now I want to set the border and border colour of the subform when the right value is chosen.
In the exit part I created the code as follows:
if (this.rawValue == "5"){
     this.resolveNode("TextfieldName").presence = "visible"; //This sets a text to visible...works like a charm
     Optie1.ui.oneOfChild.border.color.value = "255,153,0"; //After an example I found from Niall
     Optie1.ui.oneOfChild.border.color.thickness = "0.0200in";
I changed this into Optie1, that's the name of the subForm. Somehow it doesn't apply it on the subform. I know I'm doing something wrong, but can't quite find what I want on the forums. Anyone any idea on this?

Okay, managed to solve this myself by playing around a bit with the code.
It should be:
Optie1.border.edge.color.value and Optie1.border.edge.thickness.

Similar Messages

  • Change text based on value selection in dropdown

    Hi
    I have created a table Product Table with three columns Value,Description and Price.
    What i want on screen is that the 'Value' should be displayed as a dropdown on screen and when i select a particular value from dropdown the next two fields on UI i.e description and Price should get automatically updated.
    As I am new to ADF, i am having a hard time in implementing this.
    Please help.Urgent
    Regards,

    Hi Ranjith,
    I drag and dropped my first attribute of the VO as selectonechoice and list binding.Now i am adding the second attribute of the same VO as output text and set partial trigger same as that of selectonechoice.But on selection of my value from dropdown does not display the corresponding value for the second attribute.I checked the binding for theputput text, i saw the binding is an attribute binding and is having VO as data control source.how do i point to same iterator?
    Regards...
    Edited by: bpm11gnewbie on 21-Nov-2012 07:33

  • How to avoid roundtrip to server on value select in dropdown box in ALV cel

    Dear Experts,
    I have WD ALV table where user edits values in the cels using dropdown by key element.
    Then after edit he saves whole table. When value is changed in dropdown box the roundtrip to server occurs and it takes noticable time for every cell. My dropdown lists are fixed and are the same for all rows. It is not pleasant user experience and is annoying for user.
    Is there a way to disable this roundtrip for each value selection for each cell and transfer all the data for whole ALV table only when I save whole table (separate button "Save")?
    Help very much appreciated.
    Dmitry

    A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
    It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
    CREATE TABLE licensed_content (
      client_id    NUMBER,
      content_type VARCHAR2(30),
      key          RAW(128)
    )In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
    Justin

  • Read value selected in Dropdown list in user exit

    Hello,
    I have mulitple variable in my web interface.
    The first one is a list of months that the user can change and the others are calculated by user exit.
    The problem is that i need the month in the user exit.
    When the user has already a variable set for him, with ZGET_VARIABLE_DETAILS, i can have this month.
    My problem is when the user changes the month in the web interface.
    For exemple, the user has already save the layout with 01.2006, my user exits variables will find 01.2006 and be calculated with that month. After, the user changes the month to 11.2006, the problem, is that ZGET_VARIABLEDETAIL still return 01.2006, and my user exit variable are not anymore correct. But in the interface, the header area show well 11.2006. it's confusing for the user ...
    If the user saves, that will set the month variable to 11.2006 and the next refresh will be ok.
    Any idea how i can find this 11.2006 ? the current value of the dropdown list ?
    Regards,
    Jarod

    Hello Vlad,
    The flag is well to true, and my layouts are well refreshed, but on the resfresh, the user exit variable read the month variables, and then calculation are made.
    But on the read of the month variable, even if the dropdown bow has changed, this is still the set value which is read.
    It seems that when you change the value in the dropdown, it doesn't set the value. It's only a display, and when you save, it set the value.
    The problem is that for my refresh, i need to read the new month, the "displayed" value. In the header are of my layout, it's well the new month, but i cant find it in background for my user exit variable.
    Jarod

  • Issue with Blank Value selection in Dropdown List

    Hello Experts,
                        I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
                                  Now my issue is after any of the item values selection (for ex. BAG - BAG)  user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
    Thanks in advance.
    Regards,
      Amit

    Hi Steve,
                   Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
    Thanks,
    Amit

  • Setting Backgroud and fore color through Formula

    Post Author: Srinivas378
    CA Forum: Formula
    I am using cross tab in crystal report.For the summarized field ,I have to set Fore color,and Backgroung color differenly.
    Those colors I am getting from Database.While setting the colors all the cells of summarized field  are showing the very first color code.
    This is my function: in Basic syntax.
    WhilePrintingRecordsdim HexColor as stringHexColor ={vwUserTrainingReport.BGColor}Formula=RGB(HexaToDec(Mid (HexColor,2 ,2)) , HexaToDec(Mid (HexColor,4 ,2)) , HexaToDec(Mid (HexColor,6 ,2)))
    I have written an Hexa to decimal convertion:
    Function HexaToDec (Input AS String)
    Dim a AS NumberDim b AS Number
        Select Case Mid (Input,1 ,1)        Case "A"          a = 10        Case "B"          a = 11        Case "C"          a = 12        Case "D"          a = 13        Case "E"          a = 14        Case "F"          a = 15        Case Else          a = 0    End Select
        Select Case Mid (Input,2 ,1)        Case "A"          b = 10        Case "B"          b = 11        Case "C"          b = 12        Case "D"          b = 13        Case "E"          b = 14        Case "F"          b = 15        Case Else          b = 0    End Select
       HexaToDec = (a * 16) + b
    End Function
    Give me a solution as quickly as possible.

    Sorry - had to figure out how to put images into this forum (still trying to see how they get displayed...)
    Here is what I am doing:
    Multiplying this (cell by cell)
    Image: !http://public.me.com/andrewvignuzzi/Screen1.jpg!
    by this:
    Image: !http://public.me.com/andrewvignuzzi/Screen2.jpg!
    to get this:
    Image: !http://public.me.com/andrewvignuzzi/Screen3.jpg!
    So, for each row vector and column vector I get one result in a cell in the third table.
    (In this case, the answer is: 30,000,0000.09470*0.1099+00.3557... = 2,841,265; if you take the next row vector (one line down) and multiply it by the same column vector, you would get the 4,047,087 result in the last table, and so on..)
    My problem was that when I used the title "Series E" instead of "E Series" in the Column Vector table and I tried to set it to "absolute row" - it would not work. When I changed it to "E Series" it did. Why? While I use "Series E" as a title elsewhere, I would assume that Numbers has an internal reference that includes the table name as part of the identifier so that there is no conflict.
    Anyway - I seem to have solved it, but not in a way that makes sense to me and I sure would like to know what, if anything, I am doing wrong.
    Thanks!
    Andrew
    Message was edited by: AndrewVee

  • Setting fonts and Background color

    Hi,
    Is there anyway to set the font and background color on a jLabel? Thanks for your help!

    ...emmmm lets see... for the font and the background...
    maybe setFont and maybe setBackground!
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html

  • How to set text and background color of current row in a adf table?

    Hi,
    In jdev 11.1.2.3,
    How to set text fond and background color of current row in a adf table?
    I tried to set Background color in table property, but that is not what i want.
    Thanks.

    Hi,
    We almost had the same requirement, but we just needed to color a specific column.
    Here goes the solution to that, you might do the same for your row highlighting
    Changes are required in jsff and one method to be added in backing bean
    1. JSFF :
    <af:column headerText="Amount"
                     id="c4" width="100"
                     inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
    //searchResultTableVO is Table's VO
    public String getCellColor() {
          FacesContext ctx = FacesContext.getCurrentInstance();
          ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
          ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
          FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
          Row row = node.getRow();
        if(row.equals(searchResultTableVO.getCurrentRow())){
    //You can add your inline style for font-style too
          return "background-color:Red;";
             return null;
      }Hope this is helpful :)
    Regards,
    Neha..

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • Slider with Synth - Problems setting tick and text color

    Hi,
    I'm currently using Synth and I'm having some problems with sliders. The sliders appear and work fine, although I can't seem to change the color of the ticks and text.
    I would like the ticks and text to be orange, but it seems to default to black. I tried changing this in the Slider section of my Synth file (see below) but with no luck.
    Would anyone have any suggestions?
    Thanks in advance for your help.
       <!-- ================================= -->
       <!-- SLIDER TRACK -->
       <!-- ================================= -->
       <style id="SliderTrackStyle">
          <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track.png"
                        sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                        stretch="true" center="false" />
          <state value="DISABLED">
             <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track_disabled.png"
                           sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                           stretch="true" center="false" />
          </state>
       </style>
       <bind style="SliderTrackStyle" type="region" key="SliderTrack" />
       <!-- ================================= -->
       <!-- SLIDER THUMB -->
       <!-- ================================= -->
       <style id="SliderThumbStyle">
          <font name="Arial" size="1" style="BOLD"/>
          <state>
             <!-- How do we set the slider text and tick colour -->
             <color type="TEXT_FOREGROUND" value="#8f5f00"/>
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/Slider/slider_thumb.png" center="true" />
          </state>
          <state value="PRESSED">
             <!-- How do we set the slider text and tick colour -->
             <color type="TEXT_FOREGROUND" value="#8f5f00"/>
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb_pressed.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/Slider/slider_thumb_pressed.png" center="true" />
          </state>
          <state value="DISABLED">
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb_disabled.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/slider_thumb_disabled.png" center="true" />
          </state>
       </style>
       <bind style="SliderThumbStyle" type="region" key="SliderThumb" />
       <!-- ================================= -->
       <!-- SLIDER -->
       <!-- ================================= -->
       <style id="SliderStyle">
          <property key="Slider.paintValue" type="boolean" value="false" />
          <property key="Slider.thumbWidth" type="integer" value="14" />
          <property key="Slider.thumbHeight" type="integer" value="14" />
          <!-- Cant seem to set the tick or text color -->
          <!-- <property key="Slider.tickColor" type="color" value="#8a8a00" /> -->
       </style>
       <bind style="SliderStyle" type="region" key="Slider" />Edited by: robben07 on May 18, 2010 7:36 AM

    I put the following code in the Title and it worked...
    <B><font face="Arial" size="+3" color="#244764">Text.....</FONT>
    the only problem is to know how to center it (I've tried putting <CENTRE> html tag but it's not working)... can you please advice...
    Thanks again for your assistance

  • Change blink BG and FG colors

    Hi,
    I have four different controls on my front panel. each of them blinks at different stages of the program. I want them to blink in different colors. Which ever is related to emergency, should blink in bright colors, routine ones should blink in softer colors etc. where do I edit/set foreground and background colors for blinking of each control?
    Regards.

    i like to do this with system LED's, usually like to overlay them with the blinking led on top layer and transparent in the off condition...
    Attachments:
    BLINK.vi ‏7 KB

  • Enabling and disabling input filed based on the Dropdown values selection

    HI,
    I have a requirement with Adobe Interactive forms being called from HCM Forms & Processes. We have a drop-down list and a inputbox.
    based on the values selected from the drop-downlist, the input box should be visible and hidden.
    If the input value is visible, I got to send  some part of the value selected from the drop down to the input field.
    i tried to write the following script in the click event of dropdown  but the input field is not appearing with any value selection.
    if data.Layout.CH1.CHContent.ISR_DDL_1stSelected.rawValue = "00000000" then
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = 'Visible' else
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = "Hidden"
    endif
    Thanks in Advance,
    VR.

    Hi Mukesh,
    THanks alot.
    Yes,  The Split functionality is working.  I have added the code in 'Change' event and  for selecting the value from the Drop down, am  writing the code in the 'exit'.
    In addition to this, I am populating the values to the drop down from the Generic service.  The problem is, while running  the  Process from Portal and check and send button,  the fields fetched from the generic service & the dropdown values are getting refreshed. i hope, this is because of the java script.
    pls. suggest me if this can be handled .
    Thanks &Regards,
    Venkatesh.

  • How to set a default value in my DropDown using the key  ?

    Hello All,
      Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
      The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
      Any help will be greatly appreciated. Thank you !!
    from
    KWok Wei

    Kwok,
    Assuming that:
    1. You have a node NodeX, where attribute TargetAttr defined
    2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
    Then:
    Place in your code:
    wdContext.currentNodeXElement().setTargetAttr("yourKey");
    VS
    P.S. This topic was raised several times, and forum search works good enough to find an answer

  • Populating the 2nd dropdown based on value selected on 1st dropdown

    Hi,
    I know that there is a similar post about this in the forum but it doesn't actually show how an event for the dropdown is created. I believe this would be a script that is done within the form (transaction SFP) itself, but could I please have an example please?
    I did try to take a look at the standard ISR_FORM_SPTD form but there doesn't seem to be any scripts in this form.
    Thanks and regards,
    Adeline.

    Hi,
    Am not so sure, how were unable to locate this script. Click on the dropdown and check in the Script editor. You will get the same script. Anyways, here is the script.
    <i>// If the display value is used in the data DOM,
    // re-assign the corresponding data value
    if (this.rawValue != "" ) {
         if (this.boundItem(this.rawValue) != "") {
              this.rawValue = this.boundItem(this.rawValue);
    // START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
    app.eval("event.target.SAPSubmit(false);");
    // END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    data.RequestPromotion[0].PCR_PAGE1.PCR_DE.PCRDEContent.NewScaleLevelDDL::ready:form - (FormCalc, client)
    //     START OF XFO CODE - DO NOT REMOVE OR MODIFY
    // If this object exists, then we are not being rendered by the XML Form Agent
    if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
         // Note the rawValue and try to set the selection if it is present
         // As soon as you add items the rawValue will be lost
         var CurrValue = ""
         //  Check for a null - an empty XML node will return a null
         if ($.rawValue <> null) then
              CurrValue = $.rawValue
         endif
         var Found = 0
         // the data binding may contain "$data.<root data name>" instead of $record
         var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
         DataBinding = replace(DataBinding,"[*]")
         for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
              // Find the match.  The binding value may contain "[*]"
              // so remove them first
              var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
              if (DataBinding == ListBinding) then
                   // the first two items are the name and binding attributes, then the list starts
                   if (xfa.host.version < 7) then  // add a dummy item to work around a bug in A6
                        $.addItem("a","-1")
                   endif
                   $.clearItems()
                   for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
                        // The order is assumed to be display and then data
                        // if the value is null, then add the empty string
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
                        else
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
                        endif
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
                             Found = 1
                        endif
                        if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
                             Found = 1
                        endif
                   endfor
                   // Now set the selection - omitting this step means there will be no selection
                   // if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
                   if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
                        $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                   else
                        // if available, set the selection to the default value
                        if (Found) then
                             $.rawValue = CurrValue
                        else
                             // otherwise: set the selection to the first item
                             $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                        endif
                   endif
                   // START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   // END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   break
              endif
         endfor
    endif
    //     END OF XFO CODE - DO NOT REMOVE OR MODIFY</i>
    This should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Default sales org on selection screen using set and get parameter!!

    Hi,
    I need to default value on selection screen using SET n GET parameter...logic to be used should be:
    Sales Organisation:
    This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...
    Hope i need to write the code in initialisation and what shud b the content?
    Regards
    Gunjan

    hi,
    TABLES <table name>.
      SET PARAMETER ID VKO FIELD <tablename-fieldname>.
    call transaction 'zxx'.
    try this sample program,
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    regards,
    siva
    Message was edited by:
            Shan

Maybe you are looking for

  • Editing filters - to affect a whole track, not just the clip?

    I'm cutting a four camera shoot and need to match the colours. I have each camera on a separate track, and I got a basic balance before I started lopping. But as usual I want to give it a bit of a tweak now I'm looking at the cuts. I can work down th

  • No music via optic cable if tv if off

    I have the AppleTV2 linked with HDMI to the TV and optic cable to the amplifier. I must swich the TV on for the sound to go through to the amplifier. Then, I can switch the TV (all I want is music). This is stupid, because gaving an iDevice with an A

  • F.01 Tree Control Financial Statement

    Hi, When i run my report F.01 with Tree Control selected then it drills down till business area. The client wants to see this till Account. Is there any standard way or modification to do. Help required. Thanks

  • Got multiple values for non null local custom field

    Hi, I get the following error message while saving a MPP from Project Professional to MS Project Server: Got multiple values for non null local custom field. I checked the MPP and found that there are fields with same alias as Enterprise field names.

  • ActiveX Crystal Report Control

    Post Author: JLTerMarsch CA Forum: General I am using Crystal Reports 8.5 Developer. I know it is old, but I am using the original Crystal Reports Control ActiveX. Where can I get a list of the available commands available to me? e.g. printreport, ex