Ho to set the format of an InputField of type integer?

Hello,
I have an input field bound to context attribute of simple type integer. I want to have the number entered into this input field in this format “57000”. Currently when I enter a number then navigate to another view and then return to this view where the input field is the number entered into the field become formatted like this “57,000” which is not what I want. Do you know how to explicitly set the format to such input field?
Thanks
Best Regards,
Jeny

Hi,
Set the format you required as ##### in Representation Tab of Simpletype of type integer you have created previously
Have a look at this thread,
Re: How to change the format of a decimal input field?
Regards
Saravanan K

Similar Messages

  • Ho to set the format of an InputField of type Float

    i have a inputField(name input1),which bind to a javaBean(myBean) attribute(price: Float type).
    for example:
              myBean.setPrice(11000.42).
       but i wanna disply such a format: 11,000,420000 in my inputField of web dynpro view.
       how to set it?
       you know u cann't set to a simple type in u DD.

    Hi,
    U should have data type is same what u displayed on the view must be match then only it is possible.
    If that match the previous post is works fine.
    Other wise it shows some exception like
    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(ApplicationView.Z_Rfc.Output.O_Table.price): must not modify the datatype of a mapped attribute .
    Please find this and solve your problem.
    thanks
    Lohi.

  • How set the format of map scale(e.g. 1/2000) in the JTextField?

    Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
    By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
    Thanks in advance.

    Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
    By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
    Thanks in advance.

  • How do you set the format of a text field

    I have a form with a text field that I want to set to either date format or number format depending on the selection of a radio button. Is there a way to do that via javascript?
    var f = getField("txtAgeDOB1");
    var initVal = f.value;
    if (initVal == "Age") {
    f.format = number;
    } else {
    f.format = date;

    One can set the format of the field to "None" and then by checking the value of a check box or some other logical test make a decision as to what format and value to fill the text box with. One can use the util.printf, util.printx, or the util.printd method to format the value.

  • How to set the format mask

    Hi,
    Good Evening,
    How to set the format mask to text fields based on currencies.

    Hi Anil,
    i am taking one method for setting the format mask to front end values
    like this
    public String xxformatmask(String test,String currency,OAPageContext pageContext)
    String currencyFormattedNumber="";
    try {
    java.lang.Double num = new java.lang.Double(test);
    currencyFormattedNumber = pageContext.getOANLSServices().formatCurrency(num,currency);
    catch(Exception e) {
    System.out.println("the exception is"+e);
    return currencyFormattedNumber;
    every time call this method
    for text fields like this,
    OAMessageTextInputBean commval=(OAMessageTextInputBean)webBean.findChildRecursive("commval");
    String lesscomm=commval.getValue(pageContext).toString();
    String lesscommformat=xxformatmask(lesscomm,currency,pageContext);
    float lesscomm1=Float.parseFloat(lesscommformat);
    i got the error at runtimeee
    oracle.apps.fnd.framework.OAException: java.lang.NumberFormatException: For input string: "1,000.00"
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.NumberFormatException: For input string: "1,000.00"
         at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
         at java.lang.Float.parseFloat(Float.java:394)
         at crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.server.xxcrmQuotationMgmtAMImpl.forserviceformvalsetting(xxcrmQuotationMgmtAMImpl.java:1994)
         at crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.webui.xxcrmServiceCostSheetCO.processFormRequest(xxcrmServiceCostSheetCO.java:345)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • How to set the default value of an item type DATE PICKER to the day of yest

    Hi
    How to set the default value of an item type DATE PICKER to the day of yesterday ?
    Thank you very much !
    Christian.

    Hi Christian,
    Have a look at this thread Re: Default the Date Picker to Today
    It covers this issue in detail.
    Regards
    Paul

  • Dynamically setting the format mask - JDev 10.1.2 - JClient

    I would like to let the user choose how dates are displayed. Is there any way to dynamically set a format mask on a View Object?

    For some reason my example code was erased from the message.
    I based my general method on following one:
    see:
    http://www.oracle.com/technology/products/jdev/howtos/10g/jcmultiform/index.html
    int count = 0;
    private DCBindingContainer createDetailBinding()
    String detailBCName = "DetailFormUIModel"+count;
    if (panelBinding.getBindingContext().get(detailBCName) == null)
    DCBindingContainerDef bcdef = DCBindingContainerDef.findDefObject("sample.DetailFormUIModel");
    DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
    bc.setName(detailBCName);
    panelBinding.getBindingContext().put(detailBCName, bc);
    ++count; //make sure the next name is unused thus far.
    return bc;
    return null;
    My method:
    ========
    private DCBindingContainer createBindingContainer(String packageName, String panelModelName)
    StringBuffer sb = new StringBuffer(packageName);
    sb.append(ViewConstants.STRING_DOT);
    sb.append(panelModelName);
    DCBindingContainerDef bcdef = DCBindingContainerDef.findDefObject(sb.toString()); //NOTE THE NAME.
    if (bcdef == null)
    throw new JboException("System error, "+getClass().getName()+".createBindingContainer, DCBindingContainerDef: "+sb.toString()+" not found");
    DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
    bc.setName(panelModelName);
    panelBinding.getBindingContext().put(panelModelName, bc);
    return bc;
    Any suggestion for replacing createBindingContainer with the 10.1.3 adequate method?
    Thanks
    Fred

  • Setting the format of a document with TextEdit

    I started working with TextEdit yesterday, so I still have a lot to learn. My question today is about how you chose between plain text and Rich Text. In David Pogue's book on Snow Leopard and in the Help section of "Mac 101: TextEdit", it says that "To change the format of a document:... To make the file Rich Text, chose Format>make Rich Text (Pogue words it a little differently). Now, maybe I'm being a nitpicker, but I am just starting out, and I have to wonder why those instructions don't apply to what I find on my computer. On my computer, Format doesn't lead to Rich Text. On my computer, you make the choice between the two formats by TextEdit>Preferences, and I'd appreciate some clarification before I run into even more puzzlements. I want instructions that match what I will find on my computer.
    I can only add that I have the version 1.6 (264) of TextEdit in my computer. Could that be the reason for the different answers?

    baltwo wrote:
    If it's in RTF, then the Format dropdown will show make plain text. If it's in plain text, then it'll show make RTF. Rather than deal with the menubar optioins, CMD+SHIFT+T toggles between the two.
    First of all, Thanks for your help. Second of all, I'll just keep my thoughts about Apple for being responsible for their "instructions" to myself. It would just be venting. As to the keyboard tip, I am always amazed that there really are some people who can remember such things, I can't. Anyway, I have a few more questions if you'll indulge me. (1) What does "Open and Save" mean?, (2) If I should put a mark in front of the statements, "Ignore rich text commands to HTML/RTF file" would that mean that some day in the future I might not be able to read part of an incoming message because I had forgotten to undo that mark? If that's the case, it would obviously be better to never activate that statement.

  • How to set the format of DATETIME without second

    Default format of DATETIME is "yyyy/MM/dd HH:mm:ss". But I need to remove the "ss", so I write the coding as below:
    oracle.cabo.ui.validate.Formatter formatter =
    new oracle.apps.fnd.framework.webui.OADateValidater("yyyy/MM/dd HH:mm", "yyyy/MM/dd HH:mm:ss");
    webBean.findChildRecursive("SagyouStart").setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    However, when I click the submit button, a error message about date format error will be shown in the page.
    If I set attribute of the submit button, which "serverUnvalidated" is TRUE, the page can be fine.
    Still, have other ways? Thank.

    1. Are you planning to insert the data into the table or just display purpose?
    2. if you want to insert into the table, then you modify thru
    OANLSServices Class. You can get instantiate thru transaction.getOANLSServices. This class has many methods to chage from String to DateTime or DateTime to JavaDate .
    Hope this helps.
    Thanks
    RK

  • How to set the format '1' to '001' for textfield?

    Hi,
    In jsc2.1 , I'm using the follow code to set format , but error,
    int intRows;
    String strMaxid;
    intRows = 1;
    strMaxid = String.format("%1$03d",Integer.valueOf(intRows)) ;
    Thanks.
    Smile

    Hi yossarian ,
    Thank you very much!
    But I want to get a formated string. It's id of the table,The type of id field is char(3).
    In adding page get the value ( max row + 1) from requestbean of the main page, this value only Indicate to the user. In stateless session bean I use getmaxid() method to regenerate the true id .
    In jbuilder 2005 , this code strMaxid = String.format("%1$02d",Integer.valueOf(intRows)) is fine. Why is wrong in jsc?
    Thanks.
    Smile

  • How to set the format 123,456.78 by using DecimalFormat

    hi all,
    i have issue with display of following format number :123,456.78
    i have used the foll pattern for it: "#,##0.0#"
    Output is: 12,345,678.00
    Needed is: 123,456.78
    pls help me out.We are having a serious issue in our project.looking fwd for a immediate reply.
    cheers,
    sharath

    hi all,
    i have issue with display of following format
    mat number :123,456.78
    i have used the foll pattern for it: "#,##0.0#"
    Output is: 12,345,678.00
    Needed is: 123,456.78
    pls help me out.We are having a serious issue in our
    project.looking fwd for a immediate reply.
    cheers,
    sharathI suppose you're passing number "12345678" instead of "123456.78"
    try dividing the number by 100...

  • Setting proper format for  the documents

    Hi,
    I want to set the proper format before saving the documents in Ifs. The Documents are uploaded to Ifs using the Java API.Can any one help me on this?
    Thanks,
    Prasanth

    Hi,
    Thanks rich. I am using the following code to set the proper format.
    // create the definition
    DocumentDefinition ddef = new DocumentDefinition(lsession);
    ddef.setName(docname);
    ifsSession.setAdministrationMode(true);
    FormatDefinition newFormatDef = new FormatDefinition(lsession); //create a new FormatDefinition
    Format format = (Format)ifsSession.createSystemObject(newFormatDef); //create a new Format using the FormatDefinition
    format.setMimeType(mimetype); // set Mime type for the Format
    newDocDef.setFormat(format); //set the format for the DocumentDefinition
    lsession.setAdministrationMode(false); //set the session back to normal mode;
    // create the document using the definition
    Document newdoc = (Document) lsession.createPublicObject(ddef);
    Is there anything wrong with this one? when i save the document with this code,its stored in non-indexed media.
    I tried the code you posted .its working for pdf documents (they are going to indexed Media ) but not for word documents.
    Thanks,
    Prasanth

  • How can I set the insert date to auto update in Pages 5.2.2

    how can I set the insert date to auto update in Pages 5.2.2
    I am attempting to have the date in header auto update in a Pages file.
    I can insert it, but where is the AUTO UPDATE selection
    OS10.9.4
    thank you

    Apple never included the auto-update feature for dates in Pages v5.2.2. You would have to single-click the date, and deliberately update it.
    If you have Pages ’09 v4.3 in /Applications/iWork '09, then it will allow you to configure auto-update of the date field. Right-click on the date, set the format, and click the selection for automatically update on open.

  • How to set the NLS in ADF for a session?

    Hello,
    Is there a built-in way to set the NLS parameters (Oracle-specific Date Format, Language..etc..) for the current DB session in ADF?
    thanks.

    Hi there,
    From your ViewController properties under Run you can add the following java option -Duser.timezone=CET. If you want to do it at the application level then you need to do the following:
    - In your AM override the prepareSession(Session session) method with custom code to set up your NLS
    - Create a class that implements the PagePhaseListener
    - Override beforePhase(PagePhaseEvent pagePhaseEvent) method to set the locale
    public void beforePhase(PagePhaseEvent pagePhaseEvent) {
    Integer phase = pagePhaseEvent.getPhaseId();
    if (phase.equals(ADFLifecycle.PREPARE_MODEL_ID)) {
    FacesContext facescontext = FacesContext.getCurrentInstance();
    String language =
    facescontext.getExternalContext().getRequestLocale().getLanguage().toUpperCase();
    FODApplicationModuleImpl.preferredLanguage = language;
    FODApplicationModuleImpl.isWebUser = true;
    Hope this helps.
    Juaan C.

  • HT5048 how to restore like fresh from factory setting the 10.7.3

    How to restore fresh from factory setting w/o install DVD?

    Install or Reinstall Lion from Scratch
    If possible backup your files to an external drive or second internal drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

Maybe you are looking for