# Automate the cells of the filter to another table based on two columns

Hello

What I'm trying to do is: filter multiple cells to a new table. In this example, I want that all students (column 'lidnr', 'city', then the first 7 columns) with 1 teacher in the 'First' column to be copied into the table 'teacher 1'. The same goes for students per 1 teacher in the column "second". I know it can be done with the help of the filter and the copy paste, but I would like to know if this can be automated, because there are many more tables in my actual document.

I've been using maybe to think the search formula but he can't give me more than one result, the result must be unique.

Thank you very much for your help.

Kind regards

Kim

Hi Kim,

The usual way to do this is to add an index for each table for which column the data is to be copied.

Here is an example of preliminary. Improvements after return from the light of day.

Triangles of error on the last row of T1 are thanks to the formula out of data to search for. Easily fixed.

Order of the names is different from your example, which is grouped by day numbers. Build lists in the desired order, rethinking the index calculations.

Course index calculations use the formula below, entered in Table 1::L2 and thre to the rest of the blue full cells filled.

L2: = IF (OR (RIGHT(\$H2,1) = RIGHT (L\$ 1.1) RIGHT(\$J2,1) = RIGHT (L\$ 1.1)), MAX(L\$1:L1) + 1"," ")

Data recovery on the Table T1 is well done by the following formula, entered in A2 and down and B2 and filled and down-filled.

A2: = INDEX (array 1::A, CORRESPONDENCE (LINE (−1, 1 Table): \$L, 0))

B2: = INDEX (array 1::B, CORRESPONDENCE (LINE (−1, 1 Table): \$L, 0))

More tomorrow (actually, later today).

Tags: iWork

### Similar Questions

• SQL query * I want to insert a file column in the other table based on two columns

I want to insert a column records to another table based on two columns

the query below does not work

insert into def_ver_lnki_p (job_name)

Select def_job.job_name

from def_job where def_job.job_id = def_ver_lnki_p.job_id and def_job.table_id = def_ver_lnki_p.table_id;

Just to correct sql

Update

def_ver_lnki_p define job_name =)

Select def_job.job_name

of def_job

where def_job.job_id = def_ver_lnki_p.job_id

(and def_job.table_id = def_ver_lnki_p.table_id);

• Is there an easy way to filter a 2D table based on the values in two fields?

Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

Ident Frame Type bytes TimeStamp data

10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

Thank you.

Hi chuck72352,

After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

Mike

• How to make a value in a temporary table, the match against another table...

Hi all.

Please is - can someone provide some guidance on how to...

1. take a value from a temporary table, the match against another table that contains the first values 'equivalent' value.
2. take this exchange value, call something (using the slider or the variable?) so I can add to my API to load it into ORACLE...

Apology of this sounds confusing, I hope you know everything what I want to do...

Manythanks...

Steven

and call the API

``````declare
v number;
begin
SELECT oracle_loc_code
into v
FROM SU_IEXP_LOCATIONS
, SU_TEMPLOYEE_DETAILS
WHERE chris_loc_code =location_id
;
Hr_Assignment_Api.update_emp_asg_criteria (v);
end;```
```
• How to update a record, if it is a composite key (primary key is based on two columns) in the OPS? page?

Hello

Actually I got to know this update of a record must be made when the primary key is based on two columns.

Previously, I used SPEL for a column. It was working fine.

But I came to know that regardless of the folder I try to update, it was the update page is coming up with the first combination of the record.

As if RC 131

RC 124

RC 125 are the records.

If I click on update of RC 124 also, the update page is coming up with RC 131 values as it is the first.

So I understand that the SPEL should be based on two parameters, because it is a composite key.

How to do?

Please let me know if you don't understand the problem.

Thank you.

Wow!

I got it.

Thank you brothers, always a hope that you could help me

• How to change the filter to the filter by another column - group calendar page 1

Any version of the Summit either 4.2 or 5.0 - windows 7 OS

I know it's a very simple question, but I can't understand this.

I want to change the filter on the group calendar page 1 of the default "Event status" below

The only code that I find is shown below.

I added my own selection list of the button with the following code bar

< tt > Select GroupName, group_id from EBA_CA_EMAIL_GROUPS ORDER BY GroupName < /tt >

But when I change the selection list from one option to the other that the calendar is not sorted by events that have particular GroupName. I tried to replace the code in the default selection list and it did not work. There must be another code, check the filter.

How can I add my own list of selection and filter calendar events based on that select list option is selected?

Richie V wrote:

