IOS text field problem.

I need the user to enter a word, so I added a simple text field to the stage.  However, it behaves strangely on the actual device (iPod Touch). Attached are two screenshots that show how the font size increases when the input is activated.  Has anybody seen this problem?

Hi,
I believe you have specified a textFormat for the text. You need to add the following
// Assuming this is the format
var txtFormat:TextFormat = new TextFormat();
txtFormat.size = 20;
t1 = new TextField();
t1.defaultTextFormat = txtFormat;
// Apply the default text format that we just set to the text that's already in the text field ("g")
// Otherwise the default text format will only be applied to *new* text that's *typed* into the text field!
// Without this, the initial text in the text fields ("g") will use the default for a
// flash text field (Times New Roman 12pt), rather than the defaultTextFormat (Times New Roman 20pt).
t1.setTextFormat(t1.defaultTextFormat);
addChild(t1);
This sets all of the existing text in the text field to the specified format (making it the same as the default). Now when the text field is first rendered it uses the default format that you set, and when you type it also uses that same format, and so the format no longer appears to change.
Hope this helps.
Sanika

Similar Messages

  • Input text field problem

    I am VERY new at this...I'm following directions in "Hands On
    Training Flash 8 book...
    When creating an input text field the book instructs me to
    embed the font using the embed button that is in the Property
    Inspector...When I do this and test the movie there is no cursor in
    the text box and I am not allowed to type in it..
    If I do not embed the font then when I test the movie the
    input field works. I click on it and get a cursor and am able to
    enter information.
    Is the book I'm using wrong here or is there something I'm
    missing? Thank you.

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • Text Field Problems

    Subject: Creating a form for user input.
    The text field allows the user to type in more information than the visible portion of the text field. I see where I can limit the number of characters however this is not a good option. Depending on the character or if it is capitalized the total length of the string will change where some text will be hidden or leave too much space before the end. How can the text field stop the user from adding more text when reaching the end?
    Another question:
    My form asks a question where the answer starts on the same line and then continues below. The text field below is much wider (width of the page) where I can't find the option of an odd shape text field to accommodate this. So far I will place a text field on the short line and add another text field on the line below. I can't find where the two text fields can be joined and the text cascade from one to the other.
    My impressioin:
    So far I am not very impressed with the from option as the text fields cannot be sized through the properties.
    You cannot change the text box that the form adds to a check box without deleting the text field and creating a check box. Additionally if you copy and paste a check box multiple times it creates a new check box that is connected to the original. You have to rename each check box otherwise if the user selects a check box all check boxes that was copied and paste will receive a check.
    Similarly if you copy a text field and paste into the form without renaming the field anything you type into the first text field will automatically be shown in all text fields that were paste into the form.
    The text box height does not resize when selecting a font size. You have to go out of edit and type into the text field to see if the  complete font will be shown or there is too much extra space.
    There has to be a better form making software available. Can anyone provide information towards other software that may be more suitable and eliminate the issues pointed out above?
    Thanks for your help

    To prevent the user from entering text beyond the size of the field - set the font's size to anything other than 'Auto', and uncheck the 'Scroll long text' and 'Multiline' checkboxes in the 'Options' tab. If you need multiline text, the text will always scroll. Setting the size to 'Auto' will reduce the text to fit the box (it will fit to one line if multiline is off, or to the entire box if multiline is on)
    Most of your complaints I don't agree with. Why should the field resize when you change the font size? That's up to you to decide the size/position/properties of the field. You do have the ability to select multiple fields and set them to the same height/width/both.
    And copy pasting a field shares the same value, that's a good thing. That allows you to show the same information in multiple areas easily. You need to change the field's name if you want to have a different value (shouldn't the field's name be different if the value it represents is different?).
    There is an alternative to Acrobat PDF forms, you can use Adobe Livecycle to create dynamic PDF forms. It is much more advanced (you can create dynamic fields which change size, can be added as line items, and much more). It's also a much larger learning curve.
    If you think using Acrobats form features a problem, try creating a form in Microsoft Word.

  • Layers / Text Field Problem!

    Hey, whenever i center my designs, after or before - the text
    fields stay stuck as if the design was still attached to the left
    side. I viewed in IE and Safari and i got other people to view it.
    They reported the same issue. Any help would be appreciated.
    Thanks,
    -Kurrupted.Designs

    Hello,
    I'm assuming you are using layers, from the subject line.
    Building a layout using layers (AP Divs) will cause you a lot
    of
    frustration.
    Please read this link.
    Scroll down to the "Trouble With Layers" section.
    Specifically, the part that say's "My Layers Move".
    You should also check out the "Overlapping Text" section as
    you probably
    have that problem, too, and haven't noticed it yet.
    http://apptools.com/examples/pagelayout101.php
    Take care,
    Tim
    "Virginia Carter" <[email protected]>
    wrote in message
    news:g45at8$jme$[email protected]..
    > It would be helpful if we could see your page/code. Do
    you have a url you
    > can post?
    >
    > --
    >
    > Virginia Carter
    > Carolina Web Creations
    > ======================
    > www.carolinawebcreations.biz
    >
    > Kurrupted.Designs wrote:
    >> Hey, whenever i center my designs, after or before -
    the text fields stay
    >> stuck as if the design was still attached to the
    left side. I viewed in
    >> IE and Safari and i got other people to view it.
    They reported the same
    >> issue. Any help would be appreciated. Thanks,
    >>
    >> -Kurrupted.Designs
    >>

  • Text field Problem

    I created a form in Acrobat 9 Pro. When I type in the text fields to test my form, the text enters itself twice--laid on top of one another. The top set of text is bold. I checked properties and cannot find a solution. Any ideas??? Thanks.

    You probably made two copies of the same field, one on top of another.
    Look in the Fields panel and see if that field appears twice. If so, delete
    one instance.

  • Table Control Text  fields problem , help plz

    Hello Anand , Rich , John & All
      I hav problem with Text 3 fields( type c)(either L or R aligned )  , it is not geting updated , otherwise everything else is perfectly fine(scrolling,sorting etc ....) .
    Fields giving problem are
    1. Status(20) type c
    2. Fdat  type date
    3. Remark(100) type c
    All numerical fields are working fine .
    <u><b> My yahoo messenger-id is [email protected]</b></u>
    <b>Any light on this will be awarded plz .</b>
    FLOW LOGIC
    PROCESS BEFORE OUTPUT.
    MODULE SET_STATUS.
    LOOP AT      ITAB
          WITH    CONTROL TCL1
          CURSOR  TCL1-CURRENT_LINE .
       MODULE SET_LINE_COUNT .
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE UPD_OK_COD.
    MODULE EXIT_COMAND AT EXIT-COMMAND.
    MODULE SCROLL_SORT.
    LOOP AT ITAB.
          MODULE UPDATE_ITAB.
    ENDLOOP.
    MODULE UPDATE_TABLE.
    REPORT ZSD_REP_ORDER_BANK_CHANGE NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES: VBAK,VBAP,VBRK,ZSD_TABL_ORDBANK,MARA,KONV.
    CONTROLS: TCL1 TYPE TABLEVIEW USING SCREEN 0200.
    DATA: ITAB LIKE ZSD_TABL_ORDBANK OCCURS 0 WITH HEADER LINE,
          WA_ITAB LIKE ZSD_TABL_ORDBANK,
          OK_CODE LIKE SY-UCOMM,
          SAVE_OK_CODE LIKE SY-UCOMM,
          UPD_OK_CODE LIKE SY-UCOMM,
          ANSWER TYPE C,
          I LIKE SY-LOOPC ,
          J LIKE SY-LOOPC,
          V_LINES LIKE SY-LOOPC,
          LINE_COUNT LIKE SY-LOOPC,
          STS  TYPE N,
          EMGRP LIKE MARA-EXTWG,
          QTY LIKE ZSD_TABL_ORDBANK-QTY,
          UPRICE LIKE ZSD_TABL_ORDBANK-UPRICE,
          TOT LIKE ZSD_TABL_ORDBANK-TOT,
          INO LIKE VBAP-POSNR,
          COL TYPE CXTAB_COLUMN,
          COPIED_ONCE ,
          FLDNAME(100),HELP(100).
    FIELD-SYMBOLS:
         <FS_ITAB> LIKE LINE OF ITAB,
         <FS_TCL1> LIKE LINE OF TCL1-COLS.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
      SELECT-OPTIONS: S_CCODE FOR ZSD_TABL_ORDBANK-CCODE
                              NO INTERVALS NO-EXTENSION  OBLIGATORY,
                      S_SORG  FOR ZSD_TABL_ORDBANK-SORG
                              NO INTERVALS NO-EXTENSION  OBLIGATORY,
                      S_DCHAN FOR ZSD_TABL_ORDBANK-DISTCHAN,
                      S_DIV FOR ZSD_TABL_ORDBANK-DIV,
                      S_MATNO FOR ZSD_TABL_ORDBANK-MATNO,
                      S_CUSTNO FOR ZSD_TABL_ORDBANK-CUSTNO ,
                      S_QTNO FOR ZSD_TABL_ORDBANK-QTNO,
                      S_QTDAT FOR ZSD_TABL_ORDBANK-QTDAT,
                      S_QTVDAT FOR ZSD_TABL_ORDBANK-QTVALDAT,
                      S_SONO   FOR ZSD_TABL_ORDBANK-SONO.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN.
       SELECT * FROM  ZSD_TABL_ORDBANK
                   INTO  TABLE ITAB
                   WHERE CCODE IN S_CCODE
                     AND SORG IN  S_SORG
                     AND DISTCHAN IN  S_DCHAN
                     AND DIV IN S_DIV
                     AND MATNO IN  S_MATNO
                     AND CUSTNO IN  S_CUSTNO
                     AND QTNO IN  S_QTNO
                     AND QTDAT IN  S_QTDAT
                     AND QTVALDAT IN  S_QTVDAT
                     AND SONO IN  S_SONO .
          IF SY-SUBRC EQ 0.
             REFRESH ITAB.
             CLEAR COPIED_ONCE.
             CALL SCREEN 0200.
          ELSE.
             MESSAGE E012(ZQOTBANK) .
          ENDIF.
    *&      Module  SET_STATUS  OUTPUT
    *       text
    MODULE SET_STATUS OUTPUT.
      SET PF-STATUS '0200'.
      SET TITLEBAR '0200'.
        IF COPIED_ONCE IS INITIAL.
          SELECT * FROM  ZSD_TABL_ORDBANK
                   INTO  TABLE ITAB
                   WHERE CCODE IN S_CCODE
                     AND SORG IN  S_SORG
                     AND DISTCHAN IN  S_DCHAN
                     AND DIV IN S_DIV
                     AND MATNO IN  S_MATNO
                     AND CUSTNO IN  S_CUSTNO
                     AND QTNO IN  S_QTNO
                     AND QTDAT IN  S_QTDAT
                     AND QTVALDAT IN  S_QTVDAT
                     AND SONO IN  S_SONO .
          IF SY-SUBRC EQ 0.
            DESCRIBE TABLE ITAB LINES V_LINES.
            TCL1-LINES = V_LINES.
          ENDIF.
          COPIED_ONCE = 'X'.
          REFRESH CONTROL 'TCL1' FROM SCREEN '0200'.
       ENDIF.
          LOOP AT ITAB.
             QTY = ITAB-QTY.
             UPRICE  = ITAB-UPRICE.
             TOT = QTY * UPRICE .
             ITAB-TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-CGL_QTY.
             UPRICE  = ITAB-CGL_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-CGL_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-BHEL_QTY.
             UPRICE  = ITAB-BHEL_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-BHEL_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-ALSTOM_QTY.
             UPRICE  = ITAB-ALSTOM_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-ALSTOM_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-SIEMENS_QTY.
             UPRICE  = ITAB-SIEMENS_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-SIEMENS_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-TELK_QTY.
             UPRICE  = ITAB-TELK_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-TELK_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             QTY = ITAB-OTH_QTY.
             UPRICE  = ITAB-OTH_UPRICE.
             TOT = QTY * UPRICE .
             ITAB-OTH_TOT = TOT .
             CLEAR: QTY, UPRICE, TOT.
             MODIFY ITAB.
          ENDLOOP.
    ENDMODULE.                 " SET_STATUS  OUTPUT
    *&      Module  SET_LINE_COUNT  INPUT
    *       text
    MODULE SET_LINE_COUNT OUTPUT.
      LINE_COUNT = SY-LOOPC.
    ENDMODULE.                 " SET_LINE_COUNT  INPUT
    *&      Module  UPD_OK_CODE  INPUT
    *       text
    MODULE UPD_OK_COD INPUT.
    IF OK_CODE = 'SAVE'.
        UPD_OK_CODE = OK_CODE.
    *    CLEAR OK_CODE.
    ENDIF.
    ENDMODULE.                 " UPD_OK_CODE  INPUT
    *&      Module  EXIT_COMAND  INPUT
    *       text
    MODULE EXIT_COMAND INPUT.
    SAVE_OK_CODE = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_OK_CODE.
        WHEN 'BACK'.
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
              TITLEBAR       = 'Order Bank Entry'
              TEXT_QUESTION  = 'Do you want to Go BacK ?'
              TEXT_BUTTON_1  = 'Yes'
              TEXT_BUTTON_2  = 'No'
              DEFAULT_BUTTON = '2'
            IMPORTING
              ANSWER         = ANSWER.
          IF ANSWER = '1'.
            LEAVE TO SCREEN 0.
          ELSE.
          ENDIF.
        WHEN '%EX'.
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
              TITLEBAR       = 'Order Bank Entry'
              TEXT_QUESTION  = 'Do you want to Exit ?'
              TEXT_BUTTON_1  = 'Yes'
              TEXT_BUTTON_2  = 'No'
              DEFAULT_BUTTON = '2'
            IMPORTING
              ANSWER         = ANSWER.
          IF ANSWER = '1'.
            LEAVE TO SCREEN 0.
          ELSE.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " EXIT_COMAND  INPUT
    *&      Module  UPDATE_MOD  INPUT
    *       text
    MODULE UPDATE_ITAB INPUT.
        MODIFY TABLE ITAB FROM ITAB.
    ENDMODULE.                 " UPDATE_MOD  INPUT
    *&      Module SCROLL INPUT
    *       text
    MODULE SCROLL_SORT INPUT.
    SAVE_OK_CODE = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_OK_CODE.
      WHEN 'P--'.
          TCL1-TOP_LINE = 1.
      WHEN 'P-'.
          TCL1-TOP_LINE = TCL1-TOP_LINE - LINE_COUNT.
          IF TCL1-TOP_LINE LE 0.
             TCL1-TOP_LINE = 1.
          ENDIF.
      WHEN 'P+'.
          I = TCL1-TOP_LINE + LINE_COUNT.
          J = TCL1-LINES - LINE_COUNT + 1.
          IF J LE 0.
             J = 1.
          ENDIF.
          IF I LE J.
             TCL1-TOP_LINE = I.
          ELSE.
             TCL1-TOP_LINE = J.
          ENDIF.
      WHEN 'P++'.
          TCL1-TOP_LINE = TCL1-LINES - LINE_COUNT + 1.
          IF TCL1-TOP_LINE LE 0.
              TCL1-TOP_LINE = 1.
          ENDIF.
      WHEN 'SORTUP'.
          READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
          IF SY-SUBRC = 0.
              SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
              SORT ITAB ASCENDING BY (FLDNAME).
          ENDIF.
      WHEN 'SORTDN'.
          READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
          IF SY-SUBRC = 0.
              SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
              SORT ITAB DESCENDING BY (FLDNAME).
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND  INPUT
    *&      Module  TABL_UPD  INPUT
    *       text
      MODULE UPDATE_TABLE INPUT.
       CASE UPD_OK_CODE.
       WHEN 'SAVE'.
         UPDATE ZSD_TABL_ORDBANK FROM TABLE ITAB .
         IF SY-SUBRC EQ 0.
             MESSAGE I002(ZQOTBANK) .
             CLEAR  UPD_OK_CODE.
         ELSE.
             MESSAGE E003(ZQOTBANK) .
         ENDIF.
       ENDCASE.
      ENDMODULE.                 " TABL_UPD  INPUT
    Thnx
    moni<b></b><b></b>
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman

    Hi Moni,
    The problem as I had replied in your earlier post is with the MODIFY statement.
    MODIFY TABLE ITAB FROM ITAB. This statement will do the modifications based on the table key. When you have character fields as editable, then some problems are to be anticipated. In such a scenario, you must update the internal table based on the <i>index</i>, rather than based on <i>key</i>.
    So consider using
    MODIFY ITAB FROM ITAB INDEX TCL-CURRENT_LINE.
    Where TCL is the name of the Table Control. Also observe the difference in syntax here, don't use the TABLE keyword for the MODIFY statement.
    Please try it out and let me know.
    Regards,
    Anand Mandalika.

  • BDC Recording : Longetxt Text Field Problem

    Hi Experts,
    I was recording a BDC with Transaction PFCG. I want to record the LONGTEXT field in description Tab. but it is not. Can anybody tell me that how I can do it or if there is any FM or BAPI  available to update database table for that LONGTEXT?
    Thanks a lot in advance

    Hi Moni,
    * splie the text into line lengths of 132 or less and keep in internal table and put loop and endloop.
    and call the FM save_text..as given below..
    see the example how to SAve long text in BDC..
    *           Fill header work area
    *           Set Language Name, Text Object and ID
              w_thead-tdspras = t_texts-spart.         "Text language.
              w_thead-tdname = t_kunnr-kunnr.      "Customer Number
              w_thead-tdobject = c_kna1.               "Table Name KNA1
              w_thead-tdid = c_pick.                      "Picking Header ex:-'ZPIK'
    * Call the function to save text to the customer
              CALL FUNCTION 'SAVE_TEXT'
                EXPORTING
                  client          = sy-mandt
                  header          = w_thead
                  savemode_direct = 'X'
                TABLES
                  lines           = t_lines
                EXCEPTIONS
                  id              = 1
                  language        = 2
                  name            = 3
                  object          = 4
                  OTHERS          = 5.
              IF sy-subrc = 0.
            endif.
    Regards,
    Prabhudas

  • Text box problem or question

    I'm having the text field problem. I have two text boxes (inside my .fla file) one i can add more text without the box expanding and can  then select the text and croll down to view the missing text and the other one just gets longer the more text I add. I'm trying to duplicate the text box that does not expand the more text I add to it.
    All the settings in the properties are the same on both and I've tried it in MX and CS3 and the both have the same properties in both.
    I'm stumped can anyone help.
    I'm attaching the file.
    Thanks!

    If you right click the textfield on the stage you can select the "scrollable" option for it.  Another option to duplicate the textfield is to copy/paste it.

  • Why does the keyboard cover text fields ios 8

    Why does the keyboard cover text fields in safari in ios 8 in safari?  I've never had this problem before, but now when a text field is near the bottom of the page, I can't move it above the keyboard.  If there any fix? This is extremely annoying and renders filling in text on many web pages impossible.

    This solved it for me. I only needed to split it once before it was fixed (but shouldn't have had to do it at all). Thanks, chuck9999, you're my hero!
    Level 1(0 points)chuck9999Oct 19, 2014 8:15 AM Re: Why does the keyboard cover text fields ios 8
    Re: Why does the keyboard cover text fields ios 8in response to TeraBI had the exact same problem on my iPad Air and it's working fine now. Try toggling your keyboard a few times between split and regular using the keyboard key in the lower right corner.  I also then docked the keyboard a few times.  The turned-off/rebooted the iPad and it's worked fine ever since.  I stumbled upon the fix reading another post, and it did work although not sure why.  My guess is toggling the keyboard and rebooting updated something in the "registry".
    Liked Show 1 Like(1)
    Reply

  • Acrobat javascipt problem with text field

    Hello.
    I work in hospital and I create a PDF with some javascript, to help us working with our patients. This PDF now need some upgrade and I m stuck. Im not a programmer, so its even more difficult to me.
    Let me describe my problem. I have three buttons in my PDF with this code: on mouse up run javascript (I replace actual names in menu with options)
    var cChoice = app.popUpMenuEx
       {cName: "Option1", oSubMenu:
          [ { cName: "A", cReturn: "A" },
            { cName: "B", cReturn: "B"},
            { cName: "C", cReturn: "C" }
       {cName: "Option2", oSubMenu:
          [ { cName: "D", cReturn: "D" },
            { cName: "E", cReturn: "E" },
            { cName: "F", cReturn: "F" }
    if(cChoice != "" && cChoice != null)
    this.SetFieldValues(cChoice);
    else if(cChoice != null)
                 this.print({bUI:true,bSilent:false});
    I also have four text fields in PDF, fields "d1", "d2", "d3" and field "kat".
    Inside document javascript I have setFieldValues script:
    // Place all pre-population data into a single data structure
    var DeptData = { "":{  diagnoza: "", kat: "" },
    "A":{ diagnoza: "A", kat: "KAT III" },
    "B":{ diagnoza: "B", kat: "KAT II" },
    "C":{ diagnoza: "C", kat: "KAT I" },
    "D":{ diagnoza: "D", kat: "KAT III" },
    "E":{ diagnoza: "E", kat: "KAT II" },
    "F":{ diagnoza: "F", kat: "KAT I"}};
    function SetFieldValues(cDeptName) {
        // Populate fields with values from the Department Data Object
        this.getField("d1").value = DeptData[cDeptName].diagnoza;
        this.getField("kat").value = DeptData[cDeptName].kat;
    function SetField1Values(cDeptName) {
        // Populate fields with values from the Department Data Object
        this.getField("d2").value = DeptData[cDeptName].diagnoza;
        this.getField("kat").value = DeptData[cDeptName].kat;
    function SetField2Values(cDeptName) {
        // Populate fields with values from the Department Data Object
        this.getField("d3").value = DeptData[cDeptName].diagnoza;
        this.getField("kat").value = DeptData[cDeptName].kat;
    Now my problem. This code work perfect for my d1, d2, and d3 fields. When nurse click first button and open menu, then select options, the value that she select print in field d1, value from second button print in d2 and value from last button in d3. But each selection has also second value, named "kat". This value must be printed in text field named "kat", but...here is some catch. If all three selected options have different "kat" values - all three values must be in text field "kat". If one or two values are equal, I need that just one of them is printed.
    Something like that:
    If
    "d1" field has "A" value
    "d2" field has "B" value
    and "d3" has "C" value
    then field "kat" has all three kat values.
    but if
    "d1" field has "A" value
    "d2" field has "D" value
    and "d3" field has "E" value
    then field "kat" print only one of two equal (A and B) kat values and E kat value, that is different.
    Anyone understand my bad english and my problem and has a solution for this?

    Use hidden text fields for the various "kat" values ("kat1", "kat2", etc.) and then a separate custom calculation script for the real "kat" field that looks at the values of those fields and decides what value it should have.

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • Problem with Refreshing the data bound text fields

    Folks,
    First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
    I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
    In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
    public void prerender() {
            try {
                userID=getSessionBean1().getUserID();
                getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
                getWeb_userDataProviderUserDetail().refresh();
                info("prerender: Refresh called");
            } catch (Exception ex) {
                error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.prerender():", ex);
            setReadWrite();
    public String btnSave_action() {
            try {
                getWeb_userDataProviderUserDetail().commitChanges();
                getWeb_userDataProviderUserDetail().refresh();
                info("Data Provider Refreshed in SAVE");
                _readOnly=true;
                form1.discardSubmittedValues("saveVForm");
                info("User Updated New:"+userID);
            } catch (Exception ex) {
                log("Error Description", ex);
            return null;
        public String btnEdit_action() {
            try {
                _readOnly=false;
                //info("User ID Edt="+getSessionBean1().getUserID());
            } catch (Exception ex) {
                error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.btnEdit_action():", ex);
            return null;
        private void setReadWrite(){
            // Set read-only to true or false for all text fiels
            this.btnEdit.setVisible(_readOnly);
            this.btnSave.setVisible(!_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_email_client.setReadOnly(_readOnly);
            this.user_email_office.setReadOnly(_readOnly);
            this.user_fname.setReadOnly(_readOnly);
            this.user_lname.setReadOnly(_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_password.setReadOnly(_readOnly);
            this.user_password_conf.setReadOnly(_readOnly);
            this.user_phone_cell.setReadOnly(_readOnly);
            this.user_phone_cell_aac.setReadOnly(_readOnly);
            this.user_phone_client.setReadOnly(_readOnly);
            this.user_phone_home.setReadOnly(_readOnly);
            this.user_phone_office.setReadOnly(_readOnly);
        }When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
    Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
    Any idea what I am doing wrong here?
    Thanks

    Here is my experience with it. I have three text
    boxes to be filled out. They are part of a virtual
    form with an add button as the submit. You can fill
    out the 3 and add them and a node is added to a tree
    component. When you click on a node in the tree
    component (the submit to another virtual form that
    the 3 buttons participate in) the text fields should
    be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
    They will not display the values though...having
    nothing to do with read only. If I disable them
    before hand...they display the updated values. If I
    set their value at the top or bottom of prerender,
    they display the change...if I set the value in an if
    conditional that is hit (I have checked many times)
    in prerender, they will not display the values. If I
    set them in the tree handler anywhere, they will not
    display the values. This is very frustrating and is
    wasting tons of my time...I simply want to load the
    text fields based on the tree node that was
    clicked...I have messed with this for hours and it
    certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
    Posting your prerender code might help. Also, your action handler.
    >
    >
    - Mark

  • Text fields special characters problem in forms created with ID

    Hi there,
    I'm creating form document with ID.
    The problem with special characters appears after exporting file to interactive pdf.
    When filling up text field, special characters (polish language specials in my case) are replaced by squares.
    I do not know if this is a ID problem (and I should set encoding during pdf creation somehow) or Acrobat/Reader problem (tried both and also in Polish or English versions).
    Some help would be appreciated.

    I am Creative Cloud User and downloaded fresh ID less than 2 hours ago.. And honestly the last thing I would think about was updating.
    But in fact - it was the problem.
    So thank you very much for help!

  • Problem with a text field check

    When there is nothing placed inside the text field it will return a message dialog box saying that there is nothing located inside the text field. However if there is something inside the text field it will perform a
    doSpellingSuggestion and write the results to a .txt file.
    This works as the search term can be found within the .txt file.
    However when I try to display a message dialog box to display the contents of the .txt file that contains the spelling suggestion it will come out with an error from the catch statement
    catch(Exception spelling_error)
    JOptionPane.showMessageDialog(null , "Spelling error = " +
    spelling_error.getMessage());
    It keeps showing an error message box saying "Spelling error = null"
    It wont go past this line and thats the problem that i have. I tryed putting
    I tried substituting this in place of the error message above but it wouldnt go down to it
    //Display a message with a spelling suggestion
    JOptionPane.showMessageDialog(null , "Did you mean to spell " +
    search_term + " like this " + buffer.toString());
    but this didnt work
    class spellcheck_button_listener implements ActionListener
    public void actionPerformed(ActionEvent spelling_check)
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String ns2 = "urn:GoogleSearch";
    if((search_field.getText() == null) || (search_field.getText().equals("")))
    JOptionPane.showMessageDialog(null , "No search term entered in text field"
    + " please enter another search term");
    else
    search_term = search_field.getText();
    //Create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody bodyName = envelope.getBody();
    SOAPElement bodyElement;
    //Populate the message by adding SOAP body elements to form a semantically meaning
    //SOAP request
    bodyElement = bodyName.addBodyElement(envelope.createName("doSpellingSuggestion" , "ns1" , ns1));
    //Adding content to the message
    //addTextNode used when entering strings , addAttribute used for integers
    bodyElement.addChildElement(envelope.createName("key")).addTextNode(myKey);
    bodyElement.addChildElement(envelope.createName("q")).addTextNode(search_term);
    //Send the message and get a reply
    URLEndpoint endpoint = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message , endpoint);
    //Getting the content of a Message
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope env = sp.getEnvelope();
    SOAPBody replyBody = reply.getSOAPPart().getEnvelope().getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Source styleSheet = new StreamSource(translate_file);
    Transformer transformer = transformerFactory.newTransformer(styleSheet);
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(spell_check_file);
    transformer.transform(sourceContent, result);
    java.util.Iterator iterator = replyBody.getChildElements();
    while (iterator.hasNext())
    bodyElement = (SOAPBodyElement)iterator.next();
    String url_results = bodyElement.getValue();
    //Close the connection
    connection.close();
    FileReader inputFile = new FileReader(spell_check_file);
    buffer = new StringBuffer();
    // write new list to standard out
    BufferedReader in = new BufferedReader(inputFile);
    String input;
    while ((input = in.readLine()) != null)
    if(!input.startsWith("<?xml version"))
    // Skip XML header
    buffer.append(input + "\n");
    in.close();
    //Display a message with a spelling suggestion
    JOptionPane.showMessageDialog(null , "Did you mean to spell " + search_term +
    " like this " + buffer.toString());
    } //End of else statement
    } //End of try method for search action performed
    catch(Exception spelling_error)
    JOptionPane.showMessageDialog(null , "Spelling error = " +
    spelling_error.getMessage());
    } //End of method actionPerformed for search button
    } //End of class spellcheck_button_listener implements ActionListener

    I don't use SOAP, so I can't test your code.
    If you really want people to read your code then it should be [url http://forum.java.sun.com/features.jsp#Formatting]formatted so it is readable with correct indentation of lines and highlighting of the source code.

  • Problem with append += text in Text Field

    Hi guys
    i have a problem with append text.
    I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
    Then i have one String and one Text Field.
    Using for loop im getting right results. But when im running script again then im getting  same text again.
    F.ex.
    First time:
    City name: Name 1
    City name: Name 2
    Second time:
    City name: Name 1
    City name: Name 2
    City name: Name 1
    City name: Name 2
    I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
    How to avoid this?
    Here is script:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    _CityAreaTF1 = new TextField();
      _CityAreaTF1.border = true;
      _CityAreaTF1.wordWrap = true;
      _CityAreaTF1.multiline = true;
      _CityAreaTF1.selectable = false;
      _CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
      _CityAreaTF1.name = "CityAreaTF1";
      _CityAreaTF1.embedFonts = true;
      _CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

Maybe you are looking for

  • Logical corruption found in the sysaux tablespace

    Dear All: We lately see the logical corruption error when running dbverify command which shows the block corruption. It is always on the the sysaux tablespace. The database is 11g and platform is Linux. we get the error like:error backing up file 2 b

  • Aperture Photoshop CC file compatibility

    I changed the outside editor for Aperture 3 to PsCC. Now there is an error message stating PsCC can't read my raw files. Why?

  • IWork '09 installation location

    I was wondering if I would cause a problem by moving my iWork '09 application from the iWork '09 folder and into the root of the Applications Folder. Its just that I like to have an Applications stack on my dock and being able to simply click on Page

  • Encore CS6 hangs at slideshow build component of Blu-Ray disc/folder build

    Encore stops responding at slideshow build during overall Blu Ray disc or folder build. Project consists of 96 min video timeline via PrPro dynamic link and Japanese & English subtitle tracks,  main menu plus 4 sub-menus (2 chapter menus, subtitles a

  • Flex control inside flash Sprite control

    Hi,    in my project,i have a requirement to add flex control e.g. TextArea to flash Sprite control. is this possible? regards, Rakesh