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

missing icon on task bar of executable powerbuilder

$
0
0

I have a very strange issue....  

This occurs when I execute our software application that has been build with powergen( powerbuilder).  When I execute the executable( acct123.exe) that was built, some of the icons that we created and use ( on a task bar) have 'red X' instead of the image.  When I select the icon it executes properly. 

I talked to some of the people testing the application and they would see the 'red X' some days and other days, the image would display.

I have attached a jpg that shows the icons red X

 

 

any thoughts?????????????????????????


SySAM issue using Remote Access

$
0
0

I have two PB machines both with legal licenses, my personal and a build machine. The build machine is used purely for auditing compliance and has PowerGen on it to ensure builds aren't done on the developer's copy of source code but rather the official code in the SCC.

 

Now when I launch a remote desktop connection to this machine and run PowerGen or PowerBuilder SySAM is blocking it due to it not being a served license. When did this start? I remoted in up till a few months ago to do my builds. We do not and will not from what I'm told use a license server.Even if I could change minds SySam is creating a showstopper of our in-house policy and preventing official builds unless you physically go to the machine. We are a teleworking company - this isn't always possible.

SqlServer-proc Getutcdate

$
0
0

Hi there

Is there an analogue for this procedure in SqlAnywhere?

Need to get the time-diff between the Regional Settiing Time and UTC-time in a Sybase-db.

PB 11.5

 

Regards Outi

DW printing with full page images?

$
0
0

PB 12.5.1 Build 4015 Classic

 

I am working in an application with a data window that has page one as a bmp/picture and page two as a bmp with each image taking up the entire page.  Data is retrieved and placed over the image.  The DW is then printed duplex and used as a scannable form with some boxes already populated.  From reviewing PB code it appears that a few different strategies have been tried, probably each with issues.  Another DW design strategy was not to have a bmp image but have all the detail boxes, lines, text, and such individually placed on the DW, but this would be very time consuming to go back to and may still need some small images/bmp files used.  Different versions of code show a print job being used verses just a straight datawindow print.  The function is used by many staff printing to quite a few different printer models/makes.  I realize some printing limitations may exist.
The problems I face are

  1. Getting the images to not be chopped such as getting the second image/page to always start at the top of the second page. Currently the second page image positioning varies and is chopped either at the top or bottom.

     2.  Getting the image/page to automatically proportionately resize if needed for the destination printer.

 

Any ideas or help appreciated.

PB 11.5.1 application crash due to Win8 touchscreen

$
0
0

Hi, PB 11.5.1.4011 application - runs fine on absolutely all windows versions, but on Win8 with touchscreen, it produces a generic "xxxxx.exe has stopped working error" when tabbing or clicking into the field.

 

I found a confirmation of this on stackoverflow topic, where the problem was described as:

 

"We have serious issues with running a PB10 application on Windows 8 computers.

Application runs fine until user enters text in datawindow fields, the application "stopped working". The problem is that it happens randomly, 10 fields can be entered without a problem but at the next field the "stopped working" pops up en the application is closed the next time it might happen after entering 2 fields."

 

However, the original author also added a while later that this is only due to Win8 Touch Screens:

 

"We finally found the issue. The problem only occurs on computers with a touch screen. By disabling the Touch Keyboard service the PB program runs perfect"



Obviously, disabling Touch Keyboard service is the suggested solution, but I just wondered has anyone else found alternative solutions (apart from migrating to newer Powerbuilder)? Would running the application in "compatibility mode" with a previous version of Windows maybe do it?

 

 

Thanks

PowerBuilder 11.5.1 - Large Display Fonts problem (DPI)

$
0
0

We are having some issues with an app we develop when our customers change their Display Font size in Windows 7+ to either Medium 125% or Large 150%. I know this is a known issue around the version of PB we use. My question is does anyone know in what version (if any) has this been fixed?

 

The problem, for example, I have a freeform datawindow with SLE's on it. The SLE's are displaying in different locations when the DPI is set to 125% than at 100%. When the form is customized with the display setting set to 125% and it is printed, we get a second blank page that prints because the printer thinks the SLE's have extended beyond the printer margins which visually they have not.

 

I found a thread asking for it to be fixed in an EBF or 11.5.2 and someone else suggested maybe it would be addressed in PB12. Does anyone know if/when it was addressed? Thanks.

 

SAP Sybase Forums - PowerBuilder - General Discussion - PB & DPI awareness (supporting large fonts) [Windows 7]

Treeview popup menu in PB12.5 Winforms oddity

$
0
0

Migrated a predominantly PFC app from PB 6.5 to PB 12.5 Classic, treeview popup menu did not initially fire because the code was in the rbuttonup event, which no longer fires since PB 7.0 or so. So now we post that event from the treeview rightclicked event, and everything is aces in PB 12.5 Classic.

 

im_tv.m_table.PopMenu (lw_parent.PointerX() + 5, lw_parent.PointerY() + 10)

 

In the PB 12.5 Classic PB app, the above code popped up the menu, and the event dynamically triggered by the popup menu object (when a popup item is selected) fired off as coded.

 

