Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

ImportLibrary Functionality

4 posts in Objects Last posting was on 2007-09-07 18:29:09.0Z
Prem Kumar Posted on 2007-09-05 10:47:44.0Z
Sender: 78b8.46de86f7.1804289383@sybase.com
From: Prem Kumar
Newsgroups: sybase.public.powerbuilder.objects
Subject: ImportLibrary Functionality
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46de8950.78e3.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Sep 2007 03:47:44 -0700
X-Trace: forums-1-dub 1188989264 10.22.241.41 (5 Sep 2007 03:47:44 -0700)
X-Original-Trace: 5 Sep 2007 03:47:44 -0700, 10.22.241.41
Lines: 20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9450
Article PK: 736608

Hi All,

I am using ImportLibrary() function to import a Datawidnow
string. IT is working fine when I am running from source,
when I am running from the EXE it is not working.

My Target is, I had given provision in my package that user
can design cheque printing format for every bank. I need to
print this customized datawindow as a footer of another
composite datawindow. I tried to get a child datawindow and
create with this new syntax which is not possible. Bcoz of
that reason, I used ImportLibrary().

Can anyone help me to solve this issue,

Thanks in advance for any help,

Regards,

Prem KumarT


Chris Werner Posted on 2007-09-05 11:34:21.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <46de8950.78e3.1681692777@sybase.com>
Subject: Re: ImportLibrary Functionality
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: 62.8.156.42
X-Original-NNTP-Posting-Host: 62.8.156.42
Message-ID: <46de943d$1@forums-1-dub>
Date: 5 Sep 2007 04:34:21 -0700
X-Trace: forums-1-dub 1188992061 62.8.156.42 (5 Sep 2007 04:34:21 -0700)
X-Original-Trace: 5 Sep 2007 04:34:21 -0700, 62.8.156.42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9451
Article PK: 736609

Hi Prem Kumar,

is the library in which you import the datawindow part of
the applications library path? If so, running from the IDE
it is a PBL, running from an EXE it is a PBD. Have you
considered that?
Additionally the library may be locked at runtime. So you
can't import an object into a PBD not later than it is used
by the application.
So you may check if the library is write locked at first in
the design part of your application. If it is locked inform
the user that he has to restart the application to design
the form. Make sure that there is one special library in
your application holding only the dynamic forms to avoid
locking it unnecessary.

HTH

Chris Werner
f+s software gmbh

<Prem Kumar> schrieb im Newsbeitrag
news:46de8950.78e3.1681692777@sybase.com...

> Hi All,
>
> I am using ImportLibrary() function to import a Datawidnow
> string. IT is working fine when I am running from source,
> when I am running from the EXE it is not working.
>
> My Target is, I had given provision in my package that user
> can design cheque printing format for every bank. I need to
> print this customized datawindow as a footer of another
> composite datawindow. I tried to get a child datawindow and
> create with this new syntax which is not possible. Bcoz of
> that reason, I used ImportLibrary().
>
> Can anyone help me to solve this issue,
>
> Thanks in advance for any help,
>
> Regards,
>
> Prem KumarT


