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

PB 11.5.1 How to get Retrieval arguments AFTER dw.Retrieve()

$
0
0

PB 11.5.1 Classic Build 4011.

 

I am wondering if there is a way to get the values from retrieval arguments AFTER the datawindow has been retrieved. I can't seem to find a way. We have a place in our program that we build a dynamic datawindow and modify the syntax adding arguments then we call the retrieve function and let powerbuilder prompt for the arguments, and I now need to get the values that were typed by the user. If there is no way then I will code the prompt and capture the values myself, just thought I would check here first.


Powerbuilder and SSO

$
0
0

Hello

I'm still working on the SSO

 

 

I thought to take advantage of the same credentials for network access microsoft to authorize access to our ERP programs.

If the user is logged in to the server ok, otherwise it leads to ERP.

 

 

Is this a good idea?

 

 

There are calls for Powerbuilder that allow you to see how you are connected to the network user (user name)?

If you are, you can know if you are connected to the network or you are connected to the local machine?

 

 

thank you

 

 

Gimmy

Error in Calling External Function

$
0
0

Hi,

 

We are migration PowerBuilder Legacy application which is currently built on PB11 and Win XP environment.

 

Migrating to PowerBuilder 12.5 (12.5.2 Build 5602) Classic for Windows 7.

 

We are using DLLs which is developed in VC++.

Migration is smooth using the Automated Migration Tool provided by PowerBuilder.

 

When we tried to run the application getting a error "Error In calling the external function.....", which is declared in Local External Functions and error occured on Function call.

 

I wrote a sample program to call the DLLs and I declared in Global External Functions (Not Intentionally)... Strange I was getting a different error "Bad Runtime reference....", I build the sample application and Ran it in Release mode It worked fine.

 

Can anyone help me what is happening and will be greatful if anyone could help me in resolving the issue.

 

Running the application Deployed in PB11 is working fine in Win 7 on this DLL Perspective.

 

-- Declaration --

 

Function Integer encrypt(String InputData, String EncKey, String SeedIn, ref string Encrypteddata) library "CRYPTDLL.dll" alias for "encrypt;Ansi"

 

-- Error While calling  below line --

 

li_rtn = encrypt(ls_pwd, ls_key, ls_seed, ls_encpwd)

 

Regards,

Vinu

Help with DW and Excel File

$
0
0

Hello, I'm trying to export a datawindow to a excel file with 3 worksheets, because an excel file have a limit in rows (version 2007 have a limit of 1048576 rows), my code is ok (in theory) but when I try to export mor than 510000 rows, powerbuilder is close and view a error message.

 

oleobject myoleobject

integer rc, i, count, j, colcount, rep

string mydata, colname, colnames, ls_select, ls_dwsyntax, ls_err, el

 

 

rep = truncate(dw_2.rowcount()/1048575,0)

if mod(dw_2.rowcount(),1048575) > 0 then rep = rep +1

myoleobject = CREATE oleobject

rc = myoleobject.ConnectToNewObject("Excel.Application")

IF rc <> 0 THEN

MessageBox ( "Error", String ( rc ) )

Return

END IF

 

 

ls_select = string(dw_2.object.datawindow.table.select)

ls_dwsyntax = SQLCA.SyntaxFromSQL( ls_select, "Style(Type=tabular)", ls_err)

dw_3.Create (ls_dwsyntax, ls_err)

 

 

IF ls_err <> '' THEN

MessageBox ("error - Sintaxis", ls_err)

else

dw_3.SetTransObject (SQLCA)

end if

 

 

try

myoleobject.Application.Visible = false

myoleobject.Workbooks.Add()

 

 

for i = 1 to rep

  myoleobject.activeworkbook.sheets(i).name = as_tabla+string(i)//"reporte"+string(i)

  dw_3.reset()

  dw_2.RowsCopy(((1048574 * (i - 1)) + i), (1048575 * i), Primary!, dw_3, 1, Primary!)

  colcount = integer(dw_3.object.DataWindow.column.count)

  for j = 1 to colcount

   colname = dw_3.describe("#"+string(j)+".Name")

   choose case j

    case 1

     colnames = colname

    case else

     colnames = colnames + '~t' + colname

   end choose

  next

 

  colnames = colnames + "~r~n"

  mydata = dw_3.object.datawindow.data

  clipboard(colnames + mydata)

  myoleobject.activeworkbook.sheets(i).paste()

next

  //////

for i = 1 to myoleobject.activeworkbook.sheets.count()

  el = myoleobject.activeworkbook.sheets(i).name

  if  el <> as_tabla+string(i) then exit

next

 

if i = 2 then

  myoleobject.activeworkbook.sheets(2).Delete

  myoleobject.activeworkbook.sheets(2).Delete

elseif i = 3 then

  myoleobject.activeworkbook.sheets(3).Delete

end if

  //////

myoleobject.activeworkbook.saveas(as_destino)

myoleobject.activeworkbook.close()

myoleobject.Application.quit

myoleobject.DisconnectObject()

catch ( exception e )

MessageBox ( "Error", e.GetMessage() )

