How to display the user ID in the XMLP reports.

Hi all

I want to display the current connection OPRID/USERID in Peoplesoft XMLP reports.
Let me know the solution if any.

Concerning
Phani Ayachetula.

Assuming you are using PSQuery.

In your request, click on the tab of expressions.
Add in the following text:

SUBSTR (sys_context ('USERENV', 'CLIENT_INFO'), 1, INSTR (sys_context ('USERENV', 'CLIENT_INFO'), ' ', 1, 1)-1)

Who will be back running the query in your results.

Then, you use this field in your model XMLP.

Hat tip to
http://jjmpsj.blogspot.com/2006_09_03_archive.html

Tags: Oracle Applications

Similar Questions

  • How to recover the XMLP report after publication

    Requirement:*.
    There is a custom created page that has some data (all data is display only) on level 1. There is also a link on that level 1.
    When the user arrives on this page for a particular search (from the search page) values and on a level 1 line and click this link, an XMLP report must be generated and open.
    When the user comes to the same page with the same values of research and the same line at level 1 later, after some time/day, the XMLP report which came already should open instead of generating a new report XMLP.
    Therefore, the XMLP report has generated only once for a particular line of level 1 and should now be reused.

    Technique of the logic applied so far:*.
    The logic was written on the component.record.fieldchange of the link level 1.
    I was able to generate the XMLP data file. By using this data file, I was able to generate the report (in PDF) and publish as well.

    Creates the object:
    & oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(<Report_Definition_Name>);
    & oRptDefn.Get ();
    & oRptDefn.SetRuntimeDataXMLFile (< XML data file >);

    Set the outdestination:
    & oRptDefn.OutDestination = < Some Unix Path >;

    Report of the process called:
    & oRptDefn.ProcessReport (< name of the report definition model >, % language, date, & oRptDefn.GetDefaultOutputFormat ());

    And published:
    & oRptDefn.Publish ("PSUNX", "", "", 0);

    The report is published. I can view the report in pdf format on
    Main menu > Reporting tools > XML editor > search for XML report

    Question (which is also a roadblock):*.
    Now how should I proceed in order to open (display) the same report when the user clicks on the link to the level 1 again.
    How can I reopen this same report next time?
    I was wondering that if I get the report Id, and the process Instance (as displayed in the search for XML report), I can save for later use. So I can dynamically create the report using these 2 URL identifiers when the user clicks on the same link next time. But not able to get the correct values of these properties.
    After publication, & oRptDefn.ProcessInstance gives 0 instead of the process instance, as shown in the XML report search page.

    Please help with your expertise.

    The instance of the process number is automatically filled by PeopleSoft during the call to publish. However, the problem is that you cannot recover the instance number of processes assigned by PeopleCode after the call to publish. I think that this property has a use when you run the report through the process scheduler and not the application server (which is the case in this situation).

    Take a look at the PSRF_RINFO_TBL notice. In this recording all the XMLP reports will be stored by the report URL. Your condition said that when a user enters a component with a certain search criteria and a report has already generated so that criteria at level 1 should link to open that specific report. With the file PSRF_RINFO_TBL, you know what reports have been produced so far. The only thing you need then is to link a report to a specific search criteria. If you run a SQLExec on the PSRF_RINFO_TBL after you have published it you should be able to recover the process instance and the content id. If you add a record or some fields of the record exist for this component, you can bind the instance of process/contentid to search criteria. If a report already exists, you can use the code I posted in my previous post to open the report on the screen.

  • How to display the user name in report editor RTF BI?

    Please advice how to display the user name in report editor RTF BI?
    Maybe this can be done via a hidden parameter of the report, BEEP, which by default will be implemented with the macro as {$username$} (or smth like)?
    Thanks in advance!

    Yes, or create a hidden report BEEP setting with the name you want and the default ": xdo_user_name" (without ""). And on the report that you call the parameter with the username!

  • How to display the user id and the session on the form?

    Hi all can someone guide me how to display the user id and the session on the form? Please guide me

    Sarah

    Hi Sarah,.

    You can use GET_APPLICATION_PROPERTY (CONNECT_STRING) for this.

    BTW, have you tried search in forms online help? It has good examples explaining all the built-ins.

    Arun-

  • How to display the name of my refnum on the front?

    I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.

    How to display the name of the file (including the path) on the front panel once the user has entered it?

    Michael

    Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.

  • How to display the VM Workstation serial number

    I have 6 licenses for Workstation 6 and you just upgrades to version 7. I am trying to determine what user runs a number of series. I have 3 users right now and they have no idea who install package that they used. How to display the serial number for VM Workstation installed on a users computer.

    Thank you

    He stored in the Windows registry at the location following and Workstation 7 taking as example adjust you the path accordingly for the installed version.

    HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Workstation\License.ws.7.0.e1.200904\Serial
    
  • How to display the result sqlplus in java?

    I want to call sqlplus to run some commands sql in java, but how can I print the result of sqlplus?

    In java code, I call sqlplus as:

    Process of p;
    Run the command
    p = Runtime.getRuntime () .exec (commandString);
    print the result of the command
    InputStream inputStream = p.getInputStream ();

    How to display the result of the execution?

    Published by: Yi on February 26, 2012 23:41

    You can use ProcessBuilder. Copy the following code starts sql * more and runs the script in the variable "filename". It displays the results in the console of NetBeans.

    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.File;
    import java.util.Map;
    
    public class test1 {
    
        public static void main (String args []) {
    
            test_script();
        }
    
        public static void test_script () {
    
            String fileName = "@test_table.sql";
            String sqlPath = "E:\\";
    
            String sqlCmd = "sqlplus";
    
            String arg1   = "user/password@sid"; -- plug in your user, password and db name
            String arg2   = fileName;
            try {
                String line;
                ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2);
                Map env = pb.environment();
                env.put("VAR1", arg1);
                env.put("VAR2", arg2);
                pb.directory(new File(sqlPath));
                pb.redirectErrorStream(true);
                Process p = pb.start();
              BufferedReader bri = new BufferedReader
                (new InputStreamReader(p.getInputStream()));
              BufferedReader bre = new BufferedReader
                (new InputStreamReader(p.getErrorStream()));
              while ((line = bri.readLine()) != null) {
                System.out.println(line);
              }
              bri.close();
              while ((line = bre.readLine()) != null) {
                System.out.println(line);
              }
              bre.close();
              System.out.println("Done.");
            }
            catch (Exception err) {
              err.printStackTrace();
            }
    
        }
    
    }
    

    Here is the content of the script at E:\\test_table.sql

    Prompt drop TABLE ANOTHER_TEST;
    DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS
    /
    
    Prompt Table ANOTHER_TEST;
    CREATE TABLE ANOTHER_TEST
    (
      BATCH_SEQ             NUMBER,
      BATCH_GROUP_ID        NUMBER,
      STATUS_FLAG           VARCHAR2(30 BYTE),
      OBJ_BEING_PROCESSED   VARCHAR2(80 BYTE),
      BATCH_RUN_START_DTTM  DATE,
      BATCH_RUN_END_DTTM    DATE,
      CREATE_DTTM           DATE,
      CREATE_USER           VARCHAR2(30 BYTE),
      UPDATE_DTTM           DATE,
      UPDATE_USER           VARCHAR2(30 BYTE)
    )
    LOGGING
    NOCOMPRESS
    NOCACHE
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    MONITORING
    /
    
    COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.'
    /
    
    EXIT
    /
    
  • How to display the data items in the header of tempalte

    Hello friends
    I have this date_from and date date_to parameters which are parameters that the user enters...
    based on these parameters of date, I want to display in the header as
    date_from day (for example if the date_from is 13 - nov - 2010.then I should see 13) and date_to to display as 15, if for example the user enters
    November 16, 2010. (day of the date-1)
    so it should break down for
    date_from-13-nov-2010, 13
    date_to-16-nov-2010, 15
    I want these two values to display in the header of the template how
    pls help
    also let me know how to display the data items in the header template

    Published by: Les on Dec 22, 2010 12:44 AM

    Use and

  • How to display the results in the order based on the value of research

    Hi all

    How to display the results in the slot order.
     
    
    CREATE TABLE TEST( SONGID  NUMBER, TITLE   VARCHAR2(200))
    
    INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
    INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
    INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');     
    INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
    INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
    
    SELECT *FROM  TEST WHERE INSTR (TITLE, 'MADONNA') > 0
    
    output: 
    SONGID     TITLE
    10     AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
    11     CICCONE, MADONNA (CA)
    12     DALLIN, MADONNA LOUISE/STOCK
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    16     MIRWAIS AHMADZAI, MADONNA
    17     MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
    18     MADONNA (CA),CICCONE
    
    Expected output :
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    18     MADONNA (CA),CICCONE
    ..
    ..
    ..
    ..
    ...
    If the user makes a search with "MADONNA", I view the results as title begins with "MADONNA" first then the rest of the records.
    Please let me know is possible to show the results in this order.


    Kind regards
    Rajasekhar

    This can be a little more specific:

    SQL> SELECT *
      2  FROM   TEST
      3  WHERE  INSTR (TITLE, 'MADONNA') > 0
      4  ORDER  BY INSTR (TITLE, 'MADONNA')
      5           ,TITLE
      6  ;
    
                  SONGID TITLE
    -------------------- --------------------------------------
                      13 MADONNA
                      14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
                      15 MADONNA (CA)
                      18 MADONNA (CA),CICCONE
                      12 DALLIN, MADONNA LOUISE/STOCK
                      11 CICCONE, MADONNA (CA)
                      17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
                      16 MIRWAIS AHMADZAI, MADONNA
                      10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
    
  • How to display the width of the page or the big screen in firefox 11 automatically?

    How to display the width of the page or the big screen in firefox 11 automatically? I know how to Ctrl +, ctrl - and ctrl 0, but is there a way to define 11 firefox to automatically set the page viewing by default "page width" or full screen (F11 not)?
    Help, please. Thank you.

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to display the drop-down list box in MS excel by using labview report generation toolkit? pleasepost code block diagram?

    How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...

    Like this. (edition, use the reference forms instead of the reference to the worksheet)

    Ben64

  • How to display the list of components in ultiboard 10?

    The DRC report the errors where the components that are no longer in the design have been removed. How to display the list component and then remove them from the netlist to stop this?

    Ultiboard reported missing errors of component (part 'X' is not about design) because the part is always referenced by a net. To fix this, you must remove the part of the net. Following the steps below to remove the part form the net.

    1 tools > Netlist Editor

    2. for each network that the part has been connected to, select the Net (upper-left).

    3. Select the tab of pine trees, select the part and it is the PIN in the dialog box, then click on remove

    The problem is when the part is removed, I see no easy way to determine the threads you need to remove the part of. I entered this as a feature request to make this easier, but as a workaround, you can put part and say Ultiboard what the missing part, then search the net names on the pins and remove the part of these pins

    1 place a piece with a lot of pine trees (for example the part that was removed, or for example through Hole technology > Connectors > SIL & headers > HEADER2X9). When you place the part, make sure that the RefDes matches the RefDes of the part which has been removed.

    2. once the room is placed, you should see rats nest lines that connect the part to the nets.

    3 Zoom on the pins. You should now see the net name on each of the axes. For each of the pins connected, remove it from the net as described above.

    4. remove the part that you placed.

  • How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you

    How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you

    Hello

    1. do you have problems connecting to the wireless network?
    2. don't you make changes to your computer, after which the issue started?
    3. where exactly you want to display the wireless network?

    If you have problems to connect to the network, I would recommend that you reinstall the wireless network cards.

    Follow the steps in this article.

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

  • How to display the lsit of play while visualizations are playing

    How to display the playlist while visualizations are playing

    What version of WMP are you using?

    You can usually right click the button reading at the top and select view the list pane.

  • How to display the date on the taskbar (toolbar)

    Please tell me how to display the date at the bottom of the screen.  Currently, everything is displayed is the time.

    Hello

    You said in addition to the clock so I initially think not that you need it however, others said it would be a good idea to show this method of date display. Also if you move the taskbar vertically the date is also displayed.

    Always see the day, date and time in the taskbar
    http://freewindowsvistatutorials.com/meetWindowsVista/taskbarAndSystemTray/showDayDateAndTimeInTheClock.php

    You can lift the taskbar is higher - make a right click on it - uncheck box lock the taskbar then take the upper part of it and lift it higher and the date will be under the clock.

    --------------------------------------------------------------------

    I found a utility that does on one level of the bar tasks if it does not have to be raised-
    T - clock - free - 3 references to it:

    Windows7 like clock on the system in Vista & XP tray
    http://www.tothepc.com/archives/Windows7-like-clock-on-system-tray-in-Vista-XP/

    TClock: See the Date Look like Windows 7 & time in the system tray in Windows XP and Vista
    http://www.askvg.com/tclock-show-Windows-7-look-like-date-time-in-system-tray-in-Windows-XP-and-Vista/

    T - Clock of the Stoic Joker
    http://www.greggdeselms.com/tclock.html

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to display the .dcm file

    How to display the .dcm file

    Hello

    This should help you.

    http://www.FileInfo.com/extension/DCM

    See you soon.

Maybe you are looking for