Running SQL Queries in PeopleSoft Application Designer

Hi,
I'd like to find out which peoplesoft tables contain two fields x and y. I have the sql query to do that, but I don't know where I can run that query from in application designer. Its quite possible that it will be done from "Query" window in Application Designer.
Can someone tell me the steps to do this? I'm very new to PeopleSoft.
thanks.
Askar

1. Open the QUERY tool from the AppDesigner.
2. File/New
3. Expand the record
4. Click on PSRECFIELD
5. Drag and drop to the right part of the window
6. At the left window, drag and drop the fields RECNAME from the left (from the record PSRECFIELD) into the tab Field at the right
7. At the left window, expend the record hierarchy of PSRECFIELD
8. Expand PSRECDEN Record Definition
9. Right click on PSRECFIELD Field definition, then "New join"
10. Choose Standard join
11. At the right, click on tab Criteria
12. Drag and drop the FIELDNAME field from the first PSRECFIELD (A)
13. Double click on Expression 2
14. In the new window, enter one of the first column name you want to retrieve
15. Drag and drop the FIELDNAME field from the second PSRECFIELD (C)
16. Double click on Expression 2
17. In the new window, enter one of the second column name you want to retrieve
18. Double click on Logical column at the right until to have "AND"
19. Click on tab Result
20. Click on Run query (or File/Run current query)
21. Enjoy with your results.
Note, QUERY tool will query the Peoplesoft tables, on the other hands, the Peoplesoft metamodel. If you have built objects directly against the database without having used AppDesigner, you won't be able to retrieve the data.
Nicolas.

