AF:table - change disabled property of input text according to the value of the attribute line

Hello

I use Jdev 12.1.2.

I have a table with the number of lines.  Each line has a FutureCode attribute and other attribute FutureComments.  I want to make sure FutureComments is disabled unless the FutureCode of this line is is 'OTHER '.

I tried to go to the text of the FutureComments component in the table and setting the property to the expression for disabled:

#{row.bindings.FutureCode.inputValue == 'OTHER'? false: true}

But it does not work.  I messed around with the parameters in the table (distribution of content, immediate change), but I did not get a configuration so that it can work.

A little more information, the text input component are always disabled.  I also tried using the expression evaluator in the debugger to check the value of my #{row.bindings.FutureCode.inputValue}, but it is null, no doubt because he does not know what line I'm talking about.

Any idea on this?  Thank you.

Hello

There the lov on future code?

will not have operator you used? Try

#{row.bindings.FutureCode.inputValue! = 'OTHER'}

If this does not work

Try

#{row.bindings.FutureCode. attributeValue ! = 'OTHER'}


Thank you

Tags: Java

Similar Questions

  • Keep the text perpendicular to the base line when you use the string.

    Is there a way to keep the text perpendicular to the base line when using the warp function?  I'm trying to reproduce a decal with curved text.  When I use the string to get the text that is curved like the original, the letters are slightly tilted.

    You could try to make each letter on a separate text layer, then use Image > transform > free transform to adapt the letters in place.

    A lot more control over the placement of the letter and size that warp text offers.

  • different text color in the same line for staticText ScriptUI?

    is it possible to have different text color in the same line for staticText ScriptUI?

    for example, I don't want red color for the word 'RED' text below in the SAME line.

    var l is new window ('dialog', 'Sélection');.

    var s = w.add ('statictext', undefined, "It's a RED pen");
    w.Show ();

    Thank you!!

    Simple,

    var w = new Window ("dialog","Selection"),
         g = w.add('group'),
         s1 = g.add('statictext', undefined,"This is a"),
         s2 = g.add('statictext', undefined,"RED"),
         s3 = g.add('statictext', undefined,"pen");
    g.spacing = 4;
    s2.graphics.foregroundColor = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[1,0,0],  1);
    w.show();
    

    I'm sure that's the answer makes sense "only".

    Trevor

  • Disabled property stripping does not work with the transient attribute

    Dear gurus,

    I have 2-attributes on page .jspx off including 1-is transient attributes with the default SQL and another column in the db table. I turn off the property for the two field whose appearance and usability are the same during development but showing a different behavior when running. Please find the attributes and the images.

    ApprovalStatus attribute is db-table column and AdfCreatedname is a transient with SQL as default attribute and appearance are different from db table column.

    < af:inputText value = "#{bindings." ApprovalStatus.inputValue}.

    label = "#{viewcontrollerBundle.APPROVAL_STATUS} '"

    required = "#{bindings." ApprovalStatus.hints.mandatory}.

    columns = "#{bindings." ApprovalStatus.hints.displayWidth}.

    maximumLength = "#{bindings." ApprovalStatus.hints.precision}.

    shortDesc = "#{bindings." ApprovalStatus.hints.tooltip}.

    Binding = "#{backingBeanScope.backing_ProposalSearch.IT10}" id = 'it10' "

    labelStyle = "' make-weight: Bold" disabled = "true" > "

    < f: validator binding = "#{bindings." ApprovalStatus.validator} "/ >"

    < / af:inputText >

    < af:inputText value = "#{bindings." AdfCreatedName.inputValue}.

    label = "#{bindings." AdfCreatedName.hints.label}.

    required = "#{bindings." AdfCreatedName.hints.mandatory}.

    columns = "#{bindings." AdfCreatedName.hints.displayWidth}.

    maximumLength = "#{bindings." AdfCreatedName.hints.precision}.

    shortDesc = "#{bindings." AdfCreatedName.hints.tooltip}"id ="it35.

    disabled = "true" labelStyle = "' make-weight: bold;" > "

    < f: validator binding = "#{bindings." AdfCreatedName.validator} "/ >"

    < / af:inputText >

    Development-image

    development.JPG

    Picture of the production

    running.JPG

    kindly let me know what I need to make changes. Please help me out.

    Kind regards

    MD Jahangir Pasha

    Hello

    I think that your transient 'AdfCreatedName' attribute has updatable property was never in your ViewObject.

    Set it to always get the same look as your attribute of "approval status".

    Kind regards

    Ruben.

  • Font change after you have selected text does not work when you have multiple lines

    For readability, I'm usually out of order in the new font Courier. So I select the text I want to change the font and choose a font "Courier New". This works well when there are only a few lines. But when there are a lot of lines, it won't work. I have to do it 3 or 4 times so he can work.

    For some reason, the command below are output has been changed to "Courier New" only once. So I couldn't reproduce the problem now.

    Someone complained a similair problem?

    I use Firefox on Windows 7

    Example:

    SQL > create tablespace TEST_TS3 datafile '+ DATA_DG' size 25G

    autoextend on

    MaxSize 32767 m

    Local extended management

    single 4 m size

    Auto segment space management;  2 3 4 5 6

    Created tablespace.

    SQL > select BLOCK_SIZE, INITIAL_EXTENT/1024/1024, 1024/1024/NEXT_EXTENT from dba_tablespaces where nom_tablespace = 'TEST_TS3 ';

    BLOCK_SIZE, INITIAL_EXTENT/1024/1024/1024/1024 NEXT_EXTENT

    ---------- ------------------------ ---------------------

    8192                        4                     4

    -Just found out that the default INCREMENT size is 100 MB (at least in 11.2.0.4)

    SQL > select FILE_NAME, BYTES/power (1024,3) BytesInGB, increment_by INCREMENT_BY_BLOCKS, (increment_by * 8192) /power (1024,2) IncrementByInMB

    2 of dba_data_files where nom_tablespace = 'TEST_TS3 ';

    FILE_NAME BYTESINGB INCREMENT_BY_BLOCKS INCREMENTBYINMB

    -------------------------------------------------- ---------- ------------------- ---------------

    25 12800 100 +DATA_DG/hrcpdas/datafile/test_ts3.413.887991171

    SQL > ALTER TABLESPACE TEST_TS3

    ADD DATAFILE '+ DATA_DG '.

    SIZE 2g

    AUTOEXTEND ON NEXT 256K

    MAXSIZE 30G;  2 3 4 5 6

    Tablespace altered.

    SQL > select FILE_NAME, BYTES/power (1024,3) BytesInGB, increment_by INCREMENT_BY_BLOCKS, (increment_by * 8192) /power (1024,2) IncrementByInMB

    2 of dba_data_files where nom_tablespace = 'TEST_TS3 ';

    FILE_NAME BYTESINGB INCREMENT_BY_BLOCKS INCREMENTBYINMB

    -------------------------------------------------- ---------- ------------------- ---------------

    25 12800 100 +DATA_DG/hrcpdas/datafile/test_ts3.413.887991171

    +DATA_DG/hrcpdas/datafile/test_ts3.414.887992467 32 2.25-> 256 KB

    Unfortunately, publishers OTN suffer many peculiarities of the editor of the forum. The problem you describe is known, and there are many others. For a more complete list, including tips, see the list of problems the Publisher and the bugs forum.

    The thread has in the meantime been archived and cannot be updated more. Many problems have been fixed and some returned as newer versions of browser can have introduced other issues. Using the list is not really make sense unless there is cooperation with the administrators of site or the forum software developer (s). The last to date, Jive Software, seems to be deaf-blind, and resilient to the feedback from users.

    To validate the command line or SQL, you can highlight the text with the mouse and apply "Syntax" forms the > toolbar editor. This automatically applies a fixed font Courier 10.

    It is explained in the previous, more or less obsolete Oracle Community Forum Guide - part 3/3, 4.2 ECMA

  • Toggle buttons control according to the selected line in the table?

    Hello

    I have used JDev 11.1.1.2.0

    On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.

    I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.

    The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.

    Code of the table as:

    < af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
    lines = ' #{bindings. " VO1.rangeSize}.
    emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
    fetchSize = "#{bindings." VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
    queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "resId1" >

    Operation code buttons like:
    < af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >

    Any suggestions would be very helpful.

    Thank you
    zeroxin

    Hello

    bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link

    #{bindings.statusField.inputValue == 'value'}

    Frank

  • Midp2.0 ItemImage and ItemString text right on the same line?

    Y at - there a trick to this on the Blackberry Pearl.

    I want an Image and text to the right of the image, then the first line

    in a configuration form. I am trying to support the Pearl 8110 and so on

    He just puts the Image on a line by itself any combinations of layout

    I use

    try {}
    Image image=Toolkit.createImage("/tivoli.png");
    ImageItem it = new ImageItem ("", image, Item.LAYOUT_2 |) Item.LAYOUT_SHRINK | Item.LAYOUT_LEFT,"");
    SF. Append (IT);
    } catch (Exception e) {}
    }
    StringItem tr = new StringItem ("", "a" + tbsmNLS.get ("label - conf") + "\n");
    si.setFont (Font.getFont (Font.FACE_SYSTEM, Font.STYLE_BOLD, Font.SIZE_MEDIUM));
    si.setLayout (Item.LAYOUT_2);

    The WTK emulator works well for every combo I seem to think would work

    and I'm tired of construction and train to test on the

    real device to work. The image and the string very easilly can fit on a line.

    This works also very well a Nokia E60

    Just surrendered and wrote my own label

    package com.ibm.tivoli.midp;
    Javax.microedition.midlet import. *;
    Javax.microedition.lcdui import. *;

    public class ImageString extends CustomItem {}
    Image img;
    String st;
    Do police;

    public ImageString (Image image, String title) {}
    Super("");
    make = make .getFont (Font.FACE_SYSTEM, Font.STYLE_BOLD, Font.SIZE_MEDIUM);
    IMG = image;
    St = title;
    }

    protected int getMinContentHeight() {}
    Return img.getHeight ();
    }

    protected int getMinContentWidth() {}
    Return img.getWidth () + font.stringWidth (st) + 5;
    }

    protected int getPrefContentHeight (int width) {}
    Return img.getHeight ();
    }

    protected int getPrefContentWidth (int height) {}
    Return img.getWidth () + font.stringWidth (st) + 5;
    }

    protected void paint (Graphics g, int w, int h) {}
    g.drawImage (img, 0, 0, Graphics.LEFT |) Graphics.TOP);
    g.setFont (do);
    g.drawString (st, img.getWidth (), img.getHeight () - do .getHeight (),)
    Graphics.LEFT | Graphics.TOP);
    }

    protected boolean crosses (int, int viewportWidth, viewportHeight int dir,
    {int [] visRect_inout)
    Returns true;
    }

    Protected Sub sizeChanged (int w, int h) {}
    }
    }

  • Disable or enable a text based on the recorded person field.

    I have a requirement in a form based on an Oracle table. If my manager opens the top form, he could enter a value in a text box. But if employees open the same form that they could see the text field but cannot change the value in the text (i.e., its registered status and disable) box.

    Please suggest me what I do? Enjoy it!

    Thank you
    NS

    How you are authenticating users? You can install plans permission to hide and show elements, or you can set read-only properties.

  • Change of color of a button according to the data of a text element

    Hi all

    I have the 'detail' table, there for example (name, job, and notes).

    I have a block in my form with these three columns as elements, but the first two columns is on the "main_canvas".

    and the third is on another canvas.

    -There is a button next to each name.

    -When I click the button I should display the 'notes' on the other canvas element and view the data in this document, if there.

    what I want is

    If the button when I click on it it should display data in the element of "notes", the color of the button should be green.

    If the button when I click on it it does not display the data in the element of "notes", the color of the button should be blue.

    How to do?

    Hello newbi_egy,

    kindly, you can check the link below
    change the background of the button

    You can do this by making first button is emblematic and pay attention, you will miss your label
    Check the value of the notes and once - new - Record-Instance Trigger
    something like that

    If: MyBlock.Notes is null then

    set_item_property('AAA.) P', background_color, 'r200g00b0');

    on the other

    set_item_property('AAA.) P', background_color, 'r100g050b060');

    end if;

  • Access text in AS3? (input text is on the keyframe 1, access required on keyframe 2)

    This has been driving me crazy for a week... Seems like a simple question! Help, please...

    I have 2 keyframes on my calendar.

    The first image has a text entry field key (instance name: inputTxt) and a button (instance name: btnTester).

    When the user clicks the button it leads to the second keyframe where their text be in a dynamic text box (the instance name: txtBox).

    I get a null value in key 2. What Miss me?

    Thank you

    rustyCane54

    Code of the keyframe 1

    Stop();

    function fun(event:MouseEvent):void {}

    gotoAndStop (2);

    }

    btnTester.addEventListener (MouseEvent.CLICK, pleasure);

    The keyframe code 2

    txtBox.text = inputTxt.text;

    your textfield entry probably does not exist within the Framework 2.

    to remedy this, use:

    Code of the keyframe 1

    Stop();

    var textVar:String;

    function fun(event:MouseEvent):void {}

    textVar = inputTxt.text

    gotoAndStop (2);

    }

    btnTester.addEventListener (MouseEvent.CLICK, pleasure);

    The keyframe code 2

    txtBox.text = textVar;

  • I want my volume to change automatically when you watch movies according to the movie.

    I watch movies on my laptop and when someone speaks soft or something hard I want my computer to turn up or down automatically how do I do this?

    Hello

  • import of the text editor text and retain the attributes

    I use PS CS4 on Mac OS 10.6.8

    I have a text document that has been created and formatted in TextEdit by a customer.  They are loans for a CD insert, which it has formatted 'exactly' he wants them to appear.  However, when I copy them and paste them in PS all the formatting is lost.  Can I do to import text that appears in the TextEdit document.  Other wise I am for a session of long and tedious formatting.

    Thanks in advance

    You're in for a session of long and tedious formatting.

    The formatting is different.

  • The input text formatting

    Hello

    I have a requirement for formatting the text entry in a format [(XXX) XXX-XXXX phone number].

    Implementation:
    1.Defined an input text component in the UI.
            <af:inputText id="it2" value="#{pageFlowScope.testAppBean.phoneNumber}" label="Enter Phone number:">
                <f:converter converterId="CustomConverter"/>
            </af:inputText>
    
    2.Implemented custom converter as mentioned below.
    public class CustomConverter implements javax.faces.convert.Converter, org.apache.myfaces.trinidad.convert.ClientConverter{    
        public CustomConverter() {
            super();
        }
    
        public Object getAsObject(FacesContext facesContext,
                                  UIComponent uiComponent, String value) {
            if (value == null || (value.trim().length() == 0))
                         {
                             return value;
                         }
               
                 // format phone numbers to display correctly
               
                   String phone = value.trim();
                   if (phone.length() == 10) {
                       phone = phone.substring(0, 3) + "-" + phone.substring(3, 6) + "-" + phone.substring(6, 10);
                   }
                   else if (phone.matches("\\d{10}\\s*\\d+")) {
                       phone = phone.replaceAll("\\s+", "");
                       phone = phone.substring(0, 3) + "-" + phone.substring(3, 6) + "-" + phone.substring(6, 10) + " x" + phone.substring(10);
                   }
             
                 return phone;
        }
    
        public String getAsString(FacesContext facesContext,
                                  UIComponent uiComponent, Object value) {        
            
            String phoneNumber = (String)value;
                     if (phoneNumber == null || (phoneNumber.trim().length() == 0))
                      {
                          return "";
                      }
                      String phone = phoneNumber.trim();
    
    
                      if (phone.length() == 10) {
                          phone = phone.substring(0, 3) + "-" + phone.substring(3, 6) + "-" + phone.substring(6, 10);
                      }
                      else if (phone.matches("\\d{10}\\s*\\d+")) {
                          phone = phone.replaceAll("\\s+", "");
                          phone = phone.substring(0, 3) + "-" + phone.substring(3, 6) + "-" + phone.substring(6, 10) + " x" + phone.substring(10);
                      }
                    
                    return phone;
        }
    
        public String getClientLibrarySource(FacesContext facesContext) {
            return null;
        }
    
        public Collection<String> getClientImportNames() {
            return Collections.emptySet();
        }
    
        public String getClientScript(FacesContext facesContext,
                                      UIComponent uiComponent) {
            return null;
        }
    
        public String getClientConversion(FacesContext facesContext,
                                          UIComponent uiComponent) {
            return null;
        }
    }
    3.Registered in faces-config.xml
     <converter>
        <description>A Converter for phone number</description>
        <converter-id>CustomConverter</converter-id>
        <converter-class>view.util.CustomConverter</converter-class>    
        </converter>
    
    4.Ran the application.
    The question is, at the entrance of text in text box... the custom converter is not called. Can someone help me to convert the text entered in planned phone number format.

    * Note: I expect that for every key stroke... the custom converter is called.

    Kind regards
    Kiran

    Check out this blog https://blogs.oracle.com/jdevotnharvest/entry/get_social_security_numbers_right
    or this example: http://multikoop.blogspot.de/2012/11/adf-smart-input-date-client-converter.html

    Timo

  • How to center text compared to the other two layers

    Hello world

    It seems simple enough: I have two layers of distinct text - both in the same line. One is left-aligned, the other is aligned to the right, so that they specify in the middle. Overall, I want they to be centered.

    Example.PNG

    But because these two texts will have different formulations of various projects, I want to use the model function, so I can edit them in first.

    Is there a way to tell After Effects: "some text there, take two text layers and their Center as a whole."?

    For the life of me I can't figure out how to do. The closest I am to a solution is an expression on the anchor to a null object, which reads:

    W1 = thisComp.layer("Text1").sourceRectAtTime () .width;

    W2 = thisComp.layer("Text2").sourceRectAtTime () .width;

    [(thisComp.width-(w1 + w2)) / 2, value [1]]

    Then the text layers are related to the null value.

    I found this in a post on Creative Cow: multiple text layers to form one. how I can it Center as a whole?: Adobe after effects Expressions

    The problem with that: it works with the text aligned to the right. If you change the text aligned to the left, everything goes to the left.

    Does anyone have an idea how to make this work? It may even be a way simpler than using expressions?

    I hope I could explain the problem. If there's anything missing please let me know.

    Thank you!

    Concerning

    FABI

    There is no demo that is involved in the technique. Alignment tools will not work with a demo. In the screenshot at the top of the page, note the selected text and the reference level setting in the character Panel. I just adjusted the base line in the second paragraph of the text to move it to the top so that it is aligned with the base line in the first paragraph of the text.

    Unfortunately, the process becomes a little more difficult if you want to be able to use this model as an asset of editable text dynamically linked in Premiere Pro. Centering becomes a problem. It's pretty easy to get the width of the text layer but the anchor is based on paragraph and I'm not in any way take the width of the first paragraph of the text and add it to the width of the second paragraph of the text and adjust the anchor point to be at the center of the paragraphs combined.

    You can return to the idea of two layers of text, but use the width of each layer and the ratio between the widths to control the position of a null value. If you then related the two layers for the null value, the null value of centering with an expression based on the width of two layers and the ratio between the width of the left and right text would do the trick. I have to think about how to write this expression a bit. This is probably the solution to your problem, but I don't think I could write this expression in my head.

    What you want to do is to calculate the total width of the two layers (tw) and then calculate the ratio between the width of the two layers (rw / lw) then multiply the width of the layer left by the ratio then you can calculate the offset. You may have to calculate the ratio of the layer from left to the total width of the two layers. As I said, I'll have to think for a minute. There is also the problem of the space between the two layers. You will need to add a space before the first letter of the right text layer, but the size of the right layer won't take into account the space so you have to measure it and add it to keep things perfectly centered.

    EDIT:

    So I did a reflection more and I was doing it too hard. All you have to do is to calculate the difference between the width of the layers both text and divide by 2 and add it to the Center comp. name your layers of text left and right, and then add this expression to a null value.

    r = thisComp.layer ("right Text") .sourceRectAtTime (time, false);

    R.width = RT;

    l = thisComp.layer ("left Text") .sourceRectAtTime (time, false);

    lt = l.width;

    CC = thisComp.width/2;

    DIF = (lt - rt) / 2;

    [dif + cc, value [1]]

    Now, hold down the SHIFT key and parent the two lines of text to null. If you don't want to use the trick of null, you can add the expression of two layers of text. Using the value null makes it easier to move. The expression can also be modified to allow you to position the null or layers wherever you want in the model.

  • Import text from the form field in the subject line of the email

    Hello

    Is it possible to import the text field in the subject line of the message when sending back (fixed) PDF form?  In other words, there is a "name of the applicant" and I want that name to the subject line of the e-mail.

    I use Adobe Acrobat X (10.1.7)

    If someone has orientation aby or online resources, where I can find this information I would be very happy!  I have searched all day, but have not yet found a solution.

    Thank you!

    Make sure that check the option Edit - prefs. - JavaScript to display the console on errors and warnings.

    In addition, 'subject' is a bad name for a variable, because there is already a property with the name of the Document object. Rename this variable to something else. Also, remove the bUI: false parameter. It has no effect and takes by default to true.

Maybe you are looking for

  • password to iCloud questioned immediately after you enter (Mac)

    Immediately after an update a few months back, that I had to change my password to a stronger one, iCloud began telling me that he had a problem with my account: When I went to preferences, this happens: So I type my password (I know the password is)

  • How can I change the background or the content of the tape to tabs

    When I run Firefox on my xp machine I have some specific content showing on the bottom of the Strip with tabs, no matter what I do... I can't change, I would just destroy it?

  • Airport Extreme and Time Machine

    Two questions: I have a 2nd generation (I think) Time machine. Network performance is slow throughout the House. MacBook Air, iPad, iPhone, etc. In addition, we have internet high speed ugly (country life). The new Airport Extreme upgrade will speed

  • x 86 (KB2572067) is corrupt on windows xp

    My Server Windows 2008 x 86 (KB2572067) is damaged and will not accept the security update. Fi - TI of Security Center said Microsoft also I have not Microsoft Firewall, how to fix? Edit by G225: Switch to Windows XP - Windows Update

  • Wireless disaster

    I have a T60 2007 under XP SP2.  I have trouble with my wireless adapter: it has been impossible to get an IP address, even if many other laptops in my work of fine houseare wireless on the same network / same router.  Then I thought maybe the card d