Dynamically change text field type

Hello all
I have a form which displays a decimal field. However when certain conditions are met, I need to change its type to Text, so the user can enter any alphanumeric character.
How do I achieve that with Javascript code? Is it even possible?

Actually, you can dynamically change a textfield.type. AS2.0
You need two elements.
txt.type = "input";
txt.selectable = true;
However, if you have the textfield in a btn you will need to
delete the onRelease function before you can make the tf function correctly.
btn.onRelease = function()
delete this.onRelease;
this.txt.type = "input";
this.txt.selectable = true;

Similar Messages

  • Changing a field type in OBIEE 11g

    Hello. I am new here, and new to OBIEE. I have read some of the tutorials and created a repository, but will not get formal training through Oracle until next week.
    I have a simple request from a user that I need to do, and I am not sure how to do it.
    Background:
    There is a field, COUNTER1, in my physical layer that is Char(9).
    In the BMM layer, the field gets counted, so it becomes HEADCOUNT and gets defined as COUNT(COUNTER1), and it is an INT field.
    Same in Presentation Layer.
    The user wants to be able to see decimals, so I need to change it to a DOUBLE type field.
    My Question:
    Can I simply change the field type from INT to DOUBLE in the Presentation and/or BMM layers, or is it more involved than that?
    Thank you for any help that you can provide.

    Create new logical column in BMM and in column source tab  check the option "Derived from existing columns using an expression" in the expression use below formula
    1.0d * COUNTER1   --> It converst to double automatically
    where counter1 is count(physical_column) which is int
    thakns,
    Saichand

  • Changing a fields type after validation

    I am having an issue with trying to figure out how to change a fields type (i.e. User Entered - Required) after I validate a test sheet that the user filled out. It is basically an interactive answer sheet that grades itself when the user is finished answering the questions, I just need to know how to make that field read-only after the user has finished the test. Any ideas on how to go about doing this?
    Thanks,
    Ryan Crocker

    No, it would be
    GradeTest.access = "open";
    You can see the Object Model reference guide at: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    Chris
    Adobe Enterprise Developer Support

  • How can I dynamically change group field column?

    Hello!
    I need to group data and create group totals for that table. Is
    it possible to dynamically change group field column for
    specific table, depending on data retreived from parameter form?
    Thanks,
    Mario.

    quote:
    Originally posted by:
    ljonny18
    Hi,
    I am using a grid within a component in my Flex application.
    I have an XML dataProvider, and I want to change the row
    colour of my Grid depending on a value coming form my dataProvider
    – but I cant seem to get this to work :(
    can anyone help / advise me on how I can dynamically change the
    colour of my grid row depending on a value coming from my XML
    DataProvider????
    Thanks,
    Jon.
    Hi,
    a few hours ago I stumbled across this cookbook entry - it
    didn't solve MY problem, but maybe it provides a way to solve your
    problem?
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
    From the article:
    quote:
    Changing the background color of a DataGrid cell is not as
    simple as changing some style because the default renderer for a
    DataGrid cell does not have a backgroundColor. Therefore, to do
    this simple task, you have to create a custom itemRenderer where
    you draw your own background in the updateDisplayList function.
    HTH
    Uwe

  • Dynamically created text field doesn't appear when imported

    Greetings,
    I have 2 issues regarding dynamically created text fields.
    What I'm trying to do is to create a text field inside a swf file,
    then import that swf into another file. The main problem is, the
    text field is created and displayed perfectly when i execute the
    first swf, but when i try to import the whole thing into another
    file, the text is not displayed.
    I have to point out that, when I add "stage" before the
    addChildAt command, the text appears, but I don't want the
    coordinates of the text box depending on it's location on the
    stage.
    The second problem is, I want the scroll buttons to appear if
    the text is longer than the text box, however they appear no matter
    what. I trace the values and they are correct, so I can't really
    understand why they keep appearing.
    Thank you very much for your help.

    The same thing is happening to me and it is starting to get annoying. I too am using Chrome and I think that might just be part of the issue. I am running a Macbook Pro 2010 13". Any insight on this would be helpful. Sorry I don't have a solution, but know that your not alone in dealing eith this issue.

  • Dynamic change of wage type texts on salary slip

    Hi Gurus.
    Maybe someone can help with a request.
    I want to do following.
    If someone input a wage type e.g. 6666 in Infotype 0015 I want to open a new input-field.
    In this input field the user should enter a text.
    In the payroll run I want to change the wage type text on the salary slip for wage type 6666 to the text inputted in the new field.
    We are using HRForms (PE51) for the salary slip.
    Does anybody have a solution or some tips how I can implement this?
    Thanks for your answers.
    Regards.
    Stefan

    Hi,
    Do not change the wage types , you have to delimit the wagetypes from a validity date as you have assigned minimum and maximum amounts for your wage types.
    Regards,
    Kapil Kaushal

  • How do I set the value of a dynamic row text field

    I have a repeated row form which contains a button and multiple text fields.  There is a text field (Input Data Field) further up with some information I want to place in the table and multiple buttons that I want to read the value of and set to the table.  I apologize there are multiple questions I have and I am using pseudocode to describe it.
    Top form looks like
    InputField
    | ButtonX1 | ButtonY1 | DescriptionX1 (read only Text Field)
    | ButtonXn | ButtonY1 | DescriptionXn
    OutputRow looks like
    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |
    So I would like it to do
    ButtonX1.click
    OutputTable.OutputRow.addInstance(true)  //this works - everything else I have questions on
    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue
    Question 1
    How do I address the location in each table to set a value
    Question 2
    How do I get the value of the description field in the same table and row as the button
    I would like to say something to the effect of  OutputTable.OutputRow[??].OutputField1.rawValue = this.parent.DescriptionX
    OutputTable.OutputRow.OutputField2 = InputField.rawValue
      Same question as above - how do I specify a dynamic row - is this the proper syntax for getting the value from the input field?
    OutputTable.OutputRow.OutputField3 = this.ButtonLabel
    Question 3
      How can I get the value of the button's label to set in the field
      There should be very many of these buttons and buttons will be added - I would prefer to set the value based on the button's label to make the value easier - not requiring changing the code
    Question 4 - unrelated to those above.
    Is it possible to build the first table
    | ButtonX | ButtonY | Description |
    from an XML File.  I have seen examples of how to build if it is just data, but can the XML be pushed into a form with code to do the above actions?

    Each object in a form must have a unique name. I doing so it is not neccessarily the name but the path or SomExpression associated with that object that must be unique. In your case you have a Table.Row.object configuration. The Row is the part that is repeating so to give each object a unique name an instance number is placed on the repeating part. So objects in the 1st row woudl be Table.Row[0].object...objects in the second row woudl be Table.Row[1].object etc .....You can see this by adding a debug instruction on the Enter event of the description field. Put the code app.alert(this.somExpression) and when you enter the field you will see what the somExpression is. Do this for a few rows and you will see the pattern (don't forget to remove the debug code from the enter event). Now you know what you have to use to address the fields. If no instance is given it is assumed to be 0 ..that is why only the 1st row is being affected.
    So now to answer your questions:
    Question1: The square bracket notation is an issue for javascript (this is the notation for an array) so we have to use a different means of addressing the field to include the instance number. So to address the Description in the 3rd row we woudl use:
    xfa.resolveNode("Table.Row[2].Description").rawValue = "This is my new description";
    Note that the instance number is 2 for the 3rd row because the instance numbers are 0 based.
    Question2. The resolveNode notation allows you to pass a string so you can also concatinate expressions to make the string. If you are writing code on a button in the same row you can get the instance that you are on by using the expression this.parent.index. The "this" portion refers to the current object (the button) and the parent.index gets you th eindex of the Buttons parent. If the button is embedded deeper in a hierarchy then you can continue to add parent indicators until you get back to the node that you want. So rewriting your expression from Q1 it woudl be:
    xfa.resolveNode("Table.Row[" + this.parent.index + "].Description").rawValue = "This is my new description";
    Question3: The buttons caption can be retrieved by using ButtonName.caption.value.text.value
    Question4: When you say build from an XML file. What are you expecting to come from the XML file? The caption that goes on the button? Typically the XML file carries data (not to say that it cannot carry other things). Just need a bit of clarification on this one first.
    Hope that helps
    Paul

  • Safari 5.1.2 keeps changing text field randomly on text input

    Hello everybody.
    Safari keeps changing the text field on input, do you know how to correct this issue?
    Here is an example:
    Let's say I load www.google.com, it appears in the safari window as usual.
    Suppose I begin to type a search in the google search field at the top right of the safari window (not the one on the google page)
    if when doing this the sentence is long for the search, at some point randomly, the rest of the text will be entered this time in the google search text field on the google page! (which is the very next text field) So when I hit enter it makes google search half of my request...
    Safari changed the text field I was into with no warning. I want to say I do not press tab at any moment.
    This is annoying really, and this does not appear anywhere else than in Safari. It seems the issue is not systematic, but appears quite often.
    I have no universal access setting except "enable access for assistive device"
    I had to check this box upon installing a software in the past but I can't remember what it was.
    Perhaps the problem I have is linked to some window refreshing?
    Thank you for your suggestions or help
    Mac Pro, 10.6.8

    Try deleting the cache associated with Safari ...
    Quit Safari.
    Go to ~/Library/Caches/com.apple.Safari/Cache.db.
    Move the Cache.db file to the Trash.
    Relaunch Safari to test.
    I had to check this box upon installing a software in the past but I can't remember what it was.
    Open System Preferences > Universal Access
    Make sure the box next to:  Enable access for aassitive devices is deselected.

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • Dynamic table with field type table

    Hi,
    I´m using "cl_alv_table_create=>create_dynamic_table" to create a dynamic table for ALV Grid.
    But...I need to use colors in ALV, then I need to declare a field type LVC_S_SCOL in dynamic table from "cl_alv_table_create=>create_dynamic_table".
    How can I declare this in fieldcat?
    The code:
    Creating dynamic table
    DATA: table_agrup TYPE REF TO data,
            line_agrup  TYPE REF TO data.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog           = t_fieldcat
        IMPORTING
          ep_table                  = table_agrup
        EXCEPTIONS
          generate_subpool_dir_full = 1
          OTHERS                    = 2.
        ASSIGN table_agrup->* TO .
    Printing ALV
      CALL METHOD obj_grid->set_table_for_first_display
        EXPORTING
          is_variant                    = w_variant
          i_save                        = 'A'
          is_layout                     = w_layout
        CHANGING
          it_outtab                     =
          it_fieldcatalog               = t_fieldcat
          it_sort                       = t_sort
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    Thanks.

    It is not possible with the  METHOD cl_alv_table_create=>create_dynamic_table to include another table inside that newly generated table.
    I have tried to do it with the code and I got the dynamic table created after at the end of the program.
    In the code,
    <DYN_TABLE> has same effect as your <table> variable
    <DYN_WA> has same effect as your <HEADER>
    REPORT  ZTEST_NP_DYNAMIC.
    DATA: DY_TABLE TYPE REF TO DATA,
          DY_LINE  TYPE REF TO DATA.
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA>,
                   <DYN_FIELD>.
    FIELD-SYMBOLS: <FS> TYPE ANY.
    * To generate the Dyanmic table with the COLOR
    DATA: LS_SOURCE TYPE STRING.
    DATA: LT_SOURCE LIKE STANDARD TABLE OF LS_SOURCE WITH HEADER LINE.
    DATA: L_NAME LIKE SY-REPID.
    DATA: L_MESSAGE(240) TYPE C,
          L_LINE TYPE I,
          L_WORD(72) TYPE C.
    DATA: L_FORM(30) TYPE C VALUE 'TABLE_CREATE'.
    LT_SOURCE = 'REPORT ZTEST_SUBROUTINE_POOL.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'FORM  TABLE_CREATE USING I_FS TYPE ANY.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'DATA: BEGIN OF LT_GENTAB OCCURS 0.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'DATA: BUKRS TYPE BUKRS. '.
    APPEND LT_SOURCE.
    LT_SOURCE = 'DATA: BKTXT TYPE BKTXT. '.
    APPEND LT_SOURCE.
    * you can add your fields here.....
    LT_SOURCE = 'DATA: COLOR TYPE lvc_t_scol. '.
    APPEND LT_SOURCE.
    LT_SOURCE = 'DATA: END OF LT_GENTAB.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'DATA: POINTER TYPE REF TO DATA.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'CREATE DATA POINTER LIKE STANDARD TABLE OF LT_GENTAB.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'I_FS = POINTER.'.
    APPEND LT_SOURCE.
    LT_SOURCE = 'ENDFORM. '.
    APPEND LT_SOURCE.
    L_NAME = 'ZTEST_SUBROUTINE_POOL'.
    CATCH SYSTEM-EXCEPTIONS GENERATE_SUBPOOL_DIR_FULL = 9.
      GENERATE SUBROUTINE POOL LT_SOURCE NAME L_NAME
               MESSAGE L_MESSAGE LINE L_LINE WORD L_WORD.  "#EC CI_GENERATE
    ENDCATCH.
    IF NOT L_MESSAGE IS INITIAL.
      MESSAGE E000(0K) WITH L_MESSAGE L_LINE L_WORD.
    ENDIF.
    ASSIGN DY_TABLE TO <FS>.
    PERFORM (L_FORM) IN PROGRAM (L_NAME) USING <FS>.
    ASSIGN DY_TABLE->* TO <DYN_TABLE>.
    * Create dynamic work area and assign to FS
    CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
    ASSIGN DY_LINE->* TO <DYN_WA>.
    Write: 'bye'.
    Regards,
    Naimesh Patel

  • Cfpdfform (CF8) changes text-field font of an adobe 9 pdf form to Courier

    I'm having problems getting cfpdfform to render the text-field font as it exists in the source pdf form.
    The source pdf form was created in Acrobat 9 Standard.
    When I download the pdf from the server using cfcontent, the text-fields look as expected, retaining their designated font (and the pdf has the desired fonts embedded).
    However, when I do a cfpdfform action="populate", the text-field font is switched with Courier (even though the desired fonts remain embedded).
    This happens regardless of what font I pick.
    I have verified that the font exists on the server and in cf admin.
    Here's my code:
    <!--- populate --->
    <cfpdfform action="populate"
               source="#pdfPathFile#"
               destination = "#pdfPathFile#"
               overwrite = "yes">
        <cfpdfformparam name="student_name" value="first name and last name" />
        <cfpdfformparam name="certificate_title" value="a cool certificate title" />
        <cfpdfformparam name="certificate_date" value="1/1/2010" />
    </cfpdfform>
    <!--- make read-only --->
    <cfpdf action = "write"
           destination = "#pdfPathFile#"
           source = "#pdfPathFile#"
           flatten = "yes"
           overwrite = "yes"  />
    <!--- return the content --->
    <cfcontent
        file = "#pdfPathFile#"
        deleteFile = "yes"
        reset = "yes"
        type = "application/pdf" />
    Commenting out the cfpdf action = "write" block produced the same outcome.
    Using different source and destination filenames (vs overwriting  existing one) didn't make a difference, either.
    Any ideas on how I can get cfpdfform to respect my predefined text-field fonts?
    I truly appreciate your time.

    The problem was resolved.
    Turned out to be the way the pdf was created by Adobe 9 Standard that made cfpdfform misbehave.
    Three things we did seemed to have made the pdf acceptable by cfpdfform:
    1. Downloaded the latest updates for Adobe 9 Standard
    2. Checked on the text-field "Multi-line" property
    3. Checked off the text-field "Rich Text Formatting" property
    Cheers.

  • Merge pdf's forms, change text field name and Acrobat x pro closes automatically

    I merged 20 pdfs in one interactive pdf, but when I try to change the name of the text fields (in orden to make the interactive independent from the other fields) the program close automatically. I tried to change the name of the text fields in each pdf before merge and it's the same problem. what can i do?

    I merged 20 pdfs in one interactive pdf, but when I try to change the name of the text fields (in orden to make the interactive independent from the other fields) the program close automatically. I tried to change the name of the text fields in each pdf before merge and it's the same problem. what can i do?

  • Dynamic Forms - text fields

    Hi, I am currently using LiveCycle Designer 8.0. I am having major problems getting my text field boxes to expand dynamically on the page and over to the next page to accommodate large amounts of text. I have employed the 'allow multiple lines' and 'expand box' but to no avail. I think it is a 'subform' related problem. Appreciate any help out there.
    Regards
    Barum55

    Hi,
    Have you saved the form as a "dynamic XML form" in LC Designer?
    While you can set the object to multiple lines etc., it won't work if the form is saved as "static".
    Good luck,
    Niall

  • Dynamically changing text boxes

    My development staff is new to ABAP and the screen painter, and one of those developers is designing a screen with text boxes on it that need to dynamically change according to what is brought back from the database. How would one accomplish that task?
    Thanks,
    Kevin.

    Since it is an ABAP programming-related question, you might have a better chance of getting it answered if you post it in the ABAP Programming Forum.
    Regards,
    Ivo

  • Dynamically changing column display type

    Hi,
    I have a report that gets generated every day with different column names. The report contains a decode statement that uses a row value to return using pictures. The problem I am running into is the column is being displayed as text and the value of the row is showing up as some html text instead of the picture. The default Column report in APEX 4.1 is for the report to be displayed as "Display as Text". I know the APEX team did this for security reasons. Is there any other way to display the column as "Standard Report Column".
    I want the report to be displayed as a "Standard Report Column" instead of me going in and changing it manually to "Standard Report Column".
    Any help in the right direction is appreciated.
    -Abe

    I have been trying to find the same solution... the ability to either default all my columns to "Standard Report Column" instead of "Display as Text" or to dynamically change them from code. Or it would even be great if the "Display As" value on report columns (both Classic Reports and Interactive, mine is Classic) was a column in the "Column Attributes" table on the "Report Attributes" page so that I could just change them all and hit "Apply" from that one page instead of having to go into each column's properties individually. (It's time consuming and tedious and easy to miss columns because I can't tell what I've changed.)
    If anyone has any thoughts, I'd love to hear them...

Maybe you are looking for

  • Error on the reports with drill-through links on SSRS 2012 SP2 -- Invalid URI: The Uri string is too long

    Hi, We are migrating SSRS 2008 R2 reports to SSRS 2012 SP2. (PS. SSRS 2012 SP2 has been applied.) Everything went smooth expect some reports which were using reporting services. These reports have some drilin-through actions and was passing in a huge

  • New HDD for 2007 Macbook A1181

    Folks I have been using my Macbook since it was purchased new.  Operating snow leopard 10.6.8 with a 2.4 GHz Intel Core 2 Duo with 4 GB 667 MHz DDR2 SDRAM.  The original HDD was getting full with running a lot of the software programs (Photoshop, Ape

  • Need a good re-shippable Laser Printer

    My company is conducting training in new markets. This involves shipping training equipment, and then re-shipping that equipment to the next location. We found that despite removing toner and taping up the toner openings, the last model of laser prin

  • Setting Default printing as Black only

    I know how to enable printing in black only using printer properties and colour ->greyscale-> in black ink only.But that setting lasts only for that session/ file being printed. If I load another file or another session the default goes back to colou

  • I Need Help With My Weather App

    I use the weather app a lot. The current location weather isn't working properly. It shows the correct weather but it's not the correct name of this specific location. How do I fix it to show the correct name of the place? (It's one specific place)