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

PowerBuilder Applications in the new Edge Web Browser!

$
0
0

   ** Hot News **

PowerBuilder Web Applications

in the new Windows10 EDGE Browser!

 

 

   The new Edge web browser launched with MS-Windows 10 has a new look & feel and technical architecture. Microsoft is currently planning for the Edge to become the standard browser in the MS-Window line with Internet Explorer eventually being retired.

 

My example OrderEntry PowerBuilder application running in the Edge browser!

 

    Last week, Appeon Corporation released a new version of Appeon Web product housed within its latest version of the Appeon 2015 for PowerBuilder software release - EBF #328. This new Appeon software version not only included support for the new W10 O/S but also included a hidden gem - Appeon`s first beta support for the Edge web browser. Now PowerBuilder developers can build and deploy their PB Applications to the web and have them run directly in the new Edge web browser using Appeon Web! Just like they can do today utilizing either the: IE, FireFox, Opera, Safari or Chrome web browsers.

 

   At this time, Appeon Corporation do not claim that the new Edge browser is "officially" supported. However, their web browser plugin does seem to work very nicely with the Edge in my early testing.  If you would like to get a jump start on testing your Appeon Web based PowerBuilder applications in the new Edge browser, I would highly recommend downloading Appeon for PowerBuilder version 2015.0328.00.

Regards ... Chris


Documentation of PB dll (pbshare126.dll) to get more infomation about app crash

$
0
0

Hey Guys,

 

is thera Documentation about the functions in the PB DLLs?

 

We have app crashes which we can't reproduce. The Windows protocol shows the following information:

 

  • we have analized the PBSHR126.dll relating to the error offset of the windows application protocol
  • the error offset on all clients is  0x00049085
  • this is the offset for the function osImagePrint


We don't know what osImagePrint is doing or when this function will be executed!?

How can we find out what DLL (and which function) is triggered at what time? PBDebug doesn't help.

 

 

Thanks and best regard

Heiko

 

 

FYI: More Information about our PB Version and the crash:

PowerBuilder 12.6 App crashes randomly

Desktop Background in Main Window

$
0
0

Hi

 

I wait for a long time a solution to add a picture as background in the main window.

I use bmpcli32.dll since 1998 but the futur 64 bits versions will not be able to use this dll.

 

How can we do ?

 

Thank you

ORCA script generating large size exe

$
0
0

Experts,

 

I wrote ORCA script to generate exe and pbds, but exe generated is too large (approx. 8 MB) compared to when the same exe (approx. 800 KB) is generated through PB IDE. Not sure what I missed in ORCA commands.

 

Two things to note....

 

- I don't generate pbd for the pbl having application object (same in PB IDE, I don't select pbd check box against that pbl)

- I have two pbds (pbejbclient115.pbd & pbwsclient115.pbd) in library list and not included build library command.

 

 

sample script that I wrote....

 

start session

set liblist ".\dir1\pbl1.pbl; .\dir2\pbl2.pbl; .\dir3\pbl3.pbl; .\dir4\pbejbclient115.pbd; .\dir5\pbwsclient115.pbd"

set application ".\dir1\pb1.pbl" "testapp"

build library ".\dir2\pbl2.pbl" "" pbd

build library ".\dir3\pbl3.pbl" "" pbd

build application full

build executable ".\testapp.exe" "test.ico" "c:\test\test.pbr" "nnnyy"

end session

 

 

Thanks in advance !
-Sandeep

print to pdf now in win 10

Changing probing path for assemblies in runtime

$
0
0

Hello, all

I have been wondering if it is possible to change the probing path for .NET assemblies once the application has started.

We have several hundreds network installations of our PB classic apps, which all use unregistered .NET assemblies.

 

So far we put the assemblies in the application directories or in the sub directories. However, this proves to be problematic, since the same assembly is copied to multiple locations.

Then, an idea was raised to put the assemblies into a shared directory on a file server. But it requires editing of each config file of each PB classic app. So, the question is, if it is possible to adjust the probing path of each application after it started, for example, by retrieving the path from the database.

 

Thank you

Arcady

Powerbuilder Advanced GUI

$
0
0

