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

GUI Design Guidelines

$
0
0

Does anyone know of an up-to-date set of guidelines for developing good GUIs for desktop applications? I ask because I work on a large PB system that was originally developed by a team that had no formal PB training. The buttons used on the various sheets are confusing at best.

 

Save and OK and Close on the same window? What does OK do? It actually saves and closes. So does Close. Ugh.

 

I've been tasked with developing loose but acceptable 'standards' for new development (and to fix existing objects when needed).

 

Larry


How to know what source code was used to generate webservice/webform?

$
0
0

Greetings all,

 

I used to keep all of my projects on my M:/ drive and Roland told me I should be doing development on my C:/ drive.

 

So I have been gradually moving my projects over from M: to C:. It used to be that I did not have that many project directories so it was easy to keep track of them in my head. But now I find myself occasionally confused as to which source code I was using when I deployed web service or the web form.    I check the dates of the files and dates of the deployment directories but that doesn't prove what was published from where. Only what is likely.

 

I was hoping that maybe some nondescript file gets pushed out with the publishing so you can look at it and see the drive and path of the project from which it was deployed? Possible?

 

If not, what techniques can I use to easily keep track of what got deployed from where?

 

Also, I use TopWiz to manage the source code but when I go into WizSource Admin, I cannot find any place that shows me the related directory from where the code is stored.

 

Thanks for any tips on how to manage keeping track of what is where.

 

Thanks!!

 

Paul

Import 12.5 datawindow into 12.1 project

$
0
0

Greetings all,

 

I was working with a 12.5 datawindow and realized that it would work great in a 12.1 project. I exported it and received an error as 'incorrect release'.

 

I don't think I am using an advanced functionality into the datawindow. Can I simply edit it and change release 12.5; to release 12.0; and import it? Or do I risk some nightmare down the road?

 

Thanks all!!

 

Paul

PB Webforms and PCI Compliance / FrontPage Extensions

$
0
0

Greetings All,

 

My servers that run PB Webforms are failing PCI scans because of MS FrontPage extensions.

 

Does anyone know if I can simply remove FrontPage extensions and know that my webforms will continue to work as before?

 

Thanks!!

 

Paul

Code is Script is behaving same even after removing an IF condition

$
0
0

I have been investigating a bug in a code and actually found the error, an IF statement that was modified with an extra condition...

 

The function is in an nvo

 

CODE

 

IF ls_variable = " " Then

...

...

END IF

 

was modified to

 

IF ls_variable = " " OR New Condition Then

...

...

END IF

 

The new condition was creating an error in the business (This coe is version controlled by PVCS)...

 

I found the error to be in the New Condition... So when we removed it (The function still behaved the same)... We checked the script difference between the 2 versions of the objects and this was the only change...

 

The amazing part is when we revert to the OLD version (The original prior to adding the New Condition the application gives the correct behaviour)...

 

So I did another scenario... I added the New Condition to the Original object and yes the behaviour changed... But to my amazement I then deleted the New Condition and the function still behaved as if the New Condition was there???

 

Any help please...

 

We know how to fix it... by  removing the New Condition but the behaviour is just puzzling me...

 

Thank You

PB12.5 Classic - Indent/spacing between checkbox and picture

$
0
0

Enabling the checkbox propery on a treeview, you may add both a picture and a checkbox to a treeviewitem.

However, the indent/spacing between the picture and the checkbox is more or less set to zero.

 

Is it possible to add some spacing between checkbox and picture, or do I need to do a workaround  by editing the picture (clear an entire pixel column).

 

28-11-2013 09-27-28.png

 

 

Another question regarding the checkbox property, this property should have been available on treeviewitem (enable/disable on each treeviewitem). Any known workarounds to achieve this?

Maintaining PowerBuilder12.5.1 source code using MSTFS 2012.

$
0
0

Dear All,

    

We are going to configure our Powerbuilder12.5.1 source code to Microsoft team foundation server 2012 (TFS 2012). Please guide me what is the process & prerequisite software is required to connect to the TFS 2012. If we configure our existing source code (which are maintaining using Microsoft visual source safe 6.0 (VSS)) to TFS 2012, what additional features we will expect from TFS2012 apart from simple vanilla version controlling features (which is already available in VSS 6.0). Can it be possible to maintain the merging & branching (multiple versioning of source code) features of TFS2012 in our powerbuilder12.5.1.

 

Thanks & e-Regards

Avishek

wrapping PB DLL in a COM

$
0
0

I want to expose a PowerBuilder DLL to be consumed by a .NET app.  I've read this can only be accomplished using a COM object.  Does anybody have sample code I can look at?


powerbuilder application does not connect to the oralce db

$
0
0

Hi,

my powerbuilder application does not connect to oracle DB in windows 7, when we are running the application as administrator it is connecting with the oracle DB, i cannot give the administrator permission to all users, anybody knows the solution for this problem? thank you

Help with DW external, Pipeline and mdb

$
0
0

Hello,I need your help please.

 

If I use an external datawindow (wich I fill manually) how can I export all

the records to access??? Using a Pipeline will work?