Any version of the Summit either 4.2 or 5.0 - windows 7 OS

I know it's a very simple question, but I can't understand this.

I want to change the filter on the group calendar page 1 of the default "Event status" below

I added my own selection list of the button with the following code bar

Select GroupName, group_id from EBA_CA_EMAIL_GROUPS ORDER BY GroupName

But when I change the selection list from one option to the other that the calendar is not sorted by events that have particular GroupName.

Probably you meant 'filtered' rather than 'sort '?

I tried to replace the code in the default selection list and it did not work. There must be another code, check the filter.

In the Group APEX 5.0 calendar application, the filter is implemented in line 20 of the schedule area source query:

```select e.event_id,
case when et.display_color is not null then
'apex-cal-'||
(select lower(cp.color_name) from eba_ca_color_prefs cp where cp.bg_color = et.display_color)
end css_class,
e.event_name,
case when e.display_time = 'N'
then trunc(e.event_date_time)
else e.event_date_time
end event_date_time,
to_char(e.event_date_time,v('APP_TIME_FORMAT')) disp_time,
substr (
case when to_char(e.event_date_time,'MI') = '00' then
ltrim(to_char(e.event_date_time,'HHam'),'0')
else
ltrim(to_char(e.event_date_time,'HH:MIam'),'0')
end|| ' '||e.event_name,1,255) disp_col
from EBA_ca_events e,
EBA_ca_event_types et
where (:P1_EVENT_TYPE = e.type_id or :P1_EVENT_TYPE is null)
and e.type_id = et.type_id (+)
```

with P1_EVENT_TYPE being included in the property of the region and by using the action Elements of the Page to send dynamic update schedule to trigger a refresh of partial page in the calendar area.

How can I add my own list of selection and filter calendar events based on that select list option is selected?

1 create your filter as a copy the item P1_EVENT_TYPE item.

2. replace the LOV definition by the code you need.

3. Add the necessary filter predicate in the WHERE clause of the query source region.

4. Add the name of your filter element to the region of the Items property of the Page to send.

5. Add the name of your item to the Items property in the when section of action Dynamics to update the calendar .

• Filter the rows in a table, based on criteria in two columns

Is there a way easy to filter a 2d array, based on the values in two columns? For example in my attached VI the output array has the following format:

10:57:07.776

Quick response:

Convert your table 2d in a cluster table where the order of pole defines how broken are managed (first fields are equa on both serach the second point in cluster)

Run by a kind of 1 table and convert back to a 2d array.

Faster approach:

Group only fields serach and an index. Do the research and then use the index to reorganize the original array.

Ben

• Validation form column against the value of another Table

Hello

I'm new to this forum, so please bear with me a bit!  I only have a small amount of writing PL/SQL experience, and I've never written Javascript or JQuery before.  I am an Oracle DBA and I coding experience C and PERL, so I have a strong technical background.  But I need some advice on the best way to approach a problem.

I have an application of data base in Oracle Apex (version 4.2) with a tabular form on a table: Let's say that #1 with the conditions of licence 1 a, 1 b, and1C.  I have to make sure that the value entered in col B is not greater than the value of a column in another table (for example table #2 pass 2 (a).  From a conceptual point of view, the amount of money available is in the #2 table, and my tabular form lines are an act of spending money (such as orders or invoices), so I have to make sure that we spend more that we have.  Who is?

Does anyone have tips for the best way to do it?  I'm figuring that the biggest problem here is perhaps to account for people who enter multiple lines in the form of tables at the same time, right?  So, if a person is entered 3/invoices, I need a total to ensure that they do not have spend more than we have in the #2 table.

Best regards

Laurie Baublitz

Ah, I was not totally with you on this charge then. My validation works overall, but it totals the amount for each line, regardless of the task. Okay - who was not totally my solution but more a demonstration of the technique that you can use to validate your tabular presentation in this way.

You could solve this issue with a safe collection, or with a table plsql where you add an entry for each task name and keep the amount stored in there.

Anyway, it would be better for you to spend a little time on playback on the plsql collections or collections apex!

Remember, this is a sample and you will need to take stock of it. The best solutions are those where you need to experiment with 8)