With PB 11.5, 12.5 & 12.6 an Advanced GUI Sample is distributed. It's installed under Code Examples in Advanced GUI.

Running it and invoking Help provides two URLs:http://kodigo.sourceforge.net& https://advanced-gui-development.codexchange.sybase.com/

both of which are no longer active.

 

There's a document "Advanced GUI Readme.doc" which also has links to the same defunct URLs.

 

Looking at the software it's apparent that the effects are from a user object called canvas.pbx which obviously contains C code and may well be proprietary.

 

Question: Can developers use the advanced techniques and freely distribute canvas.pbx with their software?

There does not appear to be any Eula or warning to preclude their use.

If there is then where is it?

 

My reason for asking is because I wish to use the ToolBarStrip object but am worried about legalities.

 

Is Brad Wery on this site as he was a contributor to the GUI and I've seen his name before.

 

Larry Peters

Appeon roadmap

$
0
0

Hello Everyone,

 

Had anybody got any updates on PowerBuilder roadmap from Appeon?

 

Thanks

Babin


Rich Text Control - Visible tags on .pasteRTF()

$
0
0

Getting the text from the database and pasting it to the Richt Text Control, I get some of the tags/formatting visible, which I don't see how to get rid of.

 

The text owidctlpar gets stored together with the text originally entered in the control.

 

rich_text_edit.png

 

1. Get data and paste in control

 

rte_control.setredraw(FALSE)

ls_input = lds_data.getitemstring(ids_data.getrow(), 'description')

rte_control.pasteRTF(ls_input, Detail!)

rte_control.setredraw(TRUE)

 

2. Get the text from control and store to database

 

rte_control.setredraw(FALSE)

ls_input = rte_control.copyRTF(FALSE, Detail!)

lds_data.setitem(lds_data.getrow(), 'description', ls_input)

rte_control.setredraw(TRUE)

 

Checking the string in the database, I can find the owidctlpar, which seems to be part of the header.

 

\headery720\footery720\pgwsxn11905\pghsxn16838\marglsxn0\margtsxn0\margrsxn0\margbsxn0\pard\itap0

owidctlpar

 

For everytime I save, I get a new owidctlpar part in the string.

pb 12.6 question

$
0
0

I'm awaiting approval to get 12.6 powerbuilder

but, I installed the demo version a while ago... is there any way, that I can get a new trial period?

I didn't even really use it, when I installed it

tx13_wind.dll not found

$
0
0

Hi

 

I am using pb 11.2 and windows 7 os,  when I am using datawindow richtext control, the following error message is coming

tx13_wind.dll not found. How can I fix this problem. Please any help appreciate

 

Regards

Pol

How to switch a PB 12.5.1 license?

$
0
0

We have two out of five licenses that where assigned previously years ago and now need to be reassigned and software installed on a new PC.  I am not even sure if the software is / was even installed on a PC to begin with.  I am not the person who has dealt with the licensing in the past.  We still have the lic files that where generated I believe, so I assume somebody with appropriate rights needs to sign on to SAP, adjust the licensing, and generate new lic files.  Any help appreciated as always.

Picture Background stays in the middle of dw (and Painter)

$
0
0

Hi fellow PowerBuilders

 

I am using PB 11.5.1 and i am having the following problem:

 

On the left of my app I have a narrow window that contains a narrow datawindow which hosts the menu of the application (it mimicks the Outlook Bar).

 

Some customers requested to be able to put a logo there and they have send us .png files with the same aspect ratio as the datawindow.

 

When I put the picture as backround (not picture control!) the png stays in the middle of the datawindow in the Painter and when I launch the app, the png is not visible because it is far more right than the datawindow width allows to be diasplayed.

 

The only option that works is Tiled but this produces fauuny results depending on the clients desktop resolution.

 

I need a way to have this narrow .png files to be displayed in my narrow datawindow without tilling and such?

 

Thanx in advance!

Can Date Picker show period selection in weekly and quarterly?

$
0
0

Hi,

 

I am new to powerbuilder and using PB12.5.

 

Can date picker control be customized to show custom format in weekly or quarterly?

Fyi, with showupdown is checked.

 

Example:

 

Weekly - shows the selection:

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

Week 31 2015 (27 Jul 2015 - 02 Aug 2015)

