Quantcast
Channel: SCN : Popular Discussions - SAP PowerBuilder
Viewing all 2135 articles
Browse latest View live

Can not change TabBackcolor on Tabpage

$
0
0

Hello,

I have a problem setting the tabbackcolor property of a tabpage.

 

Here is the code I am using in the selectionchanged event:

 

ll_tabcount = upperbound(this.control)

 

if oldindex > 0 and oldindex <= ll_tabcount then

  this.control[oldindex].tabbackcolor = RGB(163,202,240)

end if

 

if newindex > 0 and newindex <= ll_tabcount then

  this.control[newindex].tabbackcolor = RGB(100,165,230)

end if

 

I also tried to use a button to set the tabbackcolor of the selected tabpage.

But it makes no difference.

Setting the color via painter also doesn't work.

 

I migrated a project from Powerbuilder 10.5.1 to Powerbuilder 12.6 Build 4058.

Setting the tabbackcolor in Powerbuilder 10.5.1 works like a charm.

 

Any help or workaround would be nice.

 

Thanks in advance.

 

 

Please don't tell me to switch Windows Classic Design. There is no Classic Design in Windows 8 and 10.

 

AND this is definitly not expected behaviour, it's a BUG !!!

 

Message was edited by: Ronny Schwierzinski


WCF Client Proxy generate error

$
0
0

Hi, new to Powerbuilder .net using 12.5.2 build 5609.  Creating a WCF Client Proxy to connect to Web Service as I need to pass soap header security.  When I generate the proxy I keep getting the error "Object reference not set to an instance of an object".  I have tried generating another WCF Client Proxy using an amazon example and generates without any errors.  Searching the web for days on end hasn't helped me.  Hopeing someone can shed some light as where to look.

Powerbuilder 12.6 slow behaviour

$
0
0

A friend need some help with this issue.

We deployed our application on Windows Server 2012 SMB File Server.

The application is deployed to a UNC shared directory. The clients access this directory from Windows 7 32-bit stations and the run the application locally. PB Runtime 12.6 has been installed locally on these client stations.

 

After the deployment we run a pilot to test various aspects of the application, especially it’s performance. During the pilot we have found that compared to our old PB 11.5 based version, the visual performance of our PB 12.6 application was seriously impaired. The menus blink, the windows open slowly… As a result the clients complained that the new version is just unusable.

 

We estimated that the problem is probably connected to the PB 12.6 inherent feature of lack of persistent memory caching of pbd files.

Such lack of caching seems causes sequential excessive loading and unloading of these files on each and every user interaction.

 

We then tried to improve the performance by defining "Caching" option in "Advanced Sharing" dialog of Windows Sharing. Specifically we tried to check the option "All files and programs that users open from the shared folder are automatically available offline" + "Optimize for performance".

Such option should cause all our application related files to be downloaded from the application server and cached locally on the client computer “behind the scenes”.

 

The visual performance of the application in this case indeed was drastically improved, but not immediately.

It took some 3-5 minutes after starting the application until we could feel that the performance was indeed smooth as in the 11.5 version.

 

We turned to Microsoft for an advise if such “cached” application server configuration is feasible.

In turn, Microsoft representatives requested the manufacturer (SAP) recommended operational and configuration instructions for such deployment configuration. After receiving such document they will be ready to assist us further in this matter.

 

I will be glad if you can provide, as requested by Microsoft, such instructions for the proposed application server configuration (Windows 2012 SMB server with file caching), or provide us with any alternative solution for the problem I described.

Chris Pollack - I cannot reply to anything

$
0
0

Jeff Duke here from 'Problem with SetFullState and Datastore residing in NVO objects in PB 11.2' issue -

I tried to reply to your post, my original post, direct communications and I keep getting error on page and cannot get in.

Sent an email reply to the noreply - just in case, but....

Not sure if it's settings on our proxy or something on your side as it only seems to affect replies - I can still create discussions....

 

the info you requested is below - if you can add it to the discussion for me that's great.

I am heading out in a few min and will not be able to respond again until Monday.

Have a great weekend.

VR,

jeff

 

 

Hi Chris,

Answers as follows:

1) Version of MS-Windows you are using? – Win 7

2) Build of PB you are using?  Build 8669

3) Did this problem just start happening? Yes and no – I recently found the issue with the ‘out of sync’ between the DS and DW when paging backwards and added the setfullstate to ensure the DS had the correct data for the update.  Since doing this I have not been able to do a retrieve and see data after an update without shutting down the app and restarting it.  It is acting like it dropped the handle to the NVO or it destroyed the DS, but ???

4) Any recent changes to your application's DWO's? – see #3

5) Could this be a problem of duplicate DWO's from a temporary PBL in the library path? – no, we do sometimes us a ‘test’ pbl to try new things before saving them in source control, but there is currently nothing in that PBL – the app has separate PBL’s for the different object groups and each has its own distinct set of objects.  The hierarchy is maintained to facilitate the inheritance.

