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.

PBR - ressources and PSR dataobjects

6 posts in DataWindow Last posting was on 2008-06-06 19:44:26.0Z
Chris Werner Posted on 2008-06-04 15:59:04.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: PBR - ressources and PSR dataobjects
Lines: 33
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.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4846bbc8$1@forums-1-dub>
Date: 4 Jun 2008 08:59:04 -0700
X-Trace: forums-1-dub 1212595144 10.22.241.152 (4 Jun 2008 08:59:04 -0700)
X-Original-Trace: 4 Jun 2008 08:59:04 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87067
Article PK: 416324

Hi,

PB 10.5.2 Build 7611

I have a datawindow control which uses a PSR dataobject from
the disk:

dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"

Inside the PSR file there is a picture button having an absolute path
as picture file name:

p_1.filename="t:\pb105\res\search_modal.bmp"

The file t:\pb105\res\search_modal.bmp is exactly listed in the
EXE's PBR file for the project which is used to deploy the
application.

The bitmap search_modal.bmp is shown when I start the
application from the IDE but isn't shown in a deployed application
which has no access to the bitmap through the directory
t:\pb105\res. BTW and expectable it is shown in a compiled
application which has access to the bitmap through the
directory.

Do I something wrong, is that expected behaviour or is it a bug?

TIA

Chris Werner
f+s software gmbh


M Searer Posted on 2008-06-04 18:26:22.0Z
From: "M Searer" <nospam@nospam>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4846bbc8$1@forums-1-dub>
In-Reply-To: <4846bbc8$1@forums-1-dub>
Subject: Re: PBR - ressources and PSR dataobjects
Lines: 42
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4846de4e$1@forums-1-dub>
Date: 4 Jun 2008 11:26:22 -0700
X-Trace: forums-1-dub 1212603982 10.22.241.152 (4 Jun 2008 11:26:22 -0700)
X-Original-Trace: 4 Jun 2008 11:26:22 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87070
Article PK: 416325

Since you provided a path, it will attempt to load it using the path. Get
rid of the path (use just the filename), and it will pull from the .exe or
.pbd (whichever your pbr was associated with).

"Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote in message
news:4846bbc8$1@forums-1-dub...
> Hi,
>
> PB 10.5.2 Build 7611
>
> I have a datawindow control which uses a PSR dataobject from
> the disk:
>
> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>
> Inside the PSR file there is a picture button having an absolute path
> as picture file name:
>
> p_1.filename="t:\pb105\res\search_modal.bmp"
>
> The file t:\pb105\res\search_modal.bmp is exactly listed in the
> EXE's PBR file for the project which is used to deploy the
> application.
>
> The bitmap search_modal.bmp is shown when I start the
> application from the IDE but isn't shown in a deployed application
> which has no access to the bitmap through the directory
> t:\pb105\res. BTW and expectable it is shown in a compiled
> application which has access to the bitmap through the
> directory.
>
> Do I something wrong, is that expected behaviour or is it a bug?
>
> TIA
>
> Chris Werner
> f+s software gmbh
>


Chris Werner Posted on 2008-06-05 07:19:19.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4846bbc8$1@forums-1-dub> <4846de4e$1@forums-1-dub>
Subject: Re: PBR - ressources and PSR dataobjects
Lines: 89
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.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48479377$1@forums-1-dub>
Date: 5 Jun 2008 00:19:19 -0700
X-Trace: forums-1-dub 1212650359 10.22.241.152 (5 Jun 2008 00:19:19 -0700)
X-Original-Trace: 5 Jun 2008 00:19:19 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87081
Article PK: 416338

Hi,

thanks for your answer but I think you are wrong here. We use
absolute pathes for years without any problem. The ressources
are loaded from the EXE provided the path matches with the path
in the ressource file.

So a picture button defined in a dw to show the file

t:\pb105\res\search_modal.bmp

together with this line in the ressorce file

t:\pb105\res\search_modal.bmp

ensures the compiled application to load the bitmap from the EXE
(or PBD) if the bitmap is available at build time. Otherwise the build
process will raise an adequate warning.

The problem is that this seems to fail if the dataobject of the
datawindow control is a PSR file. Meanwhile I have a workaround:
Instead of a simple assignment:

dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"

I use create in the following way:

