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
Solved

PB Datawindow

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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 keystrokes in Netbeans IDE 8.0 for Windows.

808 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