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

Word's Spell Check Window not coming to front in PowerBuilder application

$
0
0

Hi,

 

We in our company has recently moved to office 2013. Also we had a feature in our powerbuilder application in which user can create a word document and can use the spell check utility which popsup at the time of saving the document. This was working well till we used office 2010. But in 2013, the spell check popup is not coming in the front for the user to use it. It is possible to reach the popup only through Alt+Tab. We want the popup to cone to front automatically.  (We were using user32.dll function SetForeGroundWindow. But now I tried all the below user32.dll functions

 

SetActiveWindow(ulong hWindow)

BringWindowToTop(ulong hWindow)

ShowWindow(ulong hWindow)

SetFocus(ulong hWindow)

SwitchToThisWindow(ulong hWindow)

SetWindowPos(ulong hWindow)

 

Where the parameter sent is the handle of the spell check popup. But nothing is working. Would appreciate any help in this regard.

 

Thanks in Advance

 

Srimathi


RichTextEdit RTE control behavior in PowerBuilder 12.5.2

$
0
0


Hello,

 

We recently migrated from PowerBuilder 11 to 12.5. We've noticed that the behavior of our RichTextEdit controls seems to have changed. They are no longer marking the control's modified flag when data is Pasted in via Ctrl-V or when data is Cut via Ctrl-X. The Paste/Cut happens, but when our screen checks for changes, the control does not have Modified set.

 

Has anyone else seen this behavior?

 

Thanks

Azure, PowerBuilder & PowerDesigner

$
0
0

Greetings All,

 

I read the following article and decided to try out Azure:

 

TechWave 2011: PowerBuilder and the Cloud - Jim O'Neil - Technology Evangelist - Site Home - MSDN Blogs

 

I created a database and I was able to create an ODBC connection to it.

 

But I could only connect to the master database, not the actual database that I want to populate with my tables.

 

After floundering around for an hour, I got the idea that maybe I need to use SQL Server Manager to manage logins and rights?

 

Can I get along with SQL Server express or do I have to buy something to do that.

 

Also, can anyone comment on the cost of Azure and the pro's and con's of using it with PowerBuilder?

 

Thanks all!!

 

Paul

several pb.net questions from pb classic developer

$
0
0

I am a long time pb classic developer and having a lot of trouble with PB.NET. I'm forced to use pb.net because I do not believe pb classic is able to call WCF services. I have pb12.5 but I am currently using pb 12.6 trial for my tests.

 

 

1) wheres is the app.config in the workspace? when I build a pb.net solution it automatically creates a config file in the debug folder. If I update this file with some settings they always gets overwritten with a new one when build it. How can I setup a app.config file in pb.net similar to .net solutions.

 

2) We have existing WCF services that readily handle dataTable retrieves and updates. I want to use pb classic or pb.net to use these services. Is there a way I can somehow convert datawindows to datatables and call my existing WCF services. This should also take into consideration the state of the datawindow row (delete, new, modified) etc...

Updates on The Future of PB - App Architecture

$
0
0

Hi Everyone,

 

I missed the web telecast of "The Future of PB - App Architecture". Please share the updates if you have watched.

 

Thanks & regards

Babin A B

Chinese characters not converting correctly to EncodingANSI when system Locale is set to Chinese

$
0
0

Hi

We have a PB application(PB 12.5 Build 4953/ backend - Informix database) with multi language support. We use Tuxedo servers for communicating between the PB Client and the Informix DB. The alternate language information entered on the client is first converted to Ansi format using combination of Blob function and String function prior to sending it to the Tuxedo C servers. likewise prior to displaying the data on the client, it is first converted to EncodingUTF8! again using the same functions. The application works fine if the System Locale setting is English. We have Windows 7.0.

 

We are noticing a problem when the System locale is changed to (Chinese, Simplified PRC). The String function no longer converts the Blob information into EncodingANSI.

 

--**Code snippet - The below conversion is done prior to sending the information to the Tuxedo C server.

 

//  - start of encoding of core data - it may contain UTF8 characters

blob lblb_encode

// Store result text in blob with EncodingUTF8!

lblb_encode = Blob(az_output_string, EncodingUTF8!)

// Store blob text back into result with EncodingANSI!

az_output_string = String(lblb_encode, EncodingANSI!)

 

Need to find a way to get around this issue. Having the System Locale set to English is not an option for the users in China.

 

Thanks for the Help.

Susan.

Is it possible to debug the sql server trigger on powerbuilder?

$
0
0

hello sir/madam

     I have error of "Row changed between retrieve and update",although I have Google around,but the solution didn't work.(there is a solution  in the update properties,in the where clasue for update/delete,choose the Key Columns,I have tried,it doesn't work) after then my workmate just alter the trigger of the table which the datawindow is going to be updated,the error disppeared.this case is weird,because I directly use SQL syntax which is Datawindow generated (I have catched that error in dberror event  of datawindow) and the syntax is update mytable set col='some value' where condiction .however the syntax just works fine,the table was been updated.so I wonder if I could debug the trigger of table of SQL Server in powerbuilder?

     In addition,I havle written some dlls for powerbuilder to call which is written by the Visual C++,I concern that powerbuilder will execute the function in the DLLs would have issued like the case in above.so I wonder that is it possible that debug the DLL when powerbuider could be trigger the dlls started?

