Help fix my function to show status for all folders

I have created a function (tow of them for the same purpose) but they are not working. They compile but when i call them I get null result.
What I want to do is get folder status for all folders in the database. There is a table called folder with status code, and another table called validstatus with the statuscode description
So when you look at the older you just see the status code which is a number but then using the function you will get the desription of what that code means.
Here IS THE function. Maybe I am not doing it right when I call them.
CREATE OR REPLACE FUNCTION f_folderstatus (v_folderrsn IN NUMBER)
RETURN VARCHAR2
IS
v_return VARCHAR2 (128);
BEGIN
SELECT distinct vs.statusdesc
into v_return
FROM folder f, validstatus vs
WHERE f.statuscode = vs.statuscode
AND f.folderrsn = v_folderrsn;
RETURN v_return;
END;
When I call them using this statement I get null
select f.folderrsn, f_folderstatus3(vs.statusdesc)
from FOLDER F, validstatus vs
where f.statuscode = vs.statuscode
Edited by: user9508421 on Sep 11, 2008 8:11 AM

Now how do I create a function to give folder status for all foldertypes? I will then use this function in a package.
The Folder table has the following columns:
NAME Null? Type
FOLDERRSN NOT NULL NUMBER(10,0)
FOLDERTYPE NOT NULL VARCHAR2(4)
STATUSCODE NUMBER(10,0)
SUBCODE NUMBER(10,0)
FOLDERDESCRIPTION VARCHAR2(4000)
FOLDERCONDITION VARCHAR2(4000)
FOLDERNAME VARCHAR2(80)
The validstatus table has these columns:
NAME Null? Type
STATUSCODE NUMBER(10,0)
STATUSDESC VARCHAR2(80)

