HOME · FORUMS · ABOUT · LINKS · CONTACT US  
ABOUT PEOPLESOFT
What is PeopleSoft?
PeopleSoft Q & A
PeopleSoft&Oracle
Who is Larry Ellison?
PeopleSoft Modules
Oracle Modules
PeopleSoft 9
Project Fusion
 
TOOLS & TRAINING
Developer Tools
Consulting Tools
PeopleSoft Training
PeopleSoft Connect
Project Management
 
CONSULTING
Consulting Firms
Consulting Reviews
 
JOBS
PeopleSoft Jobs
Immigration (H1-B's)
 
OTHER LINKS
Forums
PeopleSoft News
Interviews
PS Gossip
Your Feedback
Friends of the Planet
Editors Blog
 

PSPlanetXpress
Newsletter

Please note that all fields followed by an asterisk must be filled in.

First Name*
E-mail Address*

Your e-mail address is secure. We will only use it to send you PeopleSoft-Planet related bulletins and information.

 
 

 

  Frequently Asked Questions (FAQ's)


 

Summary:
What is the difference between a Dynamic View and an SQL View?

Answer

SQL Views are actual database views that you create in Application Designer. To use one, you'll need to build the view into the database and the Component processor refers to the database object whenever you access that SQL view. In contrast, a Dynamic View does not refer to a database object. PeopleSoft simply uses the SQL text that you put into the record definition. It does not try hard to understand your SQL, or parse it well to determine which actual db columns the columns in your record definition corresponds to.

I am only aware of one thing that you can do in Dynamic views that could warrant the use of it. That is you could put the meta-SQL %OperatorId anywhere in you SQL and the processor will dynamically substitute this value with the currently logged userid.

Aside from the problem you mentioned, problems also arise when your SQL has two or more tables joined by a field that is specified as a key in your record definition. In this case, the processor dynamically appends an ORDER BY KEYFIELD, without the correlation id, which makes your SQL invalid because KEYFIELD is ambiguous. Also another problem would be if your SQL has a WHERE clause. When adding criteria, the processor will add an open "(" after WHERE and a closing ")" at the end of your SQL. For most cases this won't be a problem, but it will be if your SQL is complicated enough.

Unless you need to use %OperatorId, avoid dynamic views except for the simplest of SQL. If indeed necessary, the problem you mentioned could be solved by putting your original SQL inside a table expression:

Select RECFIELD1, RECFIELD2, ...
From TABLE( Select DBFIELD1 AS RECFIELD1, DBFIELD2 AS RECFIELD2, ... From DBTable) DBTBL

This is DB2 syntax. It may vary if you're using other databases.

*Questions excerpted from ITToolBox.com*

Disclaimer: Contents are not reviewed for correctness and are not endorsed or recommended by PeopleSoft-Planet.com.

 SPONSORED LINKS


 

FIVE PILLAR CLUB


PeopleSoft-Planet.com is a  FIVE Pillar member site.

read more

OPTIONS

Give us your feedback

Send us your resume

Add to your favorites

Make your home page

To recommend this site to a friend, enter their email address

and then hit button to:

BOOKSTORE


Our r
ecommended reading this month is Understanding PeopleSoft 8 by Lynn Anderson

More Books

 
 

Barebones at the lowest prices



 
Trademarks referenced on the PeopleSoft-Planet website are property of their respective owners. Comments are property of their respective posters.
PeopleSoft-Planet is brought to you by Nnigma Inc. Web site code is Copyright © 2005 by Nnigma. All Rights Reserved.