```DECLARE
TYPE tt_taskamount IS TABLE OF NUMBER INDEX BY VARCHAR2(20);

l_amount NUMBER;
l_max NUMBER;
BEGIN
-- F03 is the amount
FOR i IN 1..apex_application.g_f02.count
LOOP
l_amount := apex_application.g_f03(i);
ELSE
END IF;

-- it's not the best idea to perform a select each time and could be
-- done better but for the sake of the example it's fine
-- not too bad either if the rowcount is small.
SELECT maxamount
INTO l_max
FROM table2

-- returning will stop further processing and throw an error message as soon as a budget has been overrun
-- it might or might not be required behaviour but that's up to you
RETURN 'The max amount ('||l_max||') for task ' || l_task ||' has been exceeded. Reduce the total amount on associated tasks!';
END IF;
END LOOP;
END;
```
• How increase automatically the rows in a table

Dear friends,

In apex 4.1 I don't see Adding line in the process due to which i m unable to increase the lines in a table automatically when you click on the button to add a line. Can u please help me in this regard how improve rows in apex 4.1?

Concerning
Kamran

Hi Keita,

To do this, you must create a separate process for the tabular presentation.

Please check that you remove it

javascript.addRow () in the box add row button and change to submit the page.

Create a process page, select form---> Data Manipulation---> add lines of tabular presentation---> give the necessary lines as you wish (5).

Brgds,
Mini

----------------------
Mark responds promptly

• How to change the filter on a table as case insensitive?

Hello

I use JDevelloper 11.1.1.3.0. I have an ADF table that has the filter on top. I need to do case insensitive filters. When I type 'A' in the filter and press on enter, he must bring all records that start with 'A' and 'a '.

Thank you

Select the column in the table and look for the filterFeatures property. Assign the caseInsensitive.

You will need to do this for each column you want to change. You can hold the CTRL key while you click on multiple columns and has replaced the property, both for them.

SDK (Spelun Doent Kownt)

Okay, this time I really he correctly spelled... I hope.

• The default value based on the field from another table to a custom object

I'm trying to set the default value to a field in the custom object to the value of a field of account. I tried the syntax 50 ways different and just don't get the case. The label for the account field displays the form of s/n, the integration of the tag is ltDBA_ACCT and it appears in the fx reports area as Account.Text_22.

The field of custom object that I am triying update is also called s/n, which was originally the required field 'NAME '. The name of the table, account, should it be included? Do I need a function to the field?

I've updated the external ID using the line with syntex < ID > ID (at least higher ID) so I know that it is possible to define a default value, but s / < n >, < ltDBA_ACCT >, 'account '. "" S/n "and so on are simply not working.

If anyone knows how to get into what I would be really grateful for the help.

OK, so if you default a field to the value of another object, you must use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure you do.

Then this won't work by default if the folder is created from the object that you want to join the because a default works in record creation and the ID must be available so that it works correctly. It will not work if you choose the record of the related object after that registration of the custom object is created. You can set the default after, but that does not meet your requirements.

The syntax of the default are the following: JoinFieldValue (ref_record_type, foreign_key, field_name).

In your case, ref_record_type is '', foreign_key is [] and field_name is ''. The best way is to determine what is the name of the field to create a new workflow for the account and use the Workflow Rule Condition expression builder to choose your field ("DBA") in the list. The value returned by the expression builder must be placed in the field_name variable in the function JoinFieldValue (minus the parentheses and quotes).

Give it a shot and let me know how you do.
Thom

• Hide the line of adf table based on the transient attribute does not

I have a JSF page where the user can insert new line in View object . this View object contains a transitional attribute which indicates whether or not the record is newly created.

On the same page, I have a table adf which is bounded on the city view object . This table should show only newly created records. my approach is to use expression language of in the renditions property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as: `rendered="#{row.bindings.RowStatus.inputValue eq'new'}" , but the table does not show anything.`

`Then, I tried to change the made not for the column property, but to the outputText inside the same way. It worked, but the problem is that the blank line is always on display.`

`So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.`

`The Table of JSF page where the made property is applied on outputText inside the column:`

`<af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"  rows="#{bindings.UplodedFilesView1.rangeSize}"  binding="#{CreatSR_UserBean.fileTable}">   <af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"   headerText="File Name" id="c1">   <af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"  rendered="#{row.bindings.RowStatus.inputValue eq'new'}"/>   </af:column>   </af:table>`

`I use Jdeveloper with ADF technology 11.1.2.3`

