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

Tags: Oracle Development

Similar Questions

  • 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

  • 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;
    
  • 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

  • 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 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

  • 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.

  • 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.

  • 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 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

  • 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 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...

  • Text box for data entry

    Hi guys,.

    I have a few areas of data entry in my GUI that I control.

    The data are entered in hexadecimal format, IE. Ox is sitting next to the text entry box and the user must enter a value between 00 and FF for a single byte.

    As soon as the user tries to enter R eg I want for a warning sound to happen and him should not be accepted by the text entry area, I also want to limit the size of a byte, that is, a person may enter FFF.

    Any help much appreciated.

    Eoin

    Use a digital control.  Change the properties to:

    Appearance: See the Radix

    DataType: U8

    Display format: hexadecimal.

    Lynn

  • MaxLength set for the text element

    Hi all

    I want to set the maximum length of a text element in order to limit the entry of 1 character (not in a form, just a simple text element).

    Where can I do this?

    (APEX 4.0)

    Thank you

    Kirsten

    Kirsten wrote:

    I want to set the maximum length of a text element in order to limit the entry of 1 character (not in a form, just a simple text element).

    That means "not in a form, just a simple text element? If it is not in a form, where is he? Do you mean a page element, control generated by a built-in tabular presentation or a custom control that is dynamically generated using the apex_item API?

    For a page of text element, set the maximum width property in the section of the element.

  • New box of the text element

    Hello

    I have a datablock that has 6 records displayed in a table. Next to each record, I would like to create a box that should display data from another table. Could you please help how can I do this

    Thank you

    Hello

    Do not just put a block of data on a control or block in the same block where you have other fields displayed to an item property database table and change the text box to "no".

    Now, your query should return a value in the text box. Try first on the same window with other elements if everything works fine go to the other window

Maybe you are looking for

  • password management 'key' icon does not appear on a toolbar

    I can manage the passwords using tools-> Options, BUT the small icon 'key', indicated in the instructions, is not visible anywhere on my toolbars. (I have ALL the toolbars displayed.)

  • Equium A100-027 - where can I download the drivers?

    Hi all I had * Toshiba Equium A100-027 * laptop to the United Kingdom and model: * PSAAQE-007008AV *.I tried online for LAN, audio drivers for XP operating system drivers, but I have not found all the drivers on a Web site for Toshiba Equium a100-027

  • Satellite Pro 2100: PCI Wireless card

    Install a PCI card Broadcom wireless and need to know where the overhead wires are routed (screen or base) so that I can try and extend one is short of 1 cm-oh and make black and white colors correspond to large and in the?

  • HP Pavilion dv6736nr pilot missing coprocessor

    disk crash hard, lost all backup, installed windows 7 64 bit home premium operating system. Now you are looking for the coprocessor driver. laptop seems to work very well with no issue. This will help to install this driver? It will hurt the processo

  • What SATA is about p7 - 1957c, 2.0, or 3.0?

    Can he take charge of 6 Gbps-compatible SATA ports? The m/b is Joshua-H61-Μatx.  It is manufactured by Foxconn. Don't tell the specifications. I'm looking at a 4 TB internal HD is 6 Gbps.