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

Anyone using Internet components from sockettools.com?

$
0
0

Hello,

 

We need functions to send/recive mail and SFTP directly for PowerBuilder.

 

Have been installing an evaluation version of Sockettols:

 

https://sockettools.com/

 

But so far my testing is not successful. I can communicate with the objects and I get response but mostly errors.

 

eg trying to connect to a Gmail account with IMAP, but the return code from the library is telling me that I can not connect to the Gmail server. I also got an email from Google telling me "Sign in attempt prevented" because the application was insecure.

 

Im probably doing something wrong :-) Anyone using Sockettols to point me in the right direction? Maybe some sample code?

 

Best regards

Bjørn André


Appeon - The Future of PB Webcast Series - Vision - Comments

$
0
0

Just watched the Appeon 'The Future of PB Webcast Series - Vision' webinar. Would be interested to hear what anyone else who saw it thinks. I am writing up the main point for my team, and will add thoughts to this post soon

To restart my application

$
0
0

i need to restart my application. i am working in pb 12.0 and i used restart() but it is working as halt close()

can anyone please tell me how to restart it

PDF not created in one machine

$
0
0

Hi

I am using the following code  and everything is fine. But in one  new computer the pdf not created . Please can you let me know  the which dll  be could be missing on that folder

s_attach =  g_str_filepath +'\' +  "HolidayReminder.pdf"

lds_holiday.Object.DataWindow.Export.PDF.Method = Distill!

lds_holiday.Object.DataWindow.Printer =  'CutePDF Writer'

lds_holiday.Object.DataWindow.Export.PDF.Distill.CustomPostScript="Yes"

li_ret = lds_holiday.SaveAs(ls_attach, PDF!, true)

if  li_ret=-1 then MessageBox("Error","PDF file cannot be created",stopsign!)

Return False

end if

The new Definitive Datawindow

$
0
0

http://amzn.com/B00X1V6XBU

 

I republished the popular Definitive Datawindow. It has been updated for PowerBuilder 12. It is also now a Kindle book so it only costs $10. It's the first PowerBuilder book since version 9.

Appeon and instance datastore in a custom ddlb

$
0
0

Hi All,

 

I have a custom ddlb in my framework that uses a datastore declared as an instance variable. The problem is that any attempt to access it (rowcount, reset etc) on a function, causes the execution of this function to stop. When the same script runs in PB, it works fine.

 

Any clue ?

 

Regards ...

Windows 10 & Appeon Development

$
0
0

I am having an issue with my Appeon Development on a brand new Windows 10 PC.


Any time I try to do an Incremental Deployment for an application to the Appeon Web Server, Appeon will instead perform a Full Deployment. This is slowing up development and testing.  This occurs after making any minor change in any DW or Powerscript and attempting to Deploy using 'Incremental Application Deployment' option.

 

Powerbuilder is set to run 'As Administrator' to ensure correct privileges.  Having to develop between 2 desks at the moment and it is very time consuming.  The application has 77 PBLs so not feasible to continue working on the Win 10 PC if I cannot do incremental deployments, even for single line code changes.


This was logged with Appeon Support over a month ago as a bug, but still waiting on an answer/fix.


Has anyone else experienced this or been able to work around it?



CD PB.0.7 ?

$
0
0

   Hi,

 

I allways use PB 7.

 

Someone threw away my CD about PB 7 (PB 7.0 and PB 7.0.3).

 

I found a copy of PB 7.0.

 

Is anyone have the CD : PB 7.0.3 build 10009 ? Is it possible to get a copy ?

 

Thank you very much

 

           Michel


CD Powerbuilder 7.0.3

$
0
0

        Hi,

 

We lost the CD Powerbuilder 7.0.3 build 10009.

 

Does anyone have this CD ? Is it possible to get a copy (or a zip file) ?

 

Thank you

 

     Michel

Trying to call Java-function from Powerbuilder