Thanks

 

Frank P.

Error saveas PDF PB12.5.NET

$
0
0

Hi,

 

I have create a Webservices with PB12.5.NET.

In my webservices, I have a graph datawindow, that I want to saveas as pdf to send an email.

When I save graph datawindow to PDF I have an error (-1). However, if I save other type datawindow, I can save it.

 

The problem is graph datawindow and saveas pdf.

 

Anybody can help me, please?

 

Regards,

SAP PowerBuilder Roadmap?

powerbuilder classic and connecting to a oracle 11g db

$
0
0

Hi

 

I have the Oracle_developer_Day.ova downloaded with all its demo dbs (like HR OE etc...)

what i want to do is write a simple powerbuilder program to read and display in a table some of the data in say the HR db

and then secondarily C(R)UD it  create new records, read records and display them,update data in the records, and delete records

 

where would i find some examples to get me started?

Do you have a weird habbit in coding?

$
0
0

Hi everyone,

It's kind of a weird question. But,

If I code after someone else, I first uncomment all variables and compile a script to find out which variable needs to be deleted.

I MUST have script written in case sensitive mode. I don't like when someone else writes setpointer() instead of SetPointer ().

So next I replace all script using case sensitive syntax.

I MUST have IF, THEN, END IF etc. written with upper characters.

I use i for FOR...NEXT instead of ll_i.

I've already given up my very bad habbit in trying to optimalize a script. (Some stuff are magic and you should do not touch them).

I always check datawindow syntax in Get Plan (dbisqlc) altrough sometimes I have no idea what they are talking about. But I never leave datawindow with sequentialy scan.

I don't like scripts on more than 2 pages.

I don't like 3 or more tabs in IF..END IF

I don't like when somebody else writes in my script.

Dynamically resize DataWindow with Application Window

$
0
0

Hi,

 

I was just wondering if there was a way that I can set it so that my DataWindows and objects move and resize relative to the application window being resized.

 

For example I have the following which just has a few data windows and buttons on it.

normal.jpg

 

But if the user resizes the application window, the DataWindows and buttons etc stay static in their fixed position, widths and heights.

Large.jpg

 

Is there a way to make the buttons move and the DataWindows resize relative to the Application Window size?

 

thanks.


PB 12.1 Help files

$
0
0

I had to re-install  PB12.1 and I know I did something so that when I click the help button I don't get Windows help when I first installed it but I've forgotten. Please help!

 

KB

PB 12.5 connectToNewObject create by pb .net

$
0
0

I created a .Net assembly in Powerbuilder .Net

 

Added 2 references created by a other company and added 1 function to the non visual object.

 

My current references are:

- external1

- external2

- PresentationCore

- System

- System.Core

- System.Data

- System.Data.DataSetExtensions

- System.XML

- WindowsBase

 

I signed the assembly and  did a full build.

Then I used gacutil to add it to the cache (assembly successfull added to the cache).

Then I used regasm and got the registry script.

 

 

Start PB 12.5 classic.

 

ole_object lole

When I use lole.connecttonewobject("pe.test") i get error -2.

I must say I have done nothing with external1.dll and external2.dll. Should I also add them to the cache?

 

Any ideas are welcome.

 

Thanks

Connecting a PB application to Excel

$
0
0

I'm trying to effect a connection to an Excel spreadsheet using PB 11.2 to use the Excel data as retrievable look-up data.   Sybase have published two documents that I could find. However they seem dated (2003/4).

 

For example, both papers explain to appropriately name the columns and the table from the spreadsheet for SQL, select the required columns and then choose 'Insert->name->define from the Excel  menu bar to define the current workbook selection as a database table …’

 

However, there are no such menu selections from ‘Insert’ in my 2007 Excel.  I can’t find any other way from Excel to define the spreadsheet as a DB table.

 

Moving to PowerBuilder, the paper says to select the ‘Configure ODBC toolbar item’ (add via Customize if it’s not on the toolbar).  I can’t find such a toolbar item.

 

I have defined a connection by going to DB Profile, selecting ODB ODBC, New, entering a Profile Name, selecting ‘Excel Files’ as a Data Source, on the Test Connect for Preview selecting the .xlsx spreadsheet, and the connected is effected.

 

From the PowerBuilder DB Painter, I connect ok via ODB ODBC to the Excel file, but there is no table/data. 

Issue with drop down datawindow

$
0
0

Hello All,

 

I have drop down datawindow, Having the values

 

Data Value           Display value

A                              Test1

B                               Test2

C                              Test1

 

When I select the Display value Test1 and Data value C and after selecting the display value  when i tab out of the column(DDW) where i have selected the Display value ,it automatically select the Data Value A and Display Value Test1 , however i have selected the Data Value C and i checked the code of itemchanged and there is nothing written there in this event. So can any one help me out here with this issue. How i can fix this issue.

 

I am using PB11.5.

 

 

 

Thank you for your help in advance!!!!

 

 

Regards,

Prahallad

SAP PowerBuilder Roadmap?

Viewing all 2881 articles
Browse latest View live