``` Thanks Timo, You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values) Drag the view object on the page and also make the Table (in my case it might otherwise listen) On the page, go to the connection tab. Double-click the object desired in the links column. New window will appear titled with (change the binding tree) Check the option (enable filtering) Select the (filter attribute) and (filter value) for the selected filter attribute. Select (Display attribute) you want to appear in the page. Press OK ```
• ``` Find the size of a table with partitions; Two questions DB version: 11.2.0.4Platform: Oracle Linux 6.4The slot table MH_PKT_HEADR in UTMSBL schema has more than 5000 partitions.Because there partitions, you cannot use just view DBA_SEGMENTS to determine the size of the table.So, I tried to use 2 SQLs mentioned below. Query1 returned 5 GB. But Query2 has returned a value zero. Query2 is actually a note metalink mentioned below, so he cannot deceive you, I guess.That is the reliable accurate query: Query1 or Query2?No idea why Query2 returns a Null value?- Query1fixed lines 200Col TABLE_NAME format a18withBaseData as)Select the ownernom_segmentsegment_type, round (sum (bytes) / 1024/1024/1024) GBsum (bytes) bytescount (*) segment_countof s dba_segmentsGroup by owner, nom_segment, segment_type),LOB type as data)Select the ownertable_namenom_segmentof dba_lobs),all_segs like)Select coalesce (lobs.table_name, basedata.segment_name) table_namebasedata.*of basedataleft outer jointype LOB dataon (basedata.segment_name = lobs.segment_nameand basedata.owner = lobs.owner))Select table_namesum (bytes) bytessum (gb) GBof all_segswhere table_name = 'MH_PKT_HEADR'.and owner = 'UTMSBL. 'Table_name group;TABLE_NAME BYTES GB------------------ ---------- ----------5869469696 5 MH_PKT_HEADR- Request 2-Source: how to calculate the size of a Table that contains outline CLOB and BLOB (Doc ID 118531.1()SELECT(SELECT SUM (S.BYTES) - the Segment of Table sizeFROM DBA_SEGMENTS SWHERE S.OWNER = UPPER ('UTMSBL') AND(S.SEGMENT_NAME = UPPER ('MH_PKT_HEADR'))) +(SELECT SUM (S.BYTES) - the size of the Lob SegmentFROM DBA_SEGMENTS S, DBA_LOBS LWHERE S.OWNER = UPPER ('UTMSBL') AND(L.SEGMENT_NAME = S.SEGMENT_NAME AND L.TABLE_NAME = UPPER('MH_PKT_HEADR') AND L.OWNER = UPPER('UTMSBL'))) +(SELECT SUM (S.BYTES) - the size of the Lob IndexFROM DBA_SEGMENTS S, DBA_INDEXES IWHERE S.OWNER = UPPER ('UTMSBL') AND(I.INDEX_NAME = S.SEGMENT_NAME AND I.TABLE_NAME = UPPER('MH_PKT_HEADR') AND INDEX_TYPE = 'LOB' AND I.OWNER = UPPER('UTMSBL')))"TOTAL TABLE SIZE.FROM DUAL;TOTAL TABLE SIZE---------------- SELECT (SELECT nvl (SUM (S.BYTES), 0)-dimensions of the Segment Table) FROM DBA_SEGMENTS S WHERE S.OWNER = UPPER ('UTMSBL') AND (S.SEGMENT_NAME = UPPER ('MH_PKT_HEADR'))) + (SELECT nvl (SUM (S.BYTES), 0)-Segment Lob size) FROM DBA_SEGMENTS S, DBA_LOBS L WHERE S.OWNER = UPPER ('UTMSBL') AND (L.SEGMENT_NAME = S.SEGMENT_NAME AND L.TABLE_NAME = UPPER('MH_PKT_HEADR') AND L.OWNER = UPPER('UTMSBL'))) + (SELECT nvl (SUM (S.BYTES), 0)-size of the Lob Index) FROM DBA_SEGMENTS S, DBA_INDEXES I WHERE S.OWNER = UPPER ('UTMSBL') AND (I.INDEX_NAME = S.SEGMENT_NAME AND I.TABLE_NAME = UPPER('MH_PKT_HEADR') AND INDEX_TYPE = 'LOB' AND I.OWNER = UPPER('UTMSBL'))) "TOTAL TABLE SIZE. FROM DUAL; David Fitzjarrell Not how to show a part of online data in a table in another table with even no column? I need to display the data from certain rows in a table in another table with the same numbers of columns and main table must be disabled. Could someone advice how to do this?    Data in the table are from the microprocessor and is intended the user can see and edit only some data. If someone can show me some advice, it will be a great help. Kind regards Annemariehoeven Disable a table: SetInputMode (panelHandle, controlID, 0);  ('1' to re - activate). Hide a table: SetCtrlAttribute (panelHandle, controlID, ATTR_VISIBLE, 0); ('1' to show it again). These commands are valid for each type of control. To extract values from the table, you can just use GetTableCellVal or GetTableCellRangeVals: If the range of cells has the same data type, you can use the second command which is faster; If the cells are different (for example digital and channels) you must solve each of them individually. The use of the Clipboard doesn't have this limitation. How to create a table with a column that is the value in another table? Hi all, It's my first post n I changed my ODI of DATASTAGE platform. Help me friends n I know basic steps in 11 ODI version which I was training in my company. I hope to have your support and can do everything an action ODI related documents. My question is... Table T1 > > > > > > > > > > service id / / / attr.name / / / attr.value S1 / / / product_code / / / P1 S1 / / / provider / / / pro1 S2 / / / product_code / / / P2 S3 / / / provider / / / pro3 Table T2 > > > > > > > > > > > > > > > ID / / / product_code / / / provider S1 / / / p1 / / / pro1 S2 / / / p2 / / / nullvalue S3 / / / nullvalue / / / pro3 I have a table T1 since I should show the table T2 is released. Can we say everything on how to write a logic and steps to follow. Thanks in advance. Published by: 854662 on April 26, 2011 01:59 Hello U go. 1 the interface: "Put a filter in your 1 on attr.name = array ' PRODUCT_CODE. In the map target TABLE2SERVICE_ID = TABLE1. SERVICE_IDPRODUCT_CODE = TABLE1. ATTR_VALUE Use SQL IKM append control Interface 2: "Put a filter in your 1 on attr.name = array ' PROVIDER '. In the map target TABLE2SERVICE_ID = TABLE1. SERVICE_IDPROVIDER = TABLE1. ATTR_VALUE Do SERVICE_ID as KEY (when you click the column target in properties, you can see KEY under properties of the target column) and use the incremental update of the IKM Oracle. PS: I assume that Oracle as the source and target. And you can refer to the documentation, https://Apex.Oracle.com/pls/Apex/f?p=44785:24:4413167952886630:no:24:P24_CONTENT_ID, P24_PREV_PAGE:5185, 29 http://odiexperts.com/ And of course this OTN. Thank youGuru ```
``` ```
``` ```
``` Maybe you are looking for I have a new iPhone 6s Im trying to build / restore. I have a new iPhone 6s Im trying to build / restore from iTunes backup.  I get an error message tells me that impossible to use the phone because it requires a newer version of iTunes but all the software on the phone is up to date... any ideas? lost the recent history button How to recover recent history button located next to the right arrow or the back button? Chromebook 14-q011sa HP: HP Chromebook 14 - Lite on IT SSD - warranty issue My HP Chromebook 14-q011sa has been crashing at random. A SSD test revoilé 380 + defective Chromebook has a 1 year warranty standrd but nobody knows if the SSD has a duration of the warranty as do most HDD? Model number Lite on this SSD is LSS-16L6G- 601 battery error I have a HP laptop. Model number g6-1b79dx. He said that there is an error in the internal stack at startup. Would that be about the long black of the battery which can be removed from the rear? If so, what type of battery/model would I need shop? Th Looking for caps2ctrl.exe from sysinternals I'm having a hard time locating the file above (very old).  There has been at least a dozen years, and it seems to work when other applications fail to convert lock Shift Ctrl for example when you drag the icons in Windows Explorer, or when you do a ```
``` ```
``` ```
``` ```
``` Similar Questions Automate the cells of the filter to another table based on two columns SQL query * I want to insert a file column in the other table based on two columns Is there an easy way to filter a 2D table based on the values in two fields? How to make a value in a temporary table, the match against another table... How to update a record, if it is a composite key (primary key is based on two columns) in the OPS? page? How to change the filter to the filter by another column - group calendar page 1 Filter the rows in a table, based on criteria in two columns Validation form column against the value of another Table How increase automatically the rows in a table How to change the filter on a table as case insensitive? The default value based on the field from another table to a custom object Hide the line of adf table based on the transient attribute does not Find the size of a table with partitions; Two questions Not how to show a part of online data in a table in another table with even no column? How to create a table with a column that is the value in another table? ```
``` function view_thread(code) { var url = '/help/'+code+'/'; window.open(url); } © 2022 eehelp.com. All Rights Reserved. 10 q. 0.016 s. Contact Us - Terms & Conditions - Privacy Policy ```
``` var sc_project=11251980; var sc_invisible=1; var sc_security="676835c8"; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"); ```