How the data automatically appear in the text element.

Hi all
I m using oracle 10g forms and reports on win xp.
I have a table named "Estimate" that have the following fields: -.

(1) Object_Name
(2) Object_Code
(3) Budget_Estimate
(4) Add_Fund

For Object_Name I have create the item list, I have 51 articles in this element of the list. When I press 'A', it shows me everything starts from "A".
and it's the same for other alphabets.

My problem is when I press 'A' in and select my specific name of the object and enter after that I got the specific object for the name of the object Code.
For example, I have these names of objects and their Codes: -.

Object_name Object_Code

Pay 01
Allocation 02
Medical allowance 03
Convince 04
House rent 05

Now, when I select the Object_Name Pay and press on enter, automatically appear 01 danslechamp Object_Code,.
even that is, when I select rent house break-in, then in Object_Code filed appears 05.

Concerning

Sidibé

Oh yes execuse me :)

If I have your right point...

Trigger WHEN-LIST-CHANGED

SELECT Object_CODE

INTO :NON_DB_TEXT_ITEM -- or a text_item

FROM TABLE_NAME

WHERE Object_Name = :Object_Name;

-- Then Assign :NON_DB_TEXT_ITEM to a text_item in when-validate Trigger

:TEXT_ITEM := :NON_DB_TEXT_ITEM;

or u can assign the list value to a text item

 :text_item = :Object_Name;

It could be that useful...

Kind regards

Abdetu...

Published by: Abdetu on February 16, 2011 09:09

Tags: Oracle Development

