Redirect BIAR Import On Buisness Objects - business-objects

On my development server we have several subfolders representing different releases.
Root
|-R1
|-R2
My QA server is dedicated to R1. I want to promote all the reports and universes in R1 to the Root of QA.
I do the BIAR export and it stores the R1 path and tries to put all the contents into an R1 folder on QA. I want to redirect that import to the root of QA.
Possible? Using BusinessObjects XI 3.x.

Not possible without some hacking.
Export the content to a BIAR file
Rename the BIAR file from .biar to .zip
Open the archive, and extract businessobjects.xml
Modify businessobjects.xml to change the parent CUIDs of the objects that you want located in a different folder.
Repackage the zip, rename it back to .biar, and import.
Obviously you'd want to do a fair amount of testing with the method before doing it in a live environment...

As Joe said, this isn't possible without changing the metadata (the XML file) that resides in the BIAR archive.
Is there any reason why you wouldn't just want to import the R1 folder into QA and then move its contents to the root? It will save you quite some time not having to hack the XML and it'll be a lot less error prone.

Related

Enterprise Architect Generate Source Code

I am using Enterprise Architecture to generate C++ classes.
Every time I do a Generate Code, it forces me to navigate to the directory I want to save the files to. Is there a configuration setting for a project or model to tell it to always generate the files to directory X?
Using 'Auto Generate Files' (in the Code generation window) should set the path name to the files automatically, and once a file path is selected, you wouldn't have to select the directory again.

Import a zipped csv file into Talend

Is it possible to import a zipped csv file directly into Talend Open Studio for Big Data 6.3.0.2, if not would there be any work arounds?
Yes, but in two steps.
Step 1. In the file management section of the components is a tFileUnarchive component. You can use this by first placing a tFileList component and connecting it to the tFileUnarchive with the iterate connector.
Step 2. The unzipped files will be moved to an output directory you specify. You can then use another tFileList to read those files in, within the same job.
If you find Talend moves quicker than the unzipping process or files are locked you can put in a tSleep and wait a few seconds or minutes. I use the tSleep in cases where we need a pause in processing to allow system resources to catch up with the job.

How to bulk import documents with custom metadata from csv to Alfresco repo?

I have an excel file (or csv), that holds a list of documents with their properties and absolute paths in local hard drive.
Now that we are going to use Alfresco (v5.0.d) as DMS, I have already created a custom aspect which reflect the csv fields and I'm looking for a better approach to import all document from the csv file into Alfresco repository.
You could simply write java application to parse your csv and upload files, file by file using the RESTful api and do not forget to replicate the folder tree in your alfresco repo (as it is not recommended to have more than 1000 folders/documents on the same level in the hierarchy since it would require some tweaking in a few non trivial usecases).
To create the folder, refer to this answer.
To actually upload the files, refer to my answer here.

How to load all files in a folder with as3

I need to load a large number of pictures (around 30) in a sequence as a short movie, each .png has the size 960X540.
I don't want the loader depend on the name of each picture as I will make changes frequently.
Is there any suggestions?
Are you trying to load images from a local file system, or a remote web server?
If you want to load images from a local file system folder, you can use AIR's File/getDirectoryListing().
If you want to load images from a remote server, and you do not want to rely on a pre-defined file naming pattern, the server will need to be able to provide directory information, for example a PHP script that reads the directory contents and outputs XML or JSON. There's no general way for a client to probe a web server for files in a directory. Some web servers do have a default web directory listing script that shows when there is no "default" file in a folder (index.html, etc), but that probably won't be quite good enough for what you're trying to do.
As a final note, if you don't mind manually updating a file on the server that lists all the files as XML or JSON, you could create a simple AIR app to process a local file directory and generate the necessary XML or JSON and upload that to your server.

Create a Folder relative to selected file in windows store app

I am struggling with the file api of windows store apps. I want to create subfolder while data export to write some additional files into. That means:
data.txt
extra
+ 1.txt
+ 2.txt
The data.txt is picked by user so it's no problem to write. But how could I create this subfolder?
storageFolder.getFolderAsync("C\some\path\where\data\is\extra").done(...
does not work. It seems to fail because of the security restrictions.
I could live with the restiction to write into documents. But it also doesn not work when the user selects a data.txt in documents folder.
I'm afraid that this is "As Designed" behavior.
Yoy can do whatever you want in you application specific folders (AppData)
You can read/edit a file anywhere on the system when a user give you the authorization through file activation or filepicker. There is api to extend lifetime of that authorization
You can read/edit a file Inside knownfolder if your app has required capabilities checked in its manifest.
Other file system interactions will fail due to security restrictions.
If decided to let the user select a directory instead of a file. FolderPicker will handle this job. It's not my prefered solution because the user loose the ability to pick a name of the target folder. A create option in FolderPicker like in Windows non-RT would solve it, but no way yet.
So my user have to create a export folder in Documents by Explorer and then pick it in app.
My structure is:
Documents
+ export (created by user in explorer)
++ 2012-10-04 (hard coded by app)
+++ data.txt
+++ extra
++++ 1.txt
++++ 2.txt