Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all 2935 articles
Browse latest View live

Event handling from third-party non-visual .NET assemblies

$
0
0

With the advent of PB15, we're taking another look at the .NET versions of Powerbuilder. We have one problem which has always been a show-stopper for us. Perhaps now there's more experience with the product, someone knows how to get this working.

 

We have a 3rd party non-visual .NET assembly which generates asynchronous events. In C#, when you create the object, you pass it an event handling routine:

 

   ThirdPtyObject.Session session = new ThirdPtyObject.Session(sessionOptions, new EventHandler(MyEventProcessing));

 

Elsewhere within the code you define the event processing which takes place when this event is triggered:

 

   static public void MyEventProcessing(ThirdPtyObject.Event eventObj, ThirdPtyObject.Session session)

   {

   // ... your event processing code goes here

   }

 

How do you code this up in Powerbuilder .NET? Can anybody point me to some documentation or an example? Or is this like the old non-visual COM objects, which you need to wrap as a visual ActiveX before you can code the events?

 

Many thanks in advance for any assistance.


SAP PowerBuilder Classic 12.5 - Web application (window size)

$
0
0

Hello Folks,

 

I created a simple web application using PowerBuilder Classic 12.5

 

When I run the application, I always notice that the window that I open is maximized and takes up the whole screen despite the width and height of the actual window in design mode.

 

I noticed on configuration table default height and width, but it doesnt have any impact on the browser.

 

Is there a way to control the window size on the browser for a web application?

 

Another question:

Is there a way to get the current logged in windows user-id from within a web-application?

 

Appreciate your inputs...

 

thank you,

Melvin

How to use AutodiscoverURL

$
0
0

anyone use this call...

 

it belongs to the ExchangeService of the Exchange web Services API

It is overloaded... first one has just email address the second version is email address and some sort of redirection call...??)

 

I am trying to figure out how to setup the second part.

In examples of C# they have a function call...I have tried several things but always seem to get error...

 

Anyone know how to define/setup...

 

Thanks.

Dave V.

What's this I see Vishal Sikka is leaving SAP?

Runtime Error - R6016 - Not enough space for thread data

$
0
0

Dear All,

 

 

Please help me for the following problem.

 

 

I am using Ghostscript 9.14 for Windows
(32 bit), iTextSharp & PostScript  to
print datawindow in PDF & digitally sign. It works find. But I am using
this code to bulk generating & sign the PDF in windows 7 machine. During
bulk generation & sign after generating some document system through an error
message and stop generation. But when click the OK button on the error message
system again start generation the pdf & sign and the process will repeat.

 

 

Please help me to solve this issue.

 

 

 

Thanks

Avishek

Install of PB 11 on win 7-64 bit fails

$
0
0

Like everyone else, I'm being forced to upgrade my machine to Win 7.

(because XP has been desupported)

I tried to install PB 11 on the win 7 machine.

It installs infomaker fine... but, when it gets to the end of the Pb install it crashes

I was able to install the PB12 version without any problems.

 

But, we still have some clients that are on the older version of PB.

Any ideas on what could be causing the problem?

 

it simply comes up with a message saying the program has stopped running

and, my only choice is to cancel the install

an appcrash message

 

I saw an old posting in one of the google groups... but, there wasn't much help there

 

Any ideas?

Maximizing App that is minimized

$
0
0

Hello folks,

 

Lets say I have an application called  test.exe

When a user clicks on test.exe , I use CreateMutex to prevent users from opening multiple instances of the application.

 

My question:

If the application is running minimized and if the user clicks on the exe, is there a way to maximize the application that is already running minimized?

 

I've tried getting the handle of the main window and used setforeground  etc.. nothing seems to work.

 

Appreciate your input on this.

thank you

Melvin

Problems with using Powerbuilder 12.0 on Windows 7 64-bit

$
0
0

Hi,

 

Until today, I was developing applications using Powerbuilder 12.0 Build 5530 (Classic ; not .NET) on a Windows XP laptop.

I work within a small team, so I routinely use the 'Source Control' (PB Native) feature.

 

Today, I installed Powerbuilder 12.0 Build 5530 on my new laptop, a Windows 7 64-bit laptop.

 

I have already encountered 2 problems:

1) I have filled the required info for 'Source Control' ; I see the 'Check out'/'Check in' actions in the contextual menu on PB objects but those actions stay disabled.

[see "PB_SourceControl_Problem.png"]

 

2) When I try to open the 'Deploy' object, I get an error message.

[see "PB_Deploy_Problem_1.png" and "PB_Deploy_Problem_2.png"]

 

The other member of the development team uses Powerbuilder 12.0 Build 5530 on a Windows 7 32-bit laptop without any problem.

 

As anyone encountered the same problem ?

And if so, is there a solution ?

 

Thanks in advance for the help.


Problems with Lotus Notes Interface via OLE session in PB12.5..

$
0
0

Hello All,

 

I am facing some weird & intermittent issues when triggerring email from a PB12.5 developed application to Lotus Notes 8.5.3 on a Windows 7 64 bit environment. The problem is that the data we send as the email Body content is being set to the To address field in Lotus Notes. Basically the functionality is just to setup a new email in Lotus Notes with the To, Cc, Subject & the Body pre filled and users can send the email from Notes after their review. This was working fine when we had Windows XP but after migrating to Windows 7 we are facing this issue. It is very unfortunate that this happens only for 2 users and also not every time. Hence, we couldn't get the exact root cause for this issue. Can any one through some ideas or help on this issue?? Thanks in advance!!

Powerbuilder 12.5 did not return the identity value in the datawindow after datawindow insert and update. My database mysql 5.6.

$
0
0

Hi There,

 

Powerbuilder 12.5 did not return the identity value in the datawindow after datawindow insert and update. My database  mysql 5.6.

 

