How to show $ sign alongwith the value in message styled text field.

Hi,
How to show $ sign alongwith the value in message styled text field.
The value is coming from the table column in VO.
I am working on OAF R12.

Hi,
Resolved.
I used the below code in CO for the solution.
Formatter currencyFormatter = new OADecimalValidater("$#,##0.00;($#,##0.00)",
"$#,##0.00;($#,##0.00)");
OAMessageStyledTextBean msrpField = (OAMessageStyledTextBean)webBean.findChildRecursive("MSRP11");
msrpField.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, currencyFormatter);

Similar Messages

  • It possible using javascript to change the value of another jsf text field?

    In my case, I have an input text field and would like to copy it's value on the onchange() event into another text field. Using the destination text field's Id and assigning some content with it's .value property

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • How to interchange sign for the field

    Hello Experts,
    My interface is ABAP proxy to JDBC , ECC is sending the data PI has peocessed succesfully but it in receiver channel throwing Invalid identifier i find that Paylaod has one field like
    <STOCK_QTY>58.931-</STOCK_QTY>  in this quantity has negative value,sign is after the value data base is not accepting this format it will accept
    <STOCK_QTY>-58.931</STOCK_QTY> it will accept this format sign should be before the value.How to change the sign to before the value when it is after the value what function i has to use for changing like this
    And one more if STOCK_QTY comes with positive nothing changes has to be done only if it is negative sign after the value we have to change the sign to before the value.
    Any help is highly appreciated
    Regards
    Praveen

    Praveen
               Constant: '-'---\
                             Concatenate----\
    STOCK_QTY ----- Replace ----/           |
    Constant: '-'------/                    |
    Constant: ''------/                    |
                                            |
                                            |
    STOCK_QTY -->EndsWith ------------------If ------------------Target
    Constant: '-'------/                    |
                                            |
    STOCK_QTY -----------------------------/
    Regards
    Raj

  • How to remove hash in the value of the field fetched from application serve

    Hi,
       I am populating values of the file which is in the application server to the internal table. But for the last field hash is also populating from the file along with the value.
    Please suggest me how to remove hash in the value of the last field.
    Thanks,
    Neelima.

    Hi Vinay,
    Please check the program. I have used the replace statement but it is not working.
    IF NOT v_sap_bom_rec IS INITIAL.
    Spliting the records at '~' delimiter
        SPLIT v_sap_bom_rec AT c_del INTO  wa_bom_file-model_name
                                           wa_bom_file-product_code
                                           wa_bom_file-description
                                           wa_bom_file-product_type
                                           wa_bom_file-mfg_part_num
                                           wa_bom_file-mfg_part_desc.
        REPLACE cl_abap_char_utilities=>horizontal_tab IN wa_bom_file-mfg_part_desc WITH space .
        wa_bom_file-status = c_status.
        APPEND wa_bom_file  TO i_bom_file.
    But it is not working.
    Please help me..
    Thanks
    Neelima

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How do I print out the value returned by a method in main??

    I'm a total newbie at java, I want to know how I can print out the value returned by this function in the "Main" part of my class:
    public int getTotalPrice(int price)
    int totalprice=price+(price*0.08);
    return totalprice;
    I just want to know how to print out the value for total price under "public static void main(String[] args)". thanks in advance,
    Brad

    Few ways you could do it, one way would be to create an instance of the class and call the method:
    public class Test
        public double getTotalPrice(int price)
            double totalprice = price + (price * 0.08);
            return totalprice;
        public static void main(String[] args)
            Test t = new Test();
            System.out.println(t.getTotalPrice(52));
    }Or another would be to make getTotalPrice() static and you could call it directly from main.

  • How to get the value of an input text in a table

    all,
    i have an adf table component on my jsf page and i added an input text component to one of the table columns. how do i access the value of that input text in my backing bean? normally, i would just do a getValue(), but because the input text is in the table i'm assuming it has to be treated as an array somehow.
    any help would be appreciated,
    paul
    btw. jdev 10.1.3

    Frank,
    I found a solution to fetching the column values. I created a transient attribute on my view object and bound my column to the transient attribute. Then I used this post from Duncan Mills
    http://groundside.com/blog/DuncanMills.php?title=adf_validation_context_in_a_jsf_table&more=1&c=1&tb=1&pb=1
    to get to the data by looping through the table rows.
    However, I'd still like to use the value from this transient attribute in logic to populate some other columns in the table. I
    for example, here's the content of what's submitted:
    name phone transient
    ==== ===== =======
    paul null 555
    mary null 444
    In my backing bean I'd like to get the rows from the table and read the value of the transient attribute, pass it through a function, and set the value of the column phone to some value for each row. Then have that processed to update the db. Is this possible?
    Thanks,
    Paul

  • How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?

    Hi Team,
    Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
    Please help.
    Regards,
    John

    Sorry, wrong forum: created in ABAP forum instead.

  • CL_SALV_TREE: How to read the value of a double-clicked field

    Hey Guys!
    I have build a list with CL_SALV_TREE. When the user makes a DOUBLE CLICK in a especially field of a line I want to call a transaction with the field's value.
    Can you please tell me how exactly I can get the value of the double-clicked field?
    Reacting on the double-click-event is no problem (thanks to the sap-sample-codes), but I just don't know how to find the item-value having node-key and columname.
    I got this far:
    *       CLASS lcl_handle_events DEFINITION
    class lcl_handle_events definition.
      public section.
        methods:
          on_double_click for event double_click of cl_salv_events_tree
            importing node_key columnname.
    endclass.                    "lcl_handle_events DEFINITION
    *       CLASS lcl_handle_events IMPLEMENTATION
    class lcl_handle_events implementation.
      method on_double_click.
    *   selecting field's value
    *   call transaction
        message i000(0k) with node_key columnname. 'just for test
    endmethod.                    "on_double_click
    endclass.                    "lcl_handle_events IMPLEMENTATION
    I googled a lot and also searched in this forum and found some questions to a similar topic, but no solution to my problem.
    Can you help me with some example-code?
    Thank you very much!!!

    You need to get the Node and node value of the selected column like this.
    METHOD on_double_click.
        DATA: lr_nodes TYPE REF TO cl_salv_nodes,
              lr_node  TYPE REF TO cl_salv_node,
              lr_val   TYPE REF TO  cl_salv_item,
              lr_data  TYPE REF TO data.
        FIELD-SYMBOLS: <lv_val> TYPE ANY.
        lr_nodes = gr_tree->get_nodes( ).           " All nodes
        lr_node = lr_nodes->get_node( node_key ).   " selected node
        IF columnname IS NOT INITIAL.
          lr_val =  lr_node->get_item( columnname ).   " Object for selected column
          lr_data = lr_val->get_value( ).              " value of selected column
          ASSIGN lr_data->* TO <lv_val>.
        ENDIF.
      ENDMETHOD.                    "on_double_click
    Regards,
    Naimesh Patel

  • How do I copy the value of a managed metadata field into a text column in the same list?

    I have a SharePoint designer workflow that I am trying to use to copy the value of a managed metadata field, into a text field. So basically my workflow is this...
    Stage 1: Set [MyColumnValue] to [%Current Item:MyColumn_0%]
    Go to End of Workflow
    This seems like a simple enough task, but each time an item is added or updated in my List, all I get for my new column [MyColumnValue] is just a link that says "Stage 1". Am I missing something here? Shouldn't this workflow be able to just copy
    the value from the managed metadata column to the text column?

    When you create a workflow on a list/library it automatically creates a new FIELD with the name of workflow and it's status. It sounds like you're viewing the Workflow status field, and not the field that the workflow is putting the values into. Make sense?
    So edit the view and add the new field in.

  • Want to hide the drop down based on text field value

    Hi,
    I want to hide some of the values in drop down based on one text field value.
    I have the field called name which has the value A, B, C, D and also one drop down list which has the values 1,2,3,4,5,6. I want to hide the some of the values in drop down based on A or B or C. Let say, If it is A, drop down value should be 1,3,5. If it is B, Drop down value should be 1,2,3,4. Like this for every record.
    Can you please help me out.
    Thanks
    Ram

    Hi Robert,
    I am trying it in two different way. Please suggest which is the right one and feasible.
    1) I have the drop down list which has all the status. I am trying to hide the drop down values based on one text field value for all records.
    2) I have collected all the drop down values into table in webdynpro method. Rightnow I have two tables.
      one has line items details and another one have drop down values. both tables having common fields.
      I have to show second table values for that particular key, move all of them to drop down.
    Which is the best and feasible option.
    Thanks
    Ram

  • Can I use the value returned from a Text Function in another Formula?

    I'm writing a report in Hyperion System 9 BI + Financial Reporting Studio version 9.2. I have 2 grids in my report.
    Grid1 Column A is set up as a text function using the function type - <<GetCell("Grid2", 1, a, 1)>>. I would like to use the values returned from this text function in Column A (Grid 1) in a formula in Column B (Grid 1).
    Is it possible to use the values returned in Column A of the text function in another formula? My report does not seem to recognize Column A as numerical values, even though the values to be returned are numerical.
    If so, how do I recognize the values in Column A Grid 1 as numerical values and not text?
    Thanks for any help you can offer!

    Hi Edson,
    Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
    You can use a macro similar to the following:
    IF
      CALC_ERROR( )
      = 'X'
          DO SOMETHING HERE
    ENDIF
    Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
    data: g_flg_calc_error type /SAPAPO/FLAG.
    * SAP will pass g_flg_calc_error variable to all macro
    * functions. When SAP calls a macro function, it does
    * something like this.
    call function '/SAPAPO/MACRO_FUNCTION_HERE'
            exporting
              plob_values      = i_s_adv_plob_values
              sdp_book         = g_c_advf_sdp_book
              sdp_view         = g_c_advf_sdp_view
            tables
              cols_index       = i_t_cols
              value_tab        = l_t_value_tab
            changing
              f_calc_error     = g_flg_calc_error
    As you can see, the g_flg_calc_error variable
    is passed in the "changing" part of the call. The macro  function being called can then use the f_calc_error
    variable to change the value of the global
    g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error.  The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
    Hope this helps in clearing things out

  • Copy the values input in input text 1 to input text 2 using value change listener

    Hello ,
    I have two input texts :
    input text 1 & input text 2 .
    I need to copy the values input in input text 1 to input text 2 .
    How do I implement this using value change listener ?
    I did the following steps :
    1) I selected input text 1 and chose Value Change listener --> edit .
       Typed a new bean & class name .
       Which method name should I add ?
    Any help please ?

    Hi,
    Give any name to the method and bind the two input text to manged bean using bindings attribute of InputText. just follow the below given code
    Ex:
    test.java class
        private RichInputText inputVal1;
        private RichInputText inputVal2;
        public Test() {
        public void ValChange(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            inputVal2.setValue(inputVal1.getValue().toString());
        public void setInputVal1(RichInputText inputVal1) {
            this.inputVal1 = inputVal1;
        public RichInputText getInputVal1() {
            return inputVal1;
        public void setInputVal2(RichInputText inputVal2) {
            this.inputVal2 = inputVal2;
        public RichInputText getInputVal2() {
            return inputVal2;
    test.jspx page
    <af:inputText label="Label 1" id="it1" valueChangeListener="#{backingBeanScope.TestBean.ValChange}"
                                  binding="#{backingBeanScope.TestBean.inputVal1}" autoSubmit="true"/>
                    <af:inputText label="Label 2" id="it2" binding="#{backingBeanScope.TestBean.inputVal2}"
                                  partialTriggers="it1"/>
    Thanks
    nitesh

  • Getting the value of a html:text property in javascript function

    Hi all,
    I am using struts framework and I need to get a value in a textfield both in java part and javascript part
    <td><html:text property="identityNumber"> </td>
    I dont know how can I reach the value user entered in that field in the javascript function
    function verifyID(){
              var identityUserEntered = ????
    alert(identity);
    }

    the javascript expression document.forms[0].identityNumber.value should do it.
    You do realise you can't run java and javascript at the same time though right? The only way javascript can communicate with java is to submit an http request (normally submit form)

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

Maybe you are looking for

  • Need Help in configuring Antivirus on content services

    Hi All, We are using Content Services 10.1.2.3.4 and for antivirus we are using Symnatec Antivirus Scan Engine(SAVSE) 5.1. We have installed Antivirus on both the boxes separately and while configuring the domain properties we are facing problem--> w

  • 2010 Mini and Lion, what current TVs work/don't work?

    I am currently considering updating my 3 year old Samsung 32" to a 40" to 42" LED TV.  What I would like to know, with all the display issues Lion seems to have brought up, who has recently purchased TVs that work without any problems and those that

  • Is there a trial still for photoshop cs6

    I am trying to find a free trial for cs6 since that is what we use at school and am not having much luck. I am going to purchase it from the school but they wont have more in until after my project is due.

  • How to connect R3 to Portal

    Hi all, Can any one tell me how to connect R3 to Portal step by step ? Please... I am new to Portal environment.. Regards, Murugan Arumugam.

  • Sheduling by Milestone Operations

    All, I have a scenario where my customer would like to calculate the lead time to produce materrial based soley on the length of time which is entered on Milestone operations. Currently durations are maintained at each operation and we do not want to