Solved

PB Datawindow

Posted on 2004-04-26
2
1,563 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

726 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