Update of the collection based on (wwv_flow.g_f01) report

Hi all
I have a page in my application that contains 3 standard reports based in a collection. There is a main report and from there you explore the other report, and from there you can go down to another (3rd report) that I'm trying to update a member of the collection based on an lov. I don't know how to insert the value from the lov in the 3rd report.


Select seq_id
IN CURR_SEQ_ID
of apex_collections
where collection_name = "ARGYLL_INVOICES."
and c001 | C002 =: P12_EPSB_JE_HEAD_LINE_NUM;

apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > "EDMO");

It works fine, but of course, it is hard coded. I would use the api wwv_flow.g_f01 but I can't make it work with my rudimentary understanding of this api call.

apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > wwv_flow.g_f01 (a few references here);


Any guidance would be most appreciated.

Thank you

Here is an excerpt from a quick tutorial on the use of collections. I'm including the section of the report you can see the corresponding values:

SELECT rownum, apex_item.hidden(1, c001),  --Key ID
     apex_item.text(2, c002, 8, 8) VALUE1,
     apex_item.text(3, c003, 3, 3) VALUE2,
     apex_item.text(4, c004, 8, 8) VALUE3,
     apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE
FROM APEX_COLLECTIONS
WHERE COLLECTION_NAME = 'MY_COLLECTION'

It will be a report as a SQL report - you are just pulling the data from the collection. You can always ask the nice formatting, naming, sorting, etc. of a standard report. In the report, the user will have 3 values 'text' and a Date with the date picker. You can change the format, make sure just to change all four procedures.

What is critical to note here are the numbers that come just before the column names. These numbers become identifier in the table used to capture data. What is APEX is creates an array of up to 50 items designated as F01 - F50. The F is static, but the number that follows, it matches the number on your tax report above, IE, F01 will contain the primary key value, F02 will contain the first numeric value, etc.. Although not strictly necessary, it is advisable to assign these values so you don't have to guess.

A note more: I try to align c00x values in the column with the values of F0X collection in the table to stand straight, but they are values that do NOT have to match. If you have a request that you think could get developed, you can leave gaps where you want. Remember, however, that you have only 50 columns of table to use for the data entry. It is the limit of F0X table even if a collection can have up to 1000 values.

Now, you need a way to capture the user input. I like to create this as a PRELIMINARY procedure CALCULATIONS/VALIDATIONS in this way the user can see what they changed (even if it is false). Use Validations to intercept errors.

declare
  j pls_integer := 0;
begin
for j1 in (
  select seq_id from apex_collections
  where collection_name = 'MY_COLLECTION'
  order by seq_id) loop
  j := j+1;
  --VAL1 (number)
  apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
      p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j));
  --VAL2 (number)
  apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
      p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j));
  --VAL3 (text)
  apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
      p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j));
  --VAL4 (Date)
  apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
      p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j));
end loop;
end;

Clear as mud? Walk slowly through it. The syntax tells APEX Collection (p_collection_name) (p_seq) line, then what attribute/column (p_attr_number) updated with the value (wwv_flow.g_f0X (j)). The number of the attribute is the column number of the collection without the 'c' on the front (IE c004 in the collection = attribute 4).

See if this helps answer the question. You'll notice that I'm grabbing values SEQ_ID of the collection and a loop through them one at a time and using them to find the index of the JavaScript array holding the corresponding value, I need to use in the update part.

Tags: Database