finally

Destroy myoleobject

end try

 

please explain me the error, sorry for my english.

 

Thanks,

 

Frank M. Páucar Cáceres

PB15 beta : regression in saveas(xlsx!)

$
0
0


In PB 12.5 we had a problem with the saveas() function of a datawindow in xlsx! format ( our regional settings are french, so the comma is the decimal separator). When opening the generated xlsx file, Excel complains about a problem, proposes to repair, and only after that our customers can see the contents of the Excel file ( this process is not acceptable for the end-users)

This bug was fixed in EBF 20488: 12.5.1 (4595)  ( see below) but the bug is there again in PB15 BETA

 

 

20488   695756   Excel12! format
results in unreadable content for
  a DataWindow datetime column, when the regional                  
settings are set to have a comma as decimal
                    separator.

 

 

PowerBuilder terminated while clicking the database painter

$
0
0


Hi ,

 

Actully I am executed more than 100 select statment in database painter. After that PowerBuilder get terminated. How to resolve this issue.

 

Thanks

Pralhad

PB 15 window.resize() crashes when running application

$
0
0

during the open process a window is resized:

 

aw_win.move( li_Xpos, li_Ypos)

 

crashes PB 15 beta:

 

 

32 bit PB15; win 8.1 64 bit

Problem signature:

  Problem Event Name: APPCRASH

  Application Name: PB150.EXE

  Application Version: 15.0.0.1507

  Application Timestamp: 526e28c7

  Fault Module Name: PBVM150.dll

  Fault Module Version: 15.0.0.1507

  Fault Module Timestamp: 527a0203

  Exception Code: c0000005

  Exception Offset: 000e449a

  OS Version: 6.2.9200.2.0.0.256.48

  Locale ID: 1033

  Additional Information 1: b818

  Additional Information 2: b8185e63cf727723b6e6533ea69417bb

  Additional Information 3: 57eb

  Additional Information 4: 57eb779b458f624e7e854961b1592a01

PB 15 number conversion bug

$
0
0

int li_basen, li_index

ulong ul_value

li_basen= 36

li_index = 6

ul_value = li_basen ^ li_index

 

 

PB 15 beta:   ul_value =  2147483648 (incorrect)

 

should be: 2176782336 (previous versions return this)


PowerBuilder 15 Beta - Windows 8/8.1 testing?

$
0
0

Anyone running the beta in Win 8/8.1?

PB15 Beta - question on OData joins

$
0
0

PB15.Net allows you to paint "joins" between two OData entities.  I've got some basic questions about this functionality.

 

1) The detection of the join columns seems to be based solely on matching column names.  Since the $metadata document specifically lists the valid associations between two entities, maybe this would be a better place to look to build the initial join criteria.

 

2)  You're allowed to select multiple tables/entities when initially building the query (and the joins are created between matching column names, as stated above).  But if you want to add tables to an existing select statement, you get the message that the currently selected table will be replaced.  This implies that you can't do joins, and only single-table queries are allowed...  If that's true, then don't allow us to select more than one table when initially constructing the query.

 

3) I was able to create a query that joined two tables on the appropriate columns, but the resultset only contained columns from the "parent" table.

 

4) What about identity columns, and retrieving the newly created values following INSERT (PUT) calls?  I don't think OData has the concept of "@@identity" or "default autoincrement", so I'm not sure how that would work.

 

5) How would this be implemented anyway?  Using the $expand OData operative would execute on the server, but brings back a nested XML or JSON document, and the datawindow needs a flat resultset.  I wouldn't be averse to have it work exactly like SQL, where the selected columns from the parent table are repeated for each joined child row.

 

-Paul-

PB15 Native Crashes Almost Immediately with No Specific Error

$
0
0

Starting testing our app (PB 10.5 and 12.5) PFC based app with PB Native (Classic) and find that it has this bizarre behavior were the app stops painting the screen and as I move the cursor over where the app's MDI frame should be, I see the windows 7 background and icons start to appear.  When run in the debugger I can click in the win 7 tray on the PB icon and get back to the debugger (which is still running).  I notice this doesn't happen with every sheet - just those corresponding to our larger windows apps.

 

We've also had the PB Development environment bail with an unhandled exception.


Anybody have any ideas what might be going wrong that we can get around.

 

Thanks

 

Glenn Barber

Question with Automated Builds using OrcaScript & PB 12.0.1

$
0
0

Hi:

 

Not sure how to ask the question, so I'm just throwing it out there.  I am trying to automate our builds for testing from the development environment using OrcaScript, unfortunately we do not add our targets to SCC.  Is there any way to do a Get Latest Version on individual libraries and just get those objects that were modified?  If so, could you provide me with some examples?

 

If that is not possible, what are the CONS to adding the target to SCC?

 

Any assistance you can provide is greatly appreciated.


Thank you.

 

Janie

Support for SQL Anywhere 64 Bit in PB 15 64 Bit Deployment

$
0
0

