How to dynamically populate a manager name and level for any user who login

Hi All,
I need some help in doing this in my DB:
Table 1 is the the manager hierarchy {which basically shows the structure of every employee's org).
Table 2 is a list of all people manager ( all these usernames will also be in table 1). What i need to find is using the username from Table 2, the highest level that username exists in the manager hierarchy.
For ex:
Table 1: { What this shows is Sam is CEO and Jeff reports to him. So for Sam, he will exist on all 15 levels and Jeff will have Sam has his top level manager and then Jeff will repeat for all remaining levels till 15.
Manager Level 0  Level 1  Level 2 Level 3...Level15
Sam                       Sam     Sam     Sam         Sam
Sam                        Jeff     Jeff        Jeff          Jeff
Now in Table 2:
User Name   Manager Level/Name
Sam               Manager Level 0 Sam
Jeff                 Manager Level 1 Jeff
As you see, for each user name in Table i want to populate their high level from the manager hierarchy {their record in manager hierarchy).
Hope This helps to clear the confusion.
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hello,
this is the forum for the tool {forum:id=260}. Please mark this question as answered, so others know that they can ignore it.
Then post again in {forum:id=75}
Regards
Marcus

Similar Messages

  • How do I find the image name and media_link for an ubuntu image in the Gallery?

    I am trying to create VM using Python API.  
    I have a custom Linux image:
    image_name = 'cloudN-Azure-20150205-os-2015-02-05'
    media_link = 'https://portalvhds10ssz63zgvb9g.blob.core.windows.net/vhds/cloudN-Azure-20150205-os-2015-02-05.vhd'
    When I used this image to create VM, it failed.
    I would like to use the ubuntu 1204 image in the Gallery.
    How do I specify the image_name and media_link in my Python code?  Basically, where and how do I find the image name and media_link for an image in the Azure image Gallery?
    Thanks in advance...

    hi sir,
    Did you try to use "List OS Image"? we can get the property form the results:
    result = sms.list_os_images()
    for image in result:
    print('Name: ' + image.name)
    print('Label: ' + image.label)
    print('OS: ' + image.os)
    print('Category: ' + image.category)
    print('Description: ' + image.description)
    print('Location: ' + image.location)
    print('Affinity group: ' + image.affinity_group)
    print('Media link: ' + image.media_link)
    print('')
    Please try it. Any questions or it doesn't work, please let me know.
    Regards,
    Will
    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.

  • How can I deploy EFS using Group Policy and automatically encrypt computers for ALL users who login?

    How can I deploy EFS using Group Policy and Active Directory with a goal to automatically encrypt computers for ALL users who login? (NOT an option for me to use BitLocker)
    I was asked to deploy EFS to encrypt the user my documents folder and profile on all of the users laptops. The laptops are in common areas (board meeting rooms, etc) and security of files is a must.
    I successfully created a recovery certificate in AD. I created an OU and setup an EFS policy and users can now login and select to encrypt their own files. The issue is that management would like to have automaticy Encrypt ALL users my documents AUTOMATICALLY
    when a user login.
    Can this be done?
    Please help

    Hi,
    Any update?
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • How to dynamically define a file name and its path in a web application

    Hi, I want to create a simple web application that reads from an XML file and displays the data back to the user. The xml file is created independent of my application on the same machine that the Application Server runs. How can I define my xml file name and/or path to be independent of my code and not hard-coded in my application?

    By an external configurationfile? That can be a propertiesfile, a xml file, an ini file, a plain vanilla txt file, etcetera.

  • How can I set the file name and folder for output to PDF from another application?

    I am developing an application in Microsoft Access where the printed reports are to be saved in PDF format for archive purposes. I can send the output to Adobe X, but the default file name is the Access report name and the folder selected is the one last used.
    What I need to do is to create the file with a specific name (which changes for each run) and to a specific folder (which also changes for each run).
    The language I'm using is Visual Basic for Applications which is located in an Access form that controls the report production.
    Any suggestions, please?

    Got it - many thanks.

  • How to dynamicly create a field name AND access it

    All,
    I am trying to build a code block that will access what amounts to a table structure inside a table. I have 38 occurances if a set of 3 fields. (Source system had an internal array/occurs clause that was converted for our ODS into individual fields) I am returning a single row as a row type and have addressability to all fields. What I am trying to avoid is coding my logic block 38 times, 1 for each occurance.
    FOR X IN 1 .. 38 LOOP
    V_CAT_CD_X := 'CAT_'||X||'_CD';
    End Loop;
    The following is the display of the correctly built field:
    --> Loop Cat CD: CAT_1_CD Rec count:1 Loop counter:1
    --> Loop Cat CD: CAT_2_CD Rec count:1 Loop counter:2
    --> Loop Cat CD: CAT_3_CD Rec count:1 Loop counter:3
    --> Loop Cat CD: CAT_4_CD Rec count:1 Loop counter:4
    My problem is that my row cursor PP1 is addressable hardcoding PP1.CAT_1_CD or PP1.CAT_2_CD ect, however I am having problems using my created string to access the field.
    What do I need to do to gain accessability via this method?
    I do have the ability to select the column names from the system tables but even then, I am lacking addressability to my ROW type using the selected field name.
    Thanks
    Greg

    Not sure if this is what you are looking for:
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2  my_cur SYS_REFCURSOR;
      3  v_rec mytest%rowtype;
      4  cursor c1 is select column_name from all_tab_cols where table_name = 'MYTEST';
      5  v_sql_stmt VARCHAR2(1000) := NULL;
      6  BEGIN
      7  v_sql_stmt := 'SELECT ';
      8  FOR I IN c1 LOOP
      9  v_sql_stmt := v_sql_stmt||I.column_name||',';
    10  end loop;
    11  v_sql_stmt := RTRIM(v_sql_stmt,',');
    12  v_sql_stmt := v_sql_stmt||' FROM mytest';
    13  open my_cur for v_sql_stmt;
    14  LOOP
    15  FETCH my_cur INTO v_rec;
    16  EXIT WHEN my_cur%NOTFOUND;
    17  dbms_output.put_line(v_rec.a);
    18  END LOOP;
    19 close my_cur;
    20* end;
    SQL> /
    1
    2
    PL/SQL procedure successfully completed.
    SQL> Edited by: AP on Nov 17, 2010 5:29 AM

  • How to set up Windows with Reader and certificate for all users

    Good afternoon (GMT),
    we're dealing with a Win XP (SP3) system that is set up by an Administrator. One task is to set up the system in a way that all users (w/o admin rights) become able to read a certified-protected PDF. Currently we know a way to install the "public key" for this certificate only for one known user. But how to proceed when not all users are known? The users shall later on never be asked to confirm the certification installation/registration.
    If it helps, here is the software version:
    Acrobat 8.12 to encrypt the PDF via certification. In near future I will switch to Acrobat 9.x
    Reader 7.x and/or 8.x on customer PCs.
    Thank you for ideas and hints.
    BTW: Next time we want to provide a solution for Win7 systems, too.
    Carsten

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • How can I get the administrators name and password so I can download the latest os this is a refurbished iMac

    How can i find the administrator name and password for my  iMac .
    This was a refurbished product purchased online and i need this info to download new things form the apple store ?

    See #5
    Step by Step to fix your Mac

  • How to dynamically populate a listbox with the values in the database

    Hi,
    How do dynamically populate the list box with the values in the oracle database. I want to load the list box at run time.Plz anybody help me out to find a solution for this problem.
    Thanks in advance...
    Regards,
    Shiva.

    u can wite code like this..on jsp page
    <%
    ResultSet rs = stmt.executeQuery("select vender_name from vendors");
    %>
    <select name = "vendorlist">
    <%
    while(rs.next()){
    String vname = rs.getString(1);
    %>
    <option value="<%=vname%>"><%=vname%></option%>
    <%
    rs.close();
    %>

  • HT1386 How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    Yes, I do have multiple devices and it appeared to me that every time I tried to sync or log onto iTunes, the password was incorrect.  Consequently, I was and am constantly changing it.  Wouldn't it be nice if Apple would simply say that you only need one Apple ID and one password regardless of the number of Apple devices you intend to sync via iTunes. 
    Barring the above, how about a way to merge all of the Apple IDs and passwords into one.

  • How can I create a new name and itunes acct

    I want to give my old 2nd generation ipod nano to my son.  Can I create a new device name and itunes for the ipod?

    Yes.  I would suggest creating a separate user account for him on your PC to use to store his own separate iTunes library.  See Method 1 from this Apple support document for more information and assistance.
    How to use multiple iPods, iPads, or iPhones with one computer
    When he connects the iPod to this new iTunes library he'll need to Erase and Sync (or restore) the iPod allowing him to set it up as his own iPod and everything just as if you had just taken it out of the box.
    B-rock

  • Firefox had saved my login name and password for a site, when I changed the password, FF won't ask to save/update it so I have to enter it manually now. How do I get it to prompt me in FF7.01?

    Using FF7.01 on a HP Pavilion dv6775us laptop running Vista Home (updated continuously)
    The site owner changed the rules in order to improve password security so I was required to create a new password. When I did so I was not prompted by FF7.01 to save the new password.
    When I next logged into the site, FF remembered the user name but presented the old (invalid) password. I was forced to manually enter the new password, but again was not prompted to save it to FF.
    I then went into FF Security, viewed the saved passwords and deleted the entry for the site in question. I expected that when I logged into that site the next time I would be asked if I wanted to save the username and password. I wasn't.
    I then exited from FF and relaunched it and again logged into the site in question. I was not prompted to save the username or password.
    How do I force FF to ask for and then save the username and password?

    Thank you for your reply.
    My problem isn't removing my log-in name and password for a site.
    The problem is I already had the log-in name and password saved by FF, but I was required by the site to change the password. FF did not recognize that it had changed and refuses to prompt me to save the new password.
    After several attempts to force the prompt, I deleted the site from the Saved Password list, hoping that the next time I entered my log-in name and password on that site FF would ask if I wanted to save both. That did not happen even after exiting FF and relaunching it.
    So, right now FF will not save my log-in name and password for a site that it used track for me. Given the complexity of the new password, I really do not want to manually enter it every time I use the site.
    Regards.

  • TA38622 how do you delete a contact name and phone number from this?  i have deleted it from my regular contacts, but it remains in a text memory when i begin to type the beginning of a name

    How do I delete a contact name and phone number from my texting memory?  I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.

    You would have to restore as new.

  • How to set file name and destination folder without user interaction

    how can I set the file name and destination folder to generate a pdf file like "c:\myfolder\document.pdf" in this folder automatically.
    Is there a tag in .joboptions ?
    Goal: User click print button. In the background a pdf will be generated in e.g. "C:\myfolder\document.pdf".
    that`s it.
    I know that the query dialog for save as can be turned off. But the file name depends on the application.
    Thanks for your help.
    TK

    Hello,
    Please post this  in  PI forums
    Regards, Anil

  • How to get Manager name of a particular BP/User from territory management

    Hi Guys,
    I want to retrieve the Manager name of a particular BP/User from territory management. The manager might be in any territory hierarchy level above the user.
    Please guide.
    Regards,
    Shaili

    Hi Shailip,
    Basically Territory hierarchy is customized based on client's business, from your reply if i understood properly i think your territory has 3 levels and 
    First level : District
    Second level: Area
    Third level: Branch
    when an employee at third level is passed, you need employees assigned to area and district levelwhich are above Branch(in your case managers)
    Solution:  Example
    First level : District - territory length(2 char)
    Second level: Area - - territory length(4 char)
    Third level: Branch- territory length(4 char)
    1. Read the territory hierarchy(which is customized to meet clients requirement) using function module
        CRM_TERRMAN_TERRLEVEL_READ ehich gives territory levels with territory length and territory offset
    2. pass employee(business partner number) to FM  CRM_TERRMAN_TERR_EMP_DETERMINE  and get the branch path id.
    3. Based on territory length for above levels drill down to Area's path id and District's path id and pass those path id's to
    FM CRM_TERRMAN_EMPLOYEE_DETERMINE  to get managers.
    Hope this helps.
    Thanks,
    Priyanka

Maybe you are looking for

  • Suppress "Order By" clause in Answers Query

    Hello, Is it possible to Suppress "Order By" clause in Answers Query. I'm using a database view as data source. In the view definition, "order by" clause is already specified. Is it possible to get the same order in the OBIEE report?? I do not want t

  • FCE problem with Snow Leopard

    I upgraded when it came out and have been have trouble ever since. I did not do the clean install, which would more than likely fix the problem but I don't want to resort to that just yet because I've got a few programs which I don't have the install

  • Line items posted through the non leading ledger

    Hi Sap Experts, I have activated non leading ledger to which assigned fiscal year variant. I want to post line items through the non leading ledger. Can any body please me advise. Regards, Prabhakar

  • Howto escape spaces in pathes when using rsync via ssh?

    Hi, I'm using rsync to sync my Addressbook's data from my PB to the cube where my iPod is connected to and syncs to that data. I've also set up ssh to connect to the cube and vice versa. Problem is, the path to the address book data contains a white

  • Block with a SQL

    Hi Gurus, I ahve a table named x. In that I have a column called feed_id. I need to construct a block which has the resultset as the below query. select * from x where feed_id=(select max(feed_id) from x where pk=x.pk group by pk); Can I use the Data