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

PB 12.6 Classic: Docking, Resize and Toolbars

$
0
0

I did some test with an frame window of type mdidockhelp! For me it looks pretty limited. My idea is having on the right an area with 2 sheets with information and things that should always be visible and on the left an mdi area with "normal" sheets. The frame window has a menu with toolbar, so do the sheets in the MDI area. The 2 sheets on the right don't have a menu as they don't need one (Layout see attachment).

Problems:

  • With the heading "News" I have a datawindow in the right sheet that should have x = 0. Somehow on resizing a toolbar is taken into account
  • As the sheet toolbar changes when I click on the info window on the right, I tried the option "Toolbar In Sheet" for the sheet window, this causes a toolbar in the sheet an one in the header.
  • When having the toolbar outside the sheet on the left, the sheets show a "blank" space about the toolbar width. I have to set x = -280 or so to have the datawindow on the left

 

Question:

  • Did anyone successfully use this type of window with multiple toolbars?
  • Would the PB Ultimate Suite be a better solution?
  • Concerning the "Info" are on the right, I can handle this quite easy with manually handling the mdi child but I would like to have tabbed sheets instead the layered layout where you can't the see the title.

 

Thanks for any input

Arthur


Datawindow access to data in window or user object

$
0
0

I have a feeling I am forgetting something, so I've decide to ask.  What I want to do is have visible and protect properties in the datawindow be based on values in the contiaining window or user object.  For instance, I have a configuration setting in an instance variable that I would like to use in the visible property of a column.  Typically, I've added extra retrieval arguements and passed the data in that way.  The only problem is that if the datawindow is not retrieved, but only an InsertRow is executed, the value won't get there.  I could do a fake retrieve to pass the value in, but that seems rather hacky.

 

Sometimes the data applies to the overall datawindow, sometimes it is row-specific.

 

One option, I suppose, would be to take all the logic out of the datawindow and modify the properties in code using Modify.

 

Or, store the data in the application object and use a global function to return the value there's no db access so it shouldn't be too bad.

 

Is there something simple I am forgetting?  Any other ideas?  Does the PFC have anything that would help?

Computer Info gathering

$
0
0

I am looking to see if it's possible to call certain Command Prompt functions through PowerBuilder code. For example, I can open a Command Prompt and type in wmic DISKDRIVE get SerialNumber to get the computer's serial numbers. How can I do this via Power Script?

 

Thanks,

Rick

tag datwindow property object not functioning in background color

$
0
0

I am using 12.6 classic

 

I need to send to the column's of a Datawindow information to control the properties so that I can dictate the column's background color, The border, etc.

For example, I use the below to control the background property of a column.

 

if( right(customer_name, 1) = 'O', rgb(255,135,155), rgb(255,50,50))

 

The problem is that these codes I send with the customer's name display as well.

 

 

My attempted solution was to use the column's tag property

 

after sending information to the tag property I want to use the below in the background color of each column.

 

if( right(customer_name.tag, 1) = 'O', rgb(255,135,155), rgb(255,50,50))

 

but upon saving i get the error                DATAWINDOW

                                               Expecting true/false expression

 

 

I can also solve the problem even easier if I can just display the tag property of each column in my datawindow, leaving the value of the column to control the background and other column properties.

Web Service Help

$
0
0

I am an old dog trying to learn new tricks. I need to create a web service on an SQL Anywhere 16 database and call it from a Powerbuilder 10.5.1. Build 6021 application. Since I have never done this, I am having a hard time trying to create this process. Where I'm stuck is I created a web service and now I'm trying to create a proxy on the application but it asks for a WSDL file and I have no idea how that is created. Any help will be appreciated.

 

Rick

GetFileOpenName default location is different for short filename and long filenames

$
0
0

We use GetFileOpenName PB built-in function to find PDF files. The initdir variable passed to this function was a short file name (ex. C:\PROGRA~1\TEMP). The behavior of the default starting folder was as expected and as described with the hierarchy in windows 7. The hierarchy being last known open/save folder location is "saved" (do not know where) and used if one is found else the application uses C:\PROGRA~1\TEMP as default location. The last save/open information is retained even after exiting the application.

 

Our network staff was dropping the support for short file names and we changed the filenames to NTFS. So when calling the GetFileOpenName, we send "C:\Program Files\TEMP" value to the initdir variable. Now the last known open/save folder location is not being defaulted to anymore.

 

Is there a way to find this "saved" location? Why would sending a short file name work and not a NTFS name?

 

Got the application to function the same way by sending the GetCurrentDirectory() as the initdir. But this is limited to only that session of the application. Once the user exits the application the last open save location is gone with it.

 

