[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

How can I give retreival arguments in datawindow from Oracle stored procedure

Asked by venkat4sv in PowerBuilder Programming Language

Tags: datawindow, oracle, retrieve

Hi,
I’m trying to create a data window from oracle-stored procedure. Procedure contains one in parameter and 4 out parameters from three different tables of oracle database. Actually my main powerbuilder application is connected to mainframe db2 tables. In that one window contains one datawindow which is connected to db2 database. Now I need to create another datawindow in that same window thru Oracle stored procedure as a data source which takes one input and gives out set like emp_no as in variable and gives out as their details like name and address. How can I give retreival arguments in datawindow or any changes are in sp variables . Can some one help , if they know ?

Application open event:
// Connect to Oracle database.
gtr_customer = create transaction;
gtr_customer.DBMS = "ODBC"
gtr_customer.DBParm = "DisableBind=1,ConnectString='DSN=UrlOld;UID=DBA;PWD=SQL'"
connect using gtr_customer;
dw_customer.SetTransObject ( gtr_customer )

// Retrieve perticular row from the source tables.
dw_customer.retrieve(“gs_emp_id”)

stored procedure is as follows:

CREATE OR REPLACE PROCEDURE SP_DETAILS(
I_EMP_ID IN VARCHAR2, O_EMP_ID OUT VARCHAR2, O_NAME OUT VARCHAR2, O_ADDR OUT VARCHAR2,  O_CITY OUT VARCHAR2, O_STATE OUT VARCHAR2, O_COUNTRY OUT VARCHAR2, O_ZIP OUT VARCHAR2) is
BEGIN
  SELECT T1.EMP_ID, T2.NAME, T3.ADDR,T3.CITY, T3.STATE, T3.COUNTRY,T3.POSTAL
       INTO O_EMP_ID, O_NAME, O_ADDR, O_CITY,O_STATE, O_COUNTRY, O_ZIP
FROM TABLE1 T1, TABLE2 T2, TABLE 3 T3          
WHERE
-------------
AND T1.EMP_ID = I_EMP_ID;
END SP_DETAILS;


[+][-]02/21/05 09:07 PM, ID: 13368988Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/22/05 09:45 AM, ID: 13373912Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/22/05 08:49 PM, ID: 13378967Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: PowerBuilder Programming Language
Tags: datawindow, oracle, retrieve
Sign Up Now!
Solution Provided By: sajuks
Participating Experts: 3
Solution Grade: B
 
 
Loading Advertisement...
20091021-EE-VQP-81