Migrated the app to a winform app in PB 12.5 Classic. The treeview popup menu "pops up", but the events dynamically triggered by the popup menu object (when a popup item is selected) are not firing. After trying to figure out a "logical" reason for this and failing, decided to slap some messageboxes in the code to see if they pop up.

 

Remember this code (without the messagebox) worked fine in PB 12.5 Classic as a straight up PB app.

 

im_tv.m_table.PopMenu (lw_parent.PointerX() + 5, lw_parent.PointerY() + 10)

messagebox("After popup menu","")

 

With this messagebox, the events dynamically triggered by the popup menu object (when a popup item is selected) NOW fire off as coded. Of course the users won't want to have to deal with an extraneous messagebox, so I decided to throw some crap at the wall to see what stuck. Replaced the messagebox with the yield() function. By dumb luck, that seemed to do the trick. Now the events dynamically triggered by the popup menu object (when a popup item is selected) fire off as coded, without the need for additional user interaction.

 

I'm not entirely confident in this code fix, I don't know why the code wasn't working in the first place, and I don't know why adding the yield() function in there would cause it to work. I would appreciate any thoughts and/experiences/alternative code fixes y'all might have on the matter, I always appreciate logic over "magic".

 

Thanks and regards,

 

Todd Oesterreich

Asynchronous WCF service using PB.Net

$
0
0

I need some help trying to figure out how to create a WCF in PB.Net using the AsyncPattern service operation attribute. I've create a BeginmethodName and EndmethodName pair of methods for my service method but can't get the compiler to not complain about the return value of the Begin method. If anyone has done this or can figure it out I would love a "Hello World" example.

 

Capture.PNG

 

Thanks,

Mark


Is there any free or cheap alternative other than sybase open client to connect to sybase ASE from powerbuilder

$
0
0

Is there any free or cheaper alternative other than sybase open client to connect to sybase ASE 15 from powerbuilder.

Case Insensitive Searches: How is the datawindow.table.select string put together?

$
0
0

I am using PowerBuilder 12.5. I am maintaining PowerBuilder programs written years ago.

I have a datawindow where the user enters search criteria for queries. Right now we are using a Sybase database and for columns of type char, the user's string is transformed inside itemchanged() such that:

User's String        ==>       Transformation

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

farm                                   like %[Ff][Aa][Rr][Mm]%

 

The result is a case insensitive search. We are migrating to an Oracle database which doesn't recognize [ ].

I could easily transform 'farm' to 'like %farm%' but I don't know how to wrap the column name inside the lower function. In other words, the datawindow.table.select looks like this (Table = Clients,   Column = name):

 

SELECT ...  WHERE Clients.name like '%farm%'

but I want it to look like:

SELECT ...  WHERE lower(Clients.name) like '%farm%'

 

I don't appear to have a handle on the column name, just what appears after.

 

datawindow.table.select is auto generated every time either accepttext() or a user's click (focus lost) puts data into the Primary Buffer.

 

Sometimes the queries get rather long with several subqueries that use other tables. I would rather not try to do string manipulation with PosA() and ReplaceA() to "find" column names of a particular type and wrap them with a call to lower().

 

Where in the PowerBuilder code is the datawindow.table.select string put together? There appears to be a good deal of parsing going on there looking for keywords such as 'and', 'like', '=',  ...    Maybe I can insert a call to lower() there????

 

Or does someone have a better idea on how to do case insensitive searches using a datawindow?

Can't uncheck checkbox

$
0
0

I have a one character Y/N string column which is on a datawindow with a checkbox edit type.  I can make the check appear by clicking the checkbox, but I can't make it go away by clicking it again.  I'm running class PB 12.1, build 6875.

 

TIA

LAS

It's that time of year....

SyntaxFromSQL Surprise?

$
0
0

PB 12.1

 

I have a WebService created with 12.1.  I was playing around with executing SQL using the SyntaxFromSQL call. I decided to try giving it an INSERT statement instead of a SELECT and low and behold when you do a Retrieve the data gets inserted into the table automatically!  I have no Update statement - just the retieve did the work.

 

Is this a surprise or expected behavior?

 

Thanks,

Chris Craft

office365 and wsdl

$
0
0

First time trying web services from PB 12.5 classic... Client is moving from groupwise email to outlook (cloud). Unfortunately things go slow here so I don't have an exchange server yet. I signed up for a free 30 day trial of office365 exchange, I will be using the Exchange Web Services API.  Currently I am pulling my hair out trying to figure out how to connect.  Eventually want to access mail, tasks and calendar. Not sure if I am doing this right.... but Using 'web proxy service wizard' Check (on) to use the .net. I have .net 4.5 loaded (and win 7 sdk) Using the internet I get the wsdl file (http://outlook.office365.com/ews/services.wsdl) after logging in it displays the code (not the file itself) I copy and paste it into notepad and save it as wsdl file. Select that file from the proxy wizard, give it an assembly name xyz and select next. Get error on the wsdl file. (needed to remove a space or two from the first line then save it) try again and this time receive the following error. WSDL: error WSDL1: There was an error processing 'file:///H:/PB-ExchangeTest/services.wsdl'.      The document at the url file:///H:/PB-ExchangeTest/services.wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'WSDL Document' is 'There is an error in XML document (2, 1).'. - Data at the root level is invalid. Line 2, position 1. - Report from 'XML Schema' is 'Data at the root level is invalid. Line 2, position 1.'. - Report from 'DISCO Document' is 'Data at the root level is invalid. Line 2, position 1.'. Not sure what the problem is. Note: I did notice that if I enter http://schemas.microsoft.com/exchange/services/2006/messages into a browser this can't be found its in serveral places..but I have no idea what to replace it with.. assuming this could be the error. Any help would be appreciated... and thanks Dave V.