Similar Messages

  • Long Running SQL Queries

    We have a customer that runs our Crystal Reports and they have complained that some of the reports cause long running sql queries and they have to kill these queries manually from SQL Management tools. We have changed the code so that we now dispose the report source and viewer objects as we call .dispose() function on them;
    reportSource.dispose();
    viewer.dispose();
    At first this seemed work but customer later complained that the issue still occurs. Can anyone help with why some of these CR queries are still running way after report is generated (with correct set of data), and based on the customer some of them running for more than 2 hours? What else can we do to make sure that all CR related queries cease to exist once report is generated? Appreciate all the help.

    1. Run the report from with Crystal designer. You should see the query being sent to DB server. After the report is viewed and you close it in designer, do you see the DB connection being dropped? If not, this may not be a SDK\ API related issue.
    2. Try using latest set of CRJ Jars [here|http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/crjava-runtime_12.2.213.zip] in your application. Also update the crystalreportviewers folder with the new viewer found at this link.
    3. Make sure that you are calling reportClientDocument.close() at the end when user is done viewing the report.
    4. When you say logn running queries are seen in DB, are you referring to a DB connection left open? or is it actually running any query and returning results?

  • Is Peoplesoft Application Designer part of the Peoplesoft OVM Template?

    I am totally new to Peoplesoft. Is PeopleSoft Application Designer part of the Peoplesoft OVM Template and how can I access it in order to development?
    Thanks for any help.

    djplee88 wrote:
    I am totally new to Peoplesoft. Is PeopleSoft Application Designer part of the Peoplesoft OVM Template and how can I access it in order to development?Since AppDesigner is a tool available on Windows OS only, no, Oracle does not provide any template for that (I think for license reason only templates based on OEL are provided). You'll have to build your own VM, or just use any workstation as a Peoplesoft client to run AppDesigner.
    It has been discussed in the Peoplesoft OVM forum, in that thread :
    how i can start app Designer / DataMover on OVM peoplesoft ?
    Nicolas.

  • Dynamic SQL queries in HTMLDB application

    How can i build a HTMLDB page only for dynamic sql queries like the features in the HTMLDB SQL-workshop.
    I need a SQL interface for some power user running some ad-hoc queries.
    Can i call this page directly from any other HTMLDB application?
    Regards
    Martin

    Hello Martin,
    I am a beginer in APEX but I have the same problem with you. What are your solution for dynamic sql query ? For report a solution is Pl Sql procedure which return a sql query. But for a form ?

  • Information on how to run SQL queries on the CUCM itself please

    Good Day All,
    I need to run an sql query on the CUCM to list all of my directory numbers, their partition, and their external mask values.
    I came across this excerpt below earlier so I have a bit of an idea how to do it but iw would be great to see some other examples of sql queries.
    Any assistance is most appreciated.
    Also, is there a document somewhere to tell me how to run these queries?
    Thanks in advance
    Regards
    Amanda
    Currently Being Moderated
    05/04/2011 5:18 AM (in response to Joshua Royle)
    Re: Is there a way of pulling a report off CM showing all phones that have diverts on?
    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')

    Hi Amanda
    Basically it's standard SQL, so it wouldn't hurt to google 'informix select statements' and do a little reading to get the basics. There are millions of permutations of queries so it's a matter of understanding the syntax, and then applying that to the database in question. The only difference when running commands from the CLI are that:
    - You prefix the standard informix SQL statement with 'run sql'
    - You don't get any help from CUCM with the syntax, so you might be well advised to use something that understands SQL a little and colorises it as you type, and then paste the resulting commands into the CUCM SSH window. I use a text editor named JEdit, if you create a text file and save it as a file ending in .sql it will highlight your syntax.
    - Other programs are available that do reasonable syntax highlighting (e.q. SquirrelSQL) that are designed for querying the DB directly, but you can't actually query directly against the DB for security reasons. You'd still have to copy/paste the commands.
    Now... to understand the DB you'll need a reference describing all the tables etc. This is here:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
    Pick your version of CUCM and download the 'Data Definition' document.
    A few notes on the command:
    run sql : is just the CLI command that tells the shell to run the following text as SQL.
    select : the SQL command to retrieve data
    dnorpattern,cfadestination,cfavoicemailenabled : the column names to retrieve
    callforwarddynamic c, numplan n : the names of two tables, and the abbreviations you want to refer to them as
    where c.fknumplan = n.pkid : this tells SQL to return values from the two tables where these fields match up. In the data definition you'll see notes that c.fknumplan (i.e. the fknumplan column in the callforwarddynamic table, as noted by the c. prefix) refers to the PKID column in the numplan field. This is a very standard type of join in the CCM DB.
    and (cfadestination != '' or cfavoicemailenabled ='t') : another clause, basically in this query we want to see only rows where cfadestination isn't blank or cfavoicefmailenabled is set to 't' for true).
    Most tables are linked in one of two ways in this database:
    - a column prefixed 'fk' refers to the pkid field (there is always only one pkid field per table) in the table following the 'fk' prefix. E.g. above fknumplan refers to the numplan table, pkid field. fkdevice would refer to the device table, pkid field.
    - a column prefiex 'tk' refers usually to an enum table which is prefixed with 'type'. This is a table that maps the number value in the 'tk' field to a string. An example would be tkmodel - this represents the phone physical model type (e.g. 7962), and maps to a table called typemodel, and the 'enum' column in that table.
    Regards
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • Run sql queries in online sqlplus........is that possible??

    Hi,
    I am a php/mysql programmer.In my office only mysql is installed.And as a junior programmer i have no privilege to install oracle in my machine or in our server.But i want to run some small oracle queries in order to gather knowledge in Oracle.I am looking for an online SQLPLUS...
    If something like that exists...please send me the link...

    You only said to run some oracle queries for that you need oracle, there is nothing like online sqlplusWell, there is some kind of "online SQL*Plus": it's not really SQL*Plus, you have limited privileges and disk space but you can create database objects in a Oracle database and run usual SQL statements using apex.oracle.com online service.
    Message was edited by:
    Pierre Forstmann

  • Running SQL queries through Xpress code

    Hi,
    Please give an idea to run the sql select, update queries through Xpress code.
    The code may be there in workflows or rulelibs...
    Any ideas are appreciated
    Thanks,
    Santoshanand

    There is a set of JDBC methods in the class com.waveset.util.JdbcUtil which certainly allows for selects to take place.
    check out the javadocs from the BFE especially the queryList and queryRecords methods.
    I guess the sql method could be used to run any sort of sql statement you like if you want to modify the database.
    From XPress these methods are invoked
    e.g.
    <invoke name='queryList' class='com.waveset.util.JdbcUtil'>
    </invoke>

  • Tracing SQL Queries from an Application.

    I read the info on here.
    http://www.psoug.org/reference/traceanalyzer.html_
    I have been able to use this guide to analyze traces.
    I installed DBMS_SUPPORT package on my XE database. I need to know, how can I run a trace from my front-end application and get it analyzed, using trace analyzer.
    I have got trace files, by using DBMS_SUpport. I have been successful in running tkprof on them.
    I need to trap the values of the bind variables that are being sent by the front-end application.
    Any suggestions would be welcome.
    Thanks.

    End to End Application Tracing can identify the source of an excessive workload, such as a high load SQL statement, by client identifier, service, module, action, session, instance, or an entire database. This isolates the problem to a specific user, service, session, or application component.
    Oracle provides the trcsess command-line utility that consolidates tracing information based on specific criteria.
    The SQL Trace facility and TKPROF are two basic performance diagnostic tools that can help you monitor applications running against the Oracle Server.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#i19083

  • Peoplesoft  Application Designer  Login Issues

    Hello,
    When i try to log into App designer , i get below message.
    File: SQL Access ManagerSQL error. Stmt #: 2 Error Position: 0 Return: 28002 - ORA-28002: the password will expire within 7 days
    Pls advise
    Thanks
    jiten

    I wrote a blog entry a while back about the same error connection. Have a look there :
    http://gasparotto.blogspot.nl/2010/03/psovm-sysadms-password-policy.html
    A Peoplesoft database should not have such restrictive policies for SYSADM and PEOPLE accounts.
    Nicolas.

  • Error while running sql queries..

    Hi there,
    We are suppose to run gather schema stats..
    but while running the procedure we are getting following error..
    gather_schema.sql:
    exec fnd_stats.gather_schema_statistics('CMWCONN');
    exec fnd_stats.gather_schema_statistics('CMW');
    exec fnd_stats.gather_schema_statistics('ALL');
    SQL> @gather_schema.sql;
    BEGIN fnd_stats.gather_schema_statistics('CMWCONN'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'FND_STATS.GATHER_SCHEMA_STATISTICS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    BEGIN fnd_stats.gather_schema_statistics('CMW'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'FND_STATS.GATHER_SCHEMA_STATISTICS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    BEGIN fnd_stats.gather_schema_statistics('ALL'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'FND_STATS.GATHER_SCHEMA_STATISTICS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Could you give me the correct pl/sql procedure to run the query.
    Thanks,.
    Balu.

    Actually the script was working fine last week..we are using the following script
    SQL> exec fnd_stats.gather_schema_statistics('ALL');     
    but it throws me the following error
    BEGIN fnd_stats.gather_schema_statistics('ALL'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'FND_STATS.GATHER_SCHEMA_STATISTICS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

  • SQL Inseting a Set Of Data To Run SQL Queries and Produce a Data Table

    Hello,
    I am an absolute newbie to SQL.
    I have purchased the book "Oracle 10g The Complete Reference" by Kevin Loney.
    I have read through the introductory chapters regarding relational databases and am attempting to copy and paste the following data and run an SQL search from the preset data.
    However when I attempt to start my database and enter the data by using copy and paste into the following:
    C:\Windows\system32 - "Cut Copy & Paste" rem **************** onwards
    I receive the following message: drop table Newspaper;
    'drop' is not recognised as an external or internal command, operable programme or batch file.
    Any idea how one would overcome this initial proble?
    Many thanks for any solutions to this problem.
    rem *******************
    rem The NEWSPAPER Table
    rem *******************
    drop table NEWSPAPER;
    create table NEWSPAPER (
    Feature VARCHAR2(15) not null,
    Section CHAR(1),
    Page NUMBER
    insert into NEWSPAPER values ('National News', 'A', 1);
    insert into NEWSPAPER values ('Sports', 'D', 1);
    insert into NEWSPAPER values ('Editorials', 'A', 12);
    insert into NEWSPAPER values ('Business', 'E', 1);
    insert into NEWSPAPER values ('Weather', 'C', 2);
    insert into NEWSPAPER values ('Television', 'B', 7);
    insert into NEWSPAPER values ('Births', 'F', 7);
    insert into NEWSPAPER values ('Classified', 'F', 8);
    insert into NEWSPAPER values ('Modern Life', 'B', 1);
    insert into NEWSPAPER values ('Comics', 'C', 4);
    insert into NEWSPAPER values ('Movies', 'B', 4);
    insert into NEWSPAPER values ('Bridge', 'B', 2);
    insert into NEWSPAPER values ('Obituaries', 'F', 6);
    insert into NEWSPAPER values ('Doctor Is In', 'F', 6);
    rem *******************
    rem The NEWSPAPER Table
    rem *******************
    drop table NEWSPAPER;
    create table NEWSPAPER (
    Feature VARCHAR2(15) not null,
    Section CHAR(1),
    Page NUMBER
    insert into NEWSPAPER values ('National News', 'A', 1);
    insert into NEWSPAPER values ('Sports', 'D', 1);
    insert into NEWSPAPER values ('Editorials', 'A', 12);
    insert into NEWSPAPER values ('Business', 'E', 1);
    insert into NEWSPAPER values ('Weather', 'C', 2);
    insert into NEWSPAPER values ('Television', 'B', 7);
    insert into NEWSPAPER values ('Births', 'F', 7);
    insert into NEWSPAPER values ('Classified', 'F', 8);
    insert into NEWSPAPER values ('Modern Life', 'B', 1);
    insert into NEWSPAPER values ('Comics', 'C', 4);
    insert into NEWSPAPER values ('Movies', 'B', 4);
    insert into NEWSPAPER values ('Bridge', 'B', 2);
    insert into NEWSPAPER values ('Obituaries', 'F', 6);
    insert into NEWSPAPER values ('Doctor Is In', 'F', 6);

    You need to be in SQL*Plus logged in as a user.
    This page which I created for my Oracle students may be of some help:
    http://www.morganslibrary.org/reference/setup.html
    But to logon using "/ as sysdba" you must be in SQL*Plus (sqlplus.exe).

  • Running sql queries in Javascript

    Have built a form with numerous rows based on Stefan Cameron's methodology (http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connecti on/) and have gotten that part to work.
    Need to use a sql query to get a subset opf the data, but Stefan's and other examples use Formcalc.  I figure I just need to do a delayed query once I get the query set up and loaded.
    Drawing a blank on how and where to load the sql query string.
    Thanks in advance,
    Patrick

    Stefan's code is very useful when you want to display a single record. Typically I woudl enter a value on a field and use that entered value as part of teh record search in my SQL statement (usually with a delayed open of the DB). If you want to get a subset of records and simply navigate through them that code is not neccessary. You can change the settings when you set up the dataconnection to enter a SQL command and enter it in the 1st panel. Then when the connection is made that SQL statement will run each time.

  • Run time error in Web Application design

    I have several run time errors whe I deal with big web templates in WAD. Sometimes the error raises when i try to move in html section of the web template (run time error 5: invalid procedure call or argument), some time when i try to open the template (run time error 9: subscript out of range).Did someone have the same problem? I saw a forum specking about librfc.dll file, but i couldn't find many details.
    Thanks.
    Valentina

    hi V.,
    support package level for front end 3.5 ?
    you can check in bex, 'business explorer'->help->about.
    the info version 3500.x.yy; x is the support package level.
    i have tried to use front end 3.5 to access bw 3.0, WAD open like to errors, after patch 7 applied, seems ok.
    you may try with front end 3.0b
    hope this helps.

  • Queries in Web Application Designer.

    Hi All,
    The requirement is simple but it seems i'm missing something somewhere.
    Requirement : I've 2 queries (Q1, Q2) in the report template. the variables of 2nd qry (Q2) need to be populated based upon the vars of Q1 (in customer exit)
    Problem : In customer exit (step 3), i always receive Q2 followed by Q1. No matter whether i put the order as
    Q1, Q2  or Q2, Q1.
    My understanding was the order is defined by the way the queries are put in the template.  How do i make Q1 come before Q2 in the exit.
    Regards,
    Nagendra.

    Hi Nagendra,
    The order in which you put the queries in the web template has got nothing to do with the order in which the queries appear in the customer exit.
    Infact I do not get what you mean when you say you are getting "Q2 followed by Q1 in the customer exit"?
    I am assuming that Q1 has ready for input variables - so just write the code for the Q2 variables under I_STEP = 2 and do not make these variables ready for input but do make them mandatory - this should serve the purpose.
    I think this information would help:
    <i>The customer exit for variables is called three times maximally. These three steps are called I_STEP.
    The first step (I_STEP = 1) is before the processing of the variable pop-up and gets called for every variable of the processing type “customer exit”. You can use this step to fill your variable with default values.
    The second step (I_STEP = 2) is called after the processing of the variable pop-up. This step is called only for those variables that are not marked as “ready for input” and are set to “mandatory variable entry”.
    The third step (I_STEP = 3) is called after all variable processing and gets called only once and not per variable. Here you can validate the user entries. Please note that you cannot overwrite the user input values into a variable with this customer exit. You can only derive values for other variables or validate the user entries.</i>
    Hope it helps,
    Regards,
    Nikhil

  • How to combine two queries using Web application Designer

    Hello experts...
    This should be a simple request.
    I have two existing queries that I simply want to display on the same template. What is the best way to do this?
    To add more complexity to it, if there is a result value that I want to pull from each of them, how can this be done so that I can add the results of the two into one total?
    Any help that you can provide is greatly appreciated. Thanks

    Hi,
    Displaying the existing queries on the same template is very simple... Drag and drop to web items... for ex we will drag and drop two analysis web item...
    Create 2 data providers and assign it to the web items... each dataprovider is in turn assigned to two existing queries...
    I am not sure about the result value to be pulled from each of them...
    Regards,
    Kishore

Maybe you are looking for