Tried searching the REGISTRY for the location (by string searching for last location). No luck. If this is saved by PB, what is the registry key? If not a registry entry then where can this be found?

 

I know there are fileIO windows API calls that give better control. However, the built in PB function retains the last open/save location even after you have exited the application. Short of saving this information off somewhere (DB or user profile), would like to get at this information if it is accessible.

 

Environments: PB 12.5.1 build 4595, OS - windows 7.

 

Any help would be greatly appreciated. Thank you. SM.

PowerBuilder 10.5.x Software

$
0
0

Hi all

 

I need help from you.

 

My PowerBuilder 10.5 CD is broken and I have to install the version on a new development PC.

 

I have a license key but I do not have the Software.

 

Can someone give me the software to download? Or does anyone know where I can download software.

 

All links on the internet do not work anymore. all links on the internet do not work anymore. Because I have a license key.

 

 

Thank you for your quick help.

 

 

André Rust

How/where to by PowerBuilder 12.5/12.6

$
0
0

I contacted SAP today to buy a PowerBuilder license and was told that it is removed from their price list and is not avaiable for sale to new customers. Only exisisting customers on PowerBuilder is able to buy licenses. Old customers from Sybase with an SAP service plan could also buy new licenses.
I am in urgent need of an license - does anyone know where I can buy it?

 

Message was edited by: Robert Nestor


Trying to make DataWindow.Net work on .NET 3.5 and beyond

$
0
0

Hi there!

    

I work as a software developer for a large Canadian company. I am seeking help from someone that could help answer my questions regarding DataWindow.Net...

    

Over the years the IT department of my company has developed a lot of custom homebrewed software used by our sales team to sell our products. A lot of these tools have been built in .NET using the DataWindow.Net 2.0 control created by Sybase a couple of years ago. We know that the tool has been EOL’d some time ago but, as of today, we haven’t been able to convert all the existing software to something else (we are mostly rewriting everything in .NET and leaving Powerbuilder behind). We still have some software that use this (once wonderful) technology and we fear that we might not be able to finish the conversion within the next three years.

 

We’ve been able to make the existing software work on the last releases of Windows by installing the .Net framework 2.0 on the targeted machines. Problem is that Microsoft has announced the end of extended support for the .Net framework 2.0 somewhere around April 2016. We fear that our software might suddenly stop working in the near future because of that. 

 

Our latest tests on the upcoming version of Windows 10 leave us thinking that it is still compatible with that OS when we install the .NET framework 2.0.

 

Now come the questions:

1) Am I right thinking that everything might still work in the next few years if we install .NET framework 3.5 on the targeted machines in the future? EOL for .NET 3.5 is scheduled for somewhere around 2020.

2) Is there any way to get a version of the DataWindow.Net tool that would be compatible with .Net 4.0? Is there a way to buy the source code to be able to retarget the tool towards .Net 4.0?

3) What other options do my company have?

    

I hope someone out there will be able to help me figure out the best way to make everything work until we finish our conversion work.

 

Regards,

Pass additional parameter to SOAP header?

$
0
0

We are using webservice datawindows to pass request xmls to call webservices. Additionally we use 'wsconnection' objects authenticationmode, username and password property to send information to SOAP header.

 

Now we have to send one more value to SOAP header. This new value will be a string(like username).

 

I checked the wsConnection properties and did not find anything which could be used. Can anyone please advise on it.

Run and Wait

$
0
0

I want to run another powerbuilder application exe from our main application when a user clicks on a menu item

 

I've seen examples of the run and wait.

 

Will this work with another pb .exe

 

My goal is to force the user to close the launched .exe before returning the "launching application"

 

Thanks

Richard

Call c# dll through web service

$
0
0

I have a c# web service library that has a reference to a C# class library (dll). I am trying to call web service through PowerBuilder 12.5 and i was able to do it. So i expose a method in the web service and created a web service proxy in PB and i was able to get the result from the method which is just a simple return of a string value. I tried to do the same for other method which is also exposed and in that method i am creating an instance of the c# class library. For some reason PB fails calling the method and i am assuming that it is because of the dll that web service talk to.

PowerBuilder code:

 

str_endpoint = "http://f.........................................................................................................................................?wsdl"

s_service1 proxy_obj

SoapConnection conn

proxy_obj = create s_service1

conn = create SoapConnection

 

ll_return = conn.CreateInstance(proxy_obj, "s_service1",str_endpoint)

try

ls_result = proxy_obj.getdata(1,true)