string ls_s
datastore lds_t
lds_t = create datastore
lds_t.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
ls_s = lda_t.object.datawindow.syntax
dw_1.create(ls_s)
destroy lds_t

and behold, the bitmaps are shown again.

Best regards

Chris Werner
f+s software gmbh


"M Searer" <nospam@nospam> schrieb im Newsbeitrag
news:4846de4e$1@forums-1-dub...

> Since you provided a path, it will attempt to load it using the path. Get
> rid of the path (use just the filename), and it will pull from the .exe or
> .pbd (whichever your pbr was associated with).
>
>
>
>
> "Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote in message
> news:4846bbc8$1@forums-1-dub...
>> Hi,
>>
>> PB 10.5.2 Build 7611
>>
>> I have a datawindow control which uses a PSR dataobject from
>> the disk:
>>
>> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>>
>> Inside the PSR file there is a picture button having an absolute path
>> as picture file name:
>>
>> p_1.filename="t:\pb105\res\search_modal.bmp"
>>
>> The file t:\pb105\res\search_modal.bmp is exactly listed in the
>> EXE's PBR file for the project which is used to deploy the
>> application.
>>
>> The bitmap search_modal.bmp is shown when I start the
>> application from the IDE but isn't shown in a deployed application
>> which has no access to the bitmap through the directory
>> t:\pb105\res. BTW and expectable it is shown in a compiled
>> application which has access to the bitmap through the
>> directory.
>>
>> Do I something wrong, is that expected behaviour or is it a bug?
>>
>> TIA
>>
>> Chris Werner
>> f+s software gmbh
>>
>


M. Searer Posted on 2008-06-06 19:44:26.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4846bbc8$1@forums-1-dub> <4846de4e$1@forums-1-dub> <48479377$1@forums-1-dub>
In-Reply-To: <48479377$1@forums-1-dub>
Subject: Re: PBR - ressources and PSR dataobjects
Lines: 98
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4849939a$1@forums-1-dub>
Date: 6 Jun 2008 12:44:26 -0700
X-Trace: forums-1-dub 1212781466 10.22.241.152 (6 Jun 2008 12:44:26 -0700)
X-Original-Trace: 6 Jun 2008 12:44:26 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87104
Article PK: 416361

"but I think you are wrong here"
nah, I'm definately wrong. Glad you got it resolved.
I would be curious to know if removing paths would 'fix' it too; but not
curious enough to take the time to try and fix.

"Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote in message
news:48479377$1@forums-1-dub...
> Hi,
>
> thanks for your answer but I think you are wrong here. We use
> absolute pathes for years without any problem. The ressources
> are loaded from the EXE provided the path matches with the path
> in the ressource file.
>
> So a picture button defined in a dw to show the file
>
> t:\pb105\res\search_modal.bmp
>
> together with this line in the ressorce file
>
> t:\pb105\res\search_modal.bmp
>
> ensures the compiled application to load the bitmap from the EXE
> (or PBD) if the bitmap is available at build time. Otherwise the build
> process will raise an adequate warning.
>
> The problem is that this seems to fail if the dataobject of the
> datawindow control is a PSR file. Meanwhile I have a workaround:
> Instead of a simple assignment:
>
> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>
> I use create in the following way:
>
> string ls_s
> datastore lds_t
> lds_t = create datastore
> lds_t.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
> ls_s = lda_t.object.datawindow.syntax
> dw_1.create(ls_s)
> destroy lds_t
>
> and behold, the bitmaps are shown again.
>
> Best regards
>
> Chris Werner
> f+s software gmbh
>
>
> "M Searer" <nospam@nospam> schrieb im Newsbeitrag
> news:4846de4e$1@forums-1-dub...
>> Since you provided a path, it will attempt to load it using the path.
>> Get rid of the path (use just the filename), and it will pull from the
>> .exe or .pbd (whichever your pbr was associated with).
>>
>>
>>
>>
>> "Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote in message
>> news:4846bbc8$1@forums-1-dub...
>>> Hi,
>>>
>>> PB 10.5.2 Build 7611
>>>
>>> I have a datawindow control which uses a PSR dataobject from
>>> the disk:
>>>
>>> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>>>
>>> Inside the PSR file there is a picture button having an absolute path
>>> as picture file name:
>>>
>>> p_1.filename="t:\pb105\res\search_modal.bmp"
>>>
>>> The file t:\pb105\res\search_modal.bmp is exactly listed in the
>>> EXE's PBR file for the project which is used to deploy the
>>> application.
>>>
>>> The bitmap search_modal.bmp is shown when I start the
>>> application from the IDE but isn't shown in a deployed application
>>> which has no access to the bitmap through the directory
>>> t:\pb105\res. BTW and expectable it is shown in a compiled
>>> application which has access to the bitmap through the
>>> directory.
>>>
>>> Do I something wrong, is that expected behaviour or is it a bug?
>>>
>>> TIA
>>>
>>> Chris Werner
>>> f+s software gmbh
>>>
>>
>
>


