Can we hide the real value of input text box and show other value in ADF?

Hi All,
I have a table in which i have one the column as "Quantity" and text box as "quantity" :-
<af:column sortProperty="quantity" filterable="true"
sortable="true" headerText="Quantity" id="c3"
width="60"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<div align="center">
*<af:inputText value="#{row.bindings.quantity.inputValue}"*
label="#{bindings.queryProductResponseType.hints.quantity.label}"
required="#{bindings.queryProductResponseType.hints.quantity.mandatory}"
columns="#{bindings.queryProductResponseType.hints.quantity.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.quantity.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.quantity.tooltip}"
id="it5" partialTriggers="it19"
readOnly="#{row.activeYN == 'N'}">
<f:validator binding="#{row.bindings.quantity.validator}"/>
<af:validateRegExp pattern="^[1-9]+[0-9]*$"
messageDetailNoMatch="Quantity must be in whole number format."/>
</af:inputText>
</div>
</af:column>
Now when the user will enter say 400 in input text box "quantity" , the value should be divided in the same row to other column text box say "conversion" which holds the value as 40 , so if the division doesn't give any remainder(means remainder =0 ) means real value(400/40) = 10 then it should set the value of input text box "quantity" as 10 but the user should be able to see 400 which he/she entered before, as we want to send the 10 as request but we have to show 400 to the user and if remainder goes greater than 1 than it should show an error.
I have to implement this in value change listener of the text box as i need to calculate the real value each time for a row.
How should i implement this ?
Thanks .
Thanks.

Thanks timo,
But can you give me full details how should i implement this as i am newbie to ADF. I have found the data control in Data controls tab in left hand side and right click on it -> edit definition -> but it does not give me the option to add attribute , it just give me the option to edit the existing attribute. Can you explain me how to add the transient attribute and how to implement it ? Any sample code snippet ?
Thanks.
Edited by: user13644804 on May 15, 2011 10:09 AM
Edited by: user13644804 on May 15, 2011 10:09 AM

