UPDATING child table based on the mods to parent record

I have a one to many relationship between Table A and Table B.
I have a field in both of my tables that tracks the status of the record in each table. ie: submitted, inprogress, done.
When records are created in Table A and B, status is set to SUBMITTED. When the application is being reviewed, the status in parent table is changed to INPROGRESS. As soon as the status in Table A changes to INPROGRESS for the parent record, i also want the status in Table B to change to INPROGRESS for the corresponding child records.
How can I do this? Triggers is one of the solns, but is there something that i can do with the PROCESS option available on the parent form?
Any help is very much appreciated.

Hi,
Firstly, as Oracle is a relational database, you shouldn't need to have the setting on a child record where it will always be the same as the parent record.
Secondly, a trigger is probably a better place to make the update, if you need to do this, as this would also handle updates outside of Apex.
Finally, yes you can create a process to do this if you want. You can create an unconditional process (that is, it runs whenever the page is submitted) and does something like:
UPDATE TABLEB
SET STATUS = :P1_STATUS
WHERE FK_ID = :P1_PK_ID
AND STATUS <> :P1_STATUSAndy

Similar Messages

  • How to update standard table based on the custom table

    Hi,
    I have requirement , I have custom table whatever changes done to the custom table must be updated in the standard table
    i have tried the table maintenance events but unable to handle delimit , what is the base solution for this.
    1) create
    2) change
    3) delimit
    4) delete
    6)copy

    the table im updating is t710
    the custom table is same as the standard table except for one field . whatever the user maintains the values in custom table except for the one field everything should update back to the standard table. Im able to update when we create delele but the problem is delimition. when im delimiting the record in custom table its just changing the startdate and it is not actually delimiting the record itself .I want both records the latest one and previous one and should be update back into the standard table same as the custom table

  • Question on updating a table based on report data

    Hi all,
    I am building a new stock request form for our site and I have a report that provides a listing of all requests that have a status of pending based on supv_approve flag being Null.
    I want to be able to update the table BGNA_NEW_STOCK_REQUESTS and set SUPV_APPROVE Flag to either Y or N depending on what the user sets as the value in the report. (by changing the standard report column to a text field and setting it to a named LOV with values Y or N, I can change each row in the displayed report to either be Y or N - but have yet to figure out how you then update the table with those values)
    Each row of the report has a unique ID - I just havent figured out how you update a table by chaging the values displayed in a report. I get that I can change the feild type from standard report column to text field but havent figured out how to get an update button to actually update the table once I changed the NULL value to Y or N
    any help is greatly appreciated!
    Edited by: user8607582 on Aug 10, 2009 1:51 PM
    Edited by: user8607582 on Aug 10, 2009 1:58 PM

    Hello Danny,
    Add a column to the sql that is something like this:
    select apex_item.checkbox(1,<keyfieldname> "Approved", (then the rest of your query for your report).
    This will put a check-box on your report. Move it to the beginning of the line for a better user-interface.
    When the user clicks the "Submit" button, ONLY those lines that have a check in the box are sent back. Create a process on your page that does the following:
    for i in 1..apex_application.g_f01.count Loop
    <do the processing of Approved transactions using this syntax for your update processing... where <keyfieldname> = apex_application.g_f01(i);
    <set all of the remaining as "N" if you wish or leave the supervisor's approval as NULL>
    end loop;
    This will then allow you process all of those items that were checked.
    I hope this helps,
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • How to update one table based on another table ??

    Hello Friends:
    I am trying to run the following query in oracle but it won't run.
    UPDATE BOYS
    SET
    BOYS.AGE = GIRLS.AGE
    FROM GIRLS
    WHERE
    BOYS.FIRSTNAME = GIRLS.FIRSTNAME AND
    BOYS.LASTNAME = GIRLS.LASTNAME;
    This query runs fine in sql server but in oracle its saying can't find "SET". PLease tell me what is the correct syntax in oracle to update one table based on another table.
    thanks

    See if this helps.
    If you wrote an SQL statement:
    update boys set age = 10;
    Every row in the boys table will get updated with an age of 10. But if you wrote:
    update boys set age = 10
    where firstname = 'Joe';
    Then only the rows where the firstname is Joe would be updated with an age of 10.
    Now replace the 10 in the above statements with (select g.age from girls g where g.firstname = b.firstname and g.lastname = b.lastname) and replace where firstname = 'Joe' in the second statement with where exists (select null from girls g where g.firstname = b.firstname and g.lastname = b.lastname). The same concepts apply whether 10 is an actual value or a query and whether you have a where clause with the update statement to limit rows being updated.
    About the select null question regarding the outer where clause:
    Since the query is checking to see if the row in the girls table exists in the boys table what the column is in this select statement doesn't matter, this column isn't being used anywhere. In this case Todd chose to use null. He could have also used a column name from the table or a lot of times you'll see the literal value 1 used here.

  • Hide multiple rows in a dynamic table based on the row value.

    Hi,
    I need to hide multiple rows in a dynamic table based on the specific value of that row.
    I cant find the right expression to do that.
    please help

    Go to the Row Properties, and in the Visibility tab, you have "Show or hide based on an expression". You can use this to write an expression that resolves to true if the row should be hidden, false otherwise.
    Additionally, in the Matrix properties you should take a look at the filters section, perhaps you can achieve what you wish to achieve through there by removing the unnecessary rows instead of just hiding them.
    It's only so much I can help you with the limited information. If you require further help, please provide us with more information such as what data are you displaying, what's the criteria to hiding rows, etc...
    Regards
    Andrew Borg Cardona

  • Join  a Parent Table with 2 Child table based on a value

    Dear Guru's
    We have a Parent Table and 2 Child table . The Parent Table has a column like seqtype with only 2 possible values C and S . If the Value is C , then the details are available in Child 1 table and if the Value is S then the Details are in Child 2 table
    How can we query the Data from this type of arrangement ? I am little bit confused and hit a road block
    Will the following query will work ?
    Select
    from Parent P , Child C1, Child C2
    where P.seqtype = C1.Seqtype
    and P.seqtype = C2.Seqtype
    With Warm Regards
    ssr

    You didn't mention the column names in two child tables. Whether the columns are same in 2 tables of these are different.
    If the columns are same better to go and change your design to have only one child table. However if stiil business stops you having one table you can use UNION ALL (Assuming you want to fetch same column information from two child tables) like below:
    SELECT p.col1
          ,c1.col2
          ,c1.col3
          ,c1.col4
      FROM parent     p
          ,child      c1
    WHERE p.seqtype = c1.seqtype
    UNION ALL
    SELECT p.col1
          ,c2.col2
          ,c2.col3
          ,c2.col4
      FROM parent     p
          ,child      c2
    WHERE p.seqtype = c2.seqtype Regards
    Arun

  • Is it possible to find the  table based on the Date ?

    Dear Team ,
    Is it possible to find the table based on the Date ?
    I have created an table ,But forgot the Table Name .
    Is it possible to find the Tables created on particular Date .
    Regards ,
    Augustine

    as date is record the time also below query will work.
    select * from user_objects
    where
    object_type = 'TABLE' and
    to_date(created,'DD-MON-YYYY') =to_date('<your date value in DD-MON-YYYY format>','DD-MON-YYYY');
    Edited by: shaileshM on Feb 24, 2010 9:39 PM

  • Update a table based on Min value of a column of a Another Table.Pls Help.

    Dear All,
    Wishes,
    Actually I need update statement some thing like below scenario...
    Data in table is like below:
    I wrote a query to fetch data like below ( actually scenario is each control number can have single or multiple PO under it ) (i used rank by to find parent to tree like show of data)
    Table: T20
    Control_no        P_no  Col3
    19950021     726473     00
    19950036      731016     00
    19950072     731990     00
                     731990 01
    19950353     734732     00
                     734732 01
    19950406     736189     00
                 736588     01
                 736588     02
                 736588     03                
    Table : T30
    Control_no      P_no              col3
    19950021     726473 
    19950036     731016
    19950072     731990     
                 731990     
    19950353     734732     
                  734732     
    19950406     736189     
                  736588     
                  736588     
                   736588     
      Now requirement is I need to update Table T30's col3 (which do have values in T20 but not this table) in such a way that , It should take MIN (COL3) from T20 and then update that value to related Col3)
    Better I can explain through below new data format in T30 after update:
    After update it should like:
    Table : T30
    Control_no       P_no    col3 (this is updated column)
    19950021     726473   00  -- as this is min value for Pno 726473 belongs to Control NO 199950021 in Table T20 above
    19950036     731016   00  -- as this is min value for Pno 726473 belongs to Control NO 199950021 in Table T20 above
    19950072     731990   00  -- see here..both Pno should updated as '00' as MIN value col3 in Table T20 related to this
                 731990      00     record is '00'  (out of 00,01 it should select 00 and update that value here)
    19950353     734732      00  -- same again both Pno should updated as '00' as MIN value col3 in TableT20 related to this
                 734732      00     record is '00'  (out of 00,01 it should select 00 and update that value here)
    19950406     736189      00  -- As there is single col3 value in T20, 00 should be updated here.
                 736588      01  --  Here it should update col3 as '01' since for this pno(736588)
                 736588      01  --  Here too it should update col3 as 01 per requirement ,minimum value of this pno in T20
                 736588      01  --     same here too.. Sorry if my post formatting is not good...
    Hope i am clear in my requirement..(update T30 col3 based on min value of col3 of related records)
    Please suggest some update sql for this...(ideas would be great)
    I am using oracle 10 g version soon will be migrated to 11g..
    Regards
    Prasanth
    Edited by: Onenessboy on Oct 20, 2010 12:13 PM
    Edited by: Onenessboy on Oct 20, 2010 12:15 PM

    Onenessboy wrote:
    I am really sorry, my post so nonsense in look..
    I used to use for actuall code..
    the out put i tryped, i used [pre] , [/pre] but still does not look good..
    hmm..thanks for your suggestion hoek..
    so any ideas about my requirement...I would suggest spending a bit more time trying hoek's suggestion regarding {noformat}{noformat} tags instead of repeatedly asking for more help.
    Because to understand your requirement, people are going to have to read it first.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Update LIKP table while saving the output type in VT02N transaction

    Hi All,
    I have a requirement where i have to update Delivery Priority(LPRIO) field in LIKP table while saving the output type in VT02N transaction. I am not able to use the BAPI "BAPI_OUTB_DELIVERY_CHANGE" or FM "WS_DELIVERY_UPDATE" because, when we save the output type the programs that are configured in NACE are triggered in update mode and hence i will get a roll back error.
    Let me know other ways of updating the table at the time of saving output type for shipment transaction VT02N.

    This could be a result of one of the following reasons:
    1: Incorrect smart form/routine assigned in the output configuration (NACE)
    2: Serial number range of the delivery expired
    3: The default settings of the user (SU01) processing the delivery is missing the default printer name.
    Hope this is helpful
    Manish

  • Updating one table based on another

    Ok, that sounds a little confusing, but this is what I want to do:
    Table A is my source table and is a temp table and will be reloaded daily.
    Table B is my target table.
    What I want to do is update Table B using a subset of Table A based on a date within Table B. A simple psuedo code would look like:
    update Table B
    insert * from Table A where Table B.datefield <> Table A.datefield.
    Both tables contain the same data elements, so the structure is an exact 1 to 1 match.
    Table B was initially created from Table A using the copy command to do an intial load. From this point forward, I just need to update Table B with new data from Table A, which has data loaded into it throughout the day. My idea is to grab just the data that isn't in Table B once a day.
    I'm open to all suggestions or ideas............
    Doug

    By cracky, I think that merge thing is just what I'm looking for.
    In theory the data in Table A will contain the data in Table B, plus newer data. The older data in Table A is stagnant, meaning that that table is just appended to. The problem is, Table A is periodically trimmed by the application. Table B is to be used for compiling all the data and reporting trend and historical data.
    More, specifically, Table A is the History table in HP Openview. Table B will be a table in HP Performance Insight. Since theses are 2 totally seperate databases, I will need to copy over the OpenView History table to a temp table in PI nightly, then cull out the records that were added during that day and place those and only those into the PI table for reporting.
    I'll give the merge command a try. I think it will do exactly what i need.
    Thanks,
    Doug

  • Updating child table with parent table

    Can anyone help me with this update statement?
    I have a table BETA with children of the family list and I have table GAMA with children and family list. The relation between family and children is 1 to many. Now we have decided to update table BETA which has children list with table GAMA’s family list. So I did as below.
    UPDATE beta B
    SET (b.childe_code 
       ,b.childe_name) =(SELECT DISTINCT g.family_code
                          ,g.family_name
           FROM gama g
           WHERE b.childe_code IN (SELECT g.childe_code
                                             FROM gama g)
           AND g.period = (SELECT MAX(period) FROM gama g))
    WHERE EXISTS (SELECT 1
           FROM gama g
           WHERE b.childe_code IN (SELECT g.childe_code
                                             FROM gama g)
           AND g.period = (SELECT MAX(period) FROM gama g));It is giving this error: ORA-01427: single-row subquery returns more than one row
    Could someone please help me with this?
    Thanks for the help.

    Hello tubby,
    Here is the answers for all your questions.
    How about you post your Oracle version
    select * from v$version
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - ProductionThe DDL for BETA and GAMA tables (create table statements).
    CREATE TABLE BETA
      CHILDE_CODE  NUMBER,
      CHILDE_NAME  VARCHAR2(50 BYTE),
      PERIOD       INTEGER
    CREATE TABLE GAMA
      FAMILY_CODE  NUMBER,
      FAMILY_NAME  VARCHAR2(50 BYTE),
      CHILDE_CODE  NUMBER,
      CHILDE_NAME  VARCHAR2(50 BYTE),
      PERIOD       INTEGER
    )Sample data for both tables (in the form of INSERT statements) which represent a small test case you've constructed.
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (10, 'google', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (11, 'amazon', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (12, 'ebay', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (13, 'yahoo', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (20, 'word', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (21, 'excel', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (22, 'access', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (23, 'cognos', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (30, 'cell phone', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (31, 'laptop', 201010);
    Insert into BETA
       (CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (32, 'pager', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (1, 'website', 10, 'google', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (1, 'website', 11, 'amazon', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (1, 'website', 12, 'ebay', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (1, 'website', 13, 'yahoo', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (2, 'software', 20, 'word', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (2, 'software', 21, 'excel', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (2, 'software', 22, 'access', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (2, 'software', 23, 'cognos', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (3, 'wireless', 30, 'cell phone', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (3, 'wireless', 31, 'laptop', 201010);
    Insert into GAMA
       (FAMILY_CODE, FAMILY_NAME, CHILDE_CODE, CHILDE_NAME, PERIOD)
    Values
       (3, 'wireless', 32, 'pager', 201010);The desired output you want based on the input data, with an explanation as to how the data needs to be transformed.
    I want to replace data of childe_code and childe_name with family_code and family_name in the beta table. The error message you are currently getting is quite descriptive, you are getting back more than a single row for a given row you are trying to update. If you can deterministically decide which rows to take and outline that in your example, we can help you.

  • Updating database table based on BAPI response in case of error

    Dear Experts,
    My scenario includes pulling records from database stagging table, and push one record at a time to BAPI_ALM_NOTIF_CREATE.
    I am using sender JDBC adapter(with select query and update query to mark records as processed).
    My question is : Once XI selects records, immediately status is updated in stagging table for the selected records as processed. what if BAPI could not create document? In this case I need to update status of that record as "Not processed".
    What should I use?
    If BPM, then please tell me the steps.
    Is this possible without BPM?
    What are the chances of failure between XI and BAPI?
    Please provide your inputs.
    Thank you.
    Div

    >
    S.R.Suraj wrote:
    > Hi Divyesh,
    >
    > Your steps are correct..
    >
    > 1. JBDC will read record with code = 0 and make it 1...
    > 2. Once the bapi process is completed all these read records shoudl be made as 2 (if completed successful) else 0 if bapi went into some error.. so that again the jdbc adapter can poll these records and give back to bapi for processing...
    >
    > Now your questions
    > >>So after selection and updation only proxy call will be done right? So for every polling of jdbc adapter ,proxy call will happen?
    > YEs every poll of jdbc will result in a proxy call and every time it will contain next set of records (as the earlier one have already marked as 1)
    >
    > >>How to achieve this?
    > Since this is a synchronous scenario JBDC->XI->Proxy and reverse, I have suggested to use responseonewaybean as a module in sender jdbc adapter (because sender jdbc cannot act synchronously thats why you need to use this module)..
    >
    > >>Do i need to use BPM? please suggest steps.
    > and if this is not working then go for BPM..the steps as i mentioned in my first thread..
    >
    > Regards
    > Suraj
    Hi Suraj,
    Thanks a lot for your support.
    It would be good if you can provide your inputs.
    Stagging table records status:
    Flag = 0 (XI will poll records)
    Flag = 1(XI has polled records and XI will se tthis flag by JDBC adapter)
    Flag =2 (should be done based on response from Proxy Tables parameter) Proxy will set tables parameter which will include info on error message and type.
    (Now based on new requiremets: for error records status should not be reset to 0 so that XI can poll records again, now stagging table should contain error records(for which proxy can not create notification in SAP) with error message and status flag 2)
    Now scenario would be JDBC to Proxy.
    Polling interval for JDBC adapter should be 1 minute.
    So I think status 0 to 1 will be done by XI after immediately selecting records.
    But how about Status 2 that has to be set only for error records only and  with error information.
    I have to update stagging table records with status 2 and error info based on proxy table response. How this can be done?
    This updation will be done in case of error only.
    I was thinking this aproach:
    We can have two interfaces.
    First interface will be jdbc to proxy:
    JDBC adapter select and update records with flag =1 and then send to proxy call and create document in SAP. At SAP side if document can not be created then they will store that error info in some table.
    Second Interfgace:
    Client SAP Proxy will periodically run and send these error records info to XI and XI will update stagging table records accordingly.
    Suraj, What is your sugestion in this solution? Do I need to use Responseonewaybean?
    Thanks Suraj
    Div

  • Updating Custom Table Only in Debug Mode

    Hi All!
    I have been encountering issues in updating a custom table. It would work successfully only in debug mode otherwise it won't update an entry in the table.
    This is the piece of code that would update an entry in the table specifically used in a user exit. The functionality of this code is to automatically remove a transportation block:
    SELECT SINGLE *
    INTO wa_zblock
    FROM zblock
    WHERE zzblknum EQ c_tr01
    AND vbeln EQ p_lvbeln
    AND zzprocessed EQ space.
    IF sy-subrc EQ 0.
    DO.
    CALL FUNCTION 'ENQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3.
    IF sy-subrc EQ 0.
    wa_zblock-zzprocessed = c_x.
    wa_zblock-zzapproveby = sy-uname.
    wa_zblock-zzapproveon = sy-datum.
    MODIFY zblock FROM wa_zblock.
    if sy-subrc EQ 0.
    COMMIT WORK AND WAIT.
    endif.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'DEQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock.
    ENDIF.
    How can I make this update the custom table successful in undebugged mode? Please let me know your thoughts on this.
    Thanks!

    I also suggest you to lock only the entry that will be updated (and not the whole table!) : you will have then far less problems of conflict with updating this table.
    For that, you have to create a lock object on your table (via SE11 - for example EZ_MY_TABLE). This will create 2 function modules named ENQUEUE_E<name of your lock object> (in my example ENQUEUE_EZ_MY_TABLE) and DEQUEUE_E<...>.
    You can then call those FM like this :
    CALL FUNCTION 'ENQUEUE_EZ_MY_TABLE'
      EXPORTING
        MODE_RSTABLE = 'S'
        KEYFIELD1 = ld_keyfield1  " Here are the key values for the entry that you have to update
        KEYFIELD2 = ld_keyfield2
      EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
        OTHERS = 3.
    Best regards,
    Samuel

  • Would like to update a table based on 1 row being returned from a join.

    Hi, hope you guys can help.
    I'd like to update 1 rown that is returned from a join query. The following code returns 1 row.
    SELECT pt.*, pv.* FROM
    --SELECT pt.template_id, pt.property_code, pv.value FROM
    property_template pt inner join
    property_value pv on pt.template_id = pv.template_id
    WHERE property_code = '500_URL';
    Based on the row returned i'd like to update a column called VALUE from the property_value table.
    I've tried the following code but it updates every row in the value column.
    update property_value set value = 'http://10.14.64.170:8080/XTI/UPLOAD'
    where exists
    SELECT pt.*, pv.* FROM
    --SELECT pt.template_id, pt.property_code, pv.value FROM
    property_template pt inner join
    property_value pv on pt.template_id = pv.template_id
    WHERE property_code = '500_URL'
    Any help with this would be appreciated.

    You need this
    UPDATE property_value   pv
       SET value            = 'http://10.14.64.170:8080/XTI/UPLOAD'
    WHERE EXISTS            (
                             SELECT 1
                               FROM property_template   pt
                              WHERE pt.template_id      = pv.template_id
                                AND property_code       = '500_URL'
                            );Regards
    Arun

  • How to split data into tables based on the entries in a column?

    My problem is very similar to this thread: how to link data from one numbers sheet to another sheet, however I could get it to work the way described there. I have one big table for entering data (the first one). I would like to have a few other tables populated automatically based on the entries in one of the columns of the first table. In my example below I put everything in one sheet for clarity. The selection to the other tables is to be done on the column "fruit" in the first table. (second one is "oranges", then "apples" and then "pears" -- had to cut the width of my screenshot due to the limitations of Apple's forums).
    Here is what it would look like, just cannot figure out how to make it happen automatically.
    Tried also importing similar Excel example to Numbers, but the import did not work correctly.
    Any help will be appreciated.
    LD

    Larry,
    Here's an approach that I've used...
    In the Purchases table, Aux column, the expression is:
    =COUNTIF($A$1:A2, A) & "-"&A
    Fill Down
    This expression builds a string that identifies the item and the ocurrance of that item.
    The Date column of the Summary tables, cell a3, contains:
    =IF(ROW()-3<COUNTIF(Purchases :: $A,$A$1), LOOKUP(ROW()-2&"-"&$A$1, Purchases :: $F, Purchases :: B), "")
    Fill Across, then fill down.
    Regards,
    Jerry

Maybe you are looking for

  • Unable to access the Dashboard in 11g

    Hi Gurus, I was successful in installing obiee 11g on windows 7 home edition,I am new to 11g OBIEE . I was able to login into the dashboard and do everything as usual.After the restart of the machine I am getting the following error *From RFC 2068 Hy

  • DVD Decoder Card Not Working

    I have a lombard 333 that I have a dvd decoder card installed in. It also has a dvd drive. When I put a dvd in, it shows up on the desktop and seems to work fine, but when the dvd player opens it says the dvd player is not compatible with this machin

  • Unplugging headphones causes reboot !!....help nee

    Any help on the below problem would be greatly appreciated: Product: Sound Blaster Audigy 2 ZS Platinum Self Description : Advance PC User Memory : 023 MB OS : Windows XP Professional Service Pack 2(5..2600 DirectX 9.0c Whenever I unplug my headphone

  • Firefox-session: Multiple Firefox profiles, shared with copy on write

    This is really just a simple hack, but read on if you are curious. Firefox allows the use of multiple profiles with different processes. This is useful to separate concerns or work contexts. For example one might have a profile for web surfing, and a

  • External hard drives get improperly unmounted

    I recently upgraded to Mavericks (clean install) on my mid 2011 MacMini.  I have an external hard drive connected via USB3 to eSATA cable.  I leave the computer on around the clock as iTunes serves my AppleTV with it's music and videos. I've repeated