Week 32 2015 (03 Aug 2015 - 09 Aug 2015)

Week 33 2015 (10 Aug 2015 - 16 Aug 2015)

....

 

 

Quarterly - shows the selection:

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

2014 4th Quarter

2015 1st Quarter

2015 2nd Quarter

2015 3rd Quarter

2015 4th Quarter

....

 

* 1 quarter = 3 months

 

If datepicker control cannot support this, any other PB control allow to do so, and how?

 

Thank you.

Imcomplete calendar view of datepicker control

$
0
0

Hi All,

 

I have a problem here, that the calendar view for datepicker control is incomplete if WeekNumbers option is checked, until I go and adjust it manually. It will back to imcomplete view when every time I open the calendar view.

I have tried to resize the datepicker control (width), it results the same.

Is this a bug?

Please help and thank you.

imcomplete.JPG


Validating and Troubleshooting PowerBuilder License

$
0
0

Hi,

 

As part of our continuous attempts to improve customer support quality and the ability to self-service, we have now created a new visual, flow oriented page for our PowerBuilder customers which helps to easily navigate through the license type selection, generation and troubleshooting during PowerBuilder validation.

 

This interactive Decision Tree provides a transparent flow about the license selection which in turn is linked to related KBA's/references, there by helping the customers resolve themselves within no time.

 

Here is the link for the Decision Tree. Link

 

Please use the comment section below if you have any questions or any ideas for improvement.

 

Thank you.


MailLogon Failed with 12.6 but ok with 12

$
0
0

Hello

 

Maillogon return "MailReturFailure!" since version 12.6 (it was ok with version 12).

 

It's for a connexion exe to MsOutlook 2010 32 bits

 

The problem arrive by run and executable.

 

Big problem for our first client with our new version.

 

Thank

Saving an excel file, doesn't seem to be setting date column

$
0
0

I'm using pb 12.5.2 classic

I'm doing a saveas to an excel file, and I have some datetime columns

when you open up the excel file, the columns don't seem to be formatted as date.   they columns are formatted as general

is there any way, that I can get the column to be formatted as a date or datetime ?

Xcode and Swift for PowerBuilder Developers: Part 3

$
0
0

Gettin' Loopy

 

In this installment, we'll compare and contrast the different types of Loop constructs available in both PowerScript and Swift.

If you want to start at the beginning, here are part 1 and part 2.

 

Overview

 