Similar Messages

  • Can you control the alpha of an input text box?

    Using Action Script, I mean?
    If I put a ball on the stage and make it a movie, I can make
    it vanish by putting
    ball._alpha -= 100;
    If I put an input text field on the stage and reference it by
    name that doesn't work.
    If I turn the text field into a MC it STILL doesn't work.
    Heck, if I put the text field in the mc with the ball the
    ball disappears but the text field is still there.
    How do I use AS to make an input text field disappear?

    nevermind, I'll just get creative.
    if the damn thing wont VANISH when I want it to, I'll create
    the same effect by knocking it the hell off the stage
    textField._x -= 1000;
    LOL!

  • Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    If you just mean, can I close it, sure. In Reader XI click the Tools button to close or reopen it.

  • How can I hide the recipients of a group text message?

    How can I hide the recipients of a group text message?

    This is Illustrator, no matter which version you are using.
    It doesn't work like in other programmes and Illustrator's behaviour is often undesired.
    There is no good trick that I'm aware of to mimic Draw's or Freehand's way to do it.

  • Problem with action script 3 make input text box and button....

    Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
    air for android only work with AS3,
    the search function is to type a person's name and hit submit then go to a specific frame.
    have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
    Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
    (it work find in AS2 but not in AS3,)
    Here is my current code that is placed on the main timeline, first frame:
    stop();
    onEnterFrame = function () {
        submit.onRelease = function() {
            switch (yourname.text) {
            case "name1" :
                gotoAndStop(2);
                break;
            case "name2" :
                gotoAndStop(3);
                break;
    My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
    My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
    Basically, I'm having a problem with making this to work with AS3.

    you should use the default option in the switch statement
    that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
    function onSubmit(e:MouseEvent):void
                                  switch (yourname.text)
                                            case "name1":
                                                      gotoAndStop(2);
                                                      break;
                                            case "name2":
                                                      gotoAndStop(3);
                                                      break;
                                            default:
                                                      goToAndStop(you frame you want);
                                            break;

  • How to change the Label of input text box after selecting a value in LOV.

    Hi All,
    I have a requirement that after selecting a value in LOV the Label of the next input text box should change accordingly.
    I am able to do cascading LOV's.
    how can i meet this requirement?
    TIA,
    Vishal

    Sample:
    JSPX Page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}"
    id="it1" *binding="#{ForumSampleBean.inputText}"*
    *partialTriggers="departmentIdId">*
    <f:validator binding="#{bindings.FirstName.validator}"/>
    </af:inputText>
    <af:inputComboboxListOfValues id="departmentIdId"
    popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
    value="#{bindings.DepartmentId.inputValue}"
    label="#{bindings.DepartmentId.hints.label}"
    model="#{bindings.DepartmentId.listOfValuesModel}"
    required="#{bindings.DepartmentId.hints.mandatory}"
    columns="#{bindings.DepartmentId.hints.displayWidth}"
    shortDesc="#{bindings.DepartmentId.hints.tooltip}"
    *autoSubmit="true"*
    *immediate="true"*
    *valueChangeListener="#{ForumSampleBean.lovValueChangeListener}">*
    <f:validator binding="#{bindings.DepartmentId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.DepartmentId.format}"/>
    </af:inputComboboxListOfValues>
    </af:panelFormLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    *Managed Bean:*
    public class ForumSampleBean {
    private RichInputText inputText;
    public ForumSampleBean() {
    super();
    public void setInputText(RichInputText inputText) {
    this.inputText = inputText;
    public RichInputText getInputText() {
    return inputText;
    public void lovValueChangeListener(ValueChangeEvent valueChangeEvent) {
    *this.inputText.setLabel("New Label");*
    Thanks,
    Navaneeth

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • How can i set the dynamic text box to show variable value?

    In AS2, I can make a dynamic text box set a var name, when i
    use button set/change the var value, this textbox can show the
    value also.
    but In AS3, dynamic text box can't add var name. than how can
    i do it now?

    Set an instance name for the dynamic textfield. Then, to
    populate the textfield with the value of a variable, use:
    textFieldInstanceName.text = variableName

  • How to change a value of input text box into uppercase?

    Hi all,
    In my use case I should have a text box in the jsf page and I should store the value that is entered in the text box in a database.
    The requirement is the value which user enters in the text box should get changed to Uppercase
    before getting saved in the database. Kindly help me in achieving this.
    Thanks,
    Phanindra.

    hi user,
    before asking any question.
    right place to search anything is google (the ocean).
    so the way. chris showed.
    if i understood correctly means,
    if you want change any input text into uppercase means :
    use some skinning : -
    <af:inputtext>
    contentStyle = "text-transform:uppercase;"
    </af:inputtext>
    Or
    else
    are you looking for
    while given inputtext saved into db.
    Use something like this in as vo for each and ever attribute,
    public void Desc(String value) {
    setAttributeInternal(DESC, value.toUpperCase());
    }

  • Can I shrink the size of a form text box based on the content?

    We are helping a customer migrate from some MS Word forms to use pdf forms.  We are screenscraping the data from an AS400 green screen system and populating these new pdf forms with data.  however some of the text boxes are in the middle of a sentence and the text box needs to be large enough to fit 50 characters but there are many times when the data we are entering is much less than 50.  The resulting document looks very strange with all of that extra white space in the middle of a sentence due to the size of the text box.
    So can we somehow shrink the size of the text box to fit the number of characters in the box?
    I considered making the box smaller and setting the font size to auto but I think that would look even more strange to have a word with smaller font in the middle of a sentence.
    Thanks,
    Trent

    Sorry, I should have mentioned I am using acrobat professional 9.  I see that I can change the size of the text field when I am designing the form but what I don't see is how to dynamically change the size of the text field based on what data is put inside it.
    Thanks,

  • How can I make the Counter move from inside text box to inside Footer?

    I am tweaking a page. At this point, I cannot move the Counter and the Email Me icon from the bottom of the text box to inside the footer like someone here said he does.
    Why do the Counter and the Email Me icon resist being moved?
    I am in Graphics mode. I never had this problem before.
    — Lorna in Southern California

    Lorna,
    I'm not sure why you can't move it down into the
    footer — by inside the text box, do you mean the page
    "content" or "body" section, or did you somehow get
    the icons into a text box? I know that you can
    "force" a text box into the footer (or header) by
    selecting it, then dragging it while holding the
    command (Apple) key down at the same time.
    Hope this helps.
    Bob
    Bob,
    When I say Text box maybe I am not using the right word. I am referring to that entire space on the page which is dedicated to receiving documents or images. If you have a lot of pictures or words, then that text box/space has to be lengthened to accomodate.
    I am saying that the two icons -- Counter and Email Me -- are sitting (or were sitting. It's morning now and honestly, I can't recall from last night!) at the very bottom of the text box/space.
    I made a Footer (55 pixels) specially to accomodate the Counter and Email icons. The problem, as stated, was/is that those icons would not budge from where they were sitting.
    — Lorna in Southern California

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • Can you connect a iPad USB port into a TV and show the videos you play?

    Can you sue the USB to plug into a TV and show the videos?

    Sorry I meant USE not SUE.

  • How can I hide the Navigation Input (at least the URL) in Firefox 29.0?

    I need to hide it for demonstrations to prevent attendees from browsing to a site while I'm showing it. This new release is not as clean looking when all the toolbars are unchecked. A minimal mode with tabs only would be helpful...the previous release was very good for this.

    Note that in previous Firefox versions it was still possible to bring up a replacement toolbar via Ctrl+L, so this version is actually better in this respect.<br />
    This code has been removed in Firefox 29 because you can't hide the Navigation Toolbar.
    Note that using an extension or code in userChrome.css can be overridden by starting Firefox in Safe Mode by holding down the Shift key when starting or the item in the Help menu.
    You can look at the Classic Theme Restorer extension to restore some functionality that was lost with the arrival of the Australis style in Firefox 29.
    *Classic Theme Restorer: https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    *Hide Navigation Bar: https://addons.mozilla.org/firefox/addon/hide-navigation-bar/

  • How can I hide the scroll bar in TextArea?

    How can I hide the scroll bar in TextArea?

    Hi. To remove the horizontal scrollbar you can do this:
    textArea.setWrapText(true);
    To remove the vertical scrollbar you can do this:
    ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
    scrollBarv.setDisable(true);  and set the opacity to 0 in the css file:
    //css file
    .text-area .scroll-bar:vertical:disabled {
        -fx-opacity: 0;
    }Here is an example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.MenuItem;
    import javafx.scene.control.ScrollBar;
    import javafx.scene.control.TextArea;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TextAreaSample extends Application {
        @Override
        public void start(Stage primaryStage) {
        final TextArea textArea = new TextArea();
            textArea.setWrapText(true);
            StackPane root = new StackPane();
            root.getChildren().add(textArea);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
            ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
            scrollBarv.setDisable(true);
        public static void main(String[] args) {
            launch(args);
    }

Maybe you are looking for

  • Problem in data transfer mode

    when i change sms stores in mass memory instead of phone memory,the phone cant go in transfer mod. i have lots of sms and it cinsumes lots of phone memory. i need to transfer them into mass memory. any suggestion? n95-2

  • Output Macbook Pro to HDTV?

    Is there a single chord that could be purchased either online, or preferably somewhere like BestBuy, that could let my Macbook Pro display onto an HDTV, so I could watch movies on it that I have downloaded, without buying an Apple TV? Thanks

  • Transaction launcher-'Transaction execute is unknown'

    Hi, I am trying to launch transaction BP in IC web client I have configured the launcher wizard and entered the URL in transaction 'CRMC_IC_CROSS_SYS . I  have added the navigation link but when i click on this link I get  SAP initial screen ( easy a

  • LaCie Big Disk Extreme+ Triple 2TB

    I am thinking of getting a LaCie Big Disk Extreme+ Triple 2TB for use with Final Cut Express. This drive is actually 2 1-TB disks. Is there any problem using such a drive in capturing video (or anything else having to do with video editing/production

  • Sending Quotation & Sales Order via fax or email.

    Hi Gurus, Anybody can help me to configure the step by step procedure for sending the Quotation and Sales order to customers via fax/email directly from SAP ? Thanks Christine