Creating a folder for testing
Hi all,
This is a suggestion rather than a question.
I sometimes need a folder with a nice small well defined set of data for testing.
Rather than have to go to the DA and ask them to add a table to the Oracle database and then add it to the Business Area I found a simpler solution:
In Discoverer Administrator Create a Custom Folder.
Add SQL something like:
SELECT 'A' AS Type, 1 AS Days, 10 AS DailyCost FROM DUAL
UNION SELECT 'A',2,20 FROM DUAL
UNION SELECT 'B',3,50 FROM DUAL
UNION SELECT 'B',4,100 FROM DUAL
This will provide a table with three fields: Type, Days & DailyCost.
And four records.
Save this and give it a sensible name such as TestTable and it's then available
for running tests.
It's not too complex to create a series of Excel formulae which will take a table of values and create the SQL to be used to create a custom folder.
This is a fairly quick (if hackish) way of getting a table of values into the business area until such time as it can be put into the database by the DA.
In Excel
For a table with field names in cells A1..C1 and records in A2..C5 use the following formulae in Cells E2..E5 and then copy these four cells to get the SQL!
="SELECT "&IF(ISTEXT(A2),"'"&A2&"'",A2&"")&" AS "&A1&","&IF(ISTEXT(B2),"'"&B2&"'",B2&"")&" AS "&B1&","&IF(ISTEXT(C2),"'"&C2&"'",C2&"")&" AS "&C1& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A3),"'"&A3&"'",A3&"")&","&IF(ISTEXT(B3),"'"&B3&"'",B3&"")&","&IF(ISTEXT(C3),"'"&C3&"'",C3&"")& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A4),"'"&A4&"'",A4&"")&","&IF(ISTEXT(B4),"'"&B4&"'",B4&"")&","&IF(ISTEXT(C4),"'"&C4&"'",C4&"")& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A5),"'"&A5&"'",A5&"")&","&IF(ISTEXT(B5),"'"&B5&"'",B5&"")&","&IF(ISTEXT(C5),"'"&C5&"'",C5&"")& " FROM DUAL"
Yours nerdily
Suhada
Hi Suhada
Like Rod, I'm a fellow nerd and am always on the lookout for cool ways to expand and work on data inside Discoverer.
With your permission, I'd like to take this idea and make a posting on my blog (http://learndiscoverer.blogspot.com/). I'll give you credit for the idea but thought it might be nice if I could show it working with screenshots of Excel and inside both Discoverer Admin and Plus.
If you don't object, please send me ([email protected]) the Excel spreadhsheet that you used for your test and I'll see if I can't get something up within the next week or so.
Best wishes
Michael
Similar Messages
-
Creating a folder for a document library in SharePoint online
Hello I am looking for a good place to get started on creating a folder for a document library using a powershell script. Thanks in advance for any help.
Here is a guide to creating folders and items in a document library for SharePoint Server/Foundation: Creating SharePoint Folders
and Items with PowerShell. You will need to tailor it to your needs as it's a demo for creating 50,000 items.
That's step 1 and contains the bulk of what you would need to do. Here's an example of connecting to a library in SharePoint Online using CSOM: Office
365 - PowerShell Script to Upload Files to a Document Library using CSOM. You won't be uploading files, but the parts where you connect and get a list are what you're interested in.
Now you'll combine bits from both of these scripts:
1. Connect to SPO
2. Get your list (looks like you need to first get the site collection and then the site)
3. Create a folder
I figure it would look something like this (note I haven't tested this at all):
#Specify tenant admin and site URL
$User = "[email protected]"
$SiteURL = "https://tenant.sharepoint.com/sites/site"
$DocLibName = "DocLib"$FolderTitle = "Example Folder"
#Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
$Password = Read-Host -Prompt "Please enter your password" -AsSecureString
#Bind to site collection
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
$Context.Credentials = $Creds
#Retrieve list
$List = $Context.Web.Lists.GetByTitle($DocLibName)
$folder = $list.AddItem("", [Microsoft.SharePoint.SPFileSystemObjectType]::Folder)
$folder["Title"] = $FolderTitle
$folder.Update();
Jason Warren
@jaspnwarren
jasonwarren.ca
habaneroconsulting.com/Insights -
HOW TO CREATE SEVERAL folder for the generation and READING FILE
HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
please give an example to create 3 folders or directories ...
I appreciate your attention ...
Reynel Martinez SalazarI hope this link help you.
[http://www.adp-gmbh.ch/ora/sql/create_directory.html]
create or replace directory exp_dir as '/tmp';
grant read, write on directory exp_dir to eygle;
SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
Directory created.
SQL> declare
2 fhandle utl_file.file_type;
3 begin
4 fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
5 utl_file.put_line(fhandle , 'eygle test write one');
6 utl_file.put_line(fhandle , 'eygle test write two');
7 utl_file.fclose(fhandle);
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> !
[oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
eygle test write one
eygle test write two
[oracle@jumper 9.2.0]$
SQL> declare
2 fhandle utl_file.file_type;
3 fp_buffer varchar2(4000);
4 begin
5 fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
6
7 utl_file.get_line (fhandle , fp_buffer );
8 dbms_output.put_line(fp_buffer );
9 utl_file.get_line (fhandle , fp_buffer );
10 dbms_output.put_line(fp_buffer );
11 utl_file.fclose(fhandle);
12 end;
13 /
eygle test write one
eygle test write two
PL/SQL procedure successfully completed.
SQL> select * from dba_directories;
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS UTL_FILE_DIR /opt/oracle/utl_file
SYS BDUMP_DIR /opt/oracle/admin/conner/bdump
SYS EXP_DIR /opt/oracle/utl_file
SQL> drop directory exp_dir;
Directory dropped
SQL> select * from dba_directories;
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS UTL_FILE_DIR /opt/oracle/utl_file
SYS BDUMP_DIR /opt/oracle/admin/conner/bdumpRegards salim.
Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM -
Creating a folder for wallpaper on the phone?
Hey guys,
As per the topic really, how do I create a folder on the phone for my wallpaper? I can't see an option in explorer to add a new folder
ThanksYou're welcome.
You won't lose anything since all photos transferred from your computer to your iPhone should remain on your computer.
Place all the existing photos that have already been transferred to your iPhone in a named folder or place these photos in multiple named folders as needed. Place the folder of the photos or multiple folders of the photos that you want transferred to your iPhone in the parent folder as already provided and select this parent folder under the Photos tab for your iPhone sync preferences with iTunes. All named folders of photos within this parent folder will be transferred to your iPhone as separate named albums.
To add additional photos later, create a folder for the new photos and place the new folder of photos in the parent folder followed by a sync. To remove a photo from your iPhone, remove the photo from the named folder within the parent folder followed by a sync. To remove an entire album or folder of photos from your iPhone, move the named folder of photos outside of the parent folder followed by a sync. -
iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad? If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account. I've seen reference to the "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app. I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for. I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air. Any help would be greatly appreciated.
If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.
-
How to create a folder for a specific e-mail account?
How to create a folder for a specific e-mail account?
I'm using a POP e-mail account and I would like to create folders / sub-folders... how can I do this?You can right click on your Desktop and select New Folder. In Finder File > New Folder should work too, not in front of my Mac.
Welcome to back by the way. You might find these websites helpful.
Switch 101
Mac 101 -
How to create a folder for desktop files
Iam new to Mac can someone help me to create a folder for my desktop word files?
You can right click on your Desktop and select New Folder. In Finder File > New Folder should work too, not in front of my Mac.
Welcome to back by the way. You might find these websites helpful.
Switch 101
Mac 101 -
Is there a way I can create a folder for storage and put on desktop?
Is there a way I can create a folder for storage and put on desktop?
What you can do is move them into a sub folder where they are all grouped into one icon. Gets them off your screen, sort of.
-
Aperture 3.1.2 When exporting files to Finder is creating a folder for each file, that means export 200 files is creating 200 folders for each files. Does anyone knows how to fix this. Thanks
No. This is NOT true. I've been battling with this for a couple hours.
I choose Export>Versions
choose
Subfolder Format: Project Name
no custom subfolder
Name Format: Current Version Name.
Aperture creates project folders for each image and names them Projects1, Projects2, Projects3 etc.
To be sure, I have no project named Projects
x
This particular Aperture library has 16 projects. you can see in the screen grab it's created more than 30 folders
If I uncheck the Subfolder, that is say NONE, I just get images and images and images, not in their project folders (of course, because I've said NONE, so why would it put them in project folders?)
I just want to export the entire library and have the versions placed in folders named by the projects from which they came.... ez enough, no? -
Exchange 2013 - powershell - create search folder for items larger than 24mb
Hi all,
is it possible to use PowerShell and create search folder in spesific mailbox that contains items larger than 25mb?
Thanks!
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2workOk this should be possible.
I just tested a basic idea of what you want to do on Exchange 2010 SP3. IF you need me to test on 2013 let me know.
Add the account you want to run the powershell search as to the "Discovery Management" role in AS or ECP.
This gives you access to the "search-mailbox" command. Using this you should be able to build a search that moves mail to a different folder.
http://technet.microsoft.com/en-gb/library/dd298173(v=exchg.150).aspx
Thanks,
Edit: something like this would help but the target mailbox would be there own I guess
Search-Mailbox -SearchQuery “Size:>25MB” -TargetMailbox SomeMailbox -TargetFolder Export -LogOnly -LogLevel Full
Ok so I have found a issue where the command does not allow the source mailbox to be the same as a target mailbox. I dont know if this will help you then unless you go through a long process of moving the mail out then back but thats very long.
You could create a rule for this but it would have to be run manually with specific settings so I guess that might not work as user training can be difficult.
You could write a VBA macro for this and then apply it to all you machines.
Or there is a 3rd party tool that could help you called
Auto-Mate
Sorry I could not be more helpful.
Good luck -
Exchange 2010 Create new folder for select users off the root of the mailbox
I need to create a new folder for a select set of users. This folder needs to be off the root of their mailbox. I considered using a custom managed folder but we do not have the enterprise CAL’s to support this option. I only have
about 15 users so I could do this one by one if needed. I am not a powershell user but have been using the Exchange Management Shell and would like to us this app to create the folders but I’m not finding the right syntax for the new-mailboxfolder cmdlet.
What is the correct method for using the EMS to create a new folder in a mailbox.I was checking back thru my notes and seem to remember running this cmdlet:
[PS] C:\Users\administrator.STOUSE\Desktop>get-mailboxPermission | FL
cmdlet Get-MailboxPermission at command pipeline position 1
Supply values for the following parameters:
Identity: administrator
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\administrator
Identity : STOUSE.com/Users/Administrator
IsInherited : False
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : False
InheritanceType : All
User : STOUSE\StouseSA
Identity : STOUSE.com/Users/Administrator
IsInherited : False
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : True
InheritanceType : All
User : STOUSE\Domain Admins
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : True
InheritanceType : All
User : STOUSE\Enterprise Admins
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : True
InheritanceType : All
User : STOUSE\Organization Management
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : True
InheritanceType : All
User : STOUSE\administrator
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Servers
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Domain Servers
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\Organization Management
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\Public Folder Management
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess}
Deny : False
InheritanceType : All
User : NT AUTHORITY\SYSTEM
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : NT AUTHORITY\NETWORK SERVICE
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Servers
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Domain Servers
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {ReadPermission}
Deny : False
InheritanceType : All
User : STOUSE\Delegated Setup
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\Organization Management
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Trusted Subsystem
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\Exchange Services
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\administrator
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\Enterprise Admins
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
RunspaceId : d01ba29d-0e43-45eb-a245-91d19f698bf8
AccessRights : {FullAccess, DeleteItem, ReadPermission, ChangePermission, ChangeOwner}
Deny : False
InheritanceType : All
User : STOUSE\Domain Admins
Identity : STOUSE.com/Users/Administrator
IsInherited : True
IsValid : True
ObjectState : Unchanged
-
How to create custom folder for parameterized query
Hi Gurus,
I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
SELECT
lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
mgr_last_name, mgr_first_name, empid,
emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
CONNECT BY PRIOR emp_key = manager_key;
Thanks & Regards
VikramI agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
Russ -
How do i keep itunes from creating a folder for each movie that I add to my library?
When I add a movie to my library, iTunes 10 creates a SubFolder to the iTunes Movies folder, for each movie I add. The older iTunes just added the Files to the Movies folder, whithout creating subfolders for each movie.
Is there a setting so that i can make version 10 do this?
Thanks,
ChuckNo, there is no custom setting for this. I wouldn't advise it, but if you really want you could downgrade to the older folder layout. However all your other folders will be arranged in the old layout too which may no be what you want.
See this old post of mine for more details. (Read the last bit first.)
tt2 -
How do I add shadow to a title, such as, NEW YEAR'S NEEDS, while in Pages? I also don't know how to set a new folder for documents of the same type such as, "Sermons," or "Lessons." Any help will be greatly appreciated.
DonnieYes, I very well may be over thinking this, but I tried duplicating and moving it, but the text distorts slightly, which can be mostly remedied by rotating it on the x-axis, although the light is still off. And the shadows and reflections are not visible - this is pic1... In pic2, I used "rotate 3d object" with the green and red arrows, instead of just sliding it up the y-axis using the coordinates in the scene tab. Using the green and red arrows to move the text preserved the reflections but the shadows now aren't visible. It was also hard to align the text perfectly in scenario 2. Thanks for the help
-
Hi all,
I have a problem with Encore. I made project, there are three film in the project, two of them with subtitles. I rendered a folder for burn. But then I found mistakes in titles and corrected them in Encore. I deleted previous files for burning and rendered project (folder) again. I was suprised when I checked folder by Nero Show Time - there were "previous" mistakes in titles - NO correction which I've made!Let me guess: you're using CS3, right? Select all of the subtitles in
the track and then change the kerning of the text. Then undo. Your
changes should appear correctly after that. It's a known bug.
-Jeff
Maybe you are looking for
-
Details in original question above - maybe that's why response was that this question had not been asked before. I use very slow dial-up (DSL not available in my area) and I have a lot of computer problems as a result. So I'm not sure if this is beca
-
Image Processor Pro xml issue:
When I download the script Image Processor Pro.xml to my window 7 computer with CS6, the File Type reads "Safari Document" When I select my images in bridge and try to run IPP the only thing that happens is a blank white window opens and sometime P
-
Invalid Characters shown in UTF-8 character set
There is an XMLP report whose template output character set is ISO-8859-1. The character set ISO-8859-1 is required for this report as per Spanish Authorities. When the report is run, output gets generated in the output directory file of application
-
Are Apple Mad!!! They sell DVD writers but you can't burn DVD's on them
You buy yourself an imac they sell you a dvd burner you do an imovie presentation for your daughters christmas present about a trip to Harry Potter Studio Tour, to you find apple in its wisdom no longer produces iDVD software they even still have a D
-
Why don't I get any volume in iMovie?
Why don't I get any volume in iMovie, whether using the internal mic or hooking up fast track to it with a condenser mic I comes through but no volume?