Hello:

I have a similar case, maybe you can help me.
Do you know if there is a way to copy a DW (or DWO) and change only the
presentation Style 
(say from Tabular to FreeForm and Viceversa) ?

TIA,

William.

-----Original Message-----
From: Daniel Coppersmith [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 17, 1999 8:29 AM
To: Dario Schmidt
Cc: PFCSIG
Subject: Re: PFCSIG LibraryImport


I'm not sure I understand your question, but if you are trying to
dynamically create a datawindow at run time, you will want to look at
the
dw.CREATE function (and also dw.SYNTAXFROMSQL).

If you want to create a datawindow that is an exact copy of another,
what
you can do is this:

    ls_syntax = dw_1.describe("Datawindow.Syntax")
    dw_1.create(ls_syntax)

(I did that from memory, so I might have take some liberty in the
syntax,
but it's close).

If all you want to do is change the SQL, you can do this:

    // Error checking omitted
    ls_newSQL = 'select a from b where c = d'
    dw_2.dataobject = dw_1.dataobject
    dw_2.modify("Datawindow.Table.Select='" + ls_newSQL + "'")
    dw_2.setTransObject(SQLCA)

Note you will need to do some work creating the SQL since you will need
to
delimite ticks and whatnot, but the string service will help with that.

In my experience, the LibraryImport feature really isn't used too much
for
final applications -- I use it mostly for writing development tools....

D



----- Original Message -----
From: Dario Schmidt <[EMAIL PROTECTED]>
To: Lista PB <[EMAIL PROTECTED]>
Cc: Lista PFC <[EMAIL PROTECTED]>
Sent: Monday, May 17, 1999 8:24 AM
Subject: PFCSIG LibraryImport


> Hi,
>
> I am using PB 6.5 and PFC.
>
> I have problems with LibraryImport.
>
> I have a window with a button. In the button4s script I create a dw
using
> the syntax of another dw and modify your sql select.  The first time i
press
> the button all run ok, but the second time the function libraryimport
> return -1 without message error.
>
> Any ideas ?
>
> TIA
>
> Ing. Dario Schmidt
> Ceride - Argentina
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
COMMANDS,
ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help
pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
>

> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help
pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to