[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1598
  • Last Modified:

PB Datawindow


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
mayuri25
Asked:
mayuri25
1 Solution
 
namasi_navaretnamCommented:
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
 
mit_ashuCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now