Similar Messages

  • ISE 1.2 - Posture Detail Assessment - enforcement audit mode report not show status for non-compliant

    ISE 1.2 - Posture Detail Assessment - enforcement audit mode report not show status for non-compliant.
    - For old version 1.1.4 it can be reported for non-compliant, How can I generate report for this? 
    Thanks
    Kosin Usuwanthim

    It used to be in there (id 226635 is the last one with it); should I clean it up a bit and put it back with a bit more of a disclaimer?

  • SearchCatalogAvailabilityMonitor showing unhealthy for all database on DAG member mailbox server

    Hi All
    Help me to resolve server (all database) search catalogue availability monitor.
    I am facing a search catalogue "Unknown" issue for newly created copy database and also on same mailbox server
    "SearchCatalogAvailabilityMonitor" showing unhealthy for all database.
    For the newly created copy database I tried to reseed / update search index catalogue by using below PowerShell command but it stopped with below mentioned error.
    [PS] C:\Windows\system32>Update-MailboxDatabaseCopy -Identity DBTest\MBX1 -CatalogOnly
     Confirm
    Are you sure you want to perform this action?
    Seeding database copy "DBTest\MBX1".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
    Confirm
    The mailbox database copy 'DBTest\MBX1' has failed to update from server . Do you want to clean up that update
    request now? Seeding cannot be requested for the same database copy until the failed request has been cleaned up by the
    server, which should automatically happen within 15 minutes.
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
    WARNING: Seeding of content index catalog for database 'DBTest' failed. Please verify that the Microsoft Search
    (Exchange) and the Host Controller service for Exchange services are running and try the operation again. Error: There
    was no endpoint listening at
    net.tcp://localhost:3863/Management/SeedingAgent-64310690-DEA4-47E1-9860-E8B2AC4E292A12/Single that could accept the
    message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more
    details..
    [PS] C:\Windows\system32>Get-MailboxDatabaseCopyStatus -Identity DBTest
    Name                                         
    Status          CopyQueue ReplayQueue LastInspectedLogTime   ContentIndex
                  Length    Length                            
    State
    DBTest\MBX2                              Mounted        
    0         0                                  Healthy
    DBTest\MBX1                              Healthy        
    0         0           2/8/2015 3:09:49 PM    Unknown
    DBTest\DRMBX1                            Healthy        
    0         0           2/8/2015 3:09:49 PM    Healthy
    Same time
    Result of get-serverhealth -server MBX1, also please note all database (Copy) search is in unhealthy condition and newly created copydatabase have no entry for "SearchCatalogAvailabilityMonitor".
    Name
    TargetResource
    HealthSetName
    AlertValue
    SearchCatalogAvailabilityMonitor
    DB01
    Search
    Unhealthy
    SearchCatalogAvailabilityMonitor
    DB06
    Search
    Unhealthy
    Reg
    Aditya

    Hi Deepak
    My both exchange servers on hyper V and there should not be resource problems.
    However I have already rebooted server. but it wont help.
    Mean while I get success to make search component healthy on my problematic server by below command but still content index folder is not coming automatically.
    [PS] C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Installer>.\installconfig.ps1 -action I –dataFolder  "C:\program files\Microsoft\Exchange Server\V15\bin\search\ceres\hostcontroller\data"
    Configuring Search Foundation for Exchange....
    Successfully configured Search Foundation for Exchange
    By running this command these are in health state now.
    Name
    TargetResource
    HealthSetName
    AlertValue
    SearchCatalogAvailabilityMonitor
    DB01
    Search
    healthy
    SearchCatalogAvailabilityMonitor
    DB06
    Search
    healthy
    Reg
    Aditya

  • Calculate result as average in the report not showing average for all

    Hello,
    I have a calculated key figure in the query where its result should show average. I have made a setting for this calculated key figure as:
    1. Calculations tab: Calculate result as "average" and calculate single value as "nothing defined"
    2. Aggreagation tab: exception aggregation: Total and reference char: []
    Now coming to report, BEX it showing correct average for all cells but when i run it in portal few values it is showing correct average but for few it is showing as blank. I exported this to excel then cell shows blank but cell has some values in the custom format and display values when i change the format to general from "format cells" option.
    Please help me in resolving the issue- why portal not showing value for all.
    Thanks,
    Vijaya

    SAP note solved the purpose.
    Thanks & Regards,
    Vijaya

  • How do I get itunes to show BPM for all songs?

    how do I get itunes to show BPM for all songs?

    McChris,
    The BPM field can be viewed, but it is almost always empty unless you have taken steps to populate it.
    You can use a 3rd party tool to perform BPM detection and add it to your iTunes database:
    http://www.beatunes.com/itunes-automatic-bpm-detection.html

  • Set required status for all subtypes first error

    Hello,
    While implementing OSS note 1744002 for Application Control Workflow i had the following error.
    In fact, i added a new attribute for BOR bus2201.
    When i wanted to change the status to implemented, i got the following error 'Set required status for all subtypes first'.
    Thanks,
    Meriem.

    Hi Meriem,
    Any new attribute should be added to the newly created custom SubType of the Object type BUS2201, but not Object BUS2201 itself.
    Revert the BOR BUS2201 to its original state and add the new attribute to your z<subtype>. You will no more get the error.
    Regards,
    Kiran

  • Hide side bar for all folders

    How am i supposed to do to hide all side bar for all folders once for all plz ??

    May be a corrupt .plist.
    Do a backup.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.finder.plist.  Move the .plist to your desktop.
    Re-launch Finder by restarting the computer and test. If it works okay, delete the plist from the desktop.
    If the same, return the .plist to where you got it  from, overwriting the newer one.
    Thanks to leonie for some information contained in this. 

  • How can I set a customized view in finder set as standard for ALL folders?

    As I have a large number of folders, I need a specific view in finder: symbol view, sort by program and name. I tried to use this settings as standard for ALL folders, but using the 'set as standard' button does only work for the folder I am in, but not for ALL folders. I even tried to use this settings on the hard disk level in finder, but what ever I tried, it never applies to all folders. The problem occurs on each of my devices and on Yosemite OS 10.10.1. as well as Mavericks 10.9.5. Any ideas on how I can make the 'standard' work on all folders?

    As Vinod says, unique key validator would be fine.
    However, In Gabriel's blog:
    Performing a unique key validation for an attribute that is declared to be unique in the database requires a round trip to the database. This is quite expensive and there is a fast and easy way to work around it.Is false on several fronts:
    1). it's not expensive - it's actually cheaper than the alternative
    2). Unique key validator can require many trips to the DB to validate - it must check all other rows in the EO to ensure there is no duplicate, and all of those rows must be fetched into the middle tier to do the validation: this is expensive.
    The "cheapest" way to do this: unique constraint in the DB
    John

  • Help!!  My iphone shows up for five seconds on Itunes and then disappears!!

    My iphone shows up in itunes for about 10 seconds. Before I can do anything, it disappears. I upgraded to the new software today. I already tried a soft reset by pressing the top key and the home key.
    I am so frustrated!!!!!!!!! Please Help!!!!

    bigpoodle2333,
    If you view this topic in threaded view, it shows that Damon was responding to a specific post in the thread. To enable this setting click on the "My Settings" button in the right hand column.
    As I understand it your iPhone shows up for a few seconds and then disappears in iTunes, is that correct?
    Has it ever synced successfully in the past?
    Is your iPhone connected directly to one of the USB ports on the motherboard of your computer? For example, not through a USB hub, with many Windows-based PCs the front USB ports are actually a USB Hub.
    Do you have any pictures in the camera roll, and if so, do you have any other hardware for taking pictures connected such as a webcam, memory card reader, or all-in-one printer that includes a memory card reader?
    Thank you,
    Nathan C.

  • I want all system status for all process orders in COR3

    Hi All,
    I have small requirement below:
    In COR3 tcode after we enter Process order as input, in that screen we can see in 3rd row, System Status and User Status,
    Where all these system status and User Status are stored,
    How we will get these msgs?
    Please help me on this....
    Sri

    Now  i have verified in productin box, i am getting more than one STATUS in JEST for OBJNR , with this value i am getting more than one values, but here i am facing again one more issue:
    in T02JT table i am getting some set of status(in table i am getting 10 values) but when i have verifed in COR3 tcode for that particuler order i am able to see only 8 system status...what about remain 2 ?
    in T02JT table i tried all options as i put X for status with out X, i tried all options..
    Please help me on this...
    One more this is i need User Status's also...? how we can will get these values also..
    Sri

  • Fixing PATH (and MANPATH) once and for all

    I think the list of directories in PATH should be:
    /Users/cb/bin:
    /opt/local/bin:
    /opt/local/sbin:
    /usr/local/bin:
    /usr/bin:
    /bin:
    /usr/local/sbin:
    /usr/sbin:
    /sbin:
    /usr/X11R6/bin:
    /usr/local/teTeX/bin/powerpc-apple-darwin-current
    Do you agree? Comments and suggestions welcome.
    Background:
    I am trying to sort thru the endless confusion and set up PATH (and MANPATH) right, once and for all. Every package I install seems to have its own idea of what these variables should be.
    I could set up a wrapper script for every installed command - but some subsystems, like Aquamacs and Python, let you create and use subshells. If the PATH in your subshell isn't the same as the one you use every day in bash, you could create bugs which are nearly impossible to track down.
    My solution is to create $HOME/.setShells.sh -- which sets a uniform set of paths (and which will probably rewrite man.conf in the bargain). But I want to make sure that I'm choosing the right baseline, which is what the list above is supposed to be.
    I'd appreciate your thoughts and/or assistance.

    Correct is what's correct for you. You have to consider and repect how the vanilla system sets up the environment, and realize that the software you install and configure to make the machine yours will be different for everybody.
    Your list looks reasonable. Of course we all know that PATH is searched in the order listed, so your ~/bin takes precedence over everything, and stuff you install in /opt and /usr/local takes precedence over the vanilla system.
    You don't need a wrapper for every command. Environment variables are inherited. You simply need to set this stuff up in your ~/.bashrc and everything you run from the shell will inherit the environment. I think PATH may be exported automatically, but it never hurts to do so explicitly. So set those variables with lines like ...
    export PATH=
    export MANPATH=
    It's important to understand the subtle difference between executing a shell command file and sourceing it.
    bash# ./file
    ... will run the file in a subshell, so any variables and environment changes will only be known to the subshell. Your interactive shell is the parent process of the subshell.
    bash# . ./file
    ... will run the file in the current shell rather than forking a subshell, so any variables, functions, aliases, or environment changes will remain in effect.
    When a shell starts, your ~/.bashrc is sourced, not executed.
    Message was edited by: b3and88
    because he can't spel

  • Checkboxes in BI Publisher not showing up for all reports

    Hi everyone,
    I followed the instructions (uploading fonts, checking the checkbox font property e.t.c) for displaying checkboxes (without the diamond shape) in my BI Publisher reports. It worked for 1 report and still does. Unfortunately the new reports I have uploaded still display the diamond shape. I find this very odd even though followed exactly the same process for all of my reports.
    Is there a way to make sure that checkboxes display properly for all reports? Could there be a mistake I have made and that I am missing out on. Any thoughts will be appreciated.

    Have you set the properties as per
    http://blogs.oracle.com/xmlpublisher/2007/05/wherere_my_checkboxes.html
    especially
    1. The font location, we need to tell the publisher engine where the Wingdings font is located:
    <font family="Wingdings" style="normal" weight="normal">
    <truetype path="c:\windows\fonts\wingding.ttf"/>
    </font>
    2. The glyphs to be used. Here we specify the font family name ie 'Wingdings' and the 253/254 glyphs
    <property name="rtf-checkbox-glyph">Wingdings;253;254</property>
    Do ensure that you use the same glyph character codes defined in ur config and RTF

  • Outlook status of "All folders are up to date" is a lie.

    I am using Microsoft Outlook 2010 in Cached Exchange Mode. I often find that the Outlook status bar reports both "All folders are up to date" and "Connected to Microsoft Exchange." With these two messages in the status bar, I expect the Exchange server
    to have the same content as the Outlook client. Frequently, I find that some of the last actions I performed in Outlook before shutdown had not been propagated to the server. These include operations I performed in the Inbox or updates I made to notes on Task
    items. This is a severe usability issue since I cannot find a way to ensure that the work I have done on the client has actually been saved. I am therefore unsure of when I can shutdown without worrying that data will not be available to me on another
    client.

    Hi,
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, it sounds like an issue of Outlook cache file. Please try the following steps to create a new cache file:
    Create a new .ost file.
    1.        
    Close Outlook.
    2.        
    Locate to:
    %userprofile%\AppData\Local\Microsoft\Outlook
    3.        
    Right-click the .ost file, and then click
    Rename. Rename the file by using a different file name extension, such as an .old file name extension instead of the .ost file name extension.
    4.        
    Start Outlook
    If it doesn’t work, please try the OWA(Outlook Web Access).
    If the issue persist, it might be related to host end. You can post a new thread in Exchange forums:
    http://social.technet.microsoft.com/Forums/en/category/exchangeserver/
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Sincerely
    Rex Zhang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Setting a default folder view for all folders in Windows 7

    How do you set up a default folder view of "List" for ALL the folders in Windows 7 including the optical drive?  
    Artoo

    I just installed windows 7. Are you seriously telling me that i now have all folders with mp3s in them AUTOMAGICALLY (THANKS FOR THE HANDY HELPING HAND THERE MICROSOFT!!!) set to some designers whim of what an mp3 folder "SHOULD" look like?
    Well i was going to write a big rant, and indeed did, but then i was doing some more research and it seems like i just made everyones day and solved the problem (partially). Or well THIS guy did:
    http://www.howtogeek.com/howto/16694/customize-the-five-windows-folder-templates/
    After you’ve clicked OK, visit some of the other folders in your file system.  You should see that most have taken on these new settings.
    What we’ve just done, in effect, is we have customized the General Items template.  This is one of five templates that Windows Explorer uses to display folder contents.  The five templates are called (in Windows 7):
    General Items
    Documents
    Pictures
    Music
    Videos
    When a folder is opened, Windows Explorer examines the contents to see if it can automatically determine which folder template to use to display the folder contents.  If it is not obvious that the folder contents falls into any of the last four templates,
    then Windows Explorer chooses the General Items template.  That’s why most of the folders in your file system are shown using the General Items
    template.
    Changing the Other Four Templates
    If you want to adjust the other four templates, the process is very similar to what we’ve just done.  If you wanted to change the “Music” template, for example, the steps would be as follows:
    Select a folder that contains music items
    Apply the existing Music template to the folder (even if it doesn’t look like you want it to)
    Customize the folder to your personal preferences
    Apply the new template to all “Music” folders
    A fifth step would be:  When you open a folder that contains music items but is not automatically displayed using the Music template, you manually select the Music template for that folder.
    Anyways, sorry that explanation doesnt do it justice. I have spent waaay too much time trying to figure this out already. Also that link doesnt say how to 1) copy templates (are they file or registry based?, didnt do research) 2) if you can distable templates
    or the automatic re-templating of folders.
    THAT is what i want to know! as it is much more maintance then its actually worth...
    but once i had set 5 default types to, the exact same thing... it now doesnt matter if it automagically switches it. SUCK IT MS AUTOTUNE!!!
    Its bloody hard to frame this question too. What can you say about this? "folder changes to mp3" "customize folder types windows 7" "windows 7 folder changes to mp3" "dont automatically change folders to mp3" "how
    to change mp3 details column for good" "automatically change column order win 7 mp3"
    The search that actually solved it:
    "do not apply default template to mp3 windows 7"
    good luck, this worked for me!
    EDIT: also i just noticed that neonr already answered this above. i just didnt read it carefully enough. anyways i guess i will leave this and mark his as answer.

  • Outlook Reading Pane -- Disable for All Folders

    I am really hoping the answer to this is not "you have to do it for each folder" (because I have hundreds of them) -- how do I disable the reading pane for ALL Outlook folders with a single click?

    Hello,
    In Outlook we can define view templates to to easily apply changes to multiple folders at once. Outlook 2010 and Outlook 2013 also have a separate feature to copy the current view of a folder to other folders.
    For more information, please refer:
    http://www.msoutlook.info/question/51
    Or, we can just use the /nopreview command to open your Outook with the Reading Pane off. To do this, please refer:
    http://office.microsoft.com/en-in/outlook-help/command-line-switches-for-outlook-2010-HP010354956.aspx
    Hope this helps.
    Best Regards,
    Steve Fan
    TechNet Community Support

Maybe you are looking for