Loops are a critical part of every programming language, and all of them (at least those that I've worked with) do things a bit differently. There are essentially two basic types of loops - the FOR loop and the DO loop.  The FOR loop is used when a block of code is to be executed over a specific number of iterations. The DO loop executes a block of code until a specific condition is satisfied. You really need to understand what you're trying to achieve in the code before you select the loop syntax that you'll be using. Trying to force everything into a FOR loop isn't always the best approach...

 

 

FOR Loops

 

PowerBuilder

 

The basic syntax of the FOR loop in PowerBuilder is:

 

FOR varname = start TO end {STEP increment}

   statementblock

NEXT

 

  • You must declare the variable varname before you can reference it in the FOR loop.  Integer datatypes perform best, but any numeric datatype is acceptable. If you know the value of varname won't exceed 256, use a smallint.
  • varname will be automatically incremented from start to end in increment increments. The STEP keyword is optional, and the default step size is 1, but you can use any positive or negative whole number.
  • If you need the loop to count backwards, decrementing varname from end to start, set the initial value of start to be less than end, and set the step increment to a negative number.
  • If the increment is positive, and start is greater than end at the beginning of the loop, then statementblock will NOT execute.  The same is true for negative increments - when end is less than start at the beginning of the loop.
  • The statement can also be terminated with END FOR, if you find that more readable.

 

 

Swift

 

In Swift, there are two variants of the FOR loop, and they operate very differently.  The loop that is most similar to PB's FOR loop is actually called the FOR-IN loop.  That looks like this:

 

for varname in range-expression {

    statements

}

 

  • You don't need to declare varname prior to its reference in the FOR statement.
  • You get automatic incrementing of varname loop counter, but that increment is always by 1.
  • You can use closed (inclusive) or half-open (exclusive) range expressions (which were covered in Part 2).

 

Here's a simple example that prints out the first 10 multiples of the number 3.

 

for index in 1...10   { 

    println( "3 times \(index) equals \(index * 3) );

}

 

If you have no need to access the loop counter variable in the statement block, you don't even need to define one!  Just use an underscore character where you would normally put the loop counter variable name.  The loop will execute the same number of iterations, you just won't waste memory space on a loop counter.

 

let base = 3;

let power = 10;

var answer = 0;

for _ in 1...power   { 

    answer *= base

}

println( "\(base) to the power of \(power) is \(answer) );

 

 

There's a variant of the FOR-IN loop that automatically iterates over arrays and dictionaries (which we haven't covered yet, but aren't really that difficult).  Here's an example of that style:

 

let primeNumbers = [2, 3, 5, 7, 11, 13, 17, 19];

for number in primeNumbers {

    println( "\(number) is a prime number") ;

}

 

  • There is no loop counter variable used or declared, and no range expression is defined.
  • There's no need to write code that checks for overflow of the array boundary.  The loop will stop after the final entry in the array is processed.

 

 

The other variant of the FOR loop in Swift is actually more comparable to PowerBuilder's WHILE loop, but uses the C-style syntax (except that parentheses around the initialization;condition;increment code are not required).

 

for initialization ; condition ; increment {

    statementblock

}

 

And an example that does exactly the same thing as the FOR-IN loop above might look like this:

 

for var index = 1 ; index <= 10 ; index++ {

      println( "3 times \(index) equals \(index * 3)" );

}

 

 

DO WHILE/UNTIL loops

 

A FOR loop is best when you have a static range upon which the loop will iterate - either a bounded array, or a defined range expression.  When you need a statement block to execute indefinitely until a specific condition is satisfied, use one of the DO loop constructs.  Let's start with the PowerBuilder options for these.

 

PowerBuilder

 

In PB, there are four variants of the DO loop, and the differences between them are very subtle.  They differ based on the terminating condition being TRUE or FALSE, and whether the condition is evaluated at the start or end of each iteration.

 

SyntaxDescription

DO UNTIL condition

    statement block

LOOP

This version evaluates the condition at the start of each iteration. If the condition is initially TRUE, the statement block will not execute.  Otherwise, the loop will iterate UNTIL the specified condition becomes TRUE.

DO

    statement block

LOOP UNTIL condition

This version evaluates the condition at the end of each iteration, so the statement block will execute at least once. The loop will iterate UNTIL the specified condition becomes TRUE.

DO WHILE condition

    statement block

LOOP

This version evaluates the condition at the start of each iteration.  If the condition is FALSE on the first iteration, the statement block will not execute.  Otherwise, the loop will iterate WHILE the condition remains TRUE.

DO

    statement block

LOOP WHILE condition

This version evaluates the condition at the end of each iteration, so the statement block will execute at least once. The loop will iterate WHILE the specified condition remains TRUE.

 

 

Swift

 

Swift only has two variants of the DO loop, a WHILE and a REPEAT statement.  The syntax for these is very straightforward:

 

SyntaxDescription

while condition {

     statementBlock

}

This version evaluates the condition at the start of each iteration. If the condition is initially FALSE, the statementBlock does not execute at all.  Otherwise, the loop iterates WHILE the condition remains TRUE.  This functions exactly the same as PB's syntax #3 shown above.

repeat {

     statementBlock

} while condition

This version evaluates the condition at the end of each iteration. The statementBlock will be executed at least once, even if the condition is initially FALSE. The loop will iterate WHILE the specified condition remains TRUE. This functions exactly the same as PB's syntax #4 above.

 

 

Conclusion

 

I'll cover the basics of the three primary Collection types in the next post.  In Swift, these are arrays, sets, and dictionaries.

 

-Paul-

MailLogon Error with MSOutlook 64 bits

$
0
0

Hello

 

With pb version 12 or 12.6, MailLogon return a error with MsOutlook 64 bits (but Ok with 32 bits).

I try with pb compil 64 bits, but i have the same returns.

 

Someone has a solution ?.

 

Thank you.

 

Olivier

Viewing all 2935 articles
Browse latest View live


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