regards

Ken

Future of PowerBuilder webcast


Updating PowerBuilder 6.5 app - Easy? Options?

$
0
0

My team has inherited an ancient PowerBuilder 6 application that, obviously, is a little out of date. Are there any "easy" options for migrating to the latest and greatest? Am I starting from scratch? Can I step through previous PB releases to get it up to speed?

 

Whatever experience or recommendations for how to approach this that can be shared would be very much appreciated.

 

-Andrew

PB 12.5.2 Build 5583 Winform: issue with SingleLineEdit modified (pbm_enmodified) event

$
0
0

Hi

 

We have few applications in PB classic 12.5.2 Build 5583. We are migrating them to PB Winform (under same version and Build of PB).

One issue that we have found is related to SingleLineEdit (SLE). And it looks like a bug in PB. The issue can be replicated in the following way by using any existing window -


1) Declare an Instance variable for the window

     long  il_4 = 0
2) Add a SLE control, say sle_1
3) Add a StaticText control, say st_1
4) Put the below code in sle_1.modified event -

 

long ll_1, ll_2, ll_3

If KeyDown ( KeyEnter! ) Then
     ll_1 = 10
     ll_2 = 100
     ll_3 = ll_1 + ll_2
End If

 

il_4 = ll_3 + il_4

 

Messagebox("ll_3 val", string(ll_3))

 

st_1.Text = string(il_4)

 

 

Now, run the above code using PB Winform target, the Messagebox displays 110 but the static text displays 220 ! If you run the same code in PB classic, both the Messagebox and static text shows 110 and that is correct.

 

Now come back to PB Winform, comment out the Messagebox. Run the application. It works fine. The issue is happening with the use of Messagebox object. I debugged the code and found that in Winform, when the cursor is at the line Messagebox and you try to step in, the cursor goes back to the beginning of the sle_1.modified event code instead of going to the next line (st_1.Text = string(il_4)). In SLE's modified event, when it encounters a Messagebox, the flow of code breaks and start re-executing from beginning of the event again.

 

Is it not wrong in PB Winform? Is there a fix available for this?

 

We even tried moving all the code from SLE_1.modified event to a Commandbutton and then call the button's clicked event from sle_1.modified. Same problem remains. In fact, if there is a Messagebox in anywhere in the subsequent codes which may get triggered by the call of sle's modified event, the problem comes up.

 

We are using Windows 7 Enterprise Service Pack 1 64 bit OS.

 

 

Thanks & Regards,

Mazibar

Sending a File thru ftp, and updating the record for it.

$
0
0

On a powerbuilder 12.5 classic application

I'm sending a file, to an ftp site

but... on that site they are immediately renaming the file.

 

I have database transactions, that are used to make up this file.

so...  if the file was sent, I would update the transactions on the database to Sent.

But.. I believe I had an instance where the database transactions failed..... even though the file was sent

and the user, "failed" to see the error.

 

so, I ended up sending 2 file... which caused a lot of problems

 

the database is oracle

If there's some kind of database issue...  will it fail, when I try to do the dw.update()?

or... will it error out on the

commit statement?

 

I'll need to change my process.... and change the database transactions (to sent) first

just not commit them, until the I'm sure that the file is sent

 

If it fails on the update...  I'll need to do the update, before actually sending the file

Then... I should be able to rollback the transactions, if the file send fails

otherwise... I can commit

 

 

Does this make sense??

PB .NET 12.5.2 and .NET Framework 4.5.2

$
0
0

Hi,

 

We have a PB .NET 12.5.2 application that relies on the System.IO.Ports.SerialPort class for handheld barcode scanner operations.

It's been working fine (with .NET Framework 4), but now appears to "hang" after .NET Framework 4.5.2 has been applied.

 

Behind the scenes, the code instantiates the class, sets various properties, then calls some of the methods (Open(), Close(), and Read() methods).

I've already verified these properties/methods exist in both framework versions with no obvious differences.

 

The anticipated response is to upgrade to PB 12.6 (which is supposed to be .NET framework 4.5.2), but this isn't an option right now for my client.  Has anyone experienced this issue, or have any suggestions on a potential workaround?  I appreciate any assistance. 

 

Thanks,
Jason

How to view a specific row as the first row on page

$
0
0

Hi to all,

 

i have a DW with several rows.

 

there is a way to scroll the dw via script to view a specific row as the first row on page?

 

For example how can i force dw to scroll in a way for which the first row on page is the the row #2 ?

 

Thanks in advance

 

Alberto

Powerbuilder 12.6 Migration Help

$
0
0

Hi,

 

We are migrating our applications from PB12.5 to PB12.6, as part of migration of we are facing some issues. We have some tree view sections in our application. While opening the window with the treeview, it shows powerbuilder error and application is getting terminated. When we searched in google, we come to know that, we need to update the 12.6 PFC pbls.

We download the new PFC and PFE pbl's and tried to build the package, but it is showing some error while building. Please help to fix this issue. Also, if possible provide the link for downloading the 12.6 PFC pbl's.

 

