File reporter questions - pulling data from db / files for o
I've been trying to find a way to query or pull file and path info for volumes from the file reporter databases without needing to give access to the file reporter app. I have an outside group that I need to provide the file structure to, but don't need to give all of the info to, and need to provide it in the form of a text file. I could script this out, but if file reporter does this also, I don't see the point in duplicating the data out there.
In reviewing the content of the sqlite databases it doesn't appear that the actual file system info. I see a lot of references to what I think may be files in the directory structure that the databases are located in. looking over the logs and debug files in these directories they look like they may contain what I am looking for, but I'm not sure what can be used to open or extract the data from them. Does anyone know what I would use to open or extract the zcf files located in them?
so I've made a few attempts at trying to figure out the format these are in, but know they are not sqlite data... not zip or gzip... but definitely some sort of data file.
On 10/8/2012 4:46 PM, rbgnr111 wrote:
>
> I've been trying to find a way to query or pull file and path info for
> volumes from the file reporter databases without needing to give access
> to the file reporter app. I have an outside group that I need to provide
> the file structure to, but don't need to give all of the info to, and
> need to provide it in the form of a text file. I could script this out,
> but if file reporter does this also, I don't see the point in
> duplicating the data out there.
>
> In reviewing the content of the sqlite databases it doesn't appear that
> the actual file system info. I see a lot of references to what I think
> may be files in the directory structure that the databases are located
> in. looking over the logs and debug files in these directories they look
> like they may contain what I am looking for, but I'm not sure what can
> be used to open or extract the data from them. Does anyone know what I
> would use to open or extract the zcf files located in them?
> so I've made a few attempts at trying to figure out the format these
> are in, but know they are not sqlite data... not zip or gzip... but
> definitely some sort of data file.
>
>
rbgnr111,
It sounds like you might be better off exporting a report which suits
your needs as a CSV file (which can be done from within File Reporter)
and stripping out unnecessary 'columns' of metadata after the fact. This
would be a great deal simpler than extracting the data from the database.
- NFMS Support Team
Similar Messages
-
One report to pull data from SQL or DB2
Hi Guys,
First post here. I have scoured the internet using our good friend google for answers and have come up empty. I hope someone can help me here!
Some Info: Crystal XI R2, Visual Studio 2005, Ms SQL Server 2005, DB2, VB.NET
What I am trying to accomplish is using one report to pull data from either SQL 2005 or DB2.
The problem I get is if the report is configured to pull data from SQL 2005, I cannot change it using the code below to pull data from DB2. The SQL Report uses the Microsoft OLEDB Provider. The DB2 report uses the IBM DB2 UDB for iSeries IBMDA400 OLEDB provider. When I quickwatch the oCRTable logon information, it seems to retain the other database's info.
Any ideas?
My code:
Private Sub LoadRpt(ByVal rpt As String)
Try
Dim strReport As String
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim oCRTable As CrystalDecisions.CrystalReports.Engine.Table
Dim oCRConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo()
strRptNm = String.Format(".rpt", rpt )
strReport = String.Format("\{1}", Server.MapPath("Reports"), rpt )
crReportDocument.Load(rpr)
' check to make sure report is loaded; if not, then do nothing
If crReportDocument.IsLoaded Then
oCRConnectionInfo.DatabaseName = ConfigurationManager.AppSettings.Item("DataBase")
oCRConnectionInfo.ServerName = ConfigurationManager.AppSettings.Item("Server")
oCRConnectionInfo.UserID = ConfigurationManager.AppSettings.Item("Profile")
oCRConnectionInfo.Password = ConfigurationManager.AppSettings.Item("Password")
For Each oCRTable In crReportDocument.Database.Tables
oCRTable.LogOnInfo.ConnectionInfo = oCRConnectionInfo
oCRTable.ApplyLogOnInfo(oCRTable.LogOnInfo)
oCRTable.Location = oCRTable.Location
Next
For Each rpt In crReportDocument.Subreports()
For Each oCRTable In rpt.Database.Tables
oCRTable.LogOnInfo.ConnectionInfo = oCRConnectionInfo
oCRTable.ApplyLogOnInfo(oCRTable.LogOnInfo)
oCRTable.Location = oCRTable.Location
Next
Next
... other code ...
End If
Catch ex As Exception
... other code ...
End Try
End Sub
Edited by: Mace Windu on Feb 7, 2009 7:55 AM
Edited by: Mace Windu on Feb 7, 2009 7:56 AMDavid,
Your suggestion worked to near perfection. The only problem was that if I configured the datasource locations of the report and sub reports in CR to use the SQL ODBC, the .net program would successfully log in using the DB2 info but had a problem reading the data. If I configured the datasource locations of the report and subreports in CR to use the DB2 ODBC, everything worked! Thanks for the advice.
The force is strong with you.
Mace -
Unable to find file error while loading data from text file to Oracle
Hi,
I am having a interface where i am loading a data of Text file to Oracle.
But when i am trying to do this i am getting following error.
ODI-1227: Task SrcSet0 (Loading) fails on the source FILE connection SAPMM.
Caused By: java.sql.SQLException: File not found: d:/mdb/#General.get_filename
at com.sunopsis.jdbc.driver.file.FileResultSet.<init>(FileResultSet.java:160)
at com.sunopsis.jdbc.driver.file.impl.commands.CommandSelect.execute(CommandSelect.java:57)
at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
SAPMM is connection name.
I am using get_filename to get the filename and it is fetching correct value as the this variable refreshes in previous step of this interface.
KM used for loading is File to SQL
What would be cause of this error?
Thanks,
MaheshHi,
Did a testing and following are the result
I have
A> created package having steps like
1. Declaration of variable v_filename.
2. Refreshing variable v_filename.
3. Execution of Interface which gets the file name from v_filename and load into target table
Package executes successfully.
B> created package having steps like
1. Declaration of variable v_filename.
2. Refreshing variable v_filename.
3. Scenario of Interface which gets the file name from v_filename and load into target table
Package executes with erre as it is not able to find the file
C> created package having steps like
1. Declaration of variable v_filename.
2. Refreshing variable v_filename.
3. Execution of Interface which gets the file name from v_filename and load into target table
4. Now create a scenario of the package , use the generated scenario in another package say main_package
Execution of main_package is successful.
Thanks,
Sutirtha -
File-File - Need to extract data from source file name???
Hello Experts,
I have a unique situation. In my file to file scenario, the source file name is of the format XYZ_yymmddHHMM.dat. there is field in the target file which has to filled with the date that is there in the file name of the source file (yymmdd). How can this be achieved? Normally we do the other way round using vaiable substitution where we can name a file depending on the value in any of the target field structure.
Please help.
Regards,
YashHi,
please prepare the udf with the following code.
i mean, dynamic configuration concept.
where u get the file name, then use substring function to capture date from right side.
//write your code here
// getFileName User Defined Function
// function to create name of output file
String filename;
filename = strFile;
try {
// initialize DynamicConfiguration for create file with given name
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
//create file with the specified name
conf.put(key, filename);
} catch (Exception ex) {
return filename;
warm regards
mahesh. -
Simple question: sending data from as file to a swf
hi,
I'm new to AS3 language, so maybe this is a silly question.
I'm using a Flash 3D visualization tool (Flare3D) to display 3D contents in flash.
the project consist of a blank fla project and a .as file (main.as) that manage the creation and the diplay of 3D contents.
Now I want to display the name of the 3D object that I select in a text box created in the fla.
I wrote:
in main.as
var selectedMesh:String = e.target.name //the 3D object I select
in step1.fla, frame 1
root.infoBox.infoBoxText.text = selectedMesh; //where I want to display the name of the object I've selected
When I publish the swf file, it report two errors:
1180: Call to a possibly undefined method addFrameScript.
1119: Access of possibly undefined property infoBox through a reference with static type flash.display:DisplayObject.
what's the problem with that? maybe I nedd to extend movieClip class in main.as or something else?
thank youFirst, you need to post more verbose errors with line numbers - figuring what lines of code from which object throw errors and will help you to pinpoint the source. Then post these offensive lines.
Otherwise it is practically impossible to give you any suggestions (this is unless one has a christal ball) -
Does anyone know if it is possible to take say a spool file that you created intead of printing something and using jsp to scan the file and pull info out of it and place it into database fields? For example if the spool file contains info such as name, date, description, Is it possible to write soemthing in jsp or java that can pull it out and put it into say table in a mysql, sql server, or oracle db? I don't need to know exactly how, but rather can it be done? In not, any suggestions on how? Ie using asp, php, cfm? Any input would help greatly
Regards,
Johnnot sure what format the spool file is in, but it is pretty easy to open and read a text file in with java. Then you can just parse the file. jdk1.4.1 even has out of the box support for regular expressions.(regex) if needed. Once you have parsed it, also easy to insert into mysql,oracle etc. using jdbc.
-
How to pass parameters to the Control file while loading the data from flat file to staging table
Thanks in advance
Hi ,
LOADDATA statement is required at the beginning of the control file.
INFILE: INFILE keyword is used to specify location of the datafile or datafiles.
INFILE* specifies that the data is found in the control file and not in an external file. INFILE ‘$FILE’, can be used to send the filepath and filename as a parameter when registered as a concurrent program.
INFILE ‘/home/vision/kap/import2.csv’ specifies the filepath and the filename.
Hope this will help you...... -
How to insert data from *.dmp file to oracle 11g using Oracle SQL Develope
hi
i backup my database using PL/SQL developer and made *.dmp file
how to insert data from *.dmp file to oracle 11g using Oracle SQL Developer 2.1.1.64
and how to make *.dmp file from sql*plus ?
thanks in advancePl/Sql developer has a config window, there you choose the exec to do the import/export.
Find it and his home version, it may be exp or expdp, the home version is the version of the client where the exp executable is.
Then use the same version of imp or impdp to execute the import, you do not need to use Oracle SQL Developer 2.1.1.64. If you want to use it, you must have the same version in the oracle home that exp/imp of sql developer use. -
Pulling data from table to a flat file
hi all,
Good day to all,
Is there any script which i can use for pulling data from tables to a flat file and then import that data to other DB's. Usage of db link is restricted. The db version is 10.2.0.4.
thanks,
baskar.lIs there any script which i can use for pulling data from tables to a flat file and then import that data to other DB'sFlat file is adequate only from VARCHAR2, NUMBER, & DATA datatypes.
Other datatypes present a challenge within text file.
A more robust solution is to use export/import to move data between Oracle DBs. -
HOW to retrieve PURCHASE ORDER DATA from archieve file and print a report
Dear all
1) I have retrieve purchase order data from archived files.
2) print purchase order data and created pdf file.
VIJ.............
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Apr 28, 2009 12:00 PMDear all
1) I have retrieve purchase order data from archived files.
2) print purchase order data and created pdf file.
VIJ.............
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Apr 28, 2009 12:00 PM -
Creating Rule file to pull data from OCI Interface
Hi.
I am new to OCI, I have worked on DSN method earlier to pull data from database.
Can someone give me steps of how to pull data from OCI interface.
My database is Oracle 11gR2 and I am using 11.1.2.2 Fusion version.
Regards
Mahesh BallaThe following post may help - Re: Essbase Rules Files and OCI
There have been a number of issues relating to data and using OCI, I am not sure whether they are all resolved in 11.1.2.2 so if you are using OCI make sure you validate the data once loaded into essbase.
Cheers
John
http://john-goodwin.blogspot.com/ -
Hello.
Is anybody can help how to import data from excel file to the form created with designer 7.0. Originally there is a script inside the form to populate drop down list and depending from data selected in the ID number drop down list, there will be filled out the description and the prices text fields. But now I have to modify this form with data from excel file, which has more than 30000 lines and put all this data to script is too much.
So, can somebody know how can I after filling the ID number field , populate the description and price text fields with data from excel file corresponding to this ID number ?
This form is used in Adobe reader.
Any comments are welcome.
Regards,
AivarHi
That's what i said in my prev. Post to clear cache... :)
disable your cache from nqsconfig.ini
In cache section of NQSConfig file,
you find
ENABLE = YES;
set to NO
OR
if you are using data ware house as the source for OBIEE,
you know that when ETL is done, so just create iBot to purge cache automatically at that particular intervals,
So that report runs freshly at that time
And what happened to your View Selector question?
Edited by: Kishore Guggilla on Jul 3, 2009 3:52 PM -
With Adobe Premier Elements 13 can I add my own audio tracks by pulling music from my files and by using my USB microphone?
larryh
Please remind us on what computer operating system your Premiere Elements 13 is running
Using your own music.....
Yes, with important but.....
Details
If your music is from iTunes, more than likely you will get some sort of error message from the program when you try to import the iTunes music into Premiere Elements (most versions including 13). In that case, please convert the iTunes music to the wav version in iTunes using the following iTunes instructions.
iTunes: How to convert a song to a different file format - Apple Support
If you are getting program error message using Premiere Elements 13 Add Media/Files and Folder with other than iTunes music, please give the source and properties of that music.
Using USB Microphone....Not recommended by Adobe....See Adobe ReMe
Details
As for Premiere Elements narration clips using the its Narration Tool
1. Adobe documentation indicates the USB microphone do not work in Premiere Elements and suggest the use of microphones that connect to the computer via computer jack.
But, there are some scattered cases where the user has found a USB microphone that has worked for him or her.
2. Be sure to check Edit Menu/Preferences/Audio Hardware ASIO settings to assure that Input and Output are enabled.
3. There have been reports (Premiere Elements several versions) where addition of narration using the Narration Tool results in loss of pre-existing
sound on numbered audio track clips and soundtrack.
ATR Premiere Elements Troubleshooting: PE12: Audio Losses After Narration Addition
4. In my particular Premiere Elements 13 on Windows 8.1 64 bit, I have found that I need to set the Mic Sensitivity all the way to the left to avoid
serious audio distortion.
I have tried to give you an overview to avoid surprises if you have not used the features that you pointed to in your thread question. Please let me know if you need further information.
Thank you.
ATR -
Question about Skywire Documaker - where can it pull data from ?
Does the Skywire Documaker product have an ability to pull data from a Relational Database into a form’s field? What other data sources are available to pull data, besides the extract data file (DAT), and xml file?
In response to your question about where Oracle Documaker pulls data from:
DB calls may be done as part of the document generation process to look up data. However it is not designed to maintain and open DB connection. This is also not a recommended best practice. Transall is shipped as part of the Doucmaker solution and it is designed to connect to multiple sources (including DB) and produce an input file for Documaker. Creating DB connections is considered an IT related task and does not fit in with positioning Documaker as a business user tool. -
Hi all,
As we can get data from .xls, .xlsx file in a dataset. Now i want to read all the entire data from .xltm file.
I also want to get all sheets name from .xltm file. I am using .Net framework 4.5, Visual studio 2012.
Please help me. I am unable to extract it. It is urgent.Hello Kalpna Bindal,
I just investigate this issue and use the following way but it does work:
private void Button_Click(object sender, RoutedEventArgs e)
// initialize connection
OleDbConnection con = new OleDbConnection();
con.ConnectionString =
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\Fruits1.xltm;Extended Properties=\"Excel 12.0 Xml;HDR=YES;\"";
//pass query to Insert values into Excel
OleDbCommand cmd = new OleDbCommand();
cmd.CommandText = "insert into [Sheet1$] values('')";
cmd.Connection = con;
// EXECUTE QUERY
con.Open();
cmd.ExecuteNonQuery();
con.Close();
I then did a research about this issue and find the following case:
http://stackoverflow.com/questions/22225017/reading-excel-xltm-files-programmatically
To test whether it is possible I use the following code in WPF:
Microsoft.Office.Interop.Excel.Application xltmApp = new Microsoft.Office.Interop.Excel.Application();
xltmApp.Visible = false;
xltmApp.ScreenUpdating = false;
Workbook xltmBook = xltmApp.Workbooks.Open(@"D:\Fruits1.xltm");
Worksheet xlworksheet = xltmBook.Worksheets.get_Item(1);
for (int i = 1; i <= 1; i++)
for(int j=1;j<=1;j++)
string str = (string)(xlworksheet.UsedRange.Cells[i, j] as Microsoft.Office.Interop.Excel.Range).Value;
MessageBox.Show(str);
The result is that I can read this .xltm file and read the firstline without problem.
I would think you can also use this way to work with your .xltm file and output it to your application.
For more details about how to fill to your WPF, common wpf and excel thread will be helpful:
http://www.codearsenal.net/2012/06/c-sharp-read-excel-and-show-in-wpf.html#.URPyfPJJocU
http://www.dotnetcurry.com/showarticle.aspx?ID=988
http://mozouna.com/Blog/2013/03/28/wpf-reading-and-writing-to-excel-file-with-c/
By the way, for WPF case please post on WPF forum instead of C# forum.Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
How to show printer list in a pop-UP in web-UI
Hi Guru's, I have a requirement in which I need to display all available printer (windows local +SAP configured) list in a pop-up, on the web-UI . From this list user can select any printer and print on it. Now my question is: Does SAP provides somet
-
R12.1.3 Upgrade from 11.5.10 and having multiple Application Servers
Hi, We are in the process of upgrading the 11.5.10 Instance to R12.1.3. The 12.1.3 Instance will have multiple application servers. I will be doing an R12.1.1 Installation with Upgrade Option. What should be the procedure to have multiple application
-
IWork '09 No More Save As?
Since installing Lion OS, in Pages & Numbers (iWork '09) there is no "Save As" option anymore? I can work around this, but it wastes lots of time = wastes $$ in my business. "Save a Version" isn't the answer, "Save as Template" isn't the answer >>
-
Problems with screen enlarging so big I can't use touchpad and phone locks up.
After getting iOS 7, I have had an issue with some sort of technical glitch with my screen on my 4S. On occasion (today) the screen pops to a huge display and does not allow me to scroll enough to do anything. I can't enter my password because the
-
Far fewer print settings in this version?
In the previous iPhoto, I was easily able to select different printing layouts that would print a bunch of photos on a single page in such a way that they were laid out nicely, filling the available space and all the right way up. Can't seem to find