$
0
0

Hello, I'm using PB 12.1 build 6639 on Windows 7 Pro 64bit I used the sample from http://www.rgagnon.com/pbdetails/pb-0224.html to try this out. The problem is, that a call to createjavainstance() is not working well. The call to the JavaVM-Class version forces PB to crash immediately, the call to the EJBConnetion-Class (deprecated) returns -1. I copied the class files (Simple.class and SimpleHome.class) to the same directory where the my calling pbl resides. Could this have to do with the blank in my pbl-path (c:\eigene dateien\pb12\kmt) The Java VM is loaded without problems before and the Messagebox shows, that the original version of JDK 1.6.0_02 shipped with PB is used. The classes don't include a package name. I'm looking over days for solving this without success, hope someone can help me! Here's the code: //constant string CLASSPATH = ".;C:\Eigene Dateien\pb12\kmt\pb_java\out\production\pb_java" //constant string CLASSPATH = "C:\Eigene Dateien\pb12\kmt" string classpath = ".;C:\Eigene Dateien\pb12\kmt" //string classpath = "C:\Program Files (x86)\Java\jre1.8.0_66\bin\client" //string classpath = "" boolean lb_err long ll_rc string ls_msg, ls_cp, ls_version JavaVM ln_java_vm EJBConnection ln_ejb_conn Simple ln_simple do ln_java_vm = create JavaVM ll_rc = ln_java_vm.createjavavm( CLASSPATH, true) if ll_rc < 0 then Messagebox(gs_app_tit, "createjavavm: " + string(ll_rc)) lb_err = true exit end if ls_cp = ln_java_vm.getjavaclasspath() ls_version = ln_java_vm.getjavaVMversion() Messagebox(gs_app_tit, "java version: " + string(ls_version) + " class_path: " + ls_cp) // createjavainstance via JavaVM Class // ll_rc = ln_java_vm.Createjavainstance(ln_simple, "Simple") //-> PB crashes here // createjavainstance via EJBConnection Class (deprecated!) ln_ejb_conn = create EJBConnection ll_rc = ln_ejb_conn.createjavainstance(ln_simple, "simple") // return value is -1 (failed to create java class) Messagebox(gs_app_tit, "createjavainstance:" + string(ll_rc)) try Messagebox("", "before sayHello") ls_msg = ln_simple.sayHello() Messagebox("", "3") catch (CreateException ce) Messagebox(gs_app_tit, "Create Exception: " + ce.getMessage()) catch (Throwable t) Messagebox(gs_app_tit, "Other Exception: " + t.getMessage()) end try Messagebox("", ls_msg) loop while 1 = 0 destroy ln_java_vm return 1

Trying to call Java-function from Powerbuilder

$
0
0

Hello, i am using Powerbuilder 12.1 build 6639 on Windows 7 Pro 64 bit. //constant string CLASSPATH = "C:\Eigene Dateien\pb105\kmt" string classpath = ".;C:\Eigene Dateien\pb105\kmt" //string classpath = "C:\Program Files (x86)\Java\jre1.8.0_66\bin\client" //string classpath = "" boolean lb_err long ll_rc string ls_msg, ls_cp, ls_version JavaVM ln_java_vm EJBConnection ln_ejb_conn Simple ln_hw do ln_java_vm = create JavaVM ll_rc = ln_java_vm.createjavavm( CLASSPATH, true) if ll_rc < 0 then Messagebox(gs_app_tit, "createjavavm: " + string(ll_rc)) lb_err = true exit end if ls_cp = ln_java_vm.getjavaclasspath() ls_version = ln_java_vm.getjavaVMversion() Messagebox(gs_app_tit, "java version: " + string(ls_version) + " class_path: " + ls_cp) // createjavainstance via JavaVM Class // ll_rc = ln_java_vm.Createjavainstance(ln_hw, "Simple") //-> PB crashes here // createjavainstance via EJBConnection Class (deprecated!) ln_ejb_conn = create EJBConnection ll_rc = ln_ejb_conn.createjavainstance(ln_hw, "simple") // return value is -1 (failed to create java class) Messagebox(gs_app_tit, "createjavainstance:" + string(ll_rc)) try Messagebox("", "before sayHello") ls_msg = ln_hw.sayHello() Messagebox("", "3") catch (CreateException ce) Messagebox(gs_app_tit, "Create Exception: " + ce.getMessage()) catch (Throwable t) Messagebox(gs_app_tit, "Other Exception: " + t.getMessage()) end try Messagebox("", ls_msg) loop while 1 = 0 destroy ln_java_vm return 1

