Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all 2881 articles
Browse latest View live

PowerBuilder (mis)Management Read this


Datawindow Group Trailer

$
0
0

Is it possible to vary the height of a datawindow's group trailer? Something probably like setdetailheight. Thank you.

PowerBuilder 12.5.2 app crashing often

$
0
0

Hi,

 

We recently updated our software from PB 8 to PB 12.5.2 Build 5550. Our client's are now beginning to have issues with our software crashing to desktop (a few times a day per user) and the Windows error reporting message displays. The issue seems random (it happens throughout the program at no discernible point or task).

 

I've tried to read around on the web and it sounds like 12.5.2 isn't very stable...

 

Does anyone else have any experience with this type of problem? At this point, I'm not sure what we can do about it?

 

Thanks,

Dan

Need to call a web service from PowerBuilder Classic 12.5

$
0
0

I have created a web service that is running on an IIS server. 

I need to be able to call this web service from PowerBuilder Classic 12.5.
This web service is used to store and retrieve PDF files from an imaging system.

 

I was able to create a Web Service Proxy in PB Classic using New -> Project -> Web Service Proxy and call the proxy using a SoapConnection.

    

Long ll_image_id, ll_StatusCode

ws_UploadImageResult l_uploadimageresult

SoapConnection conn

ws_service1 proxy_obj

Long ll_return

 

conn = create SoapConnection

 

ll_return = conn.CreateInstance(proxy_obj, "ws_service1")

 

try

  l_uploadimageresult = proxy_obj.SaveImage(ab_image_bytes)

  ll_StatusCode = l_uploadimageresult.StatusCode

  ll_image_id = l_uploadimageresult.DocHandle

catch (SoapException e)

  messagebox("Error calling Web Service", e.Text)

end try

 

This works unless my PDF is over 16K in size (almost all the PDFs are too big).

 

I then created a proxy object in PowerBuilder .NET using New -> Project -> WCF Client Proxy.
This created the chartswebproxy_ChartsWebServiceClient object. 

When I build the proxy project I get the chartswebproxy.dll and the chartswebproxy.dll.config files.

 

How do I get from creating the proxy object DLL to calling it from PowerBuilder Classic?

 

This is what I have tried:

 

I created a New -> Target -> .NET Assembly to reference the proxy object. 

I can see the chartswebproxy_ChartsWebServiceClient object in the Objects -> Custom class objects list. 

I have checked the three functions in the proxy and the wcfConnectionObject. 

I checked the Project -> Sign -> Sign the assembly checkbox but when I click the New button the SNK file is not created.

 

I know I need the SNK file to do the ildsam and ilasm calls.

Filestream with Powerbuilder

$
0
0

I would like to start saving files to sql server 2008 from powerbuilder.....is there anyone who could give me some code snippets of using filestream within PB?

 

Thanks

Setting the SessionID and EndPoint for SForceService in PB 12.5

$
0
0

Hi All,

 

I have created a proxy to SalesForce and am able to get back results on the login.

 

The problem I am having is re-setting the endpoint and session id on the proxy to continue to do further work.

 

I created a log file and the error is Destination URL not reset. The URL returned from login must be set in the SforceService.

 

Can anyone give me any advice. Using Powerbuilder 12.5.2 build 5550

 

Regards,

Stuart

Dropdown value should change as per another dropdown pb7

$
0
0

Friends,

 

PB 7

I am new to powerbuilder.

 

I have a dropdownlist box and dropdown data window in the same datawindow.

dropdowndatawindow is having grade i.e,, A,B,C,D and the dropdownlist box is holding Pass,Fail

when the user selects A or B then the dropdownlist should show pass

and when  the user select C or D then the dropdownlist should show Fail.

 

How can i achieve this?

 

thanks

Handling Connection Time Out

$
0
0

When Connecting to SQL Anywhere via ODBC a client application can get disconnected from the server either by the LiveNess Timeout (where a regular check run by the connection determined that communication has dropped) or by the Idle Timeout where a certain amount of time has passed with no activity between the client and the server.  As I understand it, parameters which control the default Idle or Liveness test periods can be configured with Server Parameters -ti (idle) and -tl (liveness).  These can also be overridden by the ODBC Client connection parameters.

 

One could try to ensure that disconnection doesn't always happen on idle or liveness timeout - not always a best practice

 

The question is how to best determine if an idle application has lost its connection so the user does not try to run a SQL or Datawindow Query and have the application error.

 

