Solved

PB Datawindow

Posted on 2004-04-26
2
1,515 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
2 Comments
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 20 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now