fisher <fisher_NO Posted on 2008-06-04 16:41:33.0Z
From: fisher <fisher_NO@SPAM_wckp.lodz.pl_PLEASE>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: PBR - ressources and PSR dataobjects
References: <4846bbc8$1@forums-1-dub>
In-Reply-To: <4846bbc8$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4846c5bd$1@forums-1-dub>
Date: 4 Jun 2008 09:41:33 -0700
X-Trace: forums-1-dub 1212597693 10.22.241.152 (4 Jun 2008 09:41:33 -0700)
X-Original-Trace: 4 Jun 2008 09:41:33 -0700, vip152.sybase.com
Lines: 38
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87068
Article PK: 416328

Hi Chris,
from my experience paths used in PBR should be the same as those in code.
Regards

Chris Werner pisze:

> Hi,
>
> PB 10.5.2 Build 7611
>
> I have a datawindow control which uses a PSR dataobject from
> the disk:
>
> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>
> Inside the PSR file there is a picture button having an absolute path
> as picture file name:
>
> p_1.filename="t:\pb105\res\search_modal.bmp"
>
> The file t:\pb105\res\search_modal.bmp is exactly listed in the
> EXE's PBR file for the project which is used to deploy the
> application.
>
> The bitmap search_modal.bmp is shown when I start the
> application from the IDE but isn't shown in a deployed application
> which has no access to the bitmap through the directory
> t:\pb105\res. BTW and expectable it is shown in a compiled
> application which has access to the bitmap through the
> directory.
>
> Do I something wrong, is that expected behaviour or is it a bug?
>
> TIA
>
> Chris Werner
> f+s software gmbh
>
>


Chris Werner Posted on 2008-06-05 07:21:09.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4846bbc8$1@forums-1-dub> <4846c5bd$1@forums-1-dub>
Subject: Re: PBR - ressources and PSR dataobjects
Lines: 51
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.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <484793e5$1@forums-1-dub>
Date: 5 Jun 2008 00:21:09 -0700
X-Trace: forums-1-dub 1212650469 10.22.241.152 (5 Jun 2008 00:21:09 -0700)
X-Original-Trace: 5 Jun 2008 00:21:09 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87082
Article PK: 416339

Hi,

thanks. Are you saying that the pathes differ in my explanation
of the problem?

Best regards,

Chris Werner
f+s software gmbh


"fisher" <fisher_NO@SPAM_wckp.lodz.pl_PLEASE> schrieb im Newsbeitrag
news:4846c5bd$1@forums-1-dub...

> Hi Chris,
> from my experience paths used in PBR should be the same as those in code.
> Regards
>
> Chris Werner pisze:
>> Hi,
>>
>> PB 10.5.2 Build 7611
>>
>> I have a datawindow control which uses a PSR dataobject from
>> the disk:
>>
>> dw_1.dataobject = "t:\pb105\xplr\o10g\d_klss_eprm_016374.psr"
>>
>> Inside the PSR file there is a picture button having an absolute path
>> as picture file name:
>>
>> p_1.filename="t:\pb105\res\search_modal.bmp"
>>
>> The file t:\pb105\res\search_modal.bmp is exactly listed in the
>> EXE's PBR file for the project which is used to deploy the
>> application.
>>
>> The bitmap search_modal.bmp is shown when I start the
>> application from the IDE but isn't shown in a deployed application
>> which has no access to the bitmap through the directory
>> t:\pb105\res. BTW and expectable it is shown in a compiled
>> application which has access to the bitmap through the
>> directory.
>>
>> Do I something wrong, is that expected behaviour or is it a bug?
>>
>> TIA
>>
>> Chris Werner
>> f+s software gmbh