ll_selected = proxy_obj.saveestimatefile()

messagebox("The result is","File created")

catch(SoapException e)

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

end try

 

Web Service code:

 

public string GetData(int value)

{

            return string.Format("You entered: {0}", value);

}

public string saveEstimateFile()

{

     Class1 obj = new Class1(); /*Cause of the error*/

      return "This is a test";

}

------------------

So in the code above, the method GetData works fine but the saveEstimateFile does not work. If i just return a string in the method, it works but as soon as the instance is created, it fails. I get the following error and i am sure that the service is not calling the library.

PBError.png

What am i missing here and i think its the reference in the web service causing the error?

 

Thanks!

How can I can call try catch mathod to get the error from datawindow save as

$
0
0

Hi

How can I write , Try Catch Method to get error if there is  -1 when I use Datawindow SaveAs

dw_1.saveas(lsfilename,dBase3!,True)

PowerBuilder Classic Connecting to WCF Web Service over HTTPS

$
0
0

Hi Guys

 

I've been looking round the forum but cannot find an answer.

 

I created a Web Service proxy pointing to a WCF Webservice (with a valid certificate) using an https url to the wsdl file. This all worked fine.

 

My problem is when I call the method on the web service having connected using https I get a 404 error, but if I connect using http it works fine.

 

What have I missed to get the call to work over https?

 

Any thoughts?

 

Cheers

 

David

I want to export data to Excel 2010 along with no limitation of 60000 rows

$
0
0

Hello All,

 

Currently, I am using Power Builder 11.5 version.

 

Right now, we have limitation to export data in .xls file only.

 

I want to download data in .xlsx format along with no limitation on no of rows.

 

I did some search on Google and found that using Excel8! or Excel12! it is achievable. In my case, I am able to export data with Excel8! option but it is not opening xlsx file in Excel.

 

When I tried to use Excel12!, it gives me illegal enumerated constant error.

 

Please advice me for the same.

 

Thanks in advance.


Is there a bug in 12.6 Environment object?

$
0
0

I don't have 12.6 myself but some code I wrote was migrated by someone to 12.6 and it appears that PBMinorRevision is reported as zero instead of 6.

 

If this has been fixed, please let me know how they can update. I have no idea what build they have.

 

Thanks!

Running 64-bit PB12.6 application

$
0
0

I am trying to use PB12.6 for a 64-bit platform.

I created a "Hello World" app and linked it for 64-bit platform.

On attempting to run the executable it crashes with "The application was unable to start correctly (0xc000007b)".

Googling this I found a Sybase document which describes the Sysem Requirements for 64-bit deployment.

It says the runtime requirement includes "PB 12.6 64-bit system files". What are these?

On my development PC with the PB12.6 IDE the PB files are all in C:/Program Files (x86)/Sybase/Shared/PowerBuilder.

As I understand things these must be 32-bit system DLLs. Where are the 64-bit PB DLLs?

Help please anyone.

LArry Peters

Internet Database Driver VesnData.Net For PowerBuilder

$
0
0

We developed a set of Internet database driver VesnData.Net for PowerBuilder,Support PB9 above versions,SQLSERVER and ORACLE database.

A large amount of data loading speed on the Internet is direct 2-6 times, A large amount of data update speed is 5-30 times that of the direct connect.

Speed_1.png

Speed_2.png

UpdateSpeed.png

This is equivalent to a three layers of data driven, Provides automatic data compression and centralized processing,more quick and safe.

拓扑图.jpg

Only need to change the database connection, need not modify the program code,a few minutes to modify finished.

Connect.png

DataBase Connect  Settting

Connect_2.png

Run like a C/S procedures

Run.png

Us a long time in doing some  extension development for PowerBuilder, want to help PowerBuilder go further.We are from China, English is not very good, please forgive me.

This is a commercial software, and all of us think of it?

Thank You!

PowerBuilder 12.6

$
0
0

I need help on how to deploy PowerBuilder 12.6 application written in Window 8.1 to a user having window 7.  Can any one let me know what dll's are required.

memory concerns for adding a Memo, which is 64,000 characters

$
0
0

Using 12.6 classic with access and microsoft SQL database

 

If I add a memory field to a table, I am concern the memory will be enormous since that will be many records in the table. most of the time the field will not be used, but if it's used or not, does the memory just get used when the field is filled in or does it take up space even when it's blank?

 

Also, is his field memo inside microsoft SQL and SAP SQL anywhere

 

Depending on the answer, if it dos take up a lot of memory, I will just add it to a separate table.

Viewing all 2881 articles
Browse latest View live


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