6) Any other relevant information around this issue? Our app is an MDI environment using 1 main window with multiple user objects on it that can also have multiple user objects on them.  Everything worked (except they were out of sync when paging backwards) before I did the setfullstate from the DW back to the DS.  Normally, the DS shares data with the DW so to do the update I am using the DW to update the DS, which is backwards.  I set up the paging this way initially because the retrieves can be prohibitively long as you get higher in the page numbers.  The screen scraper has to retrieve each page by starting at page 1 and then paging forward in the mainframe to get to the correct page – the higher the page number longer the time to get the data.

Problem with SetFullState and Datastore residing in NVO objects in PB 11.2

$
0
0

Our program consists of a Main window holding all of our NVO objects for retrieving/updating data.  References to the NVO's are passed to the userobjects located on the window.  The NVO has 2 datastores - for static and non-static data - we exclusivley use external datawindows due to a screen scraper we use to access our mainframe.

 

The issue comes in for a special set of objects.

We have 1 set of objects that we can only retrieve/update 1 screen at a time.  The entire window is layed out as 1 row where each row/column is an individual cell so that I can 'describe' the properties to show which cells are actually editable.

The data is retrieved and stored in the datastores in the NVO and shared with the datawindow in the UserObject for display and interaction.

 

The user can page forward and backward through the screens and I set up a paging system such that I use getfullstate for each 'page' and store the blob so that we do not have to re-retrieve any page we already looked at for an account.  If they page backward (or forward to an already retrieved page I use setfullstate to show the correct data.)

 

The paging using this can cause the datastore and datawindow to be out of sync, but the end user is unaware because they only see the datawindow.

the problem comes in when they do an update.  I use the setfullstate on the datastore from the datawindow to ensure the correct data is updated, which works fine, but when I then try to retrieve and show the data after that step - the DS appears to have no data even though I verified the retrieve is returning data.

 

I have tried reestablishing the sharedata as setfullstate can destroy it, but it still doesn't show anything.  I tried passing in the NVO again to no avail.

 

It looks like the DS in the NVO is not receiving any data after I do a setfullstate - has anyone ever seen this before or am I missing somethng?  I haven't been able to find anything browsing the forums or googling.  Any help is appreciated.

 

VR,

jeff

DW / DropDownListBox Bug (PB 12.6/Builder 4088)

$
0
0

PB 12.6 Build 4088

 

Hi All,

 

I think I have a bug, but do not know if it is addressed, or known, or I am crazy!

 

Bug: I am trying to apply a simple Edit/Style/DropDownListBox to a string column in a Datawindow.

        It will not work for me.

        No, the column is not protected when I expect the DropDownListBox to work.

 

I have successfully migrated PB 11.5 apps over whose dropdowns are working in 12.6.

Yet starting a new DropDownListBox seems futile.

I've closely compared the working column from a different dw to my new column.. they are identical except for values.

 

Is anyone else having this issue? Is it me?

Is there a list somewhere to see if it is known?

Is it fixed in a later release and I do not know about it?

You get the idea.. I need to be informed and act!

 

Jason Lipman

Stupid question: ObjectCycle 2.0 availability?

$
0
0

Hi all,

 

New member here. I am reaching out to the community because our organization needs to upgrade to Win7 and we have a legacy app built on PowerBuilder 8 that uses ObjectCycle 2.0.01. Of course we lost the OC install disc. Anyway, we thought it was a part of PB8 but doesn't appear to be so (was it available with PB6?). At one point there was a download from Sybase for ObjectCycle 2.0.04 but understandably this is no longer available. Is there some site that has ObjectCycle 2.0 available for d/l?

 

Desperate,

Chris

How to restore object

$
0
0

Hi All,

 

During a full rebuild it seems that all objects were removed from my development.pbl!?

However I have a powerbuilder backup file.

How could I import/restore that to my development.pbl?

 

 

Thanks in advance,

Patrick Posthuma


Column 2 has an invalid name and/or length

$
0
0

Hello,

I got this message when trying to add retrievel argument to dw.

Windows 7 64 bit,

Pb 12.5.2 build 5006,

Any suggestions?

Thank you,

Eyal

Powerbuilder Window/Datawindow Field Display Problem

$
0
0

I am using Powerbuilder 10.5. I have a window has a field (field 1) which contains a datawindow (dw_2) which contains a field (field 2) which has a style type of DropDownDW. The field is supposed to retrieve values from a stored procedure which is linked to field 2. When adding a record on the window, the values should be available for selection when clicking on field 1; the retrieval works - clicking on the field opens the drop down datawindow and the values are there. However, field 1 is supposed to display the contents of the display column for field 2 when retrieving an existing record on the window, and it does not do that. The data is in the database, but does not appear.

 

This is the code I have in the constructor for dw_2:

 

this.triggerevent("ue_retrieve")

 

This is the code I have in the ue_retrieve for dw_2:

 

DataWindowChild dwc

Integer li_prgrm_id, rtncode

long ll_count

this.GetChild('code_description', dwc)

dwc.SetTransObject(SQLCA)