Below is the wsdl file code

did not know the wsdl file would not show up here so I am attaching it as a file hopefully that will work.


Migrating to WPF PB .NET 12.5.2, MDI quandary

$
0
0

Is there a way to code for switching between the tabbed "sheets" in a WPF app? Previously in Classic PB, the app was typically used for dragging and dropping between treeviews on tiled MDI sheets. I can fire code off using the treeview dragleave event, but specifying sheet attributes like bringtotop = TRUE has no effect, vertical/horizontal tiling has no effect. Is there some kind of tab switching that can be used?

 

Thanks and regards,

 

Todd Oesterreich


Can help me make a simple app for my study materials power builder

$
0
0

how tomakean applicationto runavidiofile,image, text animation, withpowerbuilder
suchasmovimaker
please providethe followingsimpleexampleapplicationwithtutorial

thanks

DW printing with full page images?

$
0
0

PB 12.5.1 Build 4015 Classic

 

I am working in an application with a data window that has page one as a bmp/picture and page two as a bmp with each image taking up the entire page.  Data is retrieved and placed over the image.  The DW is then printed duplex and used as a scannable form with some boxes already populated.  From reviewing PB code it appears that a few different strategies have been tried, probably each with issues.  Another DW design strategy was not to have a bmp image but have all the detail boxes, lines, text, and such individually placed on the DW, but this would be very time consuming to go back to and may still need some small images/bmp files used.  Different versions of code show a print job being used verses just a straight datawindow print.  The function is used by many staff printing to quite a few different printer models/makes.  I realize some printing limitations may exist.
The problems I face are

  1. Getting the images to not be chopped such as getting the second image/page to always start at the top of the second page. Currently the second page image positioning varies and is chopped either at the top or bottom.

     2.  Getting the image/page to automatically proportionately resize if needed for the destination printer.

 

Any ideas or help appreciated.

Best Approach to Share Photos in Client Server Environment

$
0
0

Ive been doing research on the best way to share scanned documents inside a client server application (PB11) but am not sure what's the quickest way to do it.

My brainstorm came up with:

1. Use MS SharePoint to share photos.

    Pros: Relatively quick to install

    Cons: Potentially difficult to maintain. No integration with PB application.

 

2. Use web server to share photos

    Pros: PB integration possible

    Cons: Difficult to maintain

 

3. Use Oracle database to store photos

    Pros: PB integration possible and easy to maintain

    Cons: Hardware resource demanding.

 

The idea is to be able to share scanned documents to different users which can be then associated with different business information such as journal entries, assets, customer application, and many others.

 

Of the three above which one would offer the quickest solution?

Problems using n_tr (PFC)

$
0
0

Hi,

 

I am using n_tr object. This is my script:

 

n_tr ltr_Trans

 

ltr_Trans = CREATE n_tr

ltr_Trans.Userid = 'UserCn'

ltr_Trans.DBPass = 'PwdCn'

ltr_Trans.LogID = ltr_Trans.Userid

ltr_Trans.LogPass = ltr_Trans.DBPass

 

ltr_Trans.DBMS = 'O10 Oracle10g (10.1.0)'

ltr_Trans.ServerName = 'SRV01'

 

ltr_Trans.DBParm = "PBDBMS=0,Async=1,DisableBind=1,DelimitIdentifier='No'"

 

if ltr_Trans.of_Connect() <> 0 then

  MessageBox('Access Level Look-Up Error', 'Error getting Security Access Level for user')

  Return FALSE

end if

 

The problem is when I assign the value to ltr_Trans.DBParm. During debugging when the variable value is assigned, the sqlerrtext shows: "Transaction not connected" and SQLCode = -1.

 

I don't see where is my problem.

 

Environment:

- Windows 7 SP1 - 64 bit

- PowerBuilder 10.5 (my client is using this version) App migrated from PB 6.5. I don't have 10.5.2 installers.

- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit.

- Oracle Client 10.2.0 - 32 bit



Thanks in advance for your help.

how to get all data in a section from profile file?

$
0
0

Suppose I have profile ini have a section like:

[Mysection]

k1 =v1

k2=v2

....

 

the key-value pair could be dynamically in this section. then I want to get all data in Mysection.  How can I get it in a loop for all in powerscript?

Viewing all 2935 articles
Browse latest View live


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