Script to list the responsibility of the user by Department

Hello

I'm looking for a script that can list all employees and responsibilities, as well as his Ministry. I want to output something like this:

 

_Name_                                _Responsibility_                                                  _Application_               _Department_

Peter Ken                          Fixed Assets Manager                                            Assets                          Finance
I'm on 12.1.1

Dula

Please take the necessary haou table columns.

SELECT   paf.full_name,
         paaf.assignment_id,
         fr.responsibility_name,
         furg.start_date,
         fat.application_name,
         haou.*
    FROM fnd_user_resp_groups_direct furg,
         fnd_user fu,
         fnd_responsibility_tl fr,
         per_all_people_f paf,
         fnd_application_tl fat,
         hr_all_organization_units haou,
         per_all_assignments_f paaf
   WHERE furg.user_id = fu.user_id
     AND furg.responsibility_id = fr.responsibility_id
     AND fu.employee_id = paf.person_id(+)
     AND fr.application_id = fat.application_id
     AND fr.LANGUAGE = USERENV ('LANG')
     AND fu.user_name = '&user_name'
     AND paf.person_id = paaf.person_id
     AND haou.organization_id = paaf.organization_id
     AND trunc(sysdate) BETWEEN nvl(paf.effective_start_date,trunc(sysdate)) AND nvl(paf.effective_end_date,trunc(sysdate))
     AND trunc(sysdate) BETWEEN nvl(paaf.effective_start_date,trunc(sysdate)) AND nvl(paaf.effective_end_date,trunc(sysdate))
ORDER BY 3 DESC

HTH
See you soon,.
ND
Use the buttons "useful" or "correct" to award points to the answers.

Tags: Oracle Applications

