?
Solved

PB Datawindow

Posted on 2004-04-26
2
Medium Priority
?
1,573 Views
Last Modified: 2013-12-26

Hi all

How we can find out the datasource of the Datawindow created. Once i created a datawindow using Quick or store procedure option as a datasource

i want to chage it again at designtime or runtime. or if i want to see which datasource type is used to create the datawindow, how i can do that?

I want to find the database object associated with a datawindow and i want to modify that dataobject in Oracle. Can anybody tell me how i can do this?

Thanks
0
Comment
Question by:mayuri25
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 60 total points
ID: 10918108
See these functions in help file.
GetSQLSelect
SetSQLSelect
SyntaxFromSQL
Create

dw_1.dataobject <-- this property returns dw object name
dwSyntax = dw_1.Describe("datawindow.syntax") <-- retruns syntax

Example 1
string setting
setting = dw_1.Object.DataWindow.Processing

Example 2
setting = dw_1.Describe("DataWindow.Processing")

See this link to see if using stored procs to update, delete, insert.
http://sybooks.sybase.com/onlinebooks/group-pb/pbg0900e/dwref/@Generic__BookView;pt=38239?DwebQuery=procedure

regards-

0
 

Expert Comment

by:mit_ashu
ID: 10924991
Hi

I am more concentrating on the second part of your question i.e. "Finding the Datastore at design time so you can modify it in database".

1. If it is SP you can find out which SP is associated with this Datawindow by

a) Open the Datawindow
b) Click on 'SQL' button from tool bar (it will show list of columns)
c) On the Right Hand menu of SQL you will see 'Stored Procedure ' option , select it you will get the Stored Procedure associated with the datawindow.

2. Export the Datawindow

a)If it is SQL Datawindow , see for 'PBSELECT' from the syntax , it should look as follows

.
.
.

  retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"schedule_master~" ) COLUMN(NAME=~"schedule_master.schedule_date~") COLUMN(NAME=~"schedule_master.schedule_time~") COLUMN(NAME=~"schedule_master.schedule_title~") COLUMN(NAME=~"schedule_master.schedule_desc~") COLUMN(NAME=~"schedule_master.schedule_status~") COLUMN(NAME=~"schedule_master.schedule_id~")) " update="schedule_master" updatewhere=0 updatekeyinplace=no )
.
.
.

 b) If it is SP Datawindow , it will look as follows

.
.
.

 procedure="1 execute PACKAGE_EMPLOYEE.SP_RETRIEVE_EMPLY_DATA;0 PV_LOGON_ID_I = :PV_LOGON_ID_I, PV_NAME_FIRST_I = :PV_NAME_FIRST_I, PV_NAME_LAST_I = :PV_NAME_LAST_I, PV_BUS_UNIT_CDE_I = :PV_BUS_UNIT_CDE_I, PV_APP_NAME_I = :PV_APP_NAME_I" arguments=(("PV_LOGON_ID_I", string),("PV_NAME_FIRST_I", string),("PV_NAME_LAST_I", string),("PV_BUS_UNIT_CDE_I", string),("PV_APP_NAME_I", string)) )

.
.
.

Thanks

Ashu




0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question