cancel
Showing results for 
Search instead for 
Did you mean: 

i use a string view = dw_1.datawindow.object.syntax to transfert in dw_2

Former Member
0 Kudos

hi' chris

1. view_dwsyntax = dw_1.datawindow.object.syntax.

2. in my new table which content a field  field_syntax as long varchar

3 i update the string view_dwsyntax into the field field_syntax

in an another window

4. i do select from table  and get the field_syntax

     and i do dw_2.create(field_syntax,ls_comments)

the problem that i get an error of in the ls_comments.

all my regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yehuda;

  I am still not sure what you are actually trying to accomplish but, I will state that the first PowerScript statement you refer to will give you the DataWindow Object's Source Code as it would be saved in your PB Library (aka PBL).

  Now what you are trying to do with the object's source code vs load the DW object & use it is my question? Normally, one would use the Modify ("Create xxxxx") syntax to add a column to a DW object at run time. The other way is to get the SQL from the 1st DW object and then use the SyntaxFromSQL ( ) method to build the 2nd DW object but add or subtract a column reference or even change the source Table in the SQL before building the 2nd DW.

So I think you'll need to give us more about what you are trying to accomplish in order to answer your question properly.

Regards ... Chris