One of the Primary Reasons we wanted to move to the 64 Bit Deployment version of PB Classic was so we could use the 64 Bit ODBC Drivers for SQL Anywhere.  Reading the PB15 beta notes there is a comment about not supporting 64 Bit ODBC in the PB 15 64 Bit Deployment which would mean that we cant access SQL Anywhere 64 bit from 64 bit versions of our applications.

 

Did I misunderstand? - If not, is this just temporary?

 

Also - where is the proper place to report problems with the Beta?

PB15.Net Beta - error with SA16 OData server

$
0
0

Using the new ODT database profile in PB.Net (v15 beta).  I can successfully connect to a Netweaver Gateway OData endpoint, but I get the attached error when attempting to connect to the SQL Anywhere 16 OData server. 

 

To recreate:

-  Go to the <user>\Documents\SQL Anywhere 16\samples\sqlanywhere\ODataSalesOrders folder

-  Launch the start_server.bat file to start the sample database and the OData Server.  This starts on http://localhost:8090

-  In a browser, go to the URL http://localhost:8090/odata to verify that the SA16 OData server is up and running.

 

- In PB15.Net, create a new database profile in the OData folder.  Call it SA16 and use the URI: http://localhost:8090/odata

 

You will receive the attached error message:

Screen Shot 2013-12-19 at 4.23.12 PM.png

 

I believe this is actually a problem with the SA16 OData producer, as a connection to Netweaver Gateway endpoint is successful.  I think that SA16 is referencing the wrong namespace URIs. 

 

-Paul-

Design static or dynamic web page using powerbuilder .NET.

$
0
0

Dear All,

    

Can anybody help or guide me for the following. I am new in powerbuilder .Net but I am working on powerbuilder classic version 12.5.

    

  1. Please explain me the steps how to develop the
    dynamic / static web page using powerbuilder .NET?
  2. Can anybody share me a sample project on powerbuilder
    .NET along with configuration document for my study?

 

Thanks & e-Regards

Avishek


PB 15.0 Code Examples, SLE - pbm_keydown - Message.WordParm

$
0
0

PowerBuilder 15.0 Code Examples -> UserObjects -> Quick Search (u_selectin_list in pbexamuo.pbl)

 

The SingleLineEdit "sle_find" has an event named "key_pressed" mapped to pbm_keydown and

some code like:

 

string    ls_character

ls_character = Char(message.wordparm)

 

This is not working in the PowerBuilder 15 beta (Dec. 2013).

 

In prior versions it worked to get the pressed character.

PowerBuilder Classic 15 beta error

$
0
0

Doing some initial testing with PowerBuilder Classic 15 beta against our applications.  Some migrate ok, however there is one set of apps which are generating an error.  This group of apps leverage the PFC as well as a custom library which is itself leveraging the PFC.  These application work perfectly under 12.5.2 classic (and below).

 

When migrating, we are getting the following error in a popup: "Invalid type in cm_intrinsic_int, file cmintrin.cpp, line 375"  Our applications don't have such a file so I'm guessing this is something internal to PowerBuilder.  I am also given Abort, Ignore, Retry buttons so I just ignore.  Everything 'seems' ok as I can open the object in question, but when trying to regenerate this specific object, the same error appears.

 

I guess this is why we test beta software.

 

 

Other than this issue, things looking good so far but I'm early in testing..

 

Any ideas/suggestions would be great.

 

 

 

Shane Maitland

PB app is crashing, need help

$
0
0

Hi!

 

We had upgraded earlier this year from PB 11.5.1 Build 4011 and started deploying to client sites with 12.5.2 probably around May. We have noticed increased calls to our support line.

 

We are using PB Classic 12.5.2 Build 5006 and have deployed our application across client/server as well as hosted environments. We recently upgraded a large hosted environment (Citrix using published apps) and have started receiving a lot of calls about people getting kicked out of our application.

 

We are looking for ideas on how to figure out what's going on? Attached is an example of the application log given to our dev team. The system admins tell us that they see it alternate between pbdwe125.dll and pbvm125.dll. Any suggestions on where to start looking?

 

Thanks!

 

John

Does anyone use MS Team Foundation Server for Version Control

$
0
0

Has anyone had experience using MS Team foundation server for version control of Powerbuilder.  We are currently using PB 11.1 on some projects and PB 12.5 on others.  I have not found any way to open Team Foundation server outside of Visual Studio.  If that can be done, I need to control my code at the object level not the .pbl level

 

Thanks for any info that can be provided.

Docked Windows Toolbar

$
0
0

     This might be more of a request but when they first started to show the docked windows to the PB group we had asked if the toolbar for the sheet could be part of the window instead of up in the frame.  It seems that this is not an option in the Beta.  What I need is a way to get these actions tied to the window it is on (exactly how the Advanced GUI has done it).  When users float their windows to a seperate monitor it becomes real annoying that you have to click on the actions in a seperate window.  I know I know, VS has done this with there tabbed document as well but you can set the Solution Explorer as a Tabbed Document which then has the result I am looking for.

 

Any way of getting the sheet toolbar tied to the window?

 

Thanks,

Chris Craft

Viewing all 2881 articles
Browse latest View live


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