dwc.Retrieve(Application.uf_Get_Preferred_Language(), 663)

 

This is the code I have in a user function to set items. The third setitem is what I’m trying to accomplish:

 

dw_appdate.setitem(1, "ba_aplctn_dte", date(ps_ba_aplctn_dte)) (works)

dw_comments.setitem(1, "ba_cmnt_txt", ps_comments) (works)

dw_2.setitem(1,"cde_vl_sqn", ii_claim_src_typ_cde) (does not work; ii_claim_src_typ_cde has a value)

 

I have screenshots to give you and idea of what is happening. I am unable to attach the screenshot file to this post, but if I can be provided with an email address, I can send the screenshot file directly. My email is jiml.macdonald@vac-acc.gc.ca. Any help appreciated.

Thanks

James MacDonald

Powerbuilder on Linux

$
0
0

we are  using powerbuilder 12.5 on windows. Is there a linux version for power builder?.

Powerbuilder 11.5 and Windows 10

$
0
0

Has anyone got Powerbuilder 11.5 running on Windows 10? For me, the initial splash shows but PB does not start up.

Library Mangar: Fatal disk error

$
0
0

Good morning,

I get this error at runtime when I try to open a window. The message is "Fatal disk error. Retry?". I have to cancel 2 or 3 times this error message and the window opens on the end. Inside Power Bulder 11 everithing goes well.

 

I would like to know I can i get more informations about this error message because I don't know what problem is referred to.

 

Thanks,

 

Marco

TimeOut when calling wcf from powerbuilder 12.5

$
0
0

Hello,

we created a webservice and installed on iis.

when we call the ws from winform it reply correctly,

when we  call the ws from PB we got timeout.

what could be the problem ?

where sholud i look for the problem ?

thank you,

Eyal

Download Powerbuilder 11.0

$
0
0

I have inherited a project that was developed and certified only in powerbuilder 11.2.  I generated a license for this version 11.0 and was told that I should be able to download this version and apply the updates to get us to 11.2.  I cannot find a download or updates for version 11.0 and updates to version 11.2.  I checked the maintenance.sybase.com site but it is down right now.  Does anyone have any idea where I can get this version and updates?


Thanks.

 

John

 

If you can, please respond to john.wright@crengland.com as the account for this company login goes to another person.


Datawindow .net - End Of Life Notice

$
0
0

Hi Community,

 

I want to know if there is a migration path for .net developers using Datawindow .net in their applications?

Is there some third party products in order to migrate the Datawindow .net functionality ?

 

Or after the "End Of Life Notice" all companies must migrate manually to another architecture, it is the only option?

 

Thanks in advance for your help.

 

Best Regards,

 

Douglas

How to include a 2D Barcode in Powerbuilder 11.1 ?

$
0
0

Hi All,

 

Our labeling application is in PB11 and we are unable to include the 2D barcode in PB 11.

 

When i searched in google ,it seems like we need to consume the .NET third party dll and runtime dynamically set the font from the third party.

 

Is there any native way we can use 2D barcode font in PB ? is there any free font available ?

 

If the .net dll  is  COM visible and shall we call this from PB11.1 using OLE ? is it supported.? if not how to use this.pls help

 

Any suggestions would be helpful .Thanks

 

 

Regards,

Krish

PB12.5 - Oracle 11g conenction issue - Failed to get local NLS_LANG charset ID

$
0
0

Hi Everyone,

 

We have recently migrated our OS to windows 7 and orcle client to 11g since then I am getting error "Failed to get local NLS_LANG charset ID" while connecting to Oracle using the IDE. I tried to connect using O10 Oracle 10g and ORA Oracle interface as I dont see anything for 11g; result was same in both cases. Can someone please help to resolve this issue?

 

Following are the system details

OS - Windows 7 62 Bit

PB - 12.5 Build 2511

Oracle Client - 11g 32 bit

 

Thanks,

Robin

PowerBuilder Network Printer

$
0
0

I need to print to a printer on the network. I added the printer (COWORKERDSKTP) to my printers on my PC - it is not set as the default.

I went to notepad and was able to print a sample to this printer.

Sample Code:

String ls_printer

ls_printer = 'HP LaserJet 1022 on COWORKERDSKTP'

ls_ret = dw_print.modify(datawindow.print.printername = "' + ls_printer +"'")

//ls_ret returns "" appears OK

ls_ret = dw_print.describe("datawindow.printer.printername")

//ls_ret returns "!"

If I add this here:

ls_ret = dw_print.Describe("Datawindow.Printer")

//ls_ret = EPSON WF-2650 - this is my locally connected default printer

dw_print() will print to the EPSON

 

I just can't seem to get the syntax to print to the network printer.

Buy SAP SQL Anywhere 17

$
0
0

Hello,

 

Does anyone know where we could buy SAP Sql Anywhere 17 database? In SAP Store I don't have this option. We are from Slovenia.

 

Thanks

 

Tomaz

Viewing all 2135 articles
Browse latest View live