Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find a column in database

Status
Not open for further replies.

santosh2natal

Programmer
Aug 10, 2003
37
0
0
IN
How can I find a column which is included in a datawindow definition while desiging it but not existing in the database?
 
Retrieve the datawindow. You should get "Invalid colum name: <column name> " in the sqlerrtext property of ur transaction object.
 
use the script like :
string ls_dbname
boolean lb_notdbcolumn=flase

ls_dbname=<DW Control Name>.Describe("<Columnname>.dbName")
or
ls_dbname=<DW Control Name>.Object.<Columnname>.dbName
IF ls_dbname = "" OR ls_dbname = "!" THEN
lb_notdbcolumn=true
// the column is not a db column
else
lb_notdbcolumn=false
// the column is a db column

end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top