Fill a field of text element.

Hello

I use Apex 4.0 with Oracle 11 g.

I have a requirement where I need to create a form with different elements.

I have a 1 text field where I need to enter a value

How can I copy the same value into another text box 2 without saving the first condition in the database.

Can anyone help me please with this.

Thank you
Rik

Nina wrote:
Hello
>

<script>
 
function updateVal()
{
     $x('P5_TO_1').value = $v('P5_FROM');
     $x('P5_TO_2').value = $v('P5_FROM');
}
</script>

>

A better way is to use $s. $s the works of several types of entries. For example

$s('P5_TO_1',$v('P5_FROM'));

See you soon,.

Better to use $s. thank you for that it points to.

Tags: Database

Similar Questions

  • Fill a field of text according to what is selected in the item list field

    I have a form that contains a ROOM_REF field that is a list item and a ROOM_DESC field that is a text element. (among other things).

    When the user selects in the ROOM_REF area (which is populated by a group of archives at the start),
    I want it to automatically fill in the ROOM_DESC field with data (read-only).

    What type of trigger that I use and with what code?

    Something like:

    SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

    Thank you

    Have you tried this code in the trigger of WHEN-LIST-list item CHANGE.

    SELECT ROOM_DESC IN: ROOM_DESC OF THE ROOM WHERE ROOM_REF =: SESSION. ROOM_REF;

    -Clément

  • Drop down value triggers fills the field of text able to appear.

    Am back, I have a form that is capable of filling that I am very satisfied, but I still want to do some improvements more.

    I want to be able to use my drop-down list values to trigger new windows

    For example: if I have a drop down menu which asked for the title and the choices are CIV, MIL, CTR if they chose to MIL, I need to know what their rank is, but if they choose CTR I need to know what company they work for.

    So, if they CTR has chosen, to the right of the value, I would like a text field to appear saying the company name: _ so they can fill it.

    I could find some information, but it was design to have choice narrowed down I just need to fill areas of text able to appear based on a selected value drop.

    Thanks again

    I created a sample for you... .the code is located on the output of the DDList event. In my case, I used the same field to enter the News extra and just changed the legend based on the chosen value. I want to what you think.

    Paul

  • Fill a text element to EXECUTE the QUERY

    Fill a text element when a list item is changed by using the following code in a trigger WHEN-LIST-CHANGED:

    SELECT ROOM_DESC IN: SESSIONS. ROOM_DESC OF ROOMS WHERE ROOM_REF =: SESSIONS. ROOM_REF;

    It works fine but when I start a new form and click on run query that do not appear in the text element data.

    What type of trigger can I use these data through when I press to run the query and if I can use the same code?

    Bravo guys

    Hello

    This because when you pull, the trigger WHEN LIST-CHANGED does not occur. So, write the same line in the trigger after REQUEST of the block.

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • Disable/hide the message text element image of a field of text in javascript

    Hi friends,

    I added a text of element position for one of the textfield object in my page as
    <img src="#IMAGE_PREFIX#ws/small_page.gif" onclick="javascript:popUp2('f?p=&APP_ID.:99:&SESSION.::NO::P89_select:2', 500, 500);" />
    Which will display a page when click the image

    I want to disable the textfield depending on certain conditions. I do it in javascript. The text field is disabled
    but the message text image is present and is clickable. I want to hide or disable the image displayed in the message as well item. Is it possible to do so. Help, please

    Thank you
    TJ

    Hello

    If you try to hide the entire line where the point is?
    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDIIJHG

    Or it works if you wrap your article to the div tag and try to hide
    Add to the text of item pre

    end post text element

    
    

and change your javascript to hide id Px_ITEM_CONTAINER

BR, Jari