Similar Questions

  • Need a script to alert the user to fill in another field

    Hello

    I have a drop-down list labeled certifications. In fact, I have 9 of them. called certifications1 and so on. Anyway I need something that detects if the user selects the Bill called pro forma menu item that has a small window reminding them to ensure that Receivers and e-mail name is entered. That's all I'm looking for. Thanks in advance!

    Hello

    According to your drop-down setting, there are two different ways to refer to the modified value.

    If you use only 'list items' scripts will be;

    If (xfa.event.newText == "proforma invoice") {}
    xfa.host.messageBox ("make sure that the name and email is entered");
    }

    If you use "Element to specify values" with "items in the list", the scripts will be;

    If (this.boundItem (xfa.event.newText) == '1') {}
    xfa.host.messageBox ("make sure that the name and email is entered");
    }

    both scripts will change event of falling down into javascript.

  • Script to list the number of PO in a specific range of accounting code

    Helloo

    I need a script to list all PO numbers within a specific range of accounting code.  The script is used for the assessment of the stock.

    Grateful if someone can help.

    Hello

    Please, if this answer is late; just ignore it

    The following SQL select statement assumes that you know the costs/inv. natural accounts of valuation and natural account segment is 2:

    Select po_num, authorization_status, closed_code

    of PO_DISTRIBUTIONS_INQ_V one

    where destination_type_code = no ('STOCK', 'FEES')

    and a.code_combination_id in

    (select b.code_combination_id in the GL_CODE_COMBINATIONS_V b where segment2 = all ('170702110', '720201000'))

    "170702110", "720201000" are natural sample accounts

    Thank you

  • Implementation script automatically to the user's preferences

    Hello fellow Scripting Guys!

    This question of the month - this - is it possible for Illustrator JS to go and enter the user name that is connected to a computer or even the computer ID?  At this time, I created a login system that people use when they turn first on illustrator who then go and load the correct scripts on a pallet for this user to use, but if I can have this happens automatically, I can create pallets pregenerated for each user and it have it catch once illustrator is started to save some of the initial load by user time (about 8 people).

    Right now my login scripts looks something like this;

    if (globalartistname == null)
        {
            globalartistname = prompt ("enter your artist initials");
            }//end if null
       
                    //alert ("You user name is --  " + globalartistname)
    switch (globalartistname)
                     {
                    
                     case "Name1":
                     case "Name1_Lowercase":
                    
                         var saveName = new File ("DESKTOP" + filename);
                        
                      var thisDoc = app.activeDocument;
                      if ( app.documents.length > 0 )
                      {
                  
                        saveOpts = new PDFSaveOptions();
                        saveOpts.compatibility = PDFCompatibility.ACROBAT6;
                        saveOpts.generateThumbnails = true;
                        saveOpts.preserveEditability = true;
                        thisDoc.saveAs( saveName, saveOpts );
                        }
                        
                        break;
                    
                     case "Name2":
                     case "Name2_Lowercase":
                    
                     //alert ("made it to CEL");
                    
                        saveFileToPDF();
                        break;
                
                
                      case ( "Name3_version1" || "Name3_Version2" || "Name3_Version3"):
                    
                         var saveName = new File ("DESKTOP" + filename);
                        
                      var thisDoc = app.activeDocument;
                      if ( app.documents.length > 0 )
                      {
                  
                        saveOpts = new PDFSaveOptions();
                        saveOpts.compatibility = PDFCompatibility.ACROBAT6;
                        saveOpts.generateThumbnails = true;
                        saveOpts.preserveEditability = true;
                        thisDoc.saveAs( saveName, saveOpts );
                        }
                        break;
                
                     case "Name4":
                     case "Name4_Lowercase":
                    
                     //alert ("made it to AJH");
                    
                         saveFileToPDF();
                        break;
                
                     case "Name5":
                     case "Name5_Lowercase":
                    
                         saveFileToPDF ()
                        break;
                
                     case "Name6":
                     case "Name6_Lowercase":
                    
                         saveFileToPDF ()
                        break;
                
                     case "Name7":
                     case "Name7_Lowercase":
                    
                         saveFileToPDF ()
                        break;
                
                     case "Name8":
                     case "Name8_Lowercase":
                    
                         saveFileToPDF ()
                        break;
                     }//end switch
                    
                   }//end if app open 
               }//end function savetoPDF
    
    

    The above is a code snippet in a much larger file, I since the installation of the scripts to not be case-sensitive, but if I can enter this information on the linen which would save loads of time and avoid mistakes in the future.  Names and places have changed for security reasons.

    Use $.getenv ("USERNAME") on Windows or $.getenv ("USER") on mac

    And $.getenv ("COMPUTERNAME")

  • Script to list the information under Configuration/Storage/datastore details

    Hello, I'm trying to create a script that returns the details data Configuration/Storage/Datastore/store info. The thing I want the script to do is list my ESX:s, data of list store names, list mpathpolicy and the details of the data store paths section in the VI client.

    Is it possible to get this in a script? Or if anyone knows how I can get information from the info of paths in Details of the data store to the VI client

    Thanks in advance

    This is possible if you use the SDK.

    The following script lists the name of host, name of DS, political path and the number of paths.

    If you need other information on the page of details in the report let me know.

    $report = @()
    
    Get-VMHost  | Get-View | %{
         $esx = $_
         $esx.Datastore | %{Get-View $_} | where {$_.SUmmary.Type -eq "VMFS"} | %{
                   $ds = $_
                   $ds.Info.Vmfs.Extent | %{
                        $ext = $_
                        $extKey = ($esx.Config.StorageDevice.ScsiLun | where {$_.CanonicalName -eq $ext.DiskName}).Key
                        $lun = $esx.Config.StorageDevice.MultipathInfo.Lun | where {$_.Lun -eq $extKey}
    
                        $row = "" | Select ESXname, DSname, "Path Selection","Paths Total"
                        $row.ESXname = $esx.Name
                        $row.DSname = $ds.Name
                        $row."Path Selection" = &{
                             switch($lun.Policy.Policy){
                                  "VMW_PSP_FIXED"{"Fixed"}
                                  "VMW_PSP_RR"{"Round Robin"}
                                  "VMW_PSP_MRU"{"Most Recently Used"}
                             }
                        }
                        $row."Paths Total" = $lun.Path.Count
                        $report += $row
                   }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • The user's Department failed the logon__user profile cannot be loaded

    The service of the user didn't login
    User profile cannot be loaded

    ·                         Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the above does not work:

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    See you soon.

    Mick Murphy - Microsoft partner

  • PowerCLI script to list the df - hl on all ESX hosts?

    Hi Expert,

    I have more than 100 esx host, and I need to list all the df - hl out for my report. Y at - it instead of connect on each esx host to get under output, powercli script that I can use to remove similar information?

    Size of filesystem used Avail use % mounted on

    / dev/sdaa2 20G 1.5 G 17G 8%.

    / dev/CCISS/c0d0p1 1.1 G 118 M 909 M 12% / Boot

    / dev/sdaa6 9.7 G 151 M 9.0 G 2% / Home

    / dev/sdaa7 9.7 G 151 M 9.0 G 2% / tmp

    / dev/sdaa5 9.7 G 317 M 8.9 G 4% / var

    / dev/sdaa8 494M 212 M 257M 46% /vmimages

    Please advice. Thank you

    Are you allowed to enable SSH on servers ESX (i)?

    And are you allowed to establish a SSH session on each ESX (i) Server?

    You have an account and a password on each ESX (i) server that can run the command 'df '?

    If it is Yes, then you can use something like plink.exe in consequence of PuTTY to connect to each ESX (i) server, run the command "df" and retrieve the output.

    There are several available examples to use plink.

    And don't forget that you will need a fingerprint for each server ESX (i) will be stored on the client from which you are running the script.

  • Need a script that lists the VM with a snapshot

    Hello

    I am relatively new to powershell scripting and even newer to the vSphere CLI. I have no problem reading and understanding scripts, but what makes one is another story. In any case, I'm looking for help to create a script that will check that all the vm's on all ESX hosts, if they have a snapshot and if they echo the name of the virtual machine to the screen.

    That's what I have so far but I'm stuck and probably on the wrong track. Any help/suggestions are welcome!

    $user = "< removed >.
    $passw = "< removed >.
    $VIServers = "< IP ESXi host >", "< IP ESX Host1 >', '< IP ESX Host2 >', '< IP ESX Host3 >', '< IP ESX Host4 >', '< IP ESX Host5 >', '< IP ESX Host6 >.

    {foreach ($VIServer to $ViServers)
    SE connect-VIServer-Server $VIServer - user $user-password $passw
    $vms = get-vmhost $VIServer | Get - vm

    {foreach ($vm to $vms)
    < code that checks to see if there is a snapshot and echo is the name of the virtual machine to the screen. Clueless >

    }
    }
    }

    Forward thanks!

    Kind regards

    Erik

    Why directly to the ESX: you?... To connect to vCenter instead and then it s very easy...

    Get - VM | Get-Snapshot | Select the virtual machine, name, Description, created. Kind created

    Kenth-

  • Pass the protected script that allows the user to edit the content

    I work with a number of local groups but get busier with my schedule, I can't take the time to do the weekly band concerts or hourly updates. I saw a script a few years ago, allowing an end user (the band) to change their own webpage (in particular, the page of the annex). It is password protected so that only you can access the configuration of the page with the appropriate authorization. I forgot since the code and can't seem to find one similar to it. The unfortunate side effect was the page was very simplistic and did not much markup.

    Does anyone know of a code or a script like this?

    Thanks in advance.

    Anurag,
    That's what I have in mind. I'm a programmer/designer old enough, when I started writing code, it was all by hand and the concept of the CMS is really new to me. I've seen a few articles about it but did not know about the process. I definitely take your advice and looking around sourceforge and some other resources. The idea of the timetable is a good starting point, and I think that will be what I'm after.

    Thanks for the advice,
    Txwebman

  • PS The Script to list the sizes (complete and used) of vmdk (slim type)

    Hello

    I'm looking for a way to list to each vmdk which are thin format, maximum and used size. In fact, I saw that we have information by the data store (VMware.Vim.VirtualMachineUsageOnDatastore, with other files as swap, cliché...), but I need by vmdk. Does anyone has an idea (it is possible)?

    Thank you

    See the to find the actual size of the VM disks post.

  • Chargers Script conditional and the user interface.

    I was wondering if someone could help me.


    So I made a gallery looking a file say "ephoto0?" ('? (' being a natural number).


    I made sure when I hit the button FOLLOWING (nexteurope_btn) it adds a value of 1 '?'

    and when I hit RETURN (backeurope_btn) he subtracts the value 1 to '?' (by ephoto01, 02, 03, etc)


    My problem is the creation of a loop to the first frame to the last. He just keep adding 1 and not finding the next file with this value and vice versa.


    I think that the correct script would be an IF statement that would state that If the integer value gets 9 GB to start or something like that. I'm new to AS and I realize that can be an innefficient way of going about it, but it is better that I thought. However I can't to write a script that fills As.


    Any help would be appreciated. Script follows below.

    nexteurope_btn.addEventListener (MouseEvent.CLICK, nextImage);

    variable is a container that contains a value...

    var imageNumber:Number = 1;

    function nextImage(evtObj:MouseEvent):void {}

    adding to the current value + 1

    imageNumber ++;

    europeImageLoader.source = ' graphics/ephoto0' + imageNumber + ".swf" ;}

    backeurope_btn.addEventListener (MouseEvent.CLICK, P:System.Windows.Forms.datavisualization.charting.series.backimage)

    function backImage(evtObj:MouseEvent):void { }

    2 subtracted from the current value

    -imageNumber;

    europeImageLoader.source = ' graphics/ephoto0' + imageNumber + ".swf";

    }

    Hello

    Guy in practice, practice

    There are many examples here, when dealing with loading external files.

    Just do a quick search and you will find...

    Why you use the suffix ".swf"? Thought you were

    with images...?

    In any case... Here is a simple and fast loading of an external file example...

    Call the function loadimages--> Loadimages() (Imagefile);

    public function set loadImages(st:String):void
    {
    var ul:URLRequest = new URLRequest (st);
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener (Event.COMPLETE, onLoaded);<--- calls="" the="" onloaded="" function="" when="" finished="">
    LDR. Load (UL);
    }

    function onLoaded(evt:Event):void
    {
    -Evt.target.content - allows you to retrieve the image

    trace ("Loaded");

    Remove the eventListener COMPLETE when finished
    evt.target.removeEventListener (Event.COMPLETE, onLoaded);

    Now call Loadimages() (filename) to load the next file...

    Use the conditional to check if all the files have been loaded

    If Yes... Don't call onLoaded again...
    }

    Best regards

    Peter

  • Count the items in the drop-down list by repeating the subform if the user selects "S/o".

    I'm counting the number of drop-down lists the user selected "N/A" in a repeating subform. I want the total appear in a numericfield or textfield. Here is my script that unfortunitly does not work and my page layout form. I placed it in the ready event: layout so the total is updating the number of changes of N/A.

    Hierarchy.GIFScript.GIF

    Hello

    I put the code in the text box, something like calculate event;

    var result = 0;

    instanceCount var = _Subform2.count;

    var instance = Form1.resolveNodes ("Subform2 [*]");

    for (var i = 0; i)< instancecount;="">

    {

    If (instances.item (i). Table1.row2.score.RawValue == 'N/a') {}

    result ++;

    }

    }

    this.rawValue = result;

    The reference to the "_Subform2.count" will ensure that the code is executed whenever an instance is added or deleted.

    Concerning

    Bruce

  • Script to distribute the object for the page, margin, or the spread?

    I see I can create shortcuts to align objects to the page, margin, and the spread, but I can't specify to what I want to distribute an item! I went through the list in the Shortcuts dialog keyboard again and again, I don't couldn't find it! Why is this omitted? Is this an oversight?

    And my main question: how is this possible? There the script to achieve this goal?

    Thanks in advance!

    Well, in general is not a good idea for the scripts modify the user's selection. Unless the purpose of the script is that the user sees that other things are selected.

    You can get an array of all the objects on the current dotted with app.activeWindow.activeSpread.allPageItems but that will include the internal elements of groups. If you want the elements of higher level (including groups), use () .getElements () app.activeWindow.activeSpread.pageItems.everyItem.

    So to do what you asked, you can select all with:

    app.select(app.activeWindow.activeSpread.pageItems.everyItem().getElements());
    

    But if your goal is to distribute to each of them, use:

    app.activeDocument.distribute(
      app.activeWindow.activeSpread.pageItems.everyItem().getElements(),
      DistributeOptions.HORIZONTAL_CENTERS,
      AlignDistributeBounds.SPREAD_BOUNDS);
    
  • Waiting for the user?

    Is it possible to have a dialog box that comes with (with an "Ok" button, for example) in the middle of a script that allows the user to work in the background before pressing it to execute the rest of the script?

    I just put a footprint in the the first round document metadata because it not there the first round. In the second inning of his there so I remove and run the second process. In this way, you can run it on any document and run it on more than one open document...

  • List the contents of a cluster VM group in a DRS Rule

    Hello

    I'm looking for a script that lists the contents of a cluster VM Group in a rule of DRS.

    Example: we have a single cluster vmware 'CL-TEST' DRS 2 'GP1 and GP2' groups that contain several virtual machines.

    We want to export the content of each group of DRS in an excel file.

    Any idea?

    Thank you

    Concerning

    Take a look to get a list of virtual machine is in a group of virtual machine DRS

Maybe you are looking for