I already did the following.

 

1. In my .INI file

DBParm=”ConnectString='DSN=MysqlTestdb;option=135176',OJSyntax='ANSI'”

 

2.  In my pbodb125.ini file I added the following.

 

[MySQL]

PBSyntax='MySQL_SYNTAX'

[MySQL_SYNTAX]

;GetIdentity='SELECT LAST_INSERT_ID()'

GetIdentity='Select @@identity'

 

3. Mysql ODBC Souce Configuration.

mysqlodbc1.jpg

 

 

mysqlodbc2.jpg

release date of powerbuilder 15

Datawindow export to PDF

$
0
0

Hello

 

I am trying to export datawindow to PDF format using Distill method. But it is showing error as "Save rows as failed."
I have GhostScript ver 9.14 and Powerbuilder 12.5 Classic on windows 7 64bit machine.

Also i have installed Sybase DataWindow PS printer from C:\Program Files\gs\gs9.14\lib\ directory.

I have cross check installation of Ghostscript.

PB is creating blank pdf file(0KB) file. How i can proceed further and any other specific version of Ghostscript is required?

 

Thanks,

Ram

Web Application Crashes (PB 11.5 Build 3127)

$
0
0

Hi Everyone,

 

First of all, I am newbie when it comes to using PB 11.5 (so please bear with me).  I would like to ask for help regarding my issue. IE browser crashes with a message like this "Unexpected error was thrown, the browser will be closed! Please report the error to the administrator. Error:'dw.gobs.computed_field1' is null or not an object." This happens every time the web application loses focus. One example scenario, user inputs data in web application then he receives a message from Yahoo! messenger or user clicks on another application like MS Word, when the user goes back to the web application it crashes with the message I mentioned above.

This application works fine in PB Client/Server but the web version does not. The application requires an excel type input and needs to auto-compute some fields (like the 'computed_field1') every time the user changes rows or columns.


The 'computed_field1' Compute Expression is currently set as 'sum (col1 for all)', all col1 have zero values after database retrieval. And the user inputs in col2, so as far as I know 'computed_field1' value should remain the same. I have used here grid and tabular as presentation styles but it is giving me the same error. There are no codes in the ItemChanged event.

 

Please advise for any possible solution or workarounds.

 

thanks in advance.

 

regards,

 

Jeffrey

Database tables not showing in database profile although connection is established successfully

$
0
0

I am using jdbc driver jtds 1.2.6 to connect to sybase db via powerbuilder.The connection is established successfully,still,it just shows the profile as connected but loads no table or contents of databse in that coonnection.

 

Do I have to run any stored procedure in sybase db for this?

 

Any clue?Please help.

How do I turn off "save retrieval values/args(?)" in data window painter.

$
0
0

I checked "save retrieval <whatever>" in the data window painter and now I want to change the value but can't figure out how to get to it.

 

TIA

LAS


Copying column controls in a datawindow.

$
0
0

I have a datawindow that contains 6 sets of 12 columns.  The column names differ only by one digit.  I'd love to be able to get one set all fixed up as to placement and size and then copy it into new positions and change the column name.  But I can't figure out how to change the (to me) hidden database reference.  Is there a way, short of editing the source file?

 

TIA

LAS

My software needs to detect if it's running on a windows server

$
0
0

I would like ti disable a license check routine if I can determine the software is being run from a server operating system, for example Citrix

 

Is there a way to detect this in Powerbuilder 12.5

 

I have been researching the windows functions but remember by PB app is 32 bit and most likely running under a 64 bit server, not sure if I can make operating system function calls

 

Thanks

Richard

PB 12.5 Classic how to return a C# dll array

$
0
0

I created a dll in visual studio and using it in PB.  I am able to connect to the dll with no problems from PB.

If I call a function on the dll with a return of int or string it works fine but when I need to return an array/structure I get

"error calling external function"  How can/do you pass data (rows) back from a dll and into PB?

 

Thanks

Dave V.

Absolute position of a control

$
0
0

Hello community,

 

I need to find the absolute position (x,y) of a control (eg: column )

I'm able to get the parent datawindow position by using:

 

Function boolean GetWindowRect( ulong hWnd, REF st_rectangle lpRect ) Library "user32.dll"

lb_rc = invo_super_external_functions.GetWindowRect( Handle(i_parentdw), lst_rectangle )

 

But I'll get the coordinates of the datawindow , I was not able to get the column itself ...

 

The goal is to use the result in a dropdown replacement window which needs to be properly placed in any case (eg: datawindow with groups and summary sections)

 

btw, a nice to have feature is the ability to recognize a multimonitor environment ...

 

Thanks in advance,

Nuno Madeira

Strange Problem with WCF service

$
0
0

Hi ,

I have built a very simple WCF service. Just a method with return type string

I have used the defaults without changing anyhting else .

I have deployed the msi to IIS and I am able to see my WSDL.

BUT.

I want now to consume the WCF I 've built and I cannot call my function at all.

 

I have created succesfully a proxy client looking to the correct endpoint

Also I used the below code to call my WCF method

 

try

                    portal1.portal11_n_customnonvisualClient myclient

  

                    myclient = create portal1.portal11_n_customnonvisualClient

  

                    string ls

                    ls = myclient.test("zak")

     

          catch (System.Exception ex)

          MessageBox("ok" , ex.Message)

          end try

 

I can see the method in the myclient class

But this is what I'm getting from the WCF

 

 

Capture.JPG

 

If I remove the try catch

 

Capture1.JPG

In other words I cannot call a simple method of my WCF service.

This is not the first time I'm creating a WCF service.

Any ideas ?

Appreciate any help you could give me.

 

thank you

Viewing all 2935 articles
Browse latest View live


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