on 09-19-2016 4:22 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.