Jeremy Lakeman Posted on 2007-09-06 00:00:00.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: ImportLibrary Functionality
Date: Thu, 06 Sep 2007 00:00:00 -0000
Organization: http://groups.google.com
Lines: 49
Message-ID: <1189036800.627082.55950@d55g2000hsg.googlegroups.com>
References: <46de8950.78e3.1681692777@sybase.com><46de943d$1@forums-1-dub>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1189036800 25924 127.0.0.1 (6 Sep 2007 00:00:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 6 Sep 2007 00:00:00 +0000 (UTC)
In-Reply-To: <46de943d$1@forums-1-dub>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Complaints-To: groups-abuse@google.com
Injection-Info: d55g2000hsg.googlegroups.com; posting-host=203.122.242.105; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9455
Article PK: 736613


On Sep 5, 8:34 pm, "Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote:
> Hi Prem Kumar,
>
> is the library in which you import the datawindow part of
> the applications library path? If so, running from the IDE
> it is a PBL, running from an EXE it is a PBD. Have you
> considered that?
> Additionally the library may be locked at runtime. So you
> can't import an object into a PBD not later than it is used
> by the application.
> So you may check if the library is write locked at first in
> the design part of your application. If it is locked inform
> the user that he has to restart the application to design
> the form. Make sure that there is one special library in
> your application holding only the dynamic forms to avoid
> locking it unnecessary.
>
> HTH
>
> Chris Werner
> f+s software gmbh
>
> <Prem Kumar> schrieb im Newsbeitragnews:46de8950.78e3.1681692777@sybase.com...
>
> > Hi All,
>
> > I am using ImportLibrary() function to import a Datawidnow
> > string. IT is working fine when I am running from source,
> > when I am running from the EXE it is not working.
>
> > My Target is, I had given provision in my package that user
> > can design cheque printing format for every bank. I need to
> > print this customized datawindow as a footer of another
> > composite datawindow. I tried to get a child datawindow and
> > create with this new syntax which is not possible. Bcoz of
> > that reason, I used ImportLibrary().
>
> > Can anyone help me to solve this issue,
>
> > Thanks in advance for any help,
>
> > Regards,
>
> > Prem KumarT

If you find the library is locked (the function fails, but the error
text is blank), just open a window and try again.


M. Searer Posted on 2007-09-07 18:29:09.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <46de8950.78e3.1681692777@sybase.com> <46de943d$1@forums-1-dub>
Subject: Re: ImportLibrary Functionality
Lines: 62
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 205.179.163.34
X-Original-NNTP-Posting-Host: 205.179.163.34
Message-ID: <46e19875@forums-1-dub>
Date: 7 Sep 2007 11:29:09 -0700
X-Trace: forums-1-dub 1189189749 205.179.163.34 (7 Sep 2007 11:29:09 -0700)
X-Original-Trace: 7 Sep 2007 11:29:09 -0700, 205.179.163.34
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9459
Article PK: 736617

You have to add the .pbl to the librarylist at runtime:
yourliblist = GetLibraryList ( )
SetLibraryList( yourliblist + '<yourdwlibrary>.pbl' )

Note that you can have full pathing on the pbl:
\\yourfileserver\directory\yourdwlibrary.pbl


You can also try: AddToLibraryList
But I've encountered problems with addtolibrary list (list not getting set)

"Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote in message
news:46de943d$1@forums-1-dub...
> Hi Prem Kumar,
>
> is the library in which you import the datawindow part of
> the applications library path? If so, running from the IDE
> it is a PBL, running from an EXE it is a PBD. Have you
> considered that?
> Additionally the library may be locked at runtime. So you
> can't import an object into a PBD not later than it is used
> by the application.
> So you may check if the library is write locked at first in
> the design part of your application. If it is locked inform
> the user that he has to restart the application to design
> the form. Make sure that there is one special library in
> your application holding only the dynamic forms to avoid
> locking it unnecessary.
>
> HTH
>
> Chris Werner
> f+s software gmbh
>
> <Prem Kumar> schrieb im Newsbeitrag
> news:46de8950.78e3.1681692777@sybase.com...
>> Hi All,
>>
>> I am using ImportLibrary() function to import a Datawidnow
>> string. IT is working fine when I am running from source,
>> when I am running from the EXE it is not working.
>>
>> My Target is, I had given provision in my package that user
>> can design cheque printing format for every bank. I need to
>> print this customized datawindow as a footer of another
>> composite datawindow. I tried to get a child datawindow and
>> create with this new syntax which is not possible. Bcoz of
>> that reason, I used ImportLibrary().
>>
>> Can anyone help me to solve this issue,
>>
>> Thanks in advance for any help,
>>
>> Regards,
>>
>> Prem KumarT
>
>