Note: We tried with updating the 12.5 latest PFC pbl's but still it shows error.

 

Thanks in advance.

Appeon 6.5.1 EAServer Enterprises Edition Software Copy

$
0
0

Hi All,

 

sub: "Appeon 6.5.1 EAServer Enterprises Edition" Software Copy

 

 

I Have Purchase Appeon 6.5.1 EAServer Developer and Enterprise Edition in year 2012 from Sybase India,

I have download Developer Edition Setup on my PC.

My enterprises Edition is install on Windows Azure.

I have not download my Enterprise Edition on my localpc and not have backup copy on my windows Azure server.

Now SAP remove download installable from https://sybase.subscribenet.com

i have email to sap.support.india for this issue, but they say they do not have installable download copy.

Support team suggest me goto SAP Community Forum,

Can any one help me how can i get "Appeon 6.5.1 EAServer Enterprises Edition"

 

 

Thank you and Best Regards

Kiran Patel


Appeon questions

$
0
0

Hi All,

Is this the correct forum to post Appeon questions or there are a more specific one?

 

Thanks!

how to determine the version of powerbuilder which built an executable?

$
0
0

Hello,

Does anyone know how to determine which version of PowerBuilder was used to build an executable?

 

Thank you,

Doug

Ghostscript and PDF

$
0
0

Hi.

 

I followed one of the guides here, and finally managed to create a valid PDF in PB12.5 using Ghostscript and dw_data.saveas()! Yay!

However, I have some questions.

 

First of, I installed GS8.71 and restarted my computer.

Then I installed GS9.18, restarted the computer holding down SHIFT to install the printer with an unsigned driver (Windows 10).

Then I created a PDF using dw_data.saveas(), and it says in the properties that it's created using Ghostscript 8.71.

I uninstalled both GS8.71 and GS9.18, removed the "gs" folder in C:\Program Files\ and restarted.

I reinstalled only gs9.18 and now the properties in the PDF says "Ghostscript 9.18". Which makes me think that GS8.71 is not necessary anymore?

 

So my questions is:

Do I really need to install GS8.71 first? It looks like GS9.18 is working great on it's own?

And how can we distribute GS to all our customers without having to install it on every client computer?

Can the "Sybase Datawindow PS" printer perhaps be a network printer which all client computers can access instead of a local printer?

 

And finally: will it be possible to save a datawindow as PDF (native, without installing GS) in future versions of PowerBuilder?

Perhaps Armeen Mazda in Appeon would like to comment this?

 

Regards,

 

Bjarne

N-up DataWindow issue

$
0
0

Hi everyone

 

I have N-up Datawindow with two rows per detail band to show general information with photo from players of my table.

 

 

To put the photo of each player I have a function with FOR .. NEXT to get the BLOB value for each player and save it into file and then set the file name into field "foto"...... My issue it's when a Player has not photo, I assign to him a default file (LOGO_LIGA.jpg'), but show me the photo for the first player

 

 

I attached a file to see it ... the second player has not photo and show me the same photo for the first player.

 

The Function to get the photo from table... I'm working with Powerbuilder 11.5 Build 2506

 

Blob abl_foto

Integer li_cuantos

Integer li_equipo, li_jugador

 

n_cst_filesrvwin32 lnv_file

lnv_file = Create n_cst_filesrvwin32

filedelete('fotojugador.jpg')

 

dw_detalle.SetRedraw(False)

For li_cuantos = 1 TO dw_detalle.RowCount()

    li_equipo = dw_detalle.GetItemNumber(li_cuantos,"jugador_expulsado_id_equipo")

    li_jugador = dw_detalle.GetItemNumber(li_cuantos,"jugador_expulsado_id_jugador")

    SELECTBLOB jug_foto INTO :abl_foto

    FROM jugador

    WHERE id_cliente = :gi_cliente AND id_sucursal = :ii_sucursal AND id_torneo = :ii_torneo AND id_equipo = :li_equipo AND id_jugador = :li_jugador ;

    If Sqlca.Sqlcode <> 0 OR Isnull(abl_foto) Then

        SetNull(abl_foto)

        dw_detalle.object.foto[li_cuantos] ='LOGO_LIGA.jpg'

    Else

        lnv_file.of_filewrite( 'fotojugador'+String(li_cuantos)+'.jpg', abl_foto, False )

        dw_detalle.object.foto[li_cuantos] = 'fotojugador'+String(li_cuantos)+'.jpg'

    End If

NEXT

dw_detalle.SetRedraw( True)  

Viewing documents (tif/bmp/pdf) in powerbuilder 12.6 classic application

$
0
0

We had been using a product called global 360 in our powerbuilder applications.

as an OLE control.

Now... we have requests, to use something that can handle pdf files

which global 360 cannot do.

 

Does anyone have any recommendations on something we can do that can view (basically all image types)

global 360 could also do annotations

so.... if there is something out there, that could also do those

it would have to handle multiple pages as well

 

we actually started saving the images to the database recently.

 

I'd appeciate any suggestions that you can give

thanks

Viewing all 2881 articles
Browse latest View live


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