Published by: jarola February 2, 2010 08:58

  • How to display the phone number with code in the text element

    Hello friends,

    I have table "customer_management. In this table, I have a phone number of field in the varchar2 data type.
    the storage format of the telephone number is: (code-phone number) for example 0902334-324345
    Ok. I created a form of this table in the data block. This form I want to view the phone number and code in two text elements... So, should I create a query to do this... Pls help me with a query... What trigger is suitable for it?
    Please give me example query...

    Thank you

    Hello
    If you are using

    :TAA_CUSTOMER_MANAGEMENT.CONTACT_PHONE_NO
    :TAA_CUSTOMER_MANAGEMENT.NUMBERS
    

    are these above said are elements not db?
    If yes then its get accessor for fill in post-interrogez trigger.
    Just check substring and instring functions that return the value.

    Published by: user13329002 on March 3, 2011 01:47

  • Two fields of text depending on the form does not

    P2_TECHNICIAN1_RADIO IS A TEXT BOX WITH THIS QUERY:

    Select radionum d, radionum r
    of org1

    AND after that radionum entered p2_technician1_radio, p2_technician1_name is filled with the results.

    P2_TECHNICIAN1_NAME IS A LIST OF SELECTION WITH THIS QUERY:

    Select last_name. «, » || d first_name, last_name. «, » || first name r
    of org1
    where radionum =: p2_technician1_radio

    Now it all works, but when I change the p2_technician1_name of a "Display text" field, it no longer works. What should I change to make it work as a field "display text"? Thank you

    Deanna

    Ok

    My pages are based on the EMP2 table that has fields EMPNO, ENAME, DEPTNO and DNAME. This links to the table that has fields DEPTNO and DNAME DEPT. My sample form is used to fill the EMP2. DNAME field with the Department. DNAME value based on the DEPTNO entered by the user.

    So, first of all, I have a link to my report on page 1. This theme has the following parameters:

    Target: Page
    Page: 2
    Clear Cache: 2
    1 name of goods: P2_EMPNO
    Value of the element 1: #EMPNO #.

    Note that I have clear the cache for page 2

    Now on page 2 (the form) I have four fields - P2_EMPNO (hidden), P2_ENAME (that we cannot ignore here), P2_DEPTNO (text field) and P2_DNAME (display in the text field (stops State))

    P2_DEPTNO has the following parameters:

    Source: always,...
    Source type: column database
    Value of source: DEPTNO

    P2_DNAME has the following parameters:

    Source: always,...
    Source type: column database
    Value of source: DNAME

    Page 2 has a rank of Fetch on automated EMP2 line pick the process that runs after the header and has the following parameters:

    Owner of the table: (my diagram)
    Table name: EMP2
    Element that contains the value of the primary key column: P2_EMPNO
    Primary key column: EMPNO

    Page 2 has a row of process of treatment EMP2 automatic line (DML) that runs on submit - after calculations and Validations. It has the same parameters as for the above extraction process.

    Page 2 has a validation for P2_DEPTNO that verifies the existence of the value entered by the user. It is a validation exists SQL using the:

    SELECT 1 FROM DEPT
    WHERE DEPTNO = TO_NUMBER(:P2_DEPTNO)
    

    I got an error text to display if the query returns no rows.

    Page 2 has an unconditional branch pointing to page 2 with no special parameters

    There are the buttons cancel and apply the normal changes that were created during the creation of the form by the wizard - Cancel redirects to Page 1 and Apply Changes just submits the page.

    Finally and above all!, page 2 has a calculation that runs after shows to the agenda of the P2_DNAME page. This process is unconditional (otherwise said, it is triggered by anything that submits the page - in this example, it's just the Apply Changes button). The method is a type of "SQL query" and has the following calculation:

    SELECT DNAME FROM DEPT
    WHERE DEPTNO = TO_NUMBER(:P2_DEPTNO)
    

    I'm ignoring the report showing the DEPTNO values as it was just to check what are the numbers that I could use.

    If the bits are important settings on the P2_DEPTNO and P2_DNAME elements and calculation and cache pages of compensation on the report link.

    Andy

  • Editing a text depending on the value of another field to text field

    Hi guys,.

    I am facing problem with the update of a field of dependent text in another text field.

    I have 2 text fields. Both are date format. In the 1st text field enter a date, and in the following text field I need the value in the form date_in_previous_text + 30 days.

    I used a query at the time to validate the point but it does not work. It is as follows.

    If: txt_field1 is not null then

    : txt_field2: =: txt_field1 + 30;

    end if;

    Please help me with the same.

    Hello

    u has not clarify what the problem, u just said the scenario but without any anomaly. Try to use the KEY-NEXT-ITEM trigger on the second level of the item.

    Or POST-TEXT-ELEMENT trigger of the 2nd element.

    Amatu Allah.

  • Toggling text element based on the selection of a list item

    Hello friends,

    I have a header data block where I have a field to not enter the name of book and a REGD Item list that displays 'Yes' and ' ' and a text REG_NO element.

    When the user selects 'Yes', the text REG_NO element must be enabled so that the user can enter the number of the book.

    By choosing 'No', the REG_NO element must be disabled.

    I have included a trigger WHEN-LIST-CHANGED in the list REGD item.

    I added the following code in the trigger above:

    --=======================================

    BEGIN

    IF: HEADER. REGD = ' don't

    THEN

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_FALSE);

    ON THE OTHER

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_TRUE);

    END IF;

    END;

    --=======================================

    However, when the form is opened, the text REG_NO element is enabled.

    When the user chooses the 'no' in the list item REGD, then the text REG_NO element is disabled as expected.

    However, when you choose 'Yes' in the item list REGD, the text REG_NO element does not get activated.

    Can someone let me know how to activate the text element.

    Concerning

    Hawker

    When you disable an item, NAVIGALE, INSERT_ALLOWED, and UPDATE_ALLOWED properties are also set to False, then you will need to reactivate their when you reactivate an item.

  • automatically fill in one of the elements

    In my application, there is a form of payment. I have 7 items that need to be filled. one of these elements is (payment) and it should be screen only. the calculation will come on the total of all prices of orders in another table.

    Please let me know how I can put the SQL for the field of payment according to the invoiceno we select.

    Calendar

    http://10.100.30.33:8080/i/themes/theme_4/images/lov_icon.png


    You said,

    the calculation will come on the total of all prices of orders in another table.

    Have you created any calculation to fill the field value?  Please give details? What I realized is that you want to fill the value in the payment field based on the value of the field Invoiceno. Is it so? You can use dynamic for this action if you are in the APEX 4.x version.

    Thank you

    Lacombe

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • How to display database records in the text element

    Hello friends,
    I use forms6i...
    I called "username" in the layout of text editor. I created this point in the text of the data block Wizard... I put the number of items displayed = 3 in this wizard...
    In the 'user name' property palette I have following changes
    Number of displayed items = 3;

    When I click on the button named "list_user" must watch all the user names in the text element...
    My shutter button pressed when code is:


    declare
    cursor c1 is
    Select Logid log1 where logout_date is null;
    Start
    Open c1;
    Fetch c1 into: name of user;
    end;

    But my problem is when I run the user a single form displayed in the text element... The text elements two remaining are have no data...

    The result of the cursor query is:



    SQL > ed
    A written file afiedt.buf

    1 Select logid log1 where logout_date is null
    SQL > /.

    LOGID
    --------------------
    104
    105
    106


    Please help me

    Published by: Bauer on February 23, 2011 01:45

    1.
    There is no loop in your code, so it stops after the first extraction.

    2.
    with each loop you overwrite the same text field. Add CREATE_RECORD:

    DECLARE
        CURSOR c1 IS
            SELECT logid
            FROM   log1
            WHERE  logout_date IS NULL;
    BEGIN
        OPEN c1;
        LOOP
            IF :username IS NOT NULL THEN
               CREATE_RECORD;
            END IF;
           FETCH c1
           INTO  :username;
           EXIT WHEN c1%NOTFOUND;
        END LOOP;
    END;
    
  • Expaning a field of text inside a table (part two)

    Good day together.

    Well, thanks to Niall, I was able to get the text field to develop when one that a line has been added to a field of text inside a table. Now I seem to have a logical problem. When I click on (see code below) the expand button, the expans line to show all text. The problem, when I click to shrink the line, nothing happens. A more interesting than Gizmo, when the text field is empty and you hover over the button "Expand", the ToolTip indicates "show all the text...". "But

    When the line is extended and you hover over the button, the ToolTip indicates "show all the text...". »

    I wonder if this migt be caused by me using Version 8.0 of the life cycle of the Designer?

    Concerning

    Chomp

    If (this.resolveNode("caption.value.#text").value is "q")

    {

    this.resolveNode("caption.value.#text").value = 'u ';

    this.assist.toolTip = "show all the text...". » ;

    This.Border.Fill.Linear.type = "toBottom."

    This.Border.Fill.Color.Value = "247,217,185";

    This.Border.Fill.Linear.Color.Value = "236,187,74";

    Description.h = "0,3937" in

    yourOptions.h = "0,3937" in

    Delivery.h = "0,3937" in

    }

    on the other

    {

    this.resolveNode("caption.value.#text").value = "q";

    this.assist.toolTip = "hide the overflow text...". » ;

    This.Border.Fill.Linear.type = "toBottom."

    This.Border.Fill.Color.Value = "209,228,203";

    This.Border.Fill.Linear.Color.Value = "122,180,112";

    description.minH = "0,3937" in

    yourOptions.minH = "0,3937" in

    delivery.minH = "0,3937" in

    }

    Script

    Hello

    First of all, I would not recommend to go into the XML Source tab to change the settings of the object. You can access the Extensible settings in the object > link tab when you have the selected extensible object.

    Just give a try. I suspect that you have not set repetition:

    Hope that helps,

    Niall

  • APEX4: Filling of fields of database based on the value of SelectList

    Hello

    I have a Select list and 4 fields of text on a form. By choosing a value in the select list, I have to fill out text fields from its values from the database by using the value in the list select as primary key.

    How can I do this in 4 APEX?

    Thanks for the help.
    -Hozy

    OK, the problem was solved on apex.oracle.com

    You were not able to access the application because your application uses DB account as the authentication scheme, who obviously would not work on apex.oracle.com.

    I have change the authentication to Apex on apex.oracle.com scheme.

    About 3-4 truggers were not valid for account forms, the customer and transfer did not work. Who sets also.

    There is no data, then finished by create minimal records juices.

    Now take a look at the Page 14 and dynamic Actions. Only Address1 and Address2 are Benoit updated, based on the customer account. You will need to add additional Dyna for the zip code and city Actions.

    Next time around, please make it easier for someone to help out you by
    1. the manufacture of safe objects are valid
    2. it some (dummy data) in the relevant tables

    Kind regards

  • How to return the value of the SQL in the text element

    Hi friends

    I need you to guide me how I can print the return value of the SQL in a text element

    Suppose it's your function
    create or replace function get_value
    return number
    is
    begin
    return 3*2;
    end;
    /
    any help that I enjoyed

    Thank you

    >

    http://i46.Tinypic.com/11l0s5h.jpg

    This is ORA-06502: PL/SQL: digital error or value.

    Check the data type and size for items of text or any other variables or fields in the service.

  • Maybe you are looking for