Similar Questions

  • Assistant DAQ need graphics update during the collection of samples of N

    Hi all, I have a question about the DAQ Assistant. I need to acquire data at low rates (ca 10 Hz). I want to acquire Let's say 100 samples. I join my card day ten times per second. But when I choose N (100) to 10 Hz, updates to the table only once - 10 seconds samples. Is there another way to take samples of N and be able to watch the chart updated 10 times per second the use of samples keep (10 Hz, 1 sample to read) with timer that ends the while loop after 10 seconds?

    When I use the last mentioned way and write data in the file, I always acquire 101 samples, not 100. And I think that's not an ellegant way to write data to file 10 times per second (higher sampling rates, LabView is unable to write all of the samples file .xlsx, with the CT (s) files, it's better).

    Perhaps to collect 1 sample on request would be ok, but so far I have not had an experience with that.

    Thanks for your replies

    Lefebvre

    First of all, read this excellent whitepaper on the DAQ-mx hardware and stop using the DAQ Assistant, who does not have the flexibility you need to do what you describe.

    Don't you see what you want to do?  You ask to taste 10 Hz and want to update for each samplegraph.  So how many samples do you take before you add the data sampled at the table?

    Now, with the knowledge of what you have learned in the white paper, put some (you can do it in one) features DAQmx to start the Acquisition, in a loop For (with this that connected to N?), take the appropriate number of samples and send that to the table, and then out of the loop, stop the Acquisition.  If you use tasks (created by MAX or using the command 'New task' of the LabVIEW project), you should be able to do this with as little as 3 functions DAQmx (I'd probably use 4) and a single loop.

    Bob Schor

  • Update of the page-based filter filter report

    I have a simple report with two facts that shows the sales representative for the customer 1 how our activities will to their client.

    Fact #1: All filtered by Customer Service requests = "Customer 1"
    Fact #2: All requests for Service, filtered by customer <>"Client 1"

    My question is, anyone know how to make the dynamic customer and remove a page filter selection? I want to put this report on a dashboard equipped with a customer page filter, so if the user selects 8 client, the facts is updated with the appropriate filter.

    Use a session variable and filter it using this session variable.

  • Update of the table based on another

    Hello

    I'm trying to update a date column in a table based on another table. There is a unique ID in each table that identifies and connects each person:
    update patient_bu a set a.entry_date = (select b.entry_date from CLIENT_MED_DT b where a.id = b.id)
    This is the error:

    ORA-01427: einreihig subquery returns multiple rows


    The problem (I think) is that the select statement back several dates for records people. There are some people / records that have multiple entry dates, but I'm only interested in the most recent date.

    How can I update this table with only the most recent date?

    Thanks for any help,
    Matt

    Oh well, I forgot the UPDATE clause:

    SQL> create table patient_bu
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> create table client_met_dt
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> merge into patient_bu a
      2  using (select id
      3               ,max(entry_date) max_date
      4         from   client_met_dt
      5         group  by id
      6        ) b
      7  on    (a.id = b.id)
      8  when  matched then update
      9        set a.entry_date = b.max_date;
    
    0 rows merged.
    
  • See update of the form-based forms 6i and 10g.

    Hi all

    I am facing a strange problem.

    I created a form based on a view that is based on a single table. I made a copy of the form and converted in 10g.

    When running in 6i, I can update the data through forms. But in 10g, its display FRM-40602: cannot insert or update data in a view.

    Can someone tell what is the problem?


    Thank you and best regards,

    Manu.

    Just for a control:

    What happens if you assign the uneditable "Kry" mode and mark the PK-item as a"main key"?

  • Get the updated record the last based on the Date and the van of the user ID corresponding (multiple tables)

    Hello people,

    I currently have a working for this using PL/SQL solution, but it would be nice to have it using SQL. Any help is appreciated and once again, to your practice time.

    I'm looking to pick up the most recent date and the corresponding user that updated registration for a student in particular. There are two tables T1 and T2. The most recent date can be the create_date or modified_date of T1 or T2.

    Scripts for creating the table and INSERT statements:

    create table T1
      ( code           varchar2(4),
        create_date    date,
        create_userid  varchar2(20),
        modified_date  date,
        modify_userid  varchar2(20));
    
    create table T2
      ( code           varchar2(4),
        visit_id       number,
        visit_date     date,
        create_date    date,
        create_userid  varchar2(20),
        modified_date  date,
        modify_userid  varchar2(20));
    
    

    insert into T1 values ('1001',to_date('06-FEB-2013 09:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-APR-2013 13:01:12','DD-MON-YYYY HH24:Mi:SS'),'BRIAN');
    insert into T2 values ('1001',1,to_date('10-JAN-2013','DD-MON-YYYY'), to_date('10-JAN-2013 14:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-MAR-2013 12:01:06','DD-MON-YYYY HH24:Mi:SS'),'AMY');
    insert into T2 values ('1001',2,to_date('31-JAN-2013','DD-MON-YYYY'), to_date('12-MAY-2013 16:11:12','DD-MON-YYYY HH24:Mi:SS'),'GRACIE',null,null);
    
    insert into T1 values ('1002',to_date('12-JAN-2013 11:12:13','DD-MON-YYYY HH24:Mi:SS'),'LYNNELLE',to_date('12-APR-2013 13:01:12','DD-MON-YYYY HH24:Mi:SS'),'BRIAN');
    insert into T2 values ('1002',1,to_date('10-JAN-2012','DD-MON-YYYY'), to_date('10-JAN-2012 09:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-APR-2013 13:04:12','DD-MON-YYYY HH24:Mi:SS'),'AMY');
    insert into T2 values ('1002',2,to_date('10-JAN-2013','DD-MON-YYYY'), to_date('12-JAN-2013 11:12:13','DD-MON-YYYY HH24:Mi:SS'),'JOHN',null,null);
    
    insert into T1 values ('1003', to_date('04-FEB-2014 12:01:01', 'DD-MON-YYYY HH24:Mi:SS'), 'LYNNELLE', null, null);
    
    

    I want to show for the three codes are the following records:

    Code      Table Date                              User ID
    1001      T2  12-MAY-2013 16:11:12   GRACIE
    1002      T2 12-APR-2013 13:04:12   AMY
    1003 T1 04-FEB-2014 12:01:01 LYNNELLE
    
    

    1001 students, the most recent is the create_date of the visit count = 2 for the Code 1002, the most recent date comes from modified_date for visit 1 (its 3 seconds later than the T1 modified_date). Finally, for students 1003 (who did not all records in T2, the create_date is the only date and must be picked up.

    Thanks in advance.

    with t as)

    Select the code,

    NVL (MODIFIED_DATE, create_date) dt.

    case nvl (modified_date, create_date)

    When modified_date then modify_userid

    of other create_userid

    end userid,

    Tbl "T1".

    from t1

    Union of all the

    Select the code,

    NVL (MODIFIED_DATE, create_date) dt.

    case nvl (modified_date, create_date)

    When modified_date then modify_userid

    of other create_userid

    end userid,

    Tbl 'T2 '.

    the t2

    )

    Select the code,

    Max (TBL) keep (dense_rank last order by dt, tbl) tbl.

    Max (DT) dt,

    Max (UserID) keep (dense_rank last order by dt, tbl) userid

    t

    Code group

    order by code

    /

    CODE TO DT USERID
    ---- -- -------------------- --------------------
    1001 T2 MAY 12, 2013 16:11:12 GRACIE
    1002 T2 12 APRIL 2013 13:04:12 AMY
    1003 T1 4 FEBRUARY 2014 12:01:01 MANON

    SQL >

    SY.

  • How to capture the paging and sorting of events to update the collection?

    I use a manual tabular form based on the collection. If I add/edit the data in the form and click next/previous page, all the changes are gone. The same thing happens when I sort the data by clicking on the column header.

    Apparently, I need to call APEX_COLLECTION. MERGE_MEMBERS the new or changed data in the collection. However, I could not imagine how to do it. One way would be to set up the javascript function called $a_report and precede wit a call to my js function that would proceed to an update of the collection. But how?

    Maybe there's a better way?

    Igor

    Igor,

    You will need to spend to use rendering partial Page to full page on this report. In the 4.0 version we should get more management control in the RRP, but to what extent is it still unknown events.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

  • Help with master / multiple details from the collections

    Hello

    I am trying to create multiple details for my master report using collections by the method of Blarman on https://community.oracle.com/thread/1091458. This is my first shot of dagger to collections and I seem to be missing something, but for the life of me, I don't know what. I managed to get the display of collection for the captain, but when this inserts / updates, only the first collection seq_id is already updated or inserted the user entry. I suspect that I'm doing something stupid on BCM_POPULATE_TICKET_REF_COL to avoid updates to all items in the collection, but after much research and trying, I do not know what. Any suggestions would be much appreciated.

    Thank you!
    Michelle

    1. structure of the table

    CREATE THE TABLE DBSCH1. BCM_FINDINGS
    (
    NUMBER OF FINDINGS_ID
    VARCHAR2 (200 BYTE) WORKING GROUP,
    VARCHAR2 (200 BYTE) TEAM.
    DIVISION VARCHAR2 (200 BYTE),
    RAISED_BY VARCHAR2 (200 BYTE),
    ...
    )

    CREATE THE TABLE DBSCH1. BCM_COMMENTS
    (
    NUMBER OF COMMENTS_ID
    COMMENTS VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )

    CREATE THE TABLE DBSCH1. BCM_TICKET_REF
    (
    NUMBER OF TICKET_REF_ID
    TOOL VARCHAR2 (4000 BYTE),
    TICKET_REF VARCHAR2 (4000 BYTE),
    LINK VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )


    2 created master / detail report on BCM_FINDINGS & BCM_COMMENTS.

    3. create the BCM_TICKET_REF collection:

    CREATE or REPLACE PROCEDURE BCM_CREATE_TICKET_REF_COL (full bcm_findings_id)
    as
    I have pls_integer;
    CNTR pls_integer: = 5;
    Start
    apex_collection.create_or_truncate_collection ('POPULATE_TICKET_REF_COL');
    for Rec in)
    Select the tool, ticket_ref, link, ticket_ref_id, findings_id
    of bcm_ticket_ref
    where FINDINGS_ID = bcm_findings_id

    )
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > Rec.ticket_ref_id,--primary key
    p_c031 = > Rec.tool, - placeholder text
    p_c032 = > Rec.ticket_ref, - placeholder text
    p_c033 = > Rec.link, - placeholder text
    p_c034 = > Rec.findings_id fk - space
    );
    end loop;
    because me in 1.cntr
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > 0, - designates this as a new registration
    p_c031 = > NULL,-placeholder text
    p_c032 = > NULL,-placeholder text
    p_c033 = > NULL,-placeholder text
    p_c034 = > bcm_findings_id - number placeholder
    );
    end loop;
    end BCM_CREATE_TICKET_REF_COL;

    Support - before the header:

    BEGIN
    BCM_CREATE_TICKET_REF_COL (bcm_findings_id = >: P2_FINDINGS_ID);
    END;


    4. definition of standard report for BCM_TICKET_REF region:
    SELECT rownum,
    apex_item. Hidden (30, c030), - ticket_ref_id
    apex_item. Text (31, c031, 20, 20) tool.
    apex_item. Text (32, c032, 15, 15) ticket_ref,.
    apex_item. Text (33, c033, 15, 15) link.
    apex_item. Hidden (34, c034) findings_id
    OF APEX_COLLECTIONS
    WHERE COLLECTION_NAME = "POPULATE_TICKET_REF_COL."

    5. get user input for the update of the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE BCM_POPULATE_TICKET_REF_COL
    AS
    j pls_integer: = 0;
    Start
    for j1 in)
    Select seq_id apex_collections
    where collection_name = "POPULATE_TICKET_REF_COL."
    the order of seq_id loop)
    j: = j + 1;
    -(number) ticket_ref_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id, p_attr_number = 30, p_attr_value = > wwv_flow.g_f30 (j));
    -tool (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 31, p_attr_value = > wwv_flow.g_f31 (j));
    -ticket_ref (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 32, p_attr_value = > wwv_flow.g_f32 (j));
    -link (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 33, p_attr_value = > wwv_flow.g_f33 (j));
    -(number) findings_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 34, p_attr_value = > wwv_flow.g_f34 (j));
    apex_application.g_print_success_message: = "loop COUNTER" | j;
    end loop;
    end;

    On present - before the calculations and validations

    BEGIN
    BCM_POPULATE_TICKET_REF_COL;
    END;


    6 update DB with the data in the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE DBSCH1. BCM_UPDATE_TICKET_REF
    AS
    j pls_integer: = 0;
    Start
    -Obtaining records from Collection
    for y in (select TO_NUMBER (c030) ticket_ref_id,
    C031 tool,
    C032 ticket_ref,
    C033 link,
    TO_NUMBER (c034) findings_id
    OF APEX_COLLECTIONS
    WHERE collection_name = "POPULATE_TICKET_REF_COL") loop
    j: = j + 1;
    If y.ticket_ref_id = 0 then - new record
    insert into BCM_TICKET_REF (ticket_ref_id, tool, ticket_ref, link, findings_id)
    values (BCM_TICKET_REF_SEQ.nextval, y.tool, y.ticket_ref, y.link, y.findings_id);
    APEX_DEBUG. MESSAGE (p_message = > 'INSERT the LOOP COUNTER': j);
    "exit";
    elsif y.ticket_ref_id > 0 then - existing record
    Update BCM_TICKET_REF
    adjustment tool = y.tool,
    ticket_ref = y.ticket_ref,
    link = y.link,
    findings_id = y.findings_id
    where ticket_ref_id = y.ticket_ref_id;
    APEX_DEBUG. MESSAGE (p_message = > 'UPDATE the LOOP COUNTER': j);
    "exit";
    on the other
    APEX_DEBUG. MESSAGE (p_message = > "NUTHIN'");
    "exit";
    end if;
    end loop;
    end;

    Present on - after calculations and validations

    BEGIN
    BCM_UPDATE_TICKET_REF;
    END;

    HA! Well it took me several tries, but I finally saw him, you have a 'out' right after insertion (and updated).  That could leave the loop and record #2 would never happen.

    Just remove it. In your case you are inserting/updating all your lines.

    -Jorge

  • folder opens in a new window after update, but the options are correct

    Hello!

    After a few updates to Vista in the past two days, each folder now opens in a new window.

    The problem is: the folder options are correct. They are set to "open each folder in the same window. So I guess this is a new bug in Vista.

    Y at - it someone here with the same problems and maybe a solution?

    See you soon

    You can try to restore Windows back to a previous working state, and then disabling the updates so that it works this way.

    Step 1: To restore Windows to a previous state (before defective updates):

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore (open the link and follow the instructions).

    Step 2: To disable the automatic updates (so the update defective will not be reinstalled):

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-automatic-updating-on-or-off (in step 3, select 'Off').

    WARNING: It is not recommended and sometimes even dangerous to disable automatic updates, because they improve the security and reliability of Windows. If the procedures above solves your problem, this means that an update was the likely cause.

    Please report back with your results. Then we can reactivate the automatic updates, but block the update that causes this problem.

    Rifdhan

    If this is your answer, click on "Mark as answer" below. If it's useful, click on "Mark as useful" on the left.

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • Oracle apex 5.0: not update the values in the Collection.

    Hello again,

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    All of the Suggestions!

    Thank you

    Pranav.

    Pranav.Shah wrote:

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    The "coll update" process fails with a ORA-01403: no data found error. This happens in line 11 because of the access attempt to the wwv_flow.g_f01 using the variable array subscript c who has been incremented beyond the size of the table, which is now smaller because of the IR filter applied.

    begin declare
      c pls_integer := 0;
    begin
    for c1 in (
      select seq_id,c001 from apex_collections
      where collection_name = 'MATRIX2'
      ) loop
    c:=c+1;
    apex_debug.message(c);
      apex_collection.update_member_attribute (p_collection_name=> 'MATRIX2',
      p_seq=> c1.seq_id,p_attr_number =>'2',p_attr_value=>wwv_flow.g_f01(c));
    
    end loop;
    end;
    end;
    

    I agree with fondant tabular forms on interactive reports, but you can meet your requirement as follows. In your application, see page 2.

    1 Add a column of form element hidden IR containing the sequence number of collection:

    select
        c001 col1
      , apex_item.text(2, c002) col2
      , apex_item.hidden(1, seq_id) seq
    from
        apex_collections
    where
        collection_name = 'MATRIX2'
    

    2 place the question of the hidden form in the report using the COL1 Expression HTML attribute:

    #COL1##SEQ#
    

    3. change submit to the process if it is driven by the subject table, not the existing collection:

    begin
    
      for i in 1..apex_application.g_f01.count
      loop
        apex_collection.update_member_attribute(
            p_collection_name=> 'MATRIX2'
          , p_seq=> apex_application.g_f01(i)
          , p_attr_number => '2'
          , p_attr_value=> apex_application.g_f02(i));
      end loop;
    
    end;
    
  • Lines of transformation in a collection based on the css class?

    Hi all - I'm sorry if the answer to this is obvious, but I am a bit stuck. I have a report based on a collection of apex_. I have a simple dynamic action that allows users to click and highlight some lines in the collection report (I use just toggleClass on a jQuery selector). Now, I want to use only the highlighted lines in a process of pl/sql.

    I guess I also need to update the collection sort to indicate that a line is "selected", as perhaps together an unused column as c050 to a certain value, and then I can query the records and use it in my plsql? Put in evidence is right in the browser and is not visible to the db (correct?) so I think it's the best option?

    I also have the same question for the columns, that is if I let the user select an entire column and I want to use only the column values in a plsql.

    All the tips are greatly appreciated.

    Thank you

    John

    You're already halfway there - add another action to your dynamic action that uses jQuery on the trigger and execute some PL/SQL to add the Member to the collection.

    Is it enough to go?

  • In a table by using the Collection update of nulls

    I use collections to create a form in a table. However, I can't get the code to work. Could you please look at my logic and let me know what I am doing wrong?
    Apex version: 4.1
    1 process name: load Collection
    a. process Point: On Load - before the header
    Condition (b) process:
    i. the condition Type: PL/SQL expression
    + ii.     Expression:
     not apex_collection.collection_exists(p_collection_name => 'STAKEHOLDERS_COL')
    +
    c. code:
    if apex_collection.collection_exists('STAKEHOLDERS_COL') = TRUE then
       apex_collection.delete_collection(
             p_collection_name =>'STAKEHOLDERS_COL');
    end if;
    apex_collection.create_collection_from_query(
        p_collection_name => 'STAKEHOLDERS_COL',
        p_query => 'select id
                   , stakeholder_name
                   , stakeholder_role_id
                   , primary_contact_yn
                   , receive_notification_yn
                   , ''O'' original_flag
                   , wwv_flow_item.md5(stakeholder_name, stakeholder_role_id, 
                     primary_contact_yn, receive_notification_yn) 
                   from eba_prjv_proj_stakeholders,
       p_generate_md5 => 'YES'
    );
    * 2.     Report on the collection:
    a. query:
    select 
    apex_item.hidden(1,c001) id,
    apex_item.popupkey_from_query(2,c002,'select user_name d, user_name r from eba_prjv_app_users order by 1', 10) name,
    apex_item.select_list_from_query(4,c003,'select role_description d, id r from eba_prjv_stkhlder_roles order by role_code', 10) role,
    apex_ITEM.SELECT_LIST(5,c004,'N','Yes;Y,No;N') primary_contact_yn,
    apex_ITEM.SELECT_LIST(6,c005,'N','Yes;Y,No;N') receive_notifications_yn,
    apex_item.hidden(7, c006) status,
    apex_item.checkbox(8, seq_id) chkbx,
    apex_item.hidden(9, seq_id) seq_id
    from apex_collections
    where collection_name = 'STAKEHOLDERS_COL'
    AND c006 IN ('O','N','U')
    * 3.     I have a button 'Add a line' add a blank line for inserts. The button "submit page" REQUEST As "ADD". *
    * 4.     The process of adding new line: *.
    a. process Point: after submit - by the calculation and Validation
    b. process of Condition: what key - add row
    c. code:
    begin
    apex_collection.add_member(
    p_collection_name => 'STAKEHOLDERS_COL',
    p_c006 => 'N',
    p_generate_md5 => 'YES' );
    end;
    * 5. I have a button Delete who submits the request page = 'DELETE '. *
    * 6.     Collection update process:
    a. process Point: after submit - by the calculation and Validation
    + b.     Condition of process:
    REQUEST != 'ADD'
    +
    c. code:
    DECLARE
    l_status VARCHAR2(1);
    l_seq_id NUMBER;
    l_original_md5 VARCHAR2(4000);
    l_array_md5 VARCHAR2(4000);
    
    BEGIN
    
    FOR i IN 1..apex_application.g_f01.count LOOP
    
    -- Check previous status of Collection Member
      
       SELECT c006, c007 INTO l_status, l_original_md5
       FROM apex_collections
       WHERE 
       collection_name = 'STAKEHOLDERS_COL'
       AND seq_id = apex_application.g_f09(i);
    
    IF l_status = 'N' THEN
       l_status := 'N';
       
    ELSE
       SELECT wwv_flow_item.md5(apex_application.g_f02(i)
       , apex_application.g_f04(i)
       , apex_application.g_f05(i)
       , apex_application.g_f06(i))
       INTO l_array_md5
       FROM DUAL;
       
       IF l_original_md5 != l_array_md5 THEN
          l_status := 'U';
       END IF;
    END IF;
    
    
    IF l_status IN ('N','U') THEN
       
       apex_collection.update_member(
       p_collection_name => 'STAKEHOLDERS_COL'
       , p_seq => apex_application.g_f09(i)
       , p_c001 => apex_application.g_f01(i)
       , p_c002 => apex_application.g_f02(i)
       , p_c003 => apex_application.g_f04(i)
       , p_c004 => apex_application.g_f05(i)
       , p_c005 => apex_application.g_f06(i)
       , p_c006 => l_status
       , p_c007 => l_original_md5
     );
    END IF;
    END LOOP;
    IF :REQUEST = 'DELETE' THEN
       FOR i IN 1..apex_application.g_f08.count LOOP
       -- Check previous status of Collection Member
     
      SELECT seq_id, c006 INTO l_seq_id, l_status
      FROM apex_collections
      WHERE collection_name = 'STAKEHOLDERS_COL'
      AND seq_id = apex_application.g_f08(i);
    
      IF l_status = 'N' THEN
         apex_collection.delete_member(
         p_collection_name => 'STAKEHOLDERS_COL'
         , p_seq => l_seq_id
        );
      ELSE
        apex_collection.update_member_attribute(
        p_collection_name => 'STAKEHOLDERS_COL'
        , p_seq => l_seq_id
        , p_attr_number => '6'
        , p_attr_value => 'D'
       );
      END IF;
     END LOOP;
    END IF;
    
    end;
    * 7.     Update the collection table
    a. process Point: present - according to calculation and Validation
    b. process of Condition: If the key (APPLY_CHANGES)
    c. code
    DECLARE
    l_table_md5 VARCHAR2(4000);
    l_collection_md5 VARCHAR2(4000);
    BEGIN
    
    FOR c1 IN (SELECT c001, c002, c003, c004, c005, c006, c007,seq_id
    FROM apex_collections
    WHERE collection_name = 'STAKEHOLDERS_COL'
    ) LOOP
    
    IF c1.c006 = 'N' THEN
       insert into eba_prjv_proj_stakeholders
                ( STAKEHOLDER_NAME,
                 STAKEHOLDER_ROLE_ID,
                 PRIMARY_CONTACT_YN,
                 RECEIVE_NOTIFICATION_YN
                 )
                values
                (c1.c002,
                 c1.c003,
                 c1.c004,
                 c1.c005            
                );
    ELSIF c1.c006 = 'D' THEN
       DELETE FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
    ELSIF c1.c006 = 'U' THEN
       -- Check the record hasn't been updated since the query
       -- Get MD5 checksum from the Table
      
     SELECT wwv_flow_item.md5(STAKEHOLDER_NAME, STAKEHOLDER_ROLE_ID, PRIMARY_CONTACT_YN, RECEIVE_NOTIFICATION_YN)
       INTO l_table_md5
       FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
       -- Compare the checksum values and if they are different, raise an error.
       IF l_table_md5 != c1.c007 THEN
          raise_application_error( -20001
          , 'Current version of data in database has changed '||
            'since user initiated update process.');
         return;
      END IF;
    
      UPDATE eba_prjv_proj_stakeholders set
      STAKEHOLDER_NAME = c1.c002,
      STAKEHOLDER_ROLE_ID = c1.c003,
      PRIMARY_CONTACT_YN = c1.c004,
      RECEIVE_NOTIFICATION_YN = c1.c005
      where id = c1.c001;
    end if;
    end loop;
    apex_collection.delete_collection( p_collection_name => 'STAKEHOLDERS_COL' );
    END;
    At the end of the process, I see null values inserted in my table. The report also displays null values.

    Published by: jaouad khalifi on August 17, 2012 04:26

    Published by: jaouad khalifi on August 17, 2012 04:42

    Published by: jaouad khalifi on August 17, 2012 04:46

    Published by: jaouad khalifi on August 18, 2012 02:03

    Hello

    I changed and then brought back to the State that you had.

    The problem here is that you have status and Seq_id returned with APEX_ITEM. HIDDEN, but you have not selected the Show check box for those columns attribute report tab.

    Thus there is no f06 and f09 only named elements in your HTML DOM and therefore no APEX_APPLICATION. G_F06 and G_F09. If your processes

    FOR correct here is what you do

    1. mark the status and Seq_id as indicated in the report attribute tab columns
    2. change the ACE status display hidden to report column Standard. Change display of the Seq_id also report Standard column

    Note that when a column is not marked to show in the report he becomes any and you don't see the associated items in the DOM HTML.

    See you soon,.

  • Update of the statutes, which are not in a collection does not work

    Y does it have to consider if I want to change the content of an article, which is not in a particular collection?

    There is a link from a normal (in collection) article to this article (not in collection).

    I exported a new .article file, updated on the portal, he has published once again and saved the Preview button.

    Was it something wrong?

    I checked with the team and, unfortunately, you are right there is no way to update an article that is not a collection on any one of the three platforms. The only way she'll get an update is when it is removed from the device when clean us up to make room for the new downloaded content.

    Neil

  • Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it's not

    Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it does not appear or play on the timeline. I can drag an audio file of Ms on the timeline, but I need audio from my original file to synchronize my audio file recorded independently - used to be no problem... any ideas what I can not edit now?

    Hi Neil,

    Drag / drop may not work if you don't have any enabl; e source patch or did not target the track for the same thing.

    https://helpx.Adobe.com/Premiere-Pro/using/source-patching-track-targetting.html

    Vinay

Maybe you are looking for