Trying to call Java-function from Powerbuilder

$
0
0

Hello, I'm using PB 12.1 build 6639 on Windows 7 Pro 64bit I used the sample from http://www.rgagnon.com/pbdetails/pb-0224.html to try this out. The problem is, that a call to createjavainstance() is not working well. The call to the JavaVM-Class version forces PB to crash immediately, the call to the EJBConnetion-Class (deprecated) returns -1. I copied the class files (Simple.class and SimpleHome.class) to the same directory where the my calling pbl resides. Could this have to do with the blank in my pbl-path (c:\eigene dateien\pb12\kmt) The Java VM is loaded without problems before and the Messagebox shows, that the original version of JDK 1.6.0_02 shipped with PB is used. The classes don't include a package name. I'm looking over days for solving this without success, hope someone can help me! Here's the code: //constant string CLASSPATH = ".;C:\Eigene Dateien\pb12\kmt\pb_java\out\production\pb_java" //constant string CLASSPATH = "C:\Eigene Dateien\pb12\kmt" string classpath = ".;C:\Eigene Dateien\pb12\kmt" //string classpath = "C:\Program Files (x86)\Java\jre1.8.0_66\bin\client" //string classpath = "" boolean lb_err long ll_rc string ls_msg, ls_cp, ls_version JavaVM ln_java_vm EJBConnection ln_ejb_conn Simple ln_simple do ln_java_vm = create JavaVM ll_rc = ln_java_vm.createjavavm( CLASSPATH, true) if ll_rc < 0 then Messagebox(gs_app_tit, "createjavavm: " + string(ll_rc)) lb_err = true exit end if ls_cp = ln_java_vm.getjavaclasspath() ls_version = ln_java_vm.getjavaVMversion() Messagebox(gs_app_tit, "java version: " + string(ls_version) + " class_path: " + ls_cp) // createjavainstance via JavaVM Class // ll_rc = ln_java_vm.Createjavainstance(ln_simple, "Simple") //-> PB crashes here // createjavainstance via EJBConnection Class (deprecated!) ln_ejb_conn = create EJBConnection ll_rc = ln_ejb_conn.createjavainstance(ln_simple, "simple") // return value is -1 (failed to create java class) Messagebox(gs_app_tit, "createjavainstance:" + string(ll_rc)) try Messagebox("", "before sayHello") ls_msg = ln_simple.sayHello() Messagebox("", "3") catch (CreateException ce) Messagebox(gs_app_tit, "Create Exception: " + ce.getMessage()) catch (Throwable t) Messagebox(gs_app_tit, "Other Exception: " + t.getMessage()) end try Messagebox("", ls_msg) loop while 1 = 0 destroy ln_java_vm return 1

PowerBuilder 12.5 Classic does not start in Windows 10

$
0
0

I recently updated my machine to Windows 10 having PowerBuilder previously installed. It does not get past the splash screen. I have attempted to uninstalled and re-installed with no success. Any ideas?

EAServer Network Error

$
0
0

Dear Gurus,

 

Please see that in my production environment my application get crashed with below error in EAServer log.

 

 

Can you please help me to identify that,

1) what is this error.

2) Is this error related to NETWORK ERROR.

