Query based on Excel (iqy file)
This can be covered somewhere, but I couldn't find, I apologize if there is a discussion of this somewhere.We have not actively promoted the use of export more as users IQY files although we have a few users have encountered this and use it.
We're worried, we are opening a Pandora's box if we start to promote the use of the present to our users as part of our training (with respect to the "support" as discoverer Admins).
I would like to see if anyone has advice on allowing users to do this and have problems or you have no experience or concerns that should be considered that users use this option? I think that this is not something that will cause additional on the discoverer server resources, since you are essentially using the report via a URL that uses Discoverer Viewer to get the results?
Kind regards
Jerry
Hi, Jerry
I tend to agree with you about the Pandora's box.
From my experience, I find that the Mara reports tend to take a lot more time managing the reopening of a report to say more or spectator. Another question you have is with the security that you would tend to incorporate the user name and password in the query and the majority of organizations do not do this.
Michael
Tags: Business Intelligence
Similar Questions
-
Problem opening of files from the two account email, secondary remembered as HDD and USB memory-based external excel. Message warning "there was a problem sending the command to the program". I use Windows 7, version studend of microsoft office 2007. This problem does not exist when I use the same USB on the desktop (XP)
You should not actuall open/edit an attachment or a file on a USB drive, the file must be saved to a document on the PC first and opened/edited location.
-
When I open any .exe file it opens with Word, even if I click on Excel.exe files
When I open any exe file it opens with the word that even I click the excel.exe file
Original title: exe problem.
When you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program
http://support.Microsoft.com/kb/950505Difficulties of file Association for Windows 7
http://www.Winhelponline.com/blog/file-Asso-fixes-for-Windows-7/ -
Procedure to export the result of the query to an excel or csv
Hi all
I have two identical paintings
EMP_TEST OF THE EMP
ID ID NAME
1 SAM 1 SAM
2 JOHN 2 ROCK
3 3 STEVE BRAND
I need to combine the result under the query and intent to export data to excel using a procedure
my query is
Select 'EMP_ID', E1. EMP_ID, AND. EMP_ID from emp E1,
emp_test AND WHERE E1. EMP_ID = AND. EMP_ID
UNION
Select "EMP_NAME", E1. EMP_NAME, AND. Emp E1 EMP_NAME,
emp_test AND WHERE E1. EMP_ID = AND. EMP_ID
but I get this error message
ORA-01790: expression must have same type of corresponding data
EMP_ID is a number and EMP_NAME is of type varchar.
I need any idea or suggestion on sub queries.
(1) I have to combine the result set in a single query.
(2) I need to write the procedure that will export the result of the query to an excel or csv.
Thank you.
As PR has said, there are ways that have already been explained in this forum to write in external files. For your query condition, try this.
SELECT CASE WHEN (REGEXP_LIKE (T1.ID,'[^ [: alpha:]] "")) THEN 'EMP_ID '.
ELSE "EMP_NAME' END AS COL_NAME.
T1.ID,
T2.ID
DE)
SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,
ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN
DE)
SELECT ID, NULL,
NAME,
RN ID
FROM EMP
UNION ALL
SELECT ID,
NAME,
RN NULL
FROM EMP)) T1.
(SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,)
ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN
DE)
SELECT ID, NULL,
NAME,
RN ID
OF EMP_TEST
UNION ALL
SELECT ID,
NAME,
RN NULL
OF EMP_TEST)) T2
WHERE T1. RN = T2. RN;
OUTPUT:
COLUMN-NAME ID ID
-------- ---------------
1 1 EMP_ID
2 2 EMP_ID
3 3 EMP_ID
SAM EMP_NAME MARK
EMP_NAME JOHN JOHN
EMP_NAME STEVE DARREN6 selected lines.
-
How can I attach a MS Excel 2013 file to an email
Hello
I cannot attach a file Excel 2013 in an e-mail. I saved in Excel, & exit off program to attach it to an email, but I can't find anywhere on my pc files. I have been a Windows 8. Can someone help me?
Thank you!
Lily
In Excel, use file, record under to save the file again and this time, make a note of the path file 1 .
-
How to disable the popup LOV (query based LOV) tabular
Hello
I need help. I need to make a line in a table form the read-only AND disable the Popup LOV (LOV based query). As you can see in the code below all rows with a value of "AUD" becomes read-only. Column 5 is a Popup LOV (query based LOV), and must have become read only AND disabled also. Currently, the code performs the lines = "AUD" read-only, but the user can still click on the Popup LOV this line and select a value from the list, then updates the row.
All solutions?
function makeRowReadOnly() {}
{$('select[name="f06"]').each (function ()}
var row_val = $(this) .val ();
ROW_ID var = $(this).attr('id').substr (4);
If (row_val is "AUD")
{
$("#f02_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f03_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f04_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f05_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f06_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
$("#f07_"_+_row_id).attr ("readonly", true) .addClass ('row_item_disabled');
}
else {}
$("#f02_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f03_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f04_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f05_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f06_"+row_id).attr ("readonly", false) .removeClass ('row_item_disabled');
$("#f07_"+row_id) .attr ("readonly", false).removeClass('row_item_disabled');
}
});
}Hi dekoke_i,
I tried this on my local instance of APEX 4.2:
function makeRowReadOnly() { $('select[name="f06"]').each(function() { var row_val = $(this).val(); var row_id = $(this).attr('id').substr(4); if (row_val == 'AUD ') { $("#f02_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f03_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f04_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled'); //make the popup-lov button readonly $('#f05_' + row_id).closest('tr').find('td span.lov a').addClass('row_item_disabled').unbind('click'); $("#f06_" + row_id).attr("readonly", true).addClass('row_item_disabled'); $("#f07_" + row_id).attr("readonly", true).addClass('row_item_disabled'); } else { $("#f02_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f03_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f04_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f05_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); //enable the popup-lov button $("#f05_"+row_id).closest('tr').find('td span.lov a').removeClass('row_item_disabled').bind('click'); $("#f06_"+row_id).attr("readonly", false).removeClass('row_item_disabled'); $("#f07_"+row_id).attr("readonly",false).removeClass('row_item_disabled'); } }
I hope this helps!
Kind regards
Kiran
-
What will happen to the SQL Query based object View (EmployeesVO)
Schema used: HR
- I created a view through SQL Query view object object (Table Employees - EmployeesVO).
- Creates an entity of the Employees (EmployeesEO) table object.
- In the section EmployeesVO (View object) entity objects, I chose EmployeesEO (entity object).
What will happen to the View SQL Query object based on (EmployeesVO) will it change to VO based on entities or still to be based query VO.
It is there because you can still base your query based Vo EO according to Vo.
After that you base your VO on EO you can now use 'Add the attribute of the entity' to base your attribute on the atrributes of EO. Or if you skilled enough you can manually change the XML to VO
-
Query based ViewObject does pull not all attributes, when the query has 'WITH' clause
Hello
12.1.2 and 12.1.3 JDeveloper
When we try to create a custom query based ViewObject, and the query clause of "with."
So not all the columns selected in the query are appearing as attributes of the View object in the wizard.
This is the query. And it performs very well in Toad.
WITH dept_count AS)
SELECT department_id, COUNT (*) AS dept_count
Employees
GROUP BY department_id)
SELECT e.first_name AS employee_name,
DC1.dept_count AS emp_dept_count,
m.first_name AS manager_name,
DC2.dept_count AS mgr_dept_count
E employees,
dept_count dc1,
m employees,
dept_count dc2
WHERE e.department_id = dc1.department_id
AND e.manager_id = m.employee_id
AND m.department_id = dc2.department_id;
Only the EmployeeName attribute is extracted from the query. It does not show the rest of the attributes in the VO Wizard.
(I also tried to create a VO from the EntityObject class and make it editable as false, even in this case all attributes are not displayed.)
I was wondering if something changed in 12 c?
It works in 11.1.1.7
(A friend of mine just asked me this).
Thanks for any help.
Sameer
Jdev dislikes the syntax
You can rewrite as
SELECT e.first_name AS employee_name,
DC1.dept_count AS emp_dept_count,
m.first_name AS manager_name,
DC2.dept_count AS mgr_dept_count
E employees,
(
SELECT department_id, COUNT (*) AS dept_count
Employees
GROUP BY department_id) dc1,.
m employees,
(
SELECT department_id, COUNT (*) AS dept_count
Employees
GROUP BY department_id) dc2
WHERE e.department_id = dc1.department_id
AND e.manager_id = m.employee_id
AND m.department_id = dc2.department_id
who must work and give you the same result.
Timo
-
Query based on the partition of the date
Hello
I'm trying out only a professional successful integration in the last 24 hours of the day. If there is work that has the outcome of success and failure in the last
24 hours for each day, I only managed the output. If there is no success for the same work, I pulled out as the last attempt at failed job.
Here are my columns:
Thank youcurrent output: JOB_ID JOBDATE GROUP PATH OUTCOME FAILED LEVEL ASSET 3400908 7/27/2012 10:01:18 AM polA target1 Success 0 incr clone1 3400907 7/27/2012 10:01:09 AM polA target1 Failed 0 incr clone1 3389180 7/23/2012 10:01:14 AM polA target1 Failed 1 incr clone1 3374713 7/23/2012 10:01:03 AM polA target1 Success 0 incr clone1 3374712 7/22/2012 11:24:32 AM polA target1 Success 0 Full clone1 3367074 7/22/2012 11:24:00 AM polA target1 Failed 1 Full clone1 3167074 7/21/2012 10:01:13 AM polA target1 Success 0 incr clone1 336074 7/21/2012 10:01:08 AM polA target1 Success 0 incr clone1 desired output: JOB_ID JOBDATE GROUP PATH OUTCOME FAILED LEVEL ASSET 3400908 7/27/2012 10:01:18 AM polA target1 Success 0 incr clone1 3374713 7/23/2012 10:01:03 AM polA target1 Success 0 incr clone1 3374712 7/22/2012 11:24:32 AM polA target1 Success 0 Full clone1 3167074 7/21/2012 10:01:13 AM polA target1 Success 0 incr clone1 Here is a code I am trying to use without success: select * from (selectjob_id, jobdate, group, path, outcome, Failed, level, asset, ROW_NUMBER() OVER(PARTITION BY group, path, asset ORDER BY jobdate desc) as rn from job_table where jobdate between trunc(jobdate) and trunc(jobdate) -1 ) where rn = 1 order by jobdate desc;
-AbeHi, Abe,
You are on the right track, using ROW_NUMBER to assign numbers and pick-up only #1 in the main query. The main thing you're missing is the PARTITION BY clause.
You want to assign a #1 for each distinct combination of group_id, path, assets and calendar day , right?
Then, you need to PARTITION BY group_id, path, assets and calendar day . I think you understand that when you called this thread "query based * on partition date."The next thing is the controlling ORDER BY clause. To know which line of each partition is assigned #1, you must order the lines of result ("Success" first, then "Failed") and after that, of jobdate (jobdate last first, which is in descending order).
If so, that's what you want:
WITH got_r_num AS ( SELECT j.* -- or list columns wanted , ROW_NUMBER () OVER ( PARTITION BY group_id -- GROUP is not a good column name , path , asset , TRUNC (jobdate) ORDER BY CASE outcome WHEN 'Succcess' THEN 1 ELSE 2 END , jobdate DESC ) AS r_num FROM job_table j WHERE outcome IN ('Success', 'Failed') -- AND ... -- Any other filtering, if needed ) SELECT * -- or list all columns except r_num FROM got_r_num WHERE r_num = 1 ;
If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test it.
It seems that you posted several copies of this thread. I bet that it's not your fault; This site can cause that. Even if it's not your fault, please mark all versions duplicated this thread as "Answered" immediately and continue in this thread if necessary.
Published by: Frank Kulash, 28 July 2012 23:47
This site is crumbly than I thought! I saw at least 3 copies of this same thread earlier, but I'm not now. -
ThinApp'd Excel 2003 file association opens several games
Hello
We have Thinstalled (v3.0) Office 2003 & ThingReg used in the file include all types of Office 2003 files to it.
A user complains that when they use the Explorer to open Excel multiple files, it opens up several copies of Excel. This is the default behavior of a fully installed copy of Excel 2003, but each workbook is also tiled in each shell of Excel. In Thinstall, this isn't; There is only one workbook in each Excel.
Any ideas how we can make Thinstall open several Excel workbooks in the same copy of Excel?
Thank you very much
This problem is fixed in the latest version of ThinApp, so upgrade and you should be fine.
-
Import Excel (xls) file to the ArrayCollection collection
Hi people,
I m trying to import an excel (*.xls) file to provide the data in a collection for my dataProvider arrayCollection. Therefore, I m using as3xls library and tried to apply it as in certain positions-, but it doesn´t work.
Maybe someone can give me an advice to solve the problem.
Here is my code for this part:
import
com.as3xls.xls.ExcelFile;Import com.as3xls.xls.Sheet;
Import com.as3xls.xls.Cell;
protected var carrr:ArrayCollection;
private var loader: URLLoader;
private function xlsToArrC():void {}
CRARR =
new ArrayCollection();
var Path: String = ".. "/ test.xls ';
var request: URLRequest = new URLRequest (PATH);
var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener (Event.COMPLETE, completeHandler);
Try
{
Loader.Load (request);
}
catch (error: error)
{
trace ()"Unable to load URL:" ( + error); "."
}
}
private function completeHandler(event:Event):void {}
var xls:ExcelFile = new ExcelFile();
var noOfRows:int;
var noOfColumns:int;
if (data! =null & & data.length > 0) {}
xls.loadFromByteArray (loader.data);
var : map = xls.sheets [0];
if (map! =null) {}
noOfRows = sheet.rows;
noOfColumns = sheet.cols;
for ()var row: int = 1; row < noOfRows; line ++) {}
var cellKW:Cell = new Cell() ;
var cellFZG:Cell = new Cell() ;
var cellBT:Cell = new Cell() ;
var cellTBT:Cell = new Cell() ;
var cellFBT:Cell = new Cell() ;
var valueKW:String = new String [] ;
var valueFZG:String = new String [] ;
var valueBT:Number = new Number();
var valueTBT:Number = new Number();
var valueFBT:Number = new Number();
valueKW = sheet.getCell(row,0).value;
valueFZG = sheet.getCell(row,1).value;
valueBT = sheet.getCell(row,2).value;
valueTBT = sheet.getCell(row,3).value;
valueFBT = sheet.getCell(row,4).value;
var o: Object = {drive: bt valueFZG: valueBT, tbt:valueTBT, fbt:valueFBT, week: valueKW};
carrr.addItem (o);
}
}
}
}
flexer_student I can't see where the problem is on your code. Try this instead.
public var dataFormat:String = URLLoaderDataFormat.BINARY
public var strPath:String = "test01.xls";
public var urlLoader:URLLoader = new URLLoader();
public var urlRequest:URLRequest/ * create loader to load the project file * /.
private function init (): void
{
urlLoader = new URLLoader();
urlLoader.dataFormat = dataFormat;
urlRequest = new URLRequest (strPath);
urlLoader.addEventListener (Event.COMPLETE, requestHandler);
urlLoader.load (urlRequest)
}
private void requestHandler(event:Event):void
{/ * changed here to enter the data of the current target url loader * /}
var fileData:ByteArray = event.currentTarget.data
var excelFile:ExcelFile = new ExcelFile();
var noOfRows:int;
var noOfColumns:int;
If (fileData! = null & fileData.length > 0) {}
excelFile.loadFromByteArray (fileData);
var: sheet = excelFile.sheets [0];
if(Sheet!=null)
{
noOfRows = sheet.rows;
noOfColumns = sheet.cols;
for (var row: int = 0; line)<>
{
var cellObject:Object = {};
for (var
Col: int = 0; Col<>
{
var: a cell = new Cell();
var cellValue:String = new
String [];
cell = sheet.getCell (row, col);
if(Cell!=null)
{
cellValue
= (Cell.value). ToString();
addProperty (cellObject, col, cellValue);
}
} / / Interior for purposes of loop
rebateDGDataProvider.addItem (cellObject);
rebateScheduleDG.dataProvider = rebateDGDataProvider
} //for loop ends
}
}
progressBar.visible = false;
progressBar.includeInLayout = false;
rebateScheduleDG.includeInLayout = true;
rebateScheduleDG.visible = true;
fileReference = null;
}I'll post the complete project in a few minutes, I could not get your project to compile so I did my own and change the code to use the urlLoader class.
I remind you that this library is buggy "as3xls' for exampple does not load the sample file that you send me, I get an error that says"end of file expected. "
However, if I take the same copy of the file and glued to a pure excel sheet HERE! no problems. Also I noticed that your formatting in your worksheet. I hope that you realize that "as3xls" will remove a lot of your formatting so you better be careful in your solution.
Anywho enjoy.
If this post answered your question please brand she replied
Thank you
Miguel
-
query based on a box of test input
query based on a box of test input
Hello
I have this html input box and I want a query based on what I put in the input output box. What should I do now.
Thank you
< form id = "form1" name = "form1" method = "post" action = "" >
< label > enter id < input type = "text" name = "textfield" / >
< / label >
< / make >I posted this as an example of what can be done, and it should work as written. However, the part 'living dangerously' is because only by using this model, as written would allow someone run a query in your database, including queries DELETE and UPDATE, without restriction. It's actually a simplified form of the one that I developed for one of my applications, as this one did a management condition and State of login, etc that I don't understand, in order to keep things simple. The one I posted is wide open , so use with caution.
Phil
-
Export a query to an Excel file to download
Hi, it's probably easy, but I don't know what to call. How one generates a downloadable file of a query in a comma or an Excel file delimmited file?
I would appreciate your help.
Thank you
WeblizardHey,.
I have some of your code combined with someonelses and it works. The only problem is that when that it exports data to Excel, he loses the default appearance 'cell' of the worksheet. Also, I'm sure there's a way to pass the actual cell as a generic query instead of a hardcoded, but at least it works. So, I'm happy! -
Name of dynamic resource for Excel/csv files
Hi all
Playback of a source (as well as csv) excel file, I tried passing the name of the resource via a variable that is defined to contain the name of the file (update). However, the performance, the file name with a character '-' extra without be specified in the interface variable text to deal with the load step.
The error that says:
ODI-1227: SrcSet0 (load) task fails on the source of the FILE connection < ConnNameHere >.
Caused by: java.sql.SQLException: ODI-40438: file not found: C:\DirectoryNameHere\ /OTD.
This is expected behavior where one needs to escape special characters?
I checked that the extra / is not present in the value of the variable or the directory for the physical schema.
TIA.
Hello
In my view, ODI generates the character ' / ' by default and I don't think we have any special treatment to escape this character.
Based on the error message, it looks like you gave "C:\DirectoryNameHere\" in the directory in the physical schema. Lets say "SourceFiles" is your name of directory where all you produce will land and you want ODI to choose that path there, then directory will be "C:\DirectoryNameHere". When you run the task, ODI generates path like this: "C:\DirectoryNameHere/OTD.csv."
Kind regards
KK
-
Dynamic creation of tables based on Excel:
Dear Experts,
I have a requirement like this can you help me on this you can
I have some sheets with excel data. I want to create dynamic tables based on the spreadsheets excel and that excel spreadsheets this specific data should be imported into this table. How can I achieve this?
Is it possible to make this one
Please help me on this
983563 wrote:
Can you guies give any sample format so that I can try from here
Mukesh seems to talk about using Excel to connect to Oracle and Excel create tables and insert data, such as a client application.
However, this is not what you're asking.
The examples you need are in the links that Anton has provided, which describe in detail how to set up a heterogeneous service (or whatever now calls Oracle 11 g go - they have changed the name), and then you can query the Excel workbook as if each worksheet is a table, with the first line of each leaf with column names. You can even search the workbook to see what "tables" (sheets) exist and what "column names" (first row labels), use select standard... from queries of type user_tables@excel (once you have configured your heterogeneous service).
As Marty said well, what is the purpose to do this dynamically, as dynamically created tables will require code created dynamically for use.
An application design and database well-designed will dictate what data formats and tables are at design time.
Maybe you are looking for
-
Where is the file Assistant?
I have in fact need file syncing, as I use Time Machine on two separate external hard drives. But I remember - in System 7 and OS 8 and OS 9 - there is a nifty little utility for synchronization called file Assistant (its icon has been head of the ed
-
Re: Satellite U300 hibernates when the battery is very low
Hello I bought my satellite U300 141 two weeks ago.The computer is not put into hibernation when the battery is very low. I checked the settings of vista, default 2% of the battery capacity, the laptop must Hibernate. But mine is not.But I noticed th
-
How fix the error code 80070641
I continue to be alerted that I have updates to install, but when I click the installation option then I get an error message with code listed above. I also got the message that my 'windows install' has not been installed correctly. Is there a way f
-
Error installation windows all updates on Windows 7 Enterprise 64-bit
Hello About 2 weeks ago, I started having problems with windows update - all new updates could not be installed with the 800736 B 3 error I downloaded the standalone installer Windows6. 1 - KB2284742 - x 64 and tried to run alone. From the CBS logs,
-
text Windows desktop xp home edition and the icons don't display correctly after installing ie8
gray text distorted icons