Removing the Duplicate Values from output without using Keyword DISTINCT
Hi,
I'm running the below query without DISTINCT Keyword and getting Duplicate results. can you please tell me what needs to be done if I want unique values without using Distinct.
select hra.Location_code
,hra.Description
,hra.Address_line_1
,hra.Address_line_2
,hra.Address_line_3
,hra.town_or_city
,hra.Region_1
,hra.Postal_Code
,hra.country
,hra.attribute1
,hra.attribute5
,hra.attribute6
,hra.attribute8
,hra.attribute9
,hra.attribute2
,hra.attribute3
,hra.attribute4
,hra.attribute7
,hra.attribute10
from hr_locations_all hra
,per_all_people_f papf
,per_person_types ppt
, per_person_type_usages_f pptuf
,hr_all_organization_units haou
,hr_all_organization_units haou1
where 1=1
and hra.business_group_id = papf.business_group_id
and hra.business_group_id = ppt.business_group_id
and pptuf.person_id = papf.person_id
and pptuf.person_type_id = ppt.person_type_id
and ppt.system_person_type = 'EMP'
and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
and papf.business_group_id = haou.organization_id
and hra.location_id = haou1.location_id;
Hi,
Try using this Code
select hra.Location_code
,hra.Description
,hra.Address_line_1
,hra.Address_line_2
,hra.Address_line_3
,hra.town_or_city
,hra.Region_1
,hra.Postal_Code
,hra.country
,hra.attribute1
,hra.attribute5
,hra.attribute6
,hra.attribute8
,hra.attribute9
,hra.attribute2
,hra.attribute3
,hra.attribute4
,hra.attribute7
,hra.attribute10
from hr_locations_all hra
,per_all_people_f papf,
per_all_assignments_f paaf,
per_person_types ppt
, per_person_type_usages_f pptuf
,hr_all_organization_units haou
--,hr_all_organization_units haou1
where 1=1
and
hra.business_group_id = papf.business_group_id
and hra.business_group_id = ppt.business_group_id
and pptuf.person_id = papf.person_id
and papf.person_id=paaf.person_id
and pptuf.person_type_id = ppt.person_type_id
and ppt.system_person_type = 'EMP'
--and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
--and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
--and((paaf.effective_end_date is null) or (trunc(paaf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(papf.effective_start_date) and trunc(papf.effective_end_date)
and to_date('01/01/2012','mm/dd/yyyy') between trunc(paaf.effective_start_date) and trunc(paaf.effective_end_date)
--and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
--and papf.business_group_id = haou.organization_id
and paaf.location_id=hra.location_id
and paaf.organization_id=haou.organization_id
--and papf.employee_number='1010008830'
and hra.location_id = haou.location_id;
Similar Messages
-
How stop PS6 from removing the DPI value from an image when using "save for the web"?
How stop PS6 from removing the DPI-value from an image when using "save for the web"?
Example:
- Open a tif image, that contains a dpi value (resolution).
- Use the splice tool in PS6.
- Export the slices with "Save for web", as gif-files.
Then the dpi value is removed, the gif files has no dpi value (it's empty).
How can we stop PS6 from removing the dpi value when using "save for web"?
OR:
When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels
-
Read two CSV files and remove the duplicate values within them.
Hi,
I want to read two CSV files(which contains more than 100 rows and 100 columns) and remove the duplicate values within that two files and merge all the unique values and display it as a single file.
Can anyone help me out.
Thanks in advance.kirthi wrote:
Can you help me....Yeah, I've just finished... Here's a skeleton of my solution.
The first thing I think you should do is write a line-parser which splits your input data up into fields, and test it.
Then fill out the below parse method, and test it with that debugPrint method.
Then go to work on the print method.
I can help a bit along the way, but if you want to do this then you have to do it yourself. I'm not going to do it for you.
Cheers. Keith.
package forums.kirthi;
import java.util.*;
import java.io.PrintStream;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import krc.utilz.io.ParseException;
import krc.utilz.io.Filez.LineParser;
import krc.utilz.io.Filez.CsvLineParser;
public class DistinctColumnValuesFromCsvFiles
public static void main(String[] args) {
if (args.length==0) args = new String[] {"input1.csv", "input2.csv"};
try {
// data is a Map of ColumnNames to Sets-Of-Values
Map<String,Set<String>> data = new HashMap<String,Set<String>>();
// add the contents of each file to the data
for ( String filename : args ) {
data.putAll(parse(filename));
// print the data to output.csv
print(data);
} catch (Exception e) {
e.printStackTrace();
private static Map<String,Set<String>> parse(String filename) throws IOException, ParseException {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(filename));
CsvLineParser.squeeze = true; // field.trim().replaceAll("\\s+"," ")
LineParser<String[]> parser = new CsvLineParser();
int lineNumber = 1;
// 1. read the column names (first line of file) into a List
// 2. read the column values (subsequent lines of file) into a List of Set's of String's
// 3. build a Map of columnName --> columnValues and return it
} finally {
if(reader!=null)reader.close();
private static void debugPrint(Map<String,Set<String>> data) {
for ( Map.Entry<String,Set<String>> entry : data.entrySet() ) {
System.out.println("DEBUG: "+entry.getKey()+" "+Arrays.toString(entry.getValue().toArray(new String[0])));
private static void print(Map<String,Set<String>> data) {
// 1. get the column names from the table.
// 2. create a List of List's of String's called matrix; logically [COL][ROW]
// 3. print the column names and add the List<String> for this col to the matrix
// 4. print the matrix by inerating columns and then rows
} -
How find out the duplicate value from each columns.
I have below four columns,
How can i find out the duplicate value from each columns.
with All_files as (
select '1000' as INVOICE,'2000' AS DELIVERYNOTE,'3000' CANDELINVOICE,'4000' CANDELIVERYNOTE from dual union all
select '5000','6000','7000','8000' from dual union all
select '9000','1000','1100','1200' from dual union all
select '1200','3400','6700','8790' from dual union all
select '1000','2000','3000','9000' from dual union all
select '1230','2340','3450','4560' from dual
SELECT * FROM All_files
Output should be as per below.
1000 2000 3000 4000
9000 1000 1100 1200
1200 3400 6700 8790
1000 2000 3000 9000
Required to check uniqueness in cross columns.
Thanks.Try this (sorry about the formatting)...
WITH all_files AS (SELECT '1000' AS INVOICE,
'2000' AS DELIVERYNOTE,
'3000' CANDELINVOICE,
'4000' CANDELIVERYNOTE
FROM DUAL
UNION ALL
SELECT '5000',
'6000',
'7000',
'8000'
FROM DUAL
UNION ALL
SELECT '9000',
'1000',
'1100',
'1200'
FROM DUAL
UNION ALL
SELECT '1200',
'3400',
'6700',
'8790'
FROM DUAL
UNION ALL
SELECT '1000',
'2000',
'3000',
'9000'
FROM DUAL
UNION ALL
SELECT '1230',
'2340',
'3450',
'4560'
FROM DUAL),
t_base
AS (SELECT invoice
|| ','
|| deliverynote
|| ','
|| candelinvoice
|| ','
|| candeliverynote
str
FROM all_files),
t_str
AS (SELECT str || ',' AS str,
(LENGTH (str) - LENGTH (REPLACE (str, ','))) + 1
AS no_of_elements
FROM t_base),
t_n_rows
AS ( SELECT LEVEL AS i
FROM DUAL
CONNECT BY LEVEL <=
( SELECT SUM (no_of_elements) FROM t_str)),
t_build AS (SELECT t_str.str,
nt.i AS element_no,
INSTR (t_str.str,
DECODE (nt.i, 1, 0, 1),
DECODE (nt.i, 1, 1, nt.i - 1))
+ 1
AS start_pos,
INSTR (t_str.str,
1,
DECODE (nt.i, 1, 1, nt.i))
AS next_pos
FROM t_str
JOIN
t_n_rows nt
ON nt.i <= t_str.no_of_elements),
t_build2
AS (SELECT RTRIM (str, ',') AS original_string,
SUBSTR (str, start_pos, (next_pos - start_pos))
AS single_element,
element_no
FROM t_build),
t_build3
AS (SELECT single_element,
COUNT( * )
OVER (PARTITION BY single_element
ORDER BY single_element)
ele_count
FROM t_build2)
SELECT DISTINCT INVOICE,
DELIVERYNOTE,
CANDELINVOICE,
CANDELIVERYNOTE
FROM all_files, t_build3
WHERE ele_count > 1
AND ( INVOICE = single_element
OR DELIVERYNOTE = single_element
OR CANDELINVOICE = single_element
OR CANDELIVERYNOTE = single_element)I think this will be faster than the previous solution?
Cheers
Ben
Edited by: Munky on Feb 17, 2011 2:11 PM - "I think this will be faster than the previous solution?", nope - it's not :( -
How to display the fields in ALV Output without using Field catalog?
How to display the fields in ALV Output without using Field catalog?
Could you pls tell me the coding?
Akshitha.Hi,
u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
data: itab type table of mara.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = itab
CHANGING
ct_fieldcat = lt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*Pass that field catalog into the fillowing FM
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_grid_title = 'REPORTING'
is_layout = gt_layout
it_fieldcat = lt_fieldcat[]
tables
t_outtab = itab. -
hi,
i want to print distinct value
example data is given below :
Jv.No hl.no col1 col2 col3 col4 col5
1 a12 xx yy zz 11 21
b23 xx yy zz 11 21
actuallly i m not printig the hl.no in his report , for u r reference i will show to u
col1 to col 5 values printing based on the serial
jval , jserial two columns
i am writing the code in formula column
if jserial=1 then
print jval ( for that serial wat value is stored in the table that should return)
like upto serial 5 should print
col1 to col5 all the values are same only it should print distinct value
like this
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
otherwise any one value is varrying as usaualawahtever is there that only print
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21
need o/p like this :
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21hi,
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK
job no & mbol no is one group
remainings values another group.
carrier , vsl , voy , lport,dport these values fetches from the column of JOB_DESC
data's strored in the table like this:
jobparent Job desc jobserial
1 misc 1
1 hanjin 2
1 12E 3
1 sl 4
1 UK 5
2 misc 1
2 hanjin 2
2 12E 3
2 sl 4
2 UK 5
i am writing the formula column in the datamodel of second group.
if jobserial = 1 then print the value of Misc in carrier , job_serial=2 then print the value of Hanjin into vsl column.
i need to avoid the duplicate value :
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK -- This line not required
suppose carrier,voy or any one value is different then i need to print all the data
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
ABCc hanjin 34D sl UK -
How to find a data with the minimum value I get without using sub query
Currently, I manage to get a record by using subquery to find the minimum number, eg:
SELECT TAccTrn.ASysCde
FROM TAccTrn
WHERE TAccTrn.AAccTrnNum=(SELECT Min(TAccTrn.AAccTrnNum)
FROM TAccTrn, TDbtSchCltDtl
WHERE TDbtSchCltDtl.ASrcRefId=TAccTrn.ASrcRefId
AND TDbtSchCltDtl.ASrcRefSubId=TAccTrn.ASrcRefSubId
AND TDbtSchCltDtl.ASrcRefSeq=TAccTrn.ASrcRefSeq)
Is there any more idea without using the subquery?Hi ,
What about using an in-line view and the row_number () analytic function...????
Here is an example....
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 18/12/1980 800,00 20
7499 ALLEN SALESMAN 7698 20/02/1981 1600,00 300,00 30
7521 WARD SALESMAN 7698 22/02/1981 1250,00 500,00 30
7566 JONES MANAGER 7839 02/04/1981 2975,00 20
7654 MARTIN SALESMAN 7698 28/09/1981 1250,00 1400,00 30
7698 BLAKE MANAGER 7839 01/05/1981 2850,00 30
7782 CLARK MANAGER 7839 09/06/1981 2450,00 10
7788 SCOTT ANALYST 7566 18/04/1987 3000,00 20
7839 KING PRESIDENT 17/11/1981 5000,00 10
7844 TURNER SALESMAN 7698 08/09/1981 1500,00 0,00 30
7876 ADAMS CLERK 7788 21/05/1987 1100,00 20
7900 JAMES CLERK 7698 03/12/1981 950,00 30
7902 FORD ANALYST 7566 03/12/1981 3000,00 20
7934 MILLER CLERK 7782 23/01/1982 1300,00 10
14 rows selectedUsing a solution like the one you don't want ...(a subquery) i would write....
SQL> select ename from emp
2 where hiredate=(select min(hiredate) from emp)
3 /
ENAME
SMITHWhereas , using an in-line view....
SQL> select ename from
2 (
3 select ename,row_number() over(order by hiredate asc) row_num from emp
4 )
5 where row_num=1
6 /
ENAME
SMITHIs it acceptable...????
Regards,
Simon -
How to remove all duplicate values from a column
For some reason when a user is adding a record, it duplicates it three times. Why is that happening?
Since there is many how can I remove any records that contains a duplicate in a specific column?Is this happening for all lists in site collection or this is the only one?
Check on the list if there is any workflow attached. If yes then open the workflow in designer and check its logic it might be written to copy list items.
Investigate if there is an event receiver deployed in your site where it creates duplicate entries. There has to be some custom code running which is causing this duplication otherwise out of the box behavior of lists is never like this.
Please remember to click 'Mark as Answer'
if the reply answers your query or 'Upvote' if it helps you. -
After the last couple updates to my ipod it has created duplicates of songs to it. My iTunes does not contain any duplicates, but my ipod does. Is there any way I can remove the duplicate songs from my ipod?
If the duplicate copies all have the same date then you could do show duplicates, then sort by date added, and delete those with the new date.
-
Dear All,
Any Idea to remove the decimals value from the text ? my parameter declare as Character type.
eg : i want from 10000.000 become 10000
thanksDear All,
Any Idea to remove the decimals value from the text ? my parameter declare as Character type.
eg : i want from 10000.000 become 10000
thanks
hi,
for this we can use two method one is,
data : value type p decimals 0.
value = '10000.000'.
write : / value.
Output is = 10000
Second method,
data : value type i.
value = '10000.000'.
write : / value.
Output is = 10000
If u use packed decimals
data : value type p decimals 1.
value = '10000.000'.
write : / value.
Output is = 10000.0 -
How can i select the duplicate values
Hi experts ,
how can i find the duplicate values from the table. i want to display the all duplicate the rows.
1. Table Structure :-
CREATE TABLE CIF_MIGRATE
LINE_NO NUMBER(10),
ACCT_NO VARCHAR2(20 BYTE),
BRANCH_ID VARCHAR2(1 BYTE),
CUSTOMER_NAME VARCHAR2(100 BYTE),
FATHER_NAME VARCHAR2(100 BYTE),
GF_NAME VARCHAR2(100 BYTE),
TOTAL VARCHAR2(100 BYTE),
STATUS VARCHAR2(100 BYTE),
CUSTOMER_TYPE VARCHAR2(10 BYTE),
GENDER VARCHAR2(10 BYTE)
) 2. Sample Data:-
SET DEFINE OFF;
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, CUSTOMER_TYPE)
Values
(72, '1', 'Addis Belay Construction Material Rental', 'C');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, CUSTOMER_TYPE)
Values
(73, '1', 'Addis Belay Construction Material Rental', 'C');
SET DEFINE OFF;
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, CUSTOMER_TYPE, GENDER)
Values
(2869, '1', 'Abraham', 'Fiseha',
'I', 'Male');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, CUSTOMER_TYPE, GENDER)
Values
(2870, '9', 'Abraham', 'Fiseha',
'I', 'Male');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE, GENDER)
Values
(2872, '9', 'Abraham', 'Baraki',
'Medehniye', 'I', 'Female');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE, GENDER)
Values
(2873, '1', 'Abraham', 'Geber kirstos',
'gebre medihin', 'I', 'Female');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE)
Values
(2874, '1', 'Abraham', 'Gebre egziabher',
'Negussie', 'I');
COMMIT;4. My requirement is i need display all the duplication customer
CUSTOMER_NAME FATHER_NAME,GF_NAME
Addis Belay Construction Material Rental
Addis Belay Construction Material Rental
Abraham Fiseha
Abraham Fiseha5. I tried below query but i cant reach what i want exactly
SELECT CUSTOMER_NAME,FATHER_NAME,GF_NAME
FROM CIF_MIGRATE
GROUP BY CUSTOMER_NAME,FATHER_NAME,GF_NAME
HAVING COUNT (*) > 1kindly suggest me the solution
Thanks
ArunHi,
You're on the right track using COUNT (*), but, for this job, you want the analytic COUNT, not the aggregate COUNT.
"GROUP BY x, y, z" means that the result set will only contain 1 row for each distinct combination of x, y and z. Most aggregate functions (including COUNT) have analytic counterparts that get the same results without reducing the number of rows.
Here's one way you can use the analytic COUNT function:
WITH got_cnt AS
SELECT customer_name
, father_name
, gf_name
, COUNT (*) OVER ( PARTITION BY customer_name
, father_name
, gf_name
) AS cnt
FROM cif_migrate
SELECT customer_name
, father_name
, gf_name
FROM got_cnt
WHERE cnt > 1
;PARTITION BY in analytic functions corresponds to GROUP BY in aggregate functions. -
I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
https://support.apple.com/en-us/HT201322
A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!My apologies for the lack of photos, here is my post again with photos.
I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
https://support.apple.com/en-us/HT201322
A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8 -
Removing duplicate values from selectOneChoice bound to List Iterator
I'm trying to remove duplicate values from a selectOneChoice that i have. The component binds back to a List Iterator on the pageDefinition.
I have a table on a JSF page with 5 columns; the table is bound to a method iterator on the pageDef. Then above the table, there are 5 separate selectOneChoice components each one of which is bound to the result set of the table's iterator. So this means that each selectOneChoice only contains vales corresponding to the columns in the table which it represents.
The selectOneChoice components are part of a search facility and allow the user to select values from them and restrict the results that are returned. The concept is fine and i works. However if i have repeating values in the selectOneChoice (which is inevitable given its bound to the table column result set), then i need to remove them. I can remove null values or empty strings using expression language in the rendered attribute as shown:
<af:forEach var="item"
items="#{bindings.XXXX.items}">
<af:selectItem label="#{item.label}" value="#{item.label}"
rendered="#{item.label != ''}"/>
</af:forEach>
But i dont know how i can remove duplicate values easily. I know i can programatically do it in a backing bean etc.... but i want to know if there is perhaps some EL that might do it or another setting that ADF gives which can overcome this.
Any help would be appreciated.
Kind RegardsHi,
It'll be little difficult removing duplicates and keeping the context as it is with exixting standard functions. Removing duplicates irrespective of context changes, we can do with available functions. Please try with this UDF code which may help you...
source>sort>UDF-->Target
execution type of UDF is Allvalues of a context.
public void UDF(String[] var1, ResultList result, Container container) throws StreamTransformationException{
ArrayList aList = new ArrayList();
aList.add(var1(0));
result.addValue(var1(0));
for(int i=1; i<var1.length; i++){
if(aList.contains(var1(i)))
continue;
else{
aList.add(var1(i));
result.addValue(var1(i));
Regards,
Priyanka -
Greetings Everyone,
I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
1- I selected on the "List" and I clicked on the list name
"Claim Tracking Report"
2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
"Claim Number"
3- Then I went down and selected
"Yes" to Enforced the Unique for the Field Column "Claim Number".
4- Then after I clicked "Yes" I got the error
"Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again." But I don't have any duplicates values Items, because I had them removed before I tried
to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
FYI: I am using a Nintex WorkflowHope this is a list, how many total items are there?
Please try to open this list as access(link in IE) and run this query in access
SELECT Claim.[Claim Number], Count(*) AS Expr1
FROM Claim
GROUP BY Claim.[Claim Number]
HAVING (((Count(*))>1));
Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
I have duplicate Notes on my iphone 4 (upgraded to iOS 5.1.1) I have followed your instructions to remove the duplicates. How do I get "select Detete Notes" to appear on my Mac? I have connected my phone to my Mac and selected it in iTunes. I clicked the Info pane and deselected the option to Sync Notes. THEN WHAT should I do? How do I get the prompt "Select Delete Notes to remove the duplicates from the device. (I do want to sync them using the over-the-air feature.)
I would try the following:
First sync your phone with iTunes to create a new backup (just in case). When done, disconnect your phone from your computer.
Next be sure that all of your Notes are on your mac (Don't proceed any further if they aren't). If so, turn off iCloud syncing for Notes on your phone go to Settings>iCloud and turning Notes to Off. When prompted choose to delete the notes from your phone.
Next, without connecting your phone to your computer, open iTunes and go to iTunes>Preferences, on the Devices tab check "Prevent...from syncing automatically".
Now connect your phone to your computer, click on the name of your phone when it appears in iTunes on the left sidebar.
Go to the Info tab and under Other check Sync Notes, then further down under Advanced: Replace information on this iPhone, check Notes.
Click Apply at the bottom right to sync your phone. This should sync the Notes from your mac to your phone and you should no longer have duplicate Notes.
Next, on the Info tab uncheck Sync Notes and click Apply, when prompted select to keep the Notes on your phone (haven't tested this step but I believe you will be given the option to keep them on your phone).
Now disconnect your phone from your computer and check the Notes on your phone to confirm that they are still there and that you don't have any duplicates.
Next turn on iCloud syncing on your phone again by going to Settings>iCloud and turning Notes to On.
On your computer, without connecting your phone, go back to iTunes>Preferences>Devices and uncheck "Prevent…from syncing automatically" to re-enable automatic syncing.
That should do it.
Maybe you are looking for
-
how can my daughter and i have our own itunes accounts on one computer because it automatically logs in with mine?
-
Tax category DE 2 is not defined for country 1
Hi to all, We are in retail project while changing the article master following data is coming automatically to tax data in general data DE Germany MWST Output Tax O Unbranded Other. When I save the article master, i am getting following error. Tax c
-
Which iPad 2 is best for me? What uses the space up the most?
Hi, I'm considering an iPad 2 purchase, but just wondering if I go for the 64GB model would it be space wasted? I don't plan on doing any video editing, and I won't store my main iPhoto library on it (but will likely keep a few photos on there for sh
-
To change the Transport Request Number Range.
<b>Hi Experts,</b> My customer needs a typical solution. He wants SAP to create the Future Transport Requests starting from 10000. ( Ten thousand) now the sequential order is 321 that is <SID><K9>00321. From now on the new transport request should st
-
Atheros AR3011 Bluetooth not showing up in devices list
Hi, I'm new to the forums here. Been trying to get Bluetooth to work, any help is appreciated. $ uname -r 3.15.2-1-ARCH Devices shows up empty: # modprobe btusb # systemctl start bluetooth # hcitool dev Devices: # bluetoothctl # power on No default c