How cascade/fill out the value of a column in a table?

Hello

I am begging in the oracle apex,

Now I use 5 Apex


Capture.PNG

I want to select when point items popup lov (1) ... I want to get auto fill in the balance column .


Please help me with the steps...

Thank you.



Hi Amr Abdeen,

Made some changes to the page not 34

1. remove the code button to add a line

$("#f03_0001").attr ("onchange", "javascript:f_fetch_balance (this)");

It is not necessary.

2. convert key lov Popup to popup lov (Query based)

Now it's working.

Please check and let me know if you have any questions.

Kind regards

Jitendra

Tags: Database

Similar Questions

  • How to set the value of a column in a table according to another column?

    Hello world!

    I use Apex 4.1.
    My question is how can I set the value of a column in a table according to another column?
    I have a table and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    I tried to use javascript as
     $('input[name=f02]').live('change', function(){
    if($(this).val()!='1'){
    $('input[name=f03]').val("test")}
    }); 
    for the development of the column note to test if the value typed in the content of the column is not 1, but this code assigns the value to all the lines and I need to set only the specified line.

    Can someone give me a hint in any way to do this if possible?

    Kind regards
    drama9346

    You will need create a process on your page type PLSQL and develop this process "we demand" of the page. In this process, you can run the PLSQL you need. That is to say to retrieve the note value as described in your PC:

    and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    In this process, you must provide a return value of the call, and you can do this by using htp.p. Example:

    DECLARE
       --putting x01 in a var to simplify
       l_test_var VARCHAR2(200) := apex_application.g_x01;
       l_return VARCHAR2(200);
    BEGIN
       -- a simplistic test
       IF LENGTH(l_test_var) BETWEEN 10 AND 20 THEN
          l_return := 'String is between 10 and 20';
       END IF;
    
       --this will write l_return to the buffer, and the ajax callback will receive this
       htp.p(l_return);
    END;
    

    And the code that I wrote above, which is javascript, would need to go where your current code is that binds to the onchange event. The result should be that, when a change is made to this element, an ajax request is made on the server. When the call is finished, it will be the value returned in the item you want.

  • How to fill out the customer type when you submit a form?

    How to fill out the customer type when you submit a form?

    You can't do right now in British Colombia by means of forms.

  • How to fill out the "to:" line with a variable email address?

    I'm new to coding and am not sure how to ask my question. I have a link in an 'Email' symbol that I would like to have the window open to a 'mailto', but there are several instances of that symbol on the timeline, each using a different email address. If the [symbol]. Email.Click code reads as follows:

    Window.Open ('mailto:'+ sym.getVariable = ("emailWindow"), "_self")

    and the line in the Stage.creationComplete code that is supposed to call the variable code reads:

    sym.getSymbol("Details_David").$("Email").html ("[email protected]" "").setVariable("emailWindow","[email protected]");

    With this code, the browser opens a window of mailto, but the ' to: ' line readings, "indefinite".

    Either in the [symbol]. Email code. Click, I have:

    Window.Open('mailto:"emailWindow"',"_self")

    without the "emailWindow" as the variable name, the "to:" line to the mailto line reads, "emailWindow".

    How to fill out the "to:" line with a variable email address?

    Otherwise, it works better:

    1)

    replace

    sym.getSymbol("Details_David").$("Email").html ("[email protected]").setVariable("emailWindow", "mailto:[email protected]");

    with

    sym.getSymbol("Details_David").$("Email").html ("[email protected]");

  • How to fill out (display) values for several blocks in which there is no relationship between the blocks (tables).

    Hello.

    Is it possible to fill in the values (execute_query) several blocks where there is absolutely no relationship between the tables in the same form?

    There is no relationship between the tables. All are separate tables with different columns. None of the names of columns match

    & also the values of the columns do not match. I created blocks for all tables. When I click on run, only the first block of values (first picture) is filled.

    other values of block did not get filled. Is it possible to fill in the values for all of the blocks where there is not relationship, or when there is no master block?

    Is there something I can do for this? It is mandatory for me to put all the blocks in a single form.

    Help me, please. Please do not respond.

    Thank you.

    Create a key-EXEQRY-trigger on the block where 'throw you' the quers. In it, put something like

    GO_BLOCK ('BLOCK1');

    EXECUTE_QUERY;

    GO_BLOCK ('BLOCK2');

    EXECUTE_QUERY;

    ...

  • How to fill out the empty fields of a document downloaded from my email?

    I have the filliing problews in the blank spaces where my personal information is required.  It seems that I can read and save the document, do not fill the required spaces.  I need help

    Hi Atiimkwabena,

    I guess you are trying to fill out the PDF using Adobe Reader. (Correct me if I'm wrong)

    If so, this form can not be Reader rights enabled. Adobe Reader is a single PDF reading software is only meant to read and save a blank copy of the PDF. If you want to change something in the PDF file, then the creator has enable user rights (commonly called player to extend rights) so that you can save the completed PDF file. This can be done by Adobe Acrobat.

    I would ask you to kindly contact the author of the PDF file to allow the user rights and send it again.

    I hope this helps.

    Kind regards

    ~ Dominique

  • How to fill out the list for inserts in the procedure?

    I want to populate a list for a string of inserts.  All pads are the same except each iteration will change by this list.

    inserting into table X (A, B) values (1,2);

    In my case, I want to change the value each time column 2.

    So, something like this:

    DECLARE

    v_species varchar2 (10);

    CURSOR spec_code_cur is

    This is an example of my list... I need to get into the cursor.  I thought to use the double, but it did not work.  They do not live in any table yet, so I can't question.

    ACGL,

    AGCR,

    ALINT,

    ARTR2,

    IDEC,

    CEVEV4

    BEGIN

    FOR v_species in spec_code_cur

    LOOP

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1',v_species, 'ON');

    END LOOP;

    END;

    /

    The desired output would be for inserts run as:

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','ACGL', 'ON');

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','AGCR', 'ON');

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','ALINT', 'ON');

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','ARTR2', 'ON');

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','CEDI', 'ON');

    insert into nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off)

    values ('450DB4460A7449B0E0440003BA9ECAD1','CEVEV4', 'ON');

    I thought that the dual purpose was to pull information from "thin air"... but it does not work.

    Thank you.

    If you pass the input as a single string set, you can do that.

    WITH T1 AS)

    SELECT "ACGL AGCR, ALINT, CEVEV4, IDEC, ARTR2" COL1 OF DOUBLE)

    SELECT ' INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES (')

    || CHR (39) | ' 450DB4460A7449B0E0440003BA9ECAD1' | CHR (39) | «, » || CHR (39) | REGEXP_SUBSTR(COL1,'[^,]+',1,LEVEL) | CHR (39) | «, » || CHR (39) | ' WE '. CHR (39) |') ;'

    FROM T1

    CONNECT BY LEVEL<=>

    OUTPUT:

    INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES ('450DB4460A7449B0E0440003BA9ECAD1', "ACGL", "ON");

    INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES ('450DB4460A7449B0E0440003BA9ECAD1', "AGCR", "ON");

    INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES ('450DB4460A7449B0E0440003BA9ECAD1', 'ALINT', 'ON');

    INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES ('450DB4460A7449B0E0440003BA9ECAD1', "ARTR2", "ON");

    INSERT INTO nrtx_taxa_list_items (txlstdef_cn_fk, symbol_fk, on_off) VALUES ('450DB4460A7449B0E0440003BA9ECAD1', 'CÉDI', 'ON');

  • How to dynamically change the value of a column in a report

    Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?

    970829 wrote:

    Please update your forum profile with a real handle instead of '970829 '.

    Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?

    Not really clear exactly what it is you are trying to reach. You want to replace the value of a column in the report with the value of a page element? If so, simply replace the column in the report with a reference to the required page elementquery:

    select
       empno
    , ename
    , job
    , :p2_sal sal -- Replace value of sal column with value of P2_SAL item
    from
       emp
    
  • Starting from two data tables, how do you get the values in two columns using values in a column (values get col. If col. A is not null values and get the pass. B if col. A is null)?

    Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?

    Guessing

    Select nvl (x.col_a, y.col_b) the_column

    from table_1 x,.

    table_2 y

    where x.pk = y.pk

    Concerning

    Etbin

  • How to calculate the sum of the values of some columns in a table

    Hello

    I want to get the column just the average of the values of some columns not all columns of the table.what I have to change exactly in this block diagram.even if the table size is 25 average, I want the division as the number of values in each column (= number of lines)

    just like that:


  • Single request for the display of all, but the values of 1 column for all tables

    Hello

    All tables have the column SYS_CREATION_DATE.
    But I don't want to not display the value of this column

    Can anyone suggest a way in which I could achieve this?

    Oracle version: 11 GR 1 material
    OS: SunOS


    See you soon,.
    Malika

    Published by: user9131570 on July 6, 2010 19:57

    user9131570 wrote:
    @Tubby

    I * table-wise display the values of all but 1 columns (SYS_CREATION_DATE) in my database.*

    I need it to compare to another data base for all these values.

    I would like to make a wild guess at what you are getting.

    In view of these two tables

    create table emp
       (empid number,
        empname varchar2(15),
        empaddr   varchar2(15),
        sys_creation_date date);
    --
    create table dept
       (deptid number,
        deptmgr varchar2(10),
        sys_creation_date date);
    

    you want to combine somehow

    select empid,
             empname,
             empaddr
    from emp;
    

    with

    select deptid,
             deptmgr
    from dept;
    

    in a single sql statement?

  • How to fill out the list of dynamic measurements

    Hello

    I create a dynamic action on a region by using a select list (item) (lov on table A).

    now the problem is that if the value in the selection list is present in the table B then must trigger the action.

    can someone tell me how to fill the column of values as the values in table B.

    I don't want to set the values manually.

    Thank you
    Little Foot

  • You can create a hidden page element that acts as an indicator of the condition "exists."
  • Create a D.A. say 'Set Hidden Page Item"that fires on the element of change o selection list, which is of type 'set Value' and uses a function body PLSQL to set the hidden page (the affected item) item, choose the item of list selection in the field 'referred to submit page '.
    Now the PLSQL block, can return 1/0 'TRUE' or 'FALSE' or 'Y' / ' not etc. Depending on whether the record exists in the other table (or whatever condition you have)

    Now when the selection list is changed, the hidden element would be set correctly by using this dynamic Action.

    So, to check if the element exists, we can use the value of the element of hidden after that page.

    You can do this either as another action True under the dynamic Action of "Set Hidden Page Item" itself (after the action SetValue True) and added a condition using the value of the hidden element
    or add another dynamic Action, fired when the hidden item is changed and when the value of the hidden element corresponds with that of your conidtion.

    Hope that I was clear enough.

  • How to fill out the story in entity object columns when creating a new line

    Hello

    I use Jdeveloper 12.1.3 to develop an ADF Application.

    My database table that has 4 columns of audit.

    CREATED_BY

    LAST_UPDATED_BY

    I added 2 new types story available under Tools-> Preferences->-> Types of history ADF business components.

    11. created by username

    12 modified by user name

    Where are these values be saved? which file will have these details of the story newly added columns.

    Note:-I'm trying to follow the blog by Jobinesh http://www.jobinesh.com/2011/02/creating-custom-history-types.html

    Also, in the method of getHistoryContextForAttribute(AttributeDefImpl attr) of CustomEntityImpl, how I'll call columns of type story newly created?

    Also, how can I distinguish if this event is create or update?

    See you soon

    AJ

    Hi AJ,.

    the entry is stored in the %JDEV_USER_HOME%\o.BC4J\jbo.properties file (in most cases %JDEV_USER_HOME%=%APPDATA%\Roaming\JDeveloper\system[YOUR JDEV VERSION] on windows machines)

    Greetings,

    Markus

  • How to fill out the name of the file to the file upload

    Hi team,

    I'm trying to fill in the name of the file that is selected in the Explorer of files to other filed(text field) in the same region (dynamically when the file is selected). Is there a way to do this?

    Thank you

    Jyo

    Hi, Jyo

    Create a dynamic Action with the following parameters:

    Event: change

    Selection type: point

    Article (s):

    By this DA you can set the value of another element in your page. File name, in that you can get

    • using jQuery: dittos var = $("#P1_FILE_BROWSE").val)
    • without jQuery: dittos var = document.getElementById("P1_FILE_BROWSE");
  • How to fill out the USER name in a [RESOLVED] text field

    Hi all

    Forms 10g (10.1.2.0.2), Windows XP
    In my form, I have 2 blocks.
    1 block with a single element, where we enter a value and press on enter (this place you block2 and run the query).
    Block 2 (tabular) will get the records. This block2 have now 3 columns (caseid, userid, date).

    Now when I insert a new record, I just need to get the caseid only. And username and date must be filled in automatically.
    I am able to fill in the date by setting the property Initial Value * $$DATETIME$ $* for the column.
    And I tried many ways to fill the username in the userid column without success.

    I am tired of something like that
    In *When-New-Item-Instance*
    
    if :System.Cursor_Item is null then
         :BLOCK2.userid := Get_Application_Property(USERNAME);
    else
         null;
    end if;
    /*In this case, I can navigate to to the last recrord w/o any changes in the fetced records
     and while inserting the new record, USERNAME doesn't populate.*/
    In *When-New-Record-Instance*
    
    declare
         v_dummy varchar2(15) := null;
    begin
         v_dummy := nvl(:system.cursor_value, null);
         Copy(to_char(v_dummy), :System.Cursor_Item);
         if :System.Cursor_Item is null then
              Copy(null, :System.Cursor_Item);
              :BLOCK2.userid := Get_Application_Property(USERNAME);
         else
              null;
         end if;
    end;
    /* Nothing populates into the userid item while inserting new record */
    Any help please...

    Use one

    :BLOCK2.userid:=GET_APPLICATION_PROPERTY(USERNAME);
    

    or

    :BLOCK2.userid:=USER;
    

    in a WHEN-CREATE-RECORD-trigger.

Maybe you are looking for