Portlet to display all users that have manager defined as currently displayed user profile

I need to create a portlet such that when a user finds a user's profile they see all of the users defined with manager set to the value of the profile user's employeeNumber.
Example:
(Think a directory of employees)
John searches and finds user named Jack. He sees Jack's name, phone number, address, etc in the General Information section. Then he also sees a section (Portlet) that lists all of Jack's direct reports. John clicks on one of Jack's direct reports (Sam), to find this person's phone number.
The Direct Reports portlet would be a search portlet that finds all of the users that have a mangerID property set to the value of Jack's employeeNumber property and displays them sorted by LastName.
I need some direction on where to start for this.
It seems like I need to use the Plumtree Server API in order to search for all of the user objects and sort them on a particular property, .e.g IPTObjectManager.Query Method (Int32, Int32, Int32, Int32, Int32, Object[][])
A crawler seems out because, I guess that would require creating a folder for every user in the system? If I create a single folder I would need a binary tree structure to the folder. (Has anybody done this?)
I am concerned about the performance related to performing this search each time a user examines a user's profile.
Can somebody direct me to an example of a search "Portlet"? All of the examples I see are of searching external information like Google, or use PRC (do not see how that would be implemented in a portlet), or use EDK (external and does not seem to be able to do this).

You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.

Similar Messages

  • Bpel deployment fails for all processes that have revision other than 1.0.

    Using: Release *10.1.3.3.1*
    Hello All,
    Bpel deployment fails for all processes that have revision other than *1.0*.
    We have been attempting to deploy several BPEL projects via ANT script to a target environment and are encountering failures to deploy for every project which isn’t a (revision 1.0). We are getting the following error whenever we try to deploy a process with a revision other than 1.0:
    D:\TJ_AutoDeploy\BPEL_AutoDeploy_BETA\build.xml:65: BPEL archive doesnt exist in directory "{0}"
         at com.collaxa.cube.ant.taskdefs.DeployRemote.getJarFile(DeployRemote.java:254)
         at com.collaxa.cube.ant.taskdefs.DeployRemote.deployProcess(DeployRemote.java:409)
         at com.collaxa.cube.ant.taskdefs.DeployRemote.execute(DeployRemote.java:211)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.apache.tools.ant.Main.runBuild(Main.java:668)
         at org.apache.tools.ant.Main.startAnt(Main.java:187)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    The structure of our automated deployment script is as follows:
    First, a batch script calls (Jdeveloper_BPEL_Prompt.bat) in order to set all necessary environment variables i.e. ORACLE_HOME, BPEL_HOME, ANT_HOME, etc for ant.
    Next, the script lists every .jar file within the directory to an .ini file called BPEL_List.ini. Furthermore, BPEL_DIR, ADMIN_USER and ADMIN_PSWD variables are set and initialized respectively to:
    -     “.” – point to directory where script is running from because all the BPEL processes are located here
    -     “oc4jadmin”
    -     “*********” (whatever the password for out environment is)
    We’ve developed a method to have the script prompt the user to select the target environment to deploy to. Once the user selects the appropriate environment, the script goes through the BPEL_List.ini files and a loop tells it that for every BPEL process listed:
    DO ant
    -Dprocess.name=%%b
    -Drev= !Rev!
    -Dpath=%BPEL_DIR%
    -Ddomain=default
    -Dadmin.user=%ADMIN_USER%
    -Dadmin.password=%ADMIN_PWD%
    -Dhttp.hostname=%HOST%
    -Dhttp.port=%PORT%
    -Dverbose=true
    (What’s happening is that the variables in the batch file are being passed on to the ANT script where *%%b* is the process name, !rev! is revision #, and so on…)
    The loop goes through each line in the BPEL_List.ini and tokenizes the BPEL process into 3 parts *(%%a, %%b, and %%c)* but we only extract 2 parts: *%%b* (process name) and *%%c* which becomes !Rev! (revision number).
    Example:
    Sample BPEL process:
    bpel_ThisIsProcess1_1.0.jar
    bpel_ThisIsProcess2_SOAv2.19.0.001B.jar
    After tokenizing:
    %%a     %%b     %%c
    bpel     ThisIsProcess1     1.0.jar
    bpel     ThisIsProcess2     SOAv2.19.0.001B.jar
    *!Rev!* and not *%%c* because *%%c* will return whatever the revision number is + the “.jar” file extension as illustrated above. So to circumvent this, we parse *%%c* so that the last 4 characters are stripped. Such is done like this:
    set RevN=%%c
    set RevN=!RevN:~0,-4!
    Hence, the usage of !Rev!.
    Below is a screenshot post of the ANT build.xml that goes with our script:
    <!--<?xml version="1.0"?>-->
    <!--BUILD.XML-->
    <project name="bpel.deploy" default="deployProcess" basedir=".">
         <!--
         This ant build file was generated by JDev to deploy the BPEL process.
         DONOT EDIT THIS JDEV GENERATED FILE. Any customization should be done
         in default target in user created pre-build.xml or post-build.xml
         -->
         <property name="process.dir" value="${basedir}" />
              <!-- Set BPEL process name -->
              <!--
              <xmlproperty file="${process.dir}/bpel/bpel.xml"/>
              <property name="process.name" value="${BPELSuitcase.BPELProcess(id)}"/>
              <property name="rev" value="${BPELSuitcase(rev)}"/>
              -->
         <property environment="env"/>
         <!-- Set bpel.home from developer prompt's environment variable BPEL_HOME -->
              <condition property="bpel.home" value="${env.BPEL_HOME}">
                   <available file="${env.BPEL_HOME}/utilities/ant-orabpel.xml" />
              </condition>
         <!-- show that both bpel and oracle.home are located (TESTING purposes ONLY) -->
         <!-- <echo>HERE:${env.BPEL_HOME} ${env.ORACLE_HOME}</echo> -->
         <!-- END TESTING -->
         <!--If bpel.home is not yet using env.BPEL_HOME, set it for JDev -->
         <property name="oracle.home" value="${env.ORACLE_HOME}" />
         <property name="bpel.home" value="${oracle.home}/bpel" />
         <!--First override from build.properties in process.dir, if available-->
         <property file="${process.dir}/build.properties"/>
         <!--import custom ant tasks for the BPEL PM-->
         <import file="${bpel.home}/utilities/ant-orabpel.xml" />
         <!--Use deployment related default properties-->
         <property file="${bpel.home}/utilities/ant-orabpel.properties" />
         <!-- *************************************************************************************** -->
         <target name="deployProcess">
              <tstamp>
                   <format property="timestamp" pattern="MM-dd-yyyy HH:mm:ss" />
              </tstamp>
              <!-- WRITE TO LOG FILE #tjas -->
              <record name="build_verbose.log" loglevel="verbose" append="true" />
              <record name="build_debug.log" loglevel="debug" append="true" />
              <echo></echo>
              <echo>####################################################################</echo>
              <echo>BPEL_AutoDeploy initiated @ ${timestamp}</echo>
              <echo>--------------------------------------------------------------------</echo>
              <echo>Deploying ${process.name} on ${http.hostname} port ${http.port} </echo>
              <echo>--------------------------------------------------------------------</echo>
              <deployProcess
                   user="${admin.user}"
                   password="${admin.password}"
                   domain="${domain}"
                   process="${process.name}"
                   rev="${rev}"
                   dir="${process.dir}/${path}"
                   hostname="${http.hostname}"
                   httpport="${http.port}"
                   verbose="${verbose}" />
              <sleep seconds="30" />
              <!--<echo message="${process.name} deployment logged to ${build_verbose.log}"/>
              <echo message="${process.name} deployment logged to ${build.log}"/> -->
         </target>
         <!-- *************************************************************************************** -->
    </project>
    SUMMARY OF ISSUE AT HAND:
    ~ Every bpel process w/ 1.0 revision deploys with no problems
    ~ At first I would get an invalid character error most likely due to the “!” preceding “Rev”, but then I decided to set rev=”false” in the build.xml file. That didn’t work quite well. In another attempt, I decided to leave the –Drev= attribute within the batch script blank. That still led to 1.0s going through. My next thought was deploying something other than a 1.0, such as 1.2 or 2.0 and that’s when I realized that if it wasn’t a 1.0, it refused to go through.
    QUESTIONS:
    1.     IS THERE A WAY TO HAVE ANT LOOK INTO THE BPEL PROCESS AND PULL THE REVISION ID?
    2.     WHAT ARE WE DOING WRONG? ARE WE MISSING ANYTHING?
    3.     DID WE GO TOO FAR? MEANING, IS THERE A MUCH EASIER WAY WE OVERLOOKED/FORGOT/OR DON’T KNOW ABOUT THAT EXISTS?
    Edited by: 793292 on Jul 28, 2011 12:38 PM

    Only thing i can think of is instead of using a MAC ACL , u cud jus use the default class
    Policy Map Test
    class class-default
    police 56000 8000 exceed-action drop
    Class Map match-any class-default (id 0)
    Match any
    You would be saving a MAC-ACL ;-).

  • Unable to view all documents that have no checked in version due to exceeding the library threshold limit

     due to exceeding the library threshold limit , unable to view all documents that have no checked in version

    Hi niles, Here is a page that details how to retrieve all the files and take ownership of them via powershell to check them in:
    http://www.demantprasad.com/2013/05/manage-files-which-have-no-checked-in.html
    Mathieu Desmarais http://www.matdesmarais.com/

  • How to find all photos that have NO faces, as opposed to UNNAMED faces?

    I find that iPhoto often misses faces entirely, especially if the face is wearing sunglasses or a hat or both.  Sometimes it is rather inexplicable that it has missed a face, as the face seems obvious.
    If you use the smart album method to find all "unnamed" faces, the photos have at least one unnamed face identified.  You can then add any missed faces to those photos.
    But what about photos in which iPhoto has failed to identify the existence of even one face?  Or for that matter, if I want to see only pictures of landscapes or objects that have no people?  Does anyone have a method for finding all photos that have no faces in them at all?
    For me, the idea is to find all unidentified faces and add them.  But as I pointed out above, there may be other uses for this.
    Any ideas, anyone?
    Thanks

    Awesome !!! Thank you very much. I did not realize you could use JavaScript to code against iTunes ...
    I don't know if you have written any of these yourself, but do you know how to maybe create a smart playlist with this information via script? If not, no big deal. At least I know have something which I can use, I will just have to run it every so often.
    Thanks again for pointing me to that site!

  • Anyone know if there's a place on macbooks that store all documents that have been printed?

    anyone know if there's a place on macbooks that store all documents that have been printed?

    http://osxdaily.com/2011/01/20/show-print-history-mac/
    Hope this helps.

  • Win7 and Reader X - default settings for ALL users/profiles

    I have a custom browser/app that opens PDF's within the app which can sometimes cause issues. I found that if I set Reader X to not open in the browser (Edit>Preferences>Internet - uncheck "Display PDF in Browser") that this does resolve most issues. My problem...when changed this only affects the current user/profile that's logged in. Potentially there can be dozens of users on these laptops. The other setting is when opening a PDF, I get the warning about Protected Mode not being able to be used due to the current configuration. I can select "Always open with Protected Mode disabled" and I no longer get the message; but again, current user/profile only.
    Is there a way to set these settings for ALL users/profiles? Running Win7 (32bit) with Reader X.

    I do not know why you experience this; what exactly happens when a non-admin users attempts to highlight something?
    You are talking about highlighting in the same document?

  • The User portlet and the Portal User Profile portlet

    Im trying to create a sub administrator home page on version
    309, however the 'create user' portlet has been split into
    a 'create user' and a 'update user profile' portlet (as seen on
    the new default portal30 homepage).
    However the only portlet that seems to be available in the
    portlet list is 'update user profile' portlet.
    So how do I add the create user portlet to my homepage?

    I found the wwsec_api and wwsso_api_user_admin packages. I now know I can build my own user profile screen and use these APIs to add, update, and remove users.
    However, do I need to use the wwsec_person$ table, or can I create my own? Or can I add additional fields to the wwsec_person$ table? I have 7 additional pieces of information that need to be captured. I could just use some of the database fields in the table that we don't currently have use for, but then the name of the field will not accurately represent the contents of the data (i.e. store our "Organization" data in the "Department" field, our "DSN Phone Number" in the "Work Phone Number" field, etc.) and it would make for difficult maintenance.
    Can anyone offer suggestions as to how they implemented a customized User Profile, easily?

  • How do I make web shortcuts into start screen tiles that can be pushed to all users profile on a computer in Windows 8.1 enterprise?

    We are trying to roll out Windows 8.1 Enterpise in our school system (K-12).
    The focus of this question is how do we take an internet web based shortcut and make it into a screen tile (on the start screen) which will appear for any user's start screen that logs on to the computer?
    The details:
    We came upon a great paper that's entitled "Customize Windows 8.1 Start Screens by Using Group Policy".
    By applying this paper we were able to accomplish our first goal: Lock down the start screen so no user could change it. We accomplished this by using the Start Screen Layout policy setting laid out in the paper.
    Our second goal: to customize the start screen is only half way met. We can set up the start screen the way we want and then export the .xml file. We are able to "reimport" the .xml file when the new user logs in. The installed programs
    will appear on the Start Screen but not the internet based web shortcuts that were on the inital setup start screen.
    (FYI - tried creating these tiles by running the start screen internet explorer app to the intended address and pinning them to the start screen. At this time trying to figure if there is a place to put desktop internet short cuts into a directory to make
    them appear on the Start Screen).
    We can see that the directory: C:\ProgramData\Microsoft\Windows\Start Menu\Programs is a place for program files to appear on the start screen. Is there a location web based shortcuts can be placed to cause them to automatically appear on the start
    screen for every user as well? If not how do we accomplish getting these into tiles for every user logging in?
    Sorry for the lengthy explanation. Hopefully it gets our question answered and helps others out there in the same boat!

    Karen-
    Results: Did not work. The web based shortcuts did not appear.
    Below is the steps taken with your tips incorporated. (Again it's lengthy sorry about that, but anyone can recreate what was done here. Maybe someone can see something left out by doing/reviewing it).
    Here is what was done:
    1. Installed a fresh install of Windows 8.1 enterprise on a pc. No updates were ran.
    2. During setup created the admin account.
    3. Logged into the account a simple start screen was arranged and setup by:
    Starting desktop Internet Explorer. Going to Technet's website. Clicked tools and then selecting "Add site to Apps" from the drop down menu. Went to Apps screen, right clicked and pinned it to start screen. Repeated this procedure with an
    educational web based site.
    Right clicked a few provisioned apps and unpinned them from the start screen.
    Made a few groups and labeled them. Web based shortcuts were arranged with one provisioned app in that particular group.
    4. Opened a Powershell, right clicked it and ran as administrator. Typed the following:
    export-startlayout -path C:\Users\Public\Master.xml -as xml
    (Master is the name chosen for this test .xml file and was put in a location all users would have privelages to access it).
    5. Opened the command prompt and right clicked and "ran as administrator", typed in gpedit.
    6. In the Local Group Policy under User Configuration, under Start Menu and Taskbar I choose the Start Screen Layout.
    7. Enabled the policy and typed in: C:\Users\Public\Master.xml for the Start Layout File.
    8. Opened computer management, under Local Users and Groups I chose Users, right clicked in the middle screen and created a new user called Alpha.
    9. Logged out of the inital account and logged into newly created Alpha account.
    10. When the Alpha account logged in the start screen came up with everything changed in the inital account but no web based shortcuts were found on the start screen or App view.

  • How to use EWS or Powershell to rename all folders that have a forward slash in them

    We have many users that have created folders in Outlook that have forward slashes in the name (i.e. / ). They did this in Outlook/Exchange 2003. We upgraded to Outlook 2010 and this is no longer aloud so there are issues with the folders when performing
    functions such as trying to share or using IMAP, etc.
    I'm looking for a way to specify a particular user's mailbox in a script and have it traverse every folder/subfolder and check if there is a forward slash in the name. If there is a forward slash I would like to rename the folder to something like the bar
    character (i.e |) or another character that is valid.
    I had most users go through Outlook manually and clean them up. However there are a handful of users that have hundreds if not thousands of subfolders that have the forward slash in them.
    I've done extensive research on this (references to my research below) and came close in putting a script together but I just can't figure it out. Anyone have an example for this? Even if I need to specify a folder within the Inbox and have the script only
    process subfolders from this location would be acceptable since most of them are subfolders of a particular folder.
    Thank you.
    http://social.technet.microsoft.com/Forums/exchange/en-US/b24d0558-ed6a-4854-9a86-e9815741b5d0/rename-folder-example-in-ews?forum=exchangesvrdevelopment
    http://exchange-powershell.com/database-management/bulk-public-folder-rename-and-cleanup-script/
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/

    First two articles are for public folders so it won't help here as you have mailbox folders...
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/ 
    This is good starting point, you might need to change the logics around it  to search / and replace with - or someting, this might be the code change needed from that article but would suggest you to test it first.
    foreach ($folder in $ffResponse.Folders)
    if ($folder.Displayname -like “*/*”)
    Write-Output “Found / in the $mailboxName and folder name is $folder.Displayname”
    $folder.Displayname.Replace("/","-")
    $folder.Update()
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Getting all fields that have been changed.

    hello there,
    how can i get the name of the fields that have been changed, their value pre-change and their values post-change on specific a block?
    The reason for this is, i have a new requirement for an existing form. The supervisor wants to see all fields and their respective values that
    a regular user changes so he can approve the change.
    thanks so much in advance.
    gleisson silva

    Write Databse trigger on base table
    CREATE OR REPLACE TRIGGER
    FOR EACH ROW
    :NEW AS NEW
    :OLD AS OLD
    ON UPDATE OF column1...
    BEGIN
    INSERT INTO DUMMY VALUES(:column_name,:new_value,:old_value);
    END;
    row-level trigger with update option.
    store Old values and new values in dummy table which is replicated to original table.

  • Possible solution for all you that have skipping songs, & scratchy sound

    Hi All,
    After upgrading to 7.02, I was extremely annoyed with the performance. But here's what I found and did. In a nutshell, you uninstall the new version and install a 6.05 version or earlier. I'll include some links to what I found and hopefully it'll help. Here's the first link and it describes what you need to do. Scroll down to the post by marlowe5 posted 10-08-2006, 8:06 A.M. and I also included the exact wording from the post below the link.
    http://www.oldapps.com/forum/archive/index.php/t-228.html
    This is the exact wording:
    Thanks for the advise in this post... after installing iTunes 7, and then 7.01, my computer was running really slow, iTunes was skiping and garbling and acting terribly... so I really needed to go back to 6.05.
    For all of you that need to do the same it's pretty easy:
    I downloaded the 6.05 install file from from oldapps, uninstalled 7.01 and then re-installed 6.05. When I ran iTunes it did give me the error message that the library file was created in a new version and couldn't open, but I then deleted the 'itunes library.itl' file (in My Music > iTunes folder) and then replaced it with the backup that was automatically created when I installed 7.01 (in My Music > iTunes > Previous iTunes Libraries). iTunes then started up fine with all my music and playlists. And all the skipping and CPU bogging is better now.
    Library file note:
    With the library file, when you update iTunes it also updates the library file, which won't work with older versions. So you need to replace this file or create a new one. I would recommend copying/backing up the new library file to a different location to be safe instead of just deleting it. You'll see above where to find the new library file and prior ones. When I made these changes I did two things to be safe, 1) I moved the new "iTunes library.itl" to a backup location instead of deleting it 2) I moved my most recent old library file from(My Music > iTunes > Previous iTunes Libraries) to (My Music > iTunes folder)and renamed it to "iTunes library.itl". It was previously "iTunes library 2006-1-18.itl." Before renaming it, iTunes didn't find the library so renaming it worked. Your file name will most likely have a different date so don't look for the exact file I mentioned. Plus it's probably a good idea to make a copy or back up this library file too.
    If you don't have any previous library files, you may need to create a new one. I don't have the info but I believe the link to the post should have that info.
    After reading through the post and other info, the only thing that it appears might be lost are playlists that have been created since the upgrade. I don't believe any music should be lost but that's why it's safer to backup the new library just in case. I did not lose any music.
    Also, here's a link to where I found old versions of iTunes:
    http://www.filehippo.com/download_itunes/?1249
    Hopefully this helps and good luck. I'm back to normal now.
    Dell Dimension 4550   Windows XP  
    Dell Dimension 4550   Windows XP  
    Dell Dimension 4550   Windows XP  

    Soccerteen,
    Make sure you try all the other remedies mentioned in other posts. If this didn't work for you then try below. I consider it a last ditch effort since it's going back to a previous version, which unfortunately works much better than 7.0x for me.
    Remove & backup your current library file to a different file/location to be safe. Once you do that, uninstall 7.02, and then install 6.05 or any 6 version. Once 6.0x is installed and you've opened it, you'll need to create a new library file. If you've removed the library file from (My Music > iTunes folder)it should load up with a blank slate. What you to do from this point is create a new library file. Read the oldapps link, the post from "Admin" dated 9-30-2006 5:30 PM should help. Most likely all of your music will be under one main file but you might have to add individual folders one at a time depending on how much music you have. Since I didn't have to go this route, I'm not sure if it's the best route but after reading multiple post, this was the most common suggestion. Worst case scenario, you can always reload 7.02 an reinsert the backup library file, which will put you back where you started.
    Hope that works for you and good luck!

  • Print all pages that have highlights

    My apologies if this is apparent. I've searched and searched. Running Acrobat X Pro . Have 1150 page pdf. Want to search for and highlight several different words and phrases -- then print ONLY the pages that have a highlighted word or phrase. Tried to figure out how to use bookmarks to do this -- or something. Seems it's a common need. Is it possible -- without scripting something (which I don't have time to learn how to do for this project). Thanks.

    Sara,
    Thanks very much. Worked great. A couple of comments for others interested in doing the same:
    1. The 'result' file prints with comments -- either on the same page or a separate page. I chose separate page and then 'printed' to a separate pdf only odd pages -- thereby eliminating the comment pages.
    2. I doubt many people are going to be working with a 1600 page document. I ran 3 or 4 test runs with different options so it took a while. If I need to do it in the future, I'll take a sample page set (and sample search words) and run through different iterations to determine what I want as a final product -- then run the process on the full file.
    This is not something that I will need often. If I did, I would spend more time tweaking it. As Sara noted, there's a bit of variation between IX (that the referenced article is about) and X Pro which I use. All-in-all, a clever work-around.
    Thanks again!

  • Find all records that have character alone in a string

    Oracle 10g Enterprise Edition
    Hi all,
    I must select from a varchar2 field, all the records that have a character (number or char) alone in the string.
    For example.
    ASDF BHGR H RR (yes, cause "H")
    ASDF BHGR H4 R (yes, cause "R")
    ASDF B H4 DDR (yes, cause "B")
    ASDF B H4 DDR (yes, cause "B")
    ASDF BC 1 DDR (yes, cause "1")
    ASDF BC / DDR (yes, cause "/")
    ASDF BHGR H4 RR (no)
    ASDF (no)
    I'm trying by SubStr, but I cannot generally solutions.
    Thank's for any suggestion.
    Ciao

    Ok, just a try :
    SQL> with tbl as
      2  (select 'ASDF BHGR H RR' str from dual union all
      3   select 'ASDF BHGR H4 R' str from dual union all
      4   select 'ASDF B H4 DDR' str from dual union all
      5   select 'ASDF BHGR H4 R1' str from dual union all
      6   select 'ASDF BHGR H4' str from dual union all
      7   select 'ASDF - H4' str from dual union all
      8   select 'a1 ASDF BHGR H4' str from dual union all
      9   select 'ASDF B H4 DDR' str from dual union all
    10   select 'ASDF BC 1 DDR' str from dual union all
    11   select 'ASDF BC / DDR' str from dual)
    12  select str,
    13         decode(regexp_instr(str,'^. | . | .$'),0,'no',decode(regexp_instr(str,'^- | - | -$'),0,'yes','no')) res
    14  from tbl;
    STR             RES
    ASDF BHGR H RR  yes
    ASDF BHGR H4 R  yes
    ASDF B H4 DDR   yes
    ASDF BHGR H4 R1 no
    ASDF BHGR H4    no
    ASDF - H4       no
    a1 ASDF BHGR H4 no
    ASDF B H4 DDR   yes
    ASDF BC 1 DDR   yes
    ASDF BC / DDR   yes
    10 rows selected.May is there is a simpler way.
    Nicolas.

  • How do I count all cells that have a date of today or before today?

    Hi,
    I am using the following rule to count all cells in a range that contain today's date:
    =COUNTIF(D2:H2,TODAY())
    What I would like to do is to extend this so that it counts all days that are either today or before today. I have tried a few methods, but can't get this to work.
    Could someone help me out?
    Thanks,
    Nick

    Hello Nick,
    =COUNTIF(D2:H2,"<="&TODAY()) will do the job.
    Jerry

  • Is there a way of pulling a report off CM showing all phones that have diverts on?

    Can someone help me with this question ? its for a customer of ours, we need to find a list of phones with diverts on, is there a way of showing this without going through them one by one ?

    Try if running this SQL query from the CLI helps you, it should list all DN's that have CFA enabled to VM or a DN:
    run sql select dnorpattern,cfadestination,cfavoicemailenabled from CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination != '' or cfavoicemailenabled ='t')

Maybe you are looking for

  • How to use form personalization to lunch concurrent program

    Hi, Now I am using the form personalization to lunch a concurrent program with global variables.But how to post the global variables to the program parameters. Thanks and best regards Fang Edited by: 895910 on Dec 25, 2011 7:54 PM

  • It it possible to call web service from SAP 4.6 c..If yes how

    Hi Friends, It it possible to call web service from SAP 4.6 c..If yes how Thanks in Advance. Murali Krishna K

  • Need help for nokia 6131

    how to start timer... which runs with the call

  • ORA-12560: TNS:protocol adapter error rman

    hello all, i am on xp, and 10.2 oracle version....i created a dummy database with name comp using dbca...used FRA and took a backup though rman....i have teh backup now in FRA.... I droped the database to do a test restore...but i cant even login to

  • Which EP version to go for?

    Hello, we are using EP 5.0 SP5 and have integrated CRM 4.0 and R/3 4.7. We want to change the portal platform, and implement a new version and not migrate(i.e a new implementation for portal). The question arises as to which is the best possible EP v