Similar Questions

  • How to insert the scroll bar in the text element

    Hi all
    Now I use form 10g.
    Is it possible to add the scroll bar in the text element? If, Yes...
    Please help me to insert the scroll bar in the multi line text item.

    Thank you

    Hello
    You should not do anything... to get a scroll bar...
    For all the elements of several lines, scroll bar is automatically
    the runtime if data exceeds the size of the
    field...

    Concerning
    Swati

  • 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;
    
  • Restrict the text element of data entry

    Dear comrades,

    I have a block of data. In this block, I have a DB text element. When I use the execute_query, the values are filled in this point of the DB block text. Some of the text elements are filled with value and some are not according to the database table.

    In this situation, I want to limit this element of text in a way so that if it already has the data, so no one can change the value other than (i.e. If the text element has a null value) the user can put data out there.

    Please help me this app. Thank you for your support and your help.

    Rgds,
    Luther

    per block of several recording, you need to use SET_ITEM_INSTANCE_PROPERTY instead of set_item_property, but in this case, only the INSERT_ALLOWED AND UPDATE_ALLOWED properties can be set. see the forms for more information online help

     set_item_instance_property('myblock.myitem',current_record, insert_allowed, property_false);
     set_item_instance_property('myblock.myitem',current_record, update_allowed, property_false);
    

    If the answers are useful or correct please mark

    Baig,
    http://baigsorcl.blogspot.com

  • How to view computer-id (user name) in the text element

    I want to know how to display the name of average user specific computer id that uses my module in the text element?


    Any idea

    Concerning

    Therese

    Hai,

    Run the following command to create a database function.

    CREATE FUNCTION Fn_Get_Computer_Name RETURN VARCHAR2 IS
            Str_RetVal VARCHAR2(1000);
    BEGIN
          SELECT SYS_CONTEXT('USERENV', 'OS_USER') INTO Str_RetVal FROM DUAL; -- Windows User Name
          RETURN Str_RetVal;
    EXCEPTION WHEN OTHERS THEN RETURN NULL;
    END;
    

    And in the forms, just write

    :. := Fn_Get_Computer_Name;
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • How to extract values of classic report column in the text element

    Hi all

    I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)

    (1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]

    (2) text two article P_ID, P_NAME

    (3) in the header of the page, I've specified as javascript

    < script type = "text/javascript" >

    function insert_in_table (id, name) {}

    var regId = ' #detail #'.substr (1);

    var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));

    Req.Add ('P_ID', ID);

    Req.Add ('P_NAME', Name);

    forced. GetAsync (function () {}

    If {(p.readyState is 4)

    $a_report (regId);

    }

    });

    }

    < /script >

    (4) created a (add) process whose point: on demand, run this process when requested by ajax

    pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)

    now the problem is I m not getting the values of column in the report in the text element, it only shows white.

    Kind regards

    Ketan

    Hello Ketan,

    Assuming that you want to insert the values into the table, this is why you want to set values for the element,

    If this is the case, then no need to define values for the element to insert.

    Follow the steps below, it is one of the embodiment of your condition.

    Step 1: Put the code below in your classic report query

    assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3

    select id
         , name
         , ''  as "Add to detail"
    from detail
    

    Edit 'Add details' column-> column attributes-> view-> column of Standard report

    Step 2: Create a process in the processing of the Page

    Name: INSERT_DATA

    Address the point: on demand, run this process when requested by ajax

    Process: putting the code below

    Declare
      P_ID number ;
      P_NAME varchar2(50);
      Begin
          P_ID   := apex_application.g_x01;
          P_NAME := apex_application.g_x02;
          insert into name_detail(id,name) values (P_ID,P_NAME);
    End;
    

    Step 3: Create a java script function to call your insert ajax process.

    Change the Page-> the function and the global variable declaration-> put the code below

    function insert_in_table(id,name) {
      apex.server.process ( "INSERT_DATA", {
          x01: id,x02: name
      }, { success: function( pData ) { }
      });
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • How to get the control to one of the text element?

    Dear people,
    I have two items of text to say TEXT_ITEM5 and TEXT_ITEM6.both values entered in the text elements must be equal.else that an error message should be displayed and two items of text should be cleared.so that I wrote the following code in WHEN BUTTON the shutter as.
    If :block3.text_item5 <> :block3.text_item6 then
              c:=show_alert('ALERT21');
               :block3.text_item6:=null;
              :block3.text_item5:=null;
                       raise form_trigger_failure;
    end if;
    Its almost works well, but after having erased the text in the two elements of the control text should go back to TEXT_ITEM5. I even tried GO_ITEM but is not working properly.pls help me with suggestions.


    Regarding
    Vids

    Hello

    If the value of two text element should be equal so why give the possibility to enter 2 text boxes? Enter 1 text and WHEN-VALIDATE-ITEM trigger of this element, assign the value to the other text element. And if you still need the old way, then you must write the GO_ITEM integrated before the RAISE FORM_TRIGGER_FAILURE statement.

     IF :BLOCK3.TEXT_ITEM5 != :BLOCK3.TEXT_ITEM6 THEN
       C := SHOW_ALERT('ALERT21');
       :BLOCK3.TEXT_ITEM6 := NULL;
       :BLOCK3.TEXT_ITEM5 := NULL;
       GO_ITEM('BLOCK3.TEXT_ITEM5');
       RAISE FORM_TRIGGER_FAILURE;
    end if;
    

    Kind regards

    Manu.

  • How to write to several lines in the text element?

    I tried to write 2 lines in the text element, however only return one row:

    : myqueues.queue: = "Hello" | Chr (10) | ' world ';

    It gives me only 'Hello' in the first line and nothing else in the 2nd line.
    Are there settings needs to be activated in the property of text element?

    Try this:

    DECLARE
    v_filename VARCHAR(50);
    v_handle text_io.file_type;
    
    begin
    v_filename := get_file_name(file_filter=>'All files(*.*)|*.txt|');
    if
      v_filename is null
    then
      bell;
      return;
    end if;
    
    v_handle := text_io.fopen(v_filename, 'r');
    
    go_block ( 'myqueues' );
    clear_block;
    
    text_io.get_line(v_handle, :myqueues.queue );
    next_record;
    
    text_io.get_line(v_handle, :myqueues.queue );
    next_record;
    
    text_io.get_line(v_handle, :myqueues.queue );
    next_record;
    
    text_io.get_line(v_handle, :myqueues.queue );
    
    first_record;
    
    text_io.fclose(v_handle);
    
    exception when no_data_found then text_io.fclose(v_handle);
    
    end;
    

    Published by: Magoo on 02.10.2009 12:01

  • The text element values value when the user clicks a report line.

    The text element values value when the user clicks a report line.

    I have a report based on the EMP table and two elements P911_EMPNO, P911_DEPTNO. When I click on one of the lines the EMPNO and DEPTNO is copied to the text elements.
    It works fine if I leave the EMPNO and DEPTNO as SHOW report, but if I then these clear values are not retrieved the report form (my javascript is very limited).

    I need a method to retrieve the data hidden in the report and display in the text without the reposting of the page elements.

    Also, would be nice if the line was highlighted until another line is clicked but especially is my priority.

    Elements
    P911_EMPNO, P911_DEPTNO (field of disabled text, saves the State)

    Report
    Select * from emp using the model of report below.

    Custom model.
    standard_report_cust_P330-a copy of the standard report with a change model.
    BEFORE EACH LINE
    < tr onclick = "selectRow (this);" #HIGHLIGHT_ROW # >


    * Javascript in the Page Header.*
    < script language = "JavaScript1.1" type = "text/javascript" >
    function selectRow (p_tr)
    {
    var l_deptno = p_tr.childNodes [8] .innerHTML;
    var l_empno = p_tr.childNodes [1] .innerHTML;
    html_GetElement ('P911_DEPTNO'). Value = l_deptno;
    html_GetElement ('P911_EMPNO'). Value = l_empno;
    }
    < /script >

    If anyone has any ideas. Thanks, Pete

    Hello

    When you use this type of report model, you actually control on where the column values are used - and they can be used several times.

    For example, a setting of 'Model line 1' for one such model could be:

    <tr>
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c2">#4#</td>
    <td class="c3">#5#</td>
    </tr>
    

    #1 # fact refers to the data in the first column, #2 # for the second and so on. So you can do:

    <tr onclick="javascript:dosomething('#1#','#2#');">
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c3">#5#</td>
    </tr>
    

    For example, by clicking on the line would trigger the dosomething() function and pass in that the values of the first and second columns. Also note that the 4 # does not appear now - this column is 'hidden' (but note that you must check the box to show the column)

    Andy

  • My requirement is, if we click on the POP UP LOV element so I want the dependent value of this item in column of the text element in a table.

    My requirement is

    If we click on the POP UP dot LOV button then I want the dependent value of this item in column of the text element in a table.

    How do I get this as a table?

    Hi Dan,.

    I have a table, in the first column is popup LOV.and second column key is text element.

    So my question is if we click contextual key lov and select employee name, then I want to show the email address of this employee in the second column of tabular presentation.

    This can be done with AJAX. Write a JavaScript function on the onchange event of popup LOV item (Employee) key and pass the number of the employee selected to your AJAX call, go get the employee email and assign it to your entry corresponding to the key LOV popup text has changed.

    As your dealing with Form (Wizard Based/APEX_ITEM Based-not specified) in a table, you take insofar as each column is the table of elements mapped to APEX_APPLICATION input. G_FXX tables and therefore to write JavaScript to locate the item to update.

    I hope this helps!

    Kind regards

    Kiran

  • Search with AS function in the text element

    Jin

    How can I use AS function with TEXT ELEMENT

    I use this SQL code to generate the report

    Select P_NO, P_NAME, MOB_NO OF ABC WHERE P_NAME LIKE ': % P1_P_NAME';


    How can I do that.


    Maury

    Hello Maury,

    Try this:

    Select P_NO, P_NAME, MOB_NO OF ABC WHERE P_NAME LIKE: P1_P_NAME | '%' ;

  • Photoshop 2015: BUG? Layers panel auto-fait scroll to top when you select the text element with the text, creation/copy of layer tool and other actions

    This is a bug or a really bad and frustrating idea for a story.

    (1) in the layers panel, select a text layer, it highlights

    2) change to the text tool

    3) click on the text element in the workspace

    OR

    (1) select a layer in the layers panel

    (2) Ctrl-J, new layer by copying

    EXPECTED: Panel layers rest in the same position

    REAL: Panel layers scrolls the element selected or new layer to the top of the Panel. BORING.

    I do not need or want Photoshop to make decisions for me, space to work around to move without asking, or generally to spoil my flow!

    Please fix this or give me an option to turn it off as soon as POSSIBLE.

    autoscroll-problem.png

    You have successfully updated to 2015.0.1?

    The bug known as in the original message has been fixed in this version.

  • Dynamic adjustment of the height of the text element

    Hi all

    I'm trying to view content of the letter to a text element. If the content is up to 5 lines
    the height of the text element is just to include content only.

    In other words, the height of the text element must expand and shrink based on the content.

    It is possible that way?


    Thank you
    {: 8}

    Hello

    You can do it. Try

    SET_ITEM_PROPERTY('', POSITION, GET_ITEM_PROPERTY('letter', X_POS), TO_NUMBER(GET_ITEM_PROPERTY('letter', Y_POS)) + TO_NUMBER(GET_ITEM_PROPERTY('letter', HEIGHT)));
    

    Kind regards

    Manu.

  • How can display date and time in the text element?

    Hi all

    I placed two text elements (named text_item1, text_item2).
    I want to put the current date in a text element and the current time in another piece of text. How can I put this?

    Roman salute

    Use pls...

    SELECT TO_CHAR
        (SYSDATE, 'MM-DD-YYYY')
    
    INTO TEXT_ITEM1
     FROM DUAL;
    
    &
    
    SELECT TO_CHAR
        (SYSDATE, 'HH24:MI:SS')
    
    INTO TEXT_ITEM1
    
     FROM DUAL;
    

    OR put the Formate above in the mask property of formats...

    Kind regards

    Abdetu...

  • How the text box will automatically solve a margin decline (manuscript Prep)

    I'm trying to prepare a manuscript for self-publishing (what have I got myself?) and hit another wall.  After setting the margin of the 200 page manuscript (all 200 pages imported from MS Word doc as a text image area), I decided that I needed the smaller margins.  After that, I noticed that the words/text box has not been changed accordingly: the words overlap the new margins.  As a notice of InDesign/stupid, I can't understand a how do I get the text box to fit new, smaller margins of pages at the same time (and I believe there is a better way to manually edit each page individually).

    Advisor?  Any help appreciated.

    Cancellation: If you know a manuscript InDesign (subject doesn't matter) which is in the public domain, I'd like to have the link/location.  I could learn a lot from an example of 'real '.  Thanks in advance.

    If the document is not sufficiently complex already make a new document 1 page with correct and verified margins "master text frame. Taking command or control and passage click on the margin to release your text block. Empty all your text in the image. It will automatically add pages as needed and adjustments as it will be a snap. To work with InDesign, the way sounds are that you will pay with impatience.

    This article can help

    http://help.Adobe.com/en_US/InDesign/CS/using/WSa285fff53dea4f8617383751001ea8cb3f-6faaa.h tml

Maybe you are looking for