3) How can i get rid of this error in feature.

4) Can we synchronized this error with Server Event Logs (Means what error i will found in event logs of server against below error fond in EAServer)

 

EAServer Error.jpg

I will be very kind for your quick reply.

 

Best Regards

Malik Adeel imtiaz

Web Service Consuming

$
0
0

Hello all ,

 

When I am trying to run a web service from my IDE I am getting an error : "Null Object reference at line.... "

 

the code in this line is : sc.CreateInstance(my_ws_name , my_ws_name.ClassName())

 

The WS creation was good , all the declarations are made , I have the pbwsclinet125.pbd in my system tree , the code compiled fine .

 

the WS even works fine on the customer machine !!!

 

what can be the problem here ?

 

The WS worked on my machine before .....

 

working with PB 12.5.1 classic , OS 2008 R2

 

Thanks

 

Moshe


On Screen keyboard for tablets

$
0
0

When I run a powerbuilder application on a Windows 8 tablet, I supposed that on screen keyboard would be shown automatically when I clicked editable object but it didn't work. Even If I try to run  tabtib.exe manually, it does not show up while all ther applications show on screen keyboard automaticaly.

 

Any idea?

DataWindow export XML: how to remove empty elements

$
0
0

I have a datawindow with some data, and have a XML export template defined. Some values in mentioned datawindow are null or empty, Is it possible to hide empty elements in export XML?

 

Example:

 

Datawindow:

 

namesurname
JohnSmith
Marry
JaneDoe

 

XML looks like this:

 

<root>     <row><name>John</name><surname>Smith</surname></row>     <row><name>Marry</name><surname/></row>     <row><name>Jane</name><surname>Doe</surname></row></root>

Is it possible to remove the <surname/> element, so the result looks like this:

 

<root>     <row><name>John</name><surname>Smith</surname></row>     <row><name>Marry</name></row>     <row><name>Jane</name><surname>Doe</surname></row></root>

I am using PowerBuilder 11.5.1 Build 5097, could not find a solution in documentation, but maybe I am missing something.

The new Definitive Datawindow

$
0
0

http://amzn.com/B00X1V6XBU

 

I republished the popular Definitive Datawindow. It has been updated for PowerBuilder 12. It is also now a Kindle book so it only costs $10. It's the first PowerBuilder book since version 9.

Unable to connect to Sybase DB from PowerBuilder Version 7.0.3

$
0
0

We are trying to connect to Sybase DB from PowerBuilder Version 7.0.3. While trying to create a new DB profile it is giving the error "Unable to load the requested Database Interface. Please make sure both the interface and client software are installed properly".

We have tried re-installing the PowerBuider IDE which didnt help us.

PowerBuider is installed in Windows 7 environment. Also we are able to connect to Oracle database from the same installation.

 

NB: Upgrading the PowerBuilder version is not currently feasible as there are lot of dependencies related to it.

DBMS ?

$
0
0

Hi all,

 

We are wondering who is using which RDMBS with powerbuilder ?

 

We are thinking of replacing our (sybase) SQL Anywhere by a new dbms, not too sure which one yet, hence the question

 

We have used Sybase SQL Anywhere in the past and this was exactly the thing we were looking for at exactly the price we expected it to be. We are using Sybase SQL Anywhere 11 for a little less than 100 users. We bought this license a few years ago for about 7.500 euros. If we want to upgrade now we are forced by SAP to be paying at least 13.000 euros with an additionnal 2.500 support contract. Thats double the price of 2010.  We have a small application that we are selling for about 400 - 500 euros. Before the database costs was 75 euro for 1 license, now this is going to be at least 150.

 

Anybody converted from sybase anywhere towards another dbms ? Do we need to (re)create all of our datawindows ? Any positive / negative remarks or tips in the conversion proces ?

 

 

 

TIA

John

Viewing all 2935 articles
Browse latest View live


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