How to export to CSV a query that have a link column
Hi there,
I have in my Apex page a table that displays the results of a query.
I've set both of its columns as link in the report attributes.
My problem is that when I export my table to a CSV file, both the column doesn't appear in the Excel instance generated.
Another thing I noticed is that if I set the value of the "Include in Export" for my column to "Yes" and then Apply the changes, this value is not really set and when I come back in the "Column Attributes" page, the value for the "Inlcude in Export" field is still "No"...
Can somebody help ?
Thanks
Hello,
I've found a solution... Which seems to me like bypassing a bug. Or there's something I didn't catched!
In fact, if I navigate to the "Print Attributes" tab of my region containing my query, I also can check an "Include in export" checkbox for the link column.
And if I do so, my column appears in my csv export...
Be careful to not go back to the "Report Attributes" to change the lnik parameters. If so, you mouold have to go back to the "Print Attributes" tab to recheck the option...
Hope it will help.
JF
Similar Messages
-
Please help me It is drivng me crazy having all these contacts
Go to SETTINGS, then ACCOUNTS AND SYNC select facebook and uncheck sync contacts and then do the same for yahoo.
back up contacts w/ backup assistant that is under accounts and sync.
then go back to SETTINGS then APPLICATIONS then MANAGER APPLICATIONS then ALL select PEOPLE then clear data. this will erase your contacts so make sure you have it backed up.
then go to SETTINGS then ACCOUNTS and SYNC then backup assistant and sync now and this should put all your contacts back on your phone without being relinked to facebook or yahoo at least i remember it being something like this when i was trying to get rid of facebook being linked to my contacts on my Tbolt. -
I have finally figured out how to export an iphoto album so that I can maintain the proper order of the photos after burning the file. How do I keep each individual photo title and description after exporting and burning? Presently after exporting and burning each photo is identified by the file name rather than each individual title description.
File name and Title are not the same thing.
Filename is attached to the Jpeg file in the Finder.
Title is attached to the photo within the Jpeg file - as is the description. These are written to the Exif and IPTC metadata on export.
So: File -> Export. Kind: Jpeg or Tiff and Check the box at 'Title and Keywords'. This will write the Title, keywords and descriptions (though not explicitly stated) to the metadata. This can then be viewed in any app that understand this material.
You can choose, if you wish, to also use the Title as a Filename - that's an option at File Name
Regards
TD -
How can I use TopLink for querys that have two and more tables?
I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
Thank you for see and answer this question.You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
Zev.
check out oracle.toplink.expressions.Expression in the 10.1.3 API -
How to export iPhoto Album in iMAC and have similar folder structure(with Timestamps) which can be viewed in finder
In simple terms, I wanted to view the photos in Windows system, similar strcture of iPhotosIf you want to copy all of your photos to a Windows machine and have them in folders representing the iPhoto Events the were in quickly and easily just do the following:
1 - open the library with the Finder as shown in this screenshot:
2 - COPY the Originals/Masters folder to the Desktop.
3 - copy the Originals/Masters folder to the Windows machine.
This will give you all of your original image file in their Event folder on the Windows machine.
NOTE: With iPhoto 8 or newer the Event folders in the Masters folder will be titled by date (EXIF) if imported from a camera. If imported from a folder the event folder will have the same title as the source folder. If imported singularly or in a group without a folder the title will be a date, either the EXIF date or import date.
With iPhoto 7 (08) and earlier the Event folders in the Originals folder will have the same title as the Event has in the library.
This method would be quicker but not provide the additional metadata you might have added in iPhoto like keywords, titles, descriptions that exporting out of iPhoto with Format=JPEG and the checkboxes selected to include keywords, titles, places, etc, checked.
OT -
I am trying to sync music from my iTunes library on my iMac to my iPhone. I only want selected music but I'm getting unwanted songs. How can I delete those songs on my iPhone or how can I prevent these unwanted songs that have not been selected from appearing on my iPhone? Help!
http://support.apple.com/kb/HT1296
-
I downloaded music to my iphone and when I went to go sync it up to itunes, I lost all of the songs purchased from that time until the previous time I backed it up. How do I recover these purchased songs that have been lost?
All of your music should be in itunes on your computer.
Select it to sync and sync. -
How do I delete 3654 old emails that have been delivered when I started the new iphone?
Log onto the server through your email providers web interface and delete them there.
-
how do i get back my playlists that have disappeared!!! they were backed up both on my laptop and the cloud
Are you signed into itunes with your email address? Purchases that are made through itunes are tied to the email address on your account. If someone else logged in then your purchases wouldn't show.
When you go to the itunes store look at the black/gray bar at the top. On the left is the email address that is signed in. If it's incorrect just click on it and select "Sign Out." When you sign back in all should be well. -
How to improve performance of a query that is based on an xmltype table
Dear Friends,
I have a query that is pulling records from an xmltype table with 9000 rows and it is running very slow.
I am using XMLTABLE command to retreive the rows. It is taking upto 30 minutes to finish.
Would you be able to suggest how I can make it faster. Thanks.
Below is the query.....
INSERT INTO temp_sap_po_receipt_history_t
(po_number, po_line_number, doc_year,
material_doc, material_doc_item, quantity, sap_ref_doc_no_long,
reference_doc, movement_type_code,
sap_ref_doc_no, posting_date, entry_date, entry_time, hist_type)
SELECT :pin_po_number po_number,
b.po_line_number, b.doc_year,
b.material_doc, b.material_doc_item, b.quantity, b.sap_ref_doc_no_long,
b.reference_doc, b.movement_type_code,
b.sap_ref_doc_no, to_date(b.posting_date,'rrrr-mm-dd'),
to_date(b.entry_date,'rrrr-mm-dd'), b.entry_time, b.hist_type
FROM temp_xml t,
XMLTABLE(XMLNAMESPACES('urn:sap-com:document:sap:rfc:functions' AS "n0"),
'/n0:BAPI_PO_GETDETAIL1Response/POHISTORY/item'
PASSING t.object_value
COLUMNS PO_LINE_NUMBER VARCHAR2(20) PATH 'PO_ITEM',
DOC_YEAR varchar2(4) PATH 'DOC_YEAR',
MATERIAL_DOC varchar2(30) PATH 'MAT_DOC',
MATERIAL_DOC_ITEM VARCHAR2(10) PATH 'MATDOC_ITEM',
QUANTITY NUMBER(20,6) PATH 'QUANTITY',
SAP_REF_DOC_NO_LONG VARCHAR2(20) PATH 'REF_DOC_NO_LONG',
REFERENCE_DOC VARCHAR2(20) PATH 'REF_DOC',
MOVEMENT_TYPE_CODE VARCHAR2(4) PATH 'MOVE_TYPE',
SAP_REF_DOC_NO VARCHAR2(20) PATH 'REF_DOC_NO',
POSTING_DATE VARCHAR2(10) PATH 'PSTNG_DATE',
ENTRY_DATE VARCHAR2(10) PATH 'ENTRY_DATE',
ENTRY_TIME VARCHAR2(8) PATH 'ENTRY_TIME',
HIST_TYPE VARCHAR2(5) PATH 'HIST_TYPE') b;Based on response from mdrake on this thread:
Re: XML file processing into oracle
For large XML's, you can speed up the processing of XMLTABLE by using a registered schema...
declare
SCHEMAURL VARCHAR2(256) := 'http://xmlns.example.org/xsd/testcase.xsd';
XMLSCHEMA VARCHAR2(4000) := '<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="cust_order" type="cust_orderType" xdb:defaultTable="CUST_ORDER_TBL"/>
<xs:complexType name="groupType" xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="item" type="itemType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:byte" use="required"/>
</xs:complexType>
<xs:complexType name="itemType" xdb:maintainDOM="false">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="id" type="xs:short" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="cust_orderType" xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="group" type="groupType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="cust_id" type="xs:short" use="required"/>
</xs:complexType>
</xs:schema>';
INSTANCE CLOB :=
'<cust_order cust_id="12345">
<group id="1">
<item id="1" name="Standard Mouse">100</item>
<item id="2" name="Keyboard">100</item>
<item id="3" name="Memory Module 2Gb">200</item>
<item id="4" name="Processor 3Ghz">25</item>
<item id="5" name="Processor 2.4Ghz">75</item>
</group>
<group id="2">
<item id="1" name="Graphics Tablet">15</item>
<item id="2" name="Keyboard">15</item>
<item id="3" name="Memory Module 4Gb">15</item>
<item id="4" name="Processor Quad Core 2.8Ghz">15</item>
</group>
<group id="3">
<item id="1" name="Optical Mouse">5</item>
<item id="2" name="Ergo Keyboard">5</item>
<item id="3" name="Memory Module 2Gb">10</item>
<item id="4" name="Processor Dual Core 2.4Ghz">5</item>
<item id="5" name="Dual Output Graphics Card">5</item>
<item id="6" name="28inch LED Monitor">10</item>
<item id="7" name="Webcam">5</item>
<item id="8" name="A3 1200dpi Laser Printer">2</item>
</group>
</cust_order>';
begin
dbms_xmlschema.registerSchema
schemaurl => SCHEMAURL
,schemadoc => XMLSCHEMA
,local => TRUE
,genTypes => TRUE
,genBean => FALSE
,genTables => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
execute immediate 'insert into CUST_ORDER_TBL values (XMLTYPE(:INSTANCE))' using INSTANCE;
end;
SQL> desc CUST_ORDER_TBL
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "http://xmlns.example.org/xsd/testcase.xsd" Element "cust_order") STORAGE Object-relational TYPE "cust_orderType222_T"
SQL> set autotrace on explain
SQL> set pages 60 lines 164 heading on
SQL> col cust_id format a8
SQL> select extract(object_value,'/cust_order/@cust_id') as cust_id
2 ,grp.id as group_id, itm.id as item_id, itm.inm as item_name, itm.qty as item_qty
3 from CUST_ORDER_TBL
4 ,XMLTABLE('/cust_order/group'
5 passing object_value
6 columns id number path '@id'
7 ,item xmltype path 'item'
8 ) grp
9 ,XMLTABLE('/item'
10 passing grp.item
11 columns id number path '@id'
12 ,inm varchar2(30) path '@name'
13 ,qty number path '.'
14 ) itm
15 /
CUST_ID GROUP_ID ITEM_ID ITEM_NAME ITEM_QTY
12345 1 1 Standard Mouse 100
12345 1 2 Keyboard 100
12345 1 3 Memory Module 2Gb 200
12345 1 4 Processor 3Ghz 25
12345 1 5 Processor 2.4Ghz 75
12345 2 1 Graphics Tablet 15
12345 2 2 Keyboard 15
12345 2 3 Memory Module 4Gb 15
12345 2 4 Processor Quad Core 2.8Ghz 15
12345 3 1 Optical Mouse 5
12345 3 2 Ergo Keyboard 5
12345 3 3 Memory Module 2Gb 10
12345 3 4 Processor Dual Core 2.4Ghz 5
12345 3 5 Dual Output Graphics Card 5
12345 3 6 28inch LED Monitor 10
12345 3 7 Webcam 5
12345 3 8 A3 1200dpi Laser Printer 2
17 rows selected.Need at least 10.2.0.3 for performance i.e. to avoid COLLECTION ITERATOR PICKLER FETCH in execution plan...
On 10.2.0.1:
Execution Plan
Plan hash value: 3741473841
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 24504 | 89M| 873 (1)| 00:00:11 |
| 1 | NESTED LOOPS | | 24504 | 89M| 873 (1)| 00:00:11 |
| 2 | NESTED LOOPS | | 3 | 11460 | 805 (1)| 00:00:10 |
| 3 | TABLE ACCESS FULL | CUST_ORDER_TBL | 1 | 3777 | 3 (0)| 00:00:01 |
|* 4 | INDEX RANGE SCAN | SYS_IOT_TOP_774117 | 3 | 129 | 1 (0)| 00:00:01 |
| 5 | COLLECTION ITERATOR PICKLER FETCH| XMLSEQUENCEFROMXMLTYPE | | | | |
Predicate Information (identified by operation id):
4 - access("NESTED_TABLE_ID"="CUST_ORDER_TBL"."SYS_NC0000900010$")
filter("SYS_NC_TYPEID$" IS NOT NULL)
Note
- dynamic sampling used for this statementOn 10.2.0.3:
Execution Plan
Plan hash value: 1048233240
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 17 | 132K| 839 (0)| 00:00:11 |
| 1 | NESTED LOOPS | | 17 | 132K| 839 (0)| 00:00:11 |
| 2 | MERGE JOIN CARTESIAN | | 17 | 131K| 805 (0)| 00:00:10 |
| 3 | TABLE ACCESS FULL | CUST_ORDER_TBL | 1 | 3781 | 3 (0)| 00:00:01 |
| 4 | BUFFER SORT | | 17 | 70839 | 802 (0)| 00:00:10 |
|* 5 | INDEX FAST FULL SCAN| SYS_IOT_TOP_56154 | 17 | 70839 | 802 (0)| 00:00:10 |
|* 6 | INDEX UNIQUE SCAN | SYS_IOT_TOP_56152 | 1 | 43 | 2 (0)| 00:00:01 |
|* 7 | INDEX RANGE SCAN | SYS_C006701 | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
5 - filter("SYS_NC_TYPEID$" IS NOT NULL)
6 - access("SYS_NTpzENS1H/RwSSC7TVzvlqmQ=="."NESTED_TABLE_ID"="SYS_NTnN5b8Q+8Txi9V
w5Ysl6x9w=="."SYS_NC0000600007$")
filter("SYS_NC_TYPEID$" IS NOT NULL AND
"NESTED_TABLE_ID"="CUST_ORDER_TBL"."SYS_NC0000900010$")
7 - access("SYS_NTpzENS1H/RwSSC7TVzvlqmQ=="."NESTED_TABLE_ID"="SYS_NTnN5b8Q+8Txi9V
w5Ysl6x9w=="."SYS_NC0000600007$")
Note
- dynamic sampling used for this statement----------------------------------------------------------------------------------------------------------
-- CLEAN UP
DROP TABLE CUST_ORDER_TBL purge;
exec dbms_xmlschema.deleteschema('http://xmlns.example.org/xsd/testcase.xsd'); -
About in tears, how to export project to a DVD that will play?
I have tried everything (except the right thing, I'm sure). I have an 8 minute project that I NEED on DVD for a standard DVD player in four days, and I can not figure it out. Do I need Encore for this? Can I do it without it? Any clues for me? I have tried saving it as a windows file, real player, Adobe Flash etc. I have tried exporting->movie and then burning that. I have tried converting the .avi format to .ifo in some software I found online. Why isn't there just a "burn" button like in my other cheasy movie editting software?
Please, please help,
Sarah"That is unless you are using a trial version. None of the trials support anything to do with MPEG-2 video, which includes DVD export."
Wow, that never even crossed my mind. The only thing that was holding me back from purchasing the software was the one thing not offered by the trial software. I just purchased the full version and had it over-nighted. I can't thank you enough for your responses!
Sarah -
Hi all,
I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
statements.
Thank you in advance for your help,
Jesus
Edit:
One of these queries are like the following (all of them are of this type):
SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
FROM Table1
WHERE Field6 is not null
GROUP BY Field1, field2, field3, field4, field5
Order By Sum(Field6) descHi Peter,
Thank you for your response, I updated the original question with one of the codes.
Thanks,
Jesus -
PL/SQL query that has a link to other website
I want to do a query that list books info (Date published, name, category, etc). The part I can't figure out is how would I create an HTML link on the "Name?" The website is on a separate server (i.e. http://mybookstore.com). The links are in the table with the Name and category.
I would like to use PL/SQL or Java (but prefer PL/SQL).
Any help would be appreciated.
KenHi Ken,
try the following for the query .....
select category , <A href = 'target_page'>name </A>, date_published from table_name;
Where exactly you want to use the query ... Is it for a report in Portal ...
Regds..
Sajith -
How can i remove items from list that have been deleted when i click on them it keeps showing empty
how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty
Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain... -
How do you use an entity bea that uses an identity column?
I am using an mssql database. I need to create an entity bean for a table that uses an identity column. I want to use the identity column as the Primary key in the entity bean.
I assumed that I should not pass in a paramter for the identity column into the create method of the Home interface or the create method of the Bean ejbCreate method. But when I try using the entitity bean to create a new row in the table I get the following error.
Cannot insert explicit value for identity column in table 'PropsTableIdentity when IDENTITY_INSERTis set to OFF.
I didn't think I was doing anything to explicitly insert anything into the identity column.
Anyways here are my programs if anybody cares to take a look.
PropsIdentity.java
package propsIdentity;
// File generated by Desiderata Software's Blazix entity bean wizard
// Thu May 05 08:20:44 MDT 2005
// Remote interface for entity bean "PropsIdentity"
import javax.ejb.*;
import java.rmi.*;
public interface PropsIdentity extends javax.ejb.EJBObject {
int getKey() throws java.rmi.RemoteException;
java.lang.String getValue() throws java.rmi.RemoteException;
void setValue( java.lang.String value ) throws java.rmi.RemoteException;
// TBD: Add any additional remote method interfaces
PropsIdentityHome.java
package propsIdentity;
// File generated by Desiderata Software's Blazix entity bean wizard
// Thu May 05 08:20:44 MDT 2005
// Home interface for entity bean "PropsIdentity"
import javax.ejb.*;
import java.rmi.*;
import java.util.*;
public interface PropsIdentityHome extends javax.ejb.EJBHome {
PropsIdentity create(
java.lang.String value
) throws javax.ejb.CreateException, java.rmi.RemoteException;
PropsIdentity findByPrimaryKey( java.lang.Integer pkey ) throws javax.ejb.FinderException, java.rmi
.RemoteException;
}PropsIdentityHome.java
code]
package propsIdentity;
// File generated by Desiderata Software's Blazix entity bean wizard
// Thu May 05 08:20:44 MDT 2005
// Home interface for entity bean "PropsIdentity"
import javax.ejb.*;
import java.rmi.*;
import java.util.*;
public interface PropsIdentityHome extends javax.ejb.EJBHome {
PropsIdentity create(
java.lang.String value
) throws javax.ejb.CreateException, java.rmi.RemoteException;
PropsIdentity findByPrimaryKey( java.lang.Integer pkey ) throws javax.ejb.FinderException, java.rmi
.RemoteException;
PropsIdentityBean.java
package propsIdentity;
// File generated by Desiderata Software's Blazix entity bean wizard
// Thu May 05 08:20:44 MDT 2005
// Home interface for entity bean "PropsIdentity"
import javax.ejb.*;
import java.rmi.*;
import java.util.*;
public interface PropsIdentityHome extends javax.ejb.EJBHome {
PropsIdentity create(
java.lang.String value
) throws javax.ejb.CreateException, java.rmi.RemoteException;
PropsIdentity findByPrimaryKey( java.lang.Integer pkey ) throws javax.ejb.FinderException, java.rmi
.RemoteException;
}PropsIdentityBean.java
// Thu May 05 08:20:44 MDT 2005
// Bean class for entity bean "PropsIdentity"
import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
public class PropsIdentityBean implements javax.ejb.EntityBean {
//Instance member variables.
public int key = 0;
public java.lang.String value = null;
// Entity context, can be used to obtain handles etc
javax.ejb.EntityContext ejbEntityContext = null;
//Getter/setter methods
public int getKey() throws java.rmi.RemoteException
return key;
public java.lang.String getValue() throws java.rmi.RemoteException
return value;
public void setValue( java.lang.String value ) throws java.rmi.RemoteException
this.value = value;
// TBD: Add implementations for any additional remote method interfaces
// The default ejbCreate method.
public java.lang.Integer ejbCreate(
java.lang.String value
throws javax.ejb.CreateException, java.rmi.RemoteException
this.value = value;
return null;
// TBD: If any other ejbCreate's are added manually to the home interface, define them.
// Other methods required in an entity bean
public void setEntityContext( javax.ejb.EntityContext ejbEntityContext )
throws RemoteException
this.ejbEntityContext = ejbEntityContext;
public void unsetEntityContext()
throws RemoteException
this.ejbEntityContext = null;
public void ejbPostCreate(
java.lang.String value
// TBD: Do any post-instance-creation processing here
public void ejbRemove()
throws java.rmi.RemoteException, javax.ejb.RemoveException
// TBD: Do any processing here when instance is being removed
public void ejbActivate()
throws java.rmi.RemoteException
// TBD: Do any processing here when instance is activated
public void ejbPassivate()
throws java.rmi.RemoteException
// TBD: Do any processing here when instance is being passivated
public void ejbLoad()
throws java.rmi.RemoteException
// TBD: Load any data needed by instance
// in addition to the container-managed data.
public void ejbStore()
throws java.rmi.RemoteException
// TBD: Store any data used by instance
// in addition to the container-managed data.
} Script used to create table in mssql
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[PropsTableIdentity]') and OBJE
CTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[PropsTableIdentity]
GO
CREATE TABLE [dbo].[PropsTableIdentity] (
[key] [int] IDENTITY (1, 1) NOT NULL ,
[value] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GOAnybody have any clue on how to figure the entity bean to work with the identity column?Hi,
CAN THIS BE DONE? This would be a good enhancement if not...???
If I write a PL/SQL loop and want to add it to the utilities... IS THERE A WAY?
Maybe you are looking for
-
I cannot get my daughters IPOD to go into recovery mode to reset it, she has used the passcode to many time and now it is disabled
-
NLS settings for a database link between DBs with different character sets
I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem. Here are the NLS pa
-
Hi, Iam not sure of how best I can explain the problem I experience on my JSF pages. When i try to select a value from the drop down list..it is populating other fields on the page perfectly. One of the fields is Zipcode which has a validator on it Z
-
i forgot to say that i'm working with dreamweaver cs3
-
Page 1 has the link with empid 1;2;3. when i clik on this link redirect to page2 if the data in empid only 1 then do not redirect to page2 just skip that page and redirect to page3 How can i acheive this