Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2016 at 04:02 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.