Some years ago I saw samples where a SQL query was run on an idle timer - then checking the DB Return Code and then use Disconnect and Connect to reestablish the connection. 

 

Is this still the best practice or have their been enhancements in the PB environment (like connection error events) that can simplify this handling.

 

Can anyone post some good sample code?

 

Thanks


XP PB11.5 Memory Allocation

$
0
0

We've just come across an issue where a string is hitting an upper limit and causing a GPF.

 

According to the Docs...

 

string

A standard datatype that is characters enclosed in single (') or double (") quotation marks, including a string of 0 length (the empty string ""). The maximum number of characters in a string is 2,147,483,647.

 

I tried this simple bit of code..

 

String a, b, c

a = Fill("x", 90000000)            // 90 million

b = Fill("y", 20000000)            // 20 million

c = a + b

 

When it reaches the concatenation line, the application faults.   obviously 110MB is quite a bit less than 2GB

 

There is about 1.3GB of free memory, so it's not that.

 

PB 11.5 build 2506

Windows XP & 7

 

Thanks

Adrian

Byte[] to PDF

$
0
0

Hello everyone!

 

I'm receiving a PDF-document in byte[] format which I would like to show to my users.

What are my options here in PB Classic 12.5?

 

I've been looking at the Adobe Acrobat OLE object which seems to furfill my needs. I would prefer this operation to be done without having to write to disk, meaning that I can show the PDF directly from the byte array. Is this possible?

 

Also a code example thats shows use of the OLE would be highly appreciated

Accessing Nested DW (Not Composite)

$
0
0

I'm having issues trying to access a nested DW.  Can't use getChild() because I believe that only works for composite DWs. 

 

Have the main 'dw_1' and then within that a nested 'd_add'.  I tried creating a datastore and using the following code (and other variations that I got from Internet search) to get it to work but no luck - 'Error accessing external object property' in the code in the 'For Loop'

 

lds_temp = Create datastore
lds_temp.dataobject = 'address'
lds_temp.SetTransObject(SQLCA)
lds_temp.Retrieve()

 

dw_1.SetTransObject(SQLCA)

 

ll_rowcount = dw_1.retrieve()

 

FOR  ll_i = 1 to ll_rowcount

dw_1.object.d_add[ll_i].object.data.primary.current = lds_temp.object.data.primary.current
Next

 

Any suggestions would be greatly appreciated!!!!!

 

Thanks,

Dave

EAServer 6.3.1 compatible with JDK 1.7[EBF 20852 6.3.1 ESD #6 Support jdk1.7]?

$
0
0

Hi,

 

We have a client-server application migrated to PB 12.5.2 & EAServer 6.3.1. As of now the application works fine on JDK 1.5(installed with EAServer 6.3.1). To run the configured server on JDK 1.7 we applied the EBF 20852 6.3.1 ESD #6 Support jdk1.7, but after deployment of the server components when we try to run the client the application runs fine for few minutes and then the service and the server stops automatically which finally stops the server. It creates a "hs_err_pid.log" file that contains the details of the JVM error\issue. It also creates another log file

hs_err_pid3336.mdmp which is more then 300 MB. I had to restart the service manually to start the server again and hence the same thing happens again.

 

I am not sure whether 1.7 JDK is tested\compatible with the products that we are using as of now, but this EBF has been realeased by SAP for the fix of EAServer6 to be used with JDK 1.7.

 

Let me know if any one has applied this EBF and faced such issue, or for any input that could help me to resolve my problem and I could run the server on JDK 1.7.

 

Note : For Reference I am attaching the hs_err_pid.log file and the server log file(iiopsrv.log).

 

Info About the Product & Build:
Sybase Enterprise Application Server 6.3.1.07 [nt386] Build
(63107.19926)Developer Edition.
PowerBuilder 12.5.2 Build 5006
Easerver installed on Windows Server 2008 6.1 (x86)

 

Thanks,

Kunal

cumulativesum in nested-DW in 12.5.2.5583

$
0
0

Hi,

 

have anyone else -except me- the problem, that in the 12.5.2.5583 the cumulativesum function in nestedreports doesn't work anymoore?

In main-DWs it works fine, but not in nesteds.

 

Any solutions?

 

Regards,

 

Christian

powerbuilder connection

$
0
0

i am using PB11.5 build 3050

my question is about datasources for connecting to a database. I have been told if I put all my information in the connectstring that I don't need to define a datasource. It seems with powerbuilder I need my datasource.

 

Currently this is what I have to connect:

I have a datasource set up named MAXTEST

[Profile MAXTEST]

DBMS=ODBC

Database=MAXTEST

UserId=

DatabasePassword=

LogId=

LogPassword=

ServerName=

DBParm=ConnectString='DSN=MAXTEST;UID=user;PWD=pwd'

Lock=

Prompt=FALSE

AutoCommit=FALSE

 

 

I have tried this using this:

*NO datasource named MAXTEST_CAROL

[Profile MAXTEST_CAROL]

DBMS=

Database=

UserId=

DatabasePassword=

LogId=

LogPassword=

ServerName=

DBParm="ConnectString='ODBC;Driver={SQL Server};ServerName=CS-SQL-04;Database=MAXTEST;UID=user;PWD=pwd"

Lock=

Prompt=FALSE

AutoCommit=FALSE

 

when I use this i get a dialog box to choose my datasource.

 

Is it powerbuilder that requires the datasource or am I doing something incorrect?

hopefully this is enough information to help me or point me in the right direction.

 

Thanks.

 

CarolD

Powerbuilder Appeon and Graphs

$
0
0

The existing graphic and charting capability in Powerbuilder is a bit weak compared to other products on the market today. Does anyone know of a decent third party graph/charting tool (that is not over the top expensive) that is compatible with PB and Appeon for PB too?


Printing of a DataWindow getting cut off

$
0
0

I am using PB 12.5.1, build 4595 and a DB2 backend database.

I am trying to print a Standard DataWindow with two fields that could contain up to 30000 characters.  I have Checked the Detail Band Autosize Height along with each field having the Autosize Height.  There is a 4 line Header and a one line Footer along with a four line Summary line.  At each of the page breaks the last night only shows the top half and the top of the next page the lower half of the line is shown.  We have had this issue with composite DataWindow, but never Standard DataWindows.

Any suggestions?
Thank you

Performance Monitoring User Experience for PowerBuilder?

$
0
0

All -

  I am looking at options for how we can monitor user experience in PowerBuilder. For example, how long does it take for a window to load, how long to save to the database, how long to make a web service call.

  We want to save the metrics in a database and also alert us if performance hits a threshold. I understand the metrics monitoring may be a different tool, but we need to be proactive when users start experiencing issues.

  I'm not looking for the profiler, that's great for development, but not a compiled app our user base runs. At least not what I understand the profiler to work.

  For example, I don't want my users to call me to tell me that loading document images from a server is taking minutes to load (instead of < 10 seconds), I want to receive an alert so I can start digging in to the issue and hopefully have it resolved before my users even call or open a trouble ticket.

  I have read some folks have written their own service that builds a log file and saves it out when users exit the app, etc. I need more real time metrics.

  So what are others doing? Are you using a separate tool that monitors windows API calls for PowerBuilder?

  Any help would be greatly appreciated.

Chad

PRP files and PBNative source control

$
0
0

We're using PBNative source control with PB 12.1.  I'm teaching myself about .PRP files and see in a document on infocenter.sybase.com that "PRP files are created on the server, not in the local path."  Yet in my local directory all the object files for my app have the .PRP extension.  What am I doing wrong?  In the source control repository on our network, each object seems to have a pair of files, one with and one without the .PRP. 

PB 11.5, Win7 64 - Language changes when text focus changes

$
0
0

Hi,

 

I came across a situation I have never encounter before.

 

One of our clients is facing the following issue:

 

Their PC are running Windows 7 64 bit and have two language EN (English) Greek (EL)

 

Whenever the user goes from one textbox to another, it reverts the language in the default one!

 

So an example...imagine a logon screen...the username is in Greek, the user enters it, and when the user goes to the password tab the language reverts to English.

 

This is very frustrating for the user. I have not see something like that in any of our 100+ installations (build with PB 11.5). The problem is that I cannot prove it is a Windows issue because I did the same with the logon screen of SQL Management Studio and the language was retained...

 

Any clues?

 

Thanx

scan documents in pb claasic

$
0
0

Hellow everyone ,

 

Does anyone can help or know how do i scan a documents within powerbudiler (11.5 and 12.5 versions).

i mean like that :

1. the user puts the documents in the scanner.

2. the user clicks the button in my applications.

3. my applications starts scanning the documents and save it automatically into a knowen path .

 

is it possible ? is it going to be another code for each scanner ?

 

thanks

 

Moshe

Viewing all 2881 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>