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

Force refresh of source control status in the IDE

$
0
0

Does anyone know of a way to force the IDE to refresh the source control status using a keyboard shortcut?

 

I have a IDE Wizard that does checkout/checkin directly to the source control provider and I want to be able to force the IDE to refresh immediately by sending it a keystroke. I am trying to avoid making the user have to right click and choose Refresh Status.

 

Thanks


pb 12.5 in window 's browser left events ,instance variables

$
0
0

help me to restitute my browser window.

 

yehuda fingher.

Electronic(digital) Signature with PowerBuilder

$
0
0

Hi to all,

I'm looking for a electronic signature capture device(or vendor) that would allow me to capture and save a signature in Oracle database(blob datatype)

or an image (bmp or jpg). Please let me know if you may have or know how to make it work.

 

Alex Frisman

Formula for calculating colors

$
0
0

I have also needed to use all three of the RGB command example(RGB(120, 255, 129))   to calculate colors.

 

 

This is because the below formula from documentation makes no sense.

 

Mathmatics would indicate the below needs brackets. What are the little plus symbols right next to the number mean? is it an addition symbol or something other

 

65536 * Blue+ 256 * Green+ Red

System.AccessViolationException in Powerbuilder.NET

$
0
0

Hi ,

 

I have created a wcf service with powerbuilder .NET 12.5 build 5609.

I have used inside my function a datastore with a very simple datawindow were I'm looping to get the data.

The thing is that the first time I call the method from my application I get in my IIS the below

In my svc I'm connecting to an SQLServer 2012 to get data. I use the OLE DB in the dbms type and the below in my dbparm

"PROVIDER='SQLOLEDB',DATASOURCE='MYMACHINE',PROVIDERSTRING='database=DB_3'"

 

I have also changed the providers to SQLNCI11 use the native client but nothing.

 

So I get the below and this is happening when I use a Datastore with a Datawindow.

My Web server is windows 2008 R2 standard 64bit

 

Application: w3wp.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

   at <Module>.l(si*)

   at <Module>.e(d*)

   at Sybase.PowerBuilder.DataSource.Db.CommandBlock.Cancel()

   at Sybase.PowerBuilder.DataSource.DSCommand.Cancel()

   at Sybase.PowerBuilder.DataSource.DSCommand.Dispose()

   at Sybase.PowerBuilder.DataSource.DSCommand.a(System.Object, System.EventArgs)

   at System.EventHandler.Invoke(System.Object, System.EventArgs)

   at Sybase.PowerBuilder.DataSource.DSConnection.Close()

   at Sybase.PowerBuilder.DSI.PBSQL.DSISQLFunc.Stop(Sybase.PowerBuilder.PBSessionBase, Sybase.PowerBuilder.PBTransaction)

   at c__n_wcfjsonhotel.db_disconnect_1_1528663888[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon ByRef)

   at c__n_wcfjsonhotel.f_get_regguest(Sybase.PowerBuilder.PBString, Sybase.PowerBuilder.PBString, Sybase.PowerBuilder.PBString, Sybase.PowerBuilder.PBLong, Sybase.PowerBuilder.PBLong, Sybase.PowerBuilder.PBString)

   at Sybase.PowerBuilder.WCFNVO.n_wcfjsonhotel.f_get_regguest(System.String, System.String, System.String, Int32, Int32, System.String)

   at DynamicClass.SyncInvokef_get_regguest(System.Object, System.Object[], System.Object[])

   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(System.Object, System.Object[], System.Object[] ByRef)

   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(System.ServiceModel.Dispatcher.MessageRpc ByRef)

   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean)

   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(System.ServiceModel.Channels.RequestContext, Boolean, System.ServiceModel.OperationContext)

   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(System.ServiceModel.Channels.RequestContext, System.ServiceModel.OperationContext)

   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(System.IAsyncResult)

   at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(System.IAsyncResult)

   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)

   at System.Runtime.AsyncResult.Complete(Boolean)

   at System.Runtime.InputQueue`1+AsyncQueueReader[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Set(Item<System.__Canon>)

   at System.Runtime.InputQueue`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].EnqueueAndDispatch(Item<System.__Canon>, Boolean)

   at System.Runtime.InputQueue`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].EnqueueAndDispatch(System.__Canon, System.Action, Boolean)

   at System.ServiceModel.Channels.SingletonChannelAcceptor`3[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Enqueue(System.__Canon, System.Action, Boolean)

   at System.ServiceModel.Channels.HttpPipeline+EnqueueMessageAsyncResult.CompleteParseAndEnqueue(System.IAsyncResult)

   at System.ServiceModel.Channels.HttpPipeline+EnqueueMessageAsyncResult.HandleParseIncomingMessage(System.IAsyncResult)

   at System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(System.IAsyncResult)

   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)

   at System.Runtime.AsyncResult.Complete(Boolean)

   at System.Runtime.AsyncResult.Complete(Boolean, System.Exception)

   at System.ServiceModel.Channels.HttpInput+ParseMessageAsyncResult.OnRead(System.IAsyncResult)

   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)

   at System.IO.Stream+ReadWriteTask.InvokeAsyncCallback(System.Object)

   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.IO.Stream+ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(System.Threading.Tasks.Task)

   at System.Threading.Tasks.Task.FinishContinuations()

   at System.Threading.Tasks.Task.FinishStageThree()

   at System.Threading.Tasks.Task.FinishStageTwo()

   at System.Threading.Tasks.Task.Finish(Boolean)

   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)

   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)

   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

 

Also I get the below

 

 

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8

Faulting module name: pbOLE125.dll, version: 12.5.2.5609, time stamp: 0x52c50d6c

Exception code: 0xc0000005

Fault offset: 0x0001c62b

Faulting process id: 0x11a0

Faulting application start time: 0x01d02f6f57aee718

Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe

Faulting module path: C:\Program Files (x86)\Sybase\Shared\PowerBuilder\pbOLE125.dll

Report Id: 989a34a0-9b62-11e4-b4f5-2c413807d37d

 

 

Can anyone assist me on this ?

Does anyone has an idea ?

 

Appreciate any help you could give me.

 

thank you

Help me break my Cursor addiction

$
0
0

My name is Shenn Sellers, and I'm a "Cursor-olic".  I've been using cursors for far longer than I care to admit because of their simplicity.  I was able to get away with this when my database was Oracle, but now am using MS SQL Server and running into issues.  (i.e. I can't do an insert within an active cursor)  The main thing I do is call a cursor, loop through the rows, use the fetched data to do variable modification, and then insert/update into another table.

 

Can someone correct my ways and help me to see the better and best ways of doing this without a cursor?  I have been reviewing set-based INSERT/SELECT statements, but don't see how I can do all my variable modification using this approach.

 

My cursor filled code is below.

 

declare raw cursor for    select department_id, invoice_amt, acct_string        from printing_raw_data        where invoice_date >= '2014-11-27'        and invoice_date <= '2014-12-31'        order by invoice_date, invoice_num;        
open raw;
fetch raw into :ll_dept_id, :ld_trans_amt, :ls_acct_string;
ll_line_num = 1
li_fiscal_year = 2015
li_fiscal_month = 12
ls_month = f_get_month_abbrev(li_fiscal_month)
do while(SQLCA.SQLCode = 0)        ls_dept_id_full = string(ll_dept_id) + Left(ls_acct_string, 5)    ll_fund_code = long(Mid(ls_acct_string, 6, 5))    ll_acctnum = long(Mid(ls_acct_string, 11, 6))    ls_program_code = Trim(Mid(ls_acct_string, 17, 5))    ls_class_fld = Trim(Mid(ls_acct_string, 22, 5))    ls_project_id = Trim(Mid(ls_acct_string, 27, 20))        //For each row of data, 4 Journal Lines are created in the table    for li_line = 1 to 4            li_mod = Mod(ll_line_num, 4)                //Customer Charge Line        if (li_mod = 1) then                        if (Sign(ld_trans_amt) = 1) then                ls_line_desc = "Print Printing Co Depts"                li_line_type = 1            elseif (Sign(ld_trans_amt) = -1) then                ls_line_desc = "C. M. Print Services"                li_line_type = 2            end if                        ls_line_desc += " " + ls_month                        insert into journal_entry(fiscal_year, fiscal_month, line_num, department_id_full, acct_num, fund_code, program_code, class_fld, project_id,                                                trans_amt, line_desc, line_type)                values(:li_fiscal_year, :li_fiscal_month, :ll_line_num, :ls_dept_id_full, :ll_acctnum, :ll_fund_code, :ls_program_code, :ls_class_fld,                            :ls_project_id, :ld_trans_amt, :ls_line_desc, :li_line_type);                            ll_line_num++                    //Customer Cash Line        elseif (li_mod = 2) then                        ls_line_desc = "Credit Cash " + ls_month            ld_neg_amt = ld_trans_amt * -1            li_line_type = 3                        insert into journal_entry(fiscal_year, fiscal_month, line_num, department_id_full, acct_num, fund_code, trans_amt, line_desc, line_type)                values(:li_fiscal_year, :li_fiscal_month, :ll_line_num, :ls_dept_id_full, 101100, :ll_fund_code, :ld_neg_amt, :ls_line_desc, :li_line_type);                        ll_line_num++                        //Revenue Line for Printing        elseif (li_mod = 3) then                        ls_line_desc = "Sales - Printing Svcs " + ls_month            ld_neg_amt = ld_trans_amt * -1            li_line_type = 4                        insert into journal_entry(fiscal_year, fiscal_month, line_num, department_id_full, acct_num, fund_code, trans_amt, line_desc, line_type)                values(:li_fiscal_year, :li_fiscal_month, :ll_line_num, "7300300000", 777670, 45600, :ld_neg_amt, :ls_line_desc, :li_line_type);                        ll_line_num++                    //Cash Line for Printing        elseif (li_mod = 0) then                        ls_line_desc = "Print Printing Co Depts ~~ " + ls_month            li_line_type = 5                        insert into journal_entry(fiscal_year, fiscal_month, line_num, department_id_full, acct_num, fund_code, trans_amt, line_desc, line_type)                values(:li_fiscal_year, :li_fiscal_month, :ll_line_num, "7300300000", 101100, 45600, :ld_trans_amt, :ls_line_desc, :li_line_type);                        ll_line_num++                    end if        next        fetch raw into :ll_dept_id, :ld_trans_amt, :ls_acct_string;    
loop
close raw;

Treeview items not displaying PB12.5 (2511)

$
0
0

This issue is not present when I run from pbl, but only found while running on runtime (pbd).

There are some treeviews (pfc u_tvs) where the treeviewitems are not displaying, event though they are present (hoovering over them shows the tooltip). Clicking in the treeview control may get them visible. But clicking, may also make one of them disappear (visually).

 

Have anyone else experienced this runtime bug? Any suggestion on how to solve it? Again, this issue is just found on a small amount of treeviews and never occurs while running the pbl from Powerbuilder.

 

2015-04-16_09-56-43.png

DisableBind and other ways to make database faster

$
0
0

I have an application that connects to various databases: SQL Anywhere, Sybase ASE, SQL Server, SQL Azure, Oracle, MySQL.

 

It has both inline and DataWindow queries and updates. One of the tables has a blob column.

 

On some of the connections I set DisableBind=1 but I am not really sure if I should be doing it. Also, sometimes in a database trace it will show the following:

 

(105c4878): BIND SELECT OUTPUT BUFFER (DataWindow): (0.018 MilliSeconds)

(105c4878): ,len=6,type=CHAR,pbt=1,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=51,type=CHAR,pbt=1,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=44,type=LONG,pbt=22,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=256,type=CHAR,pbt=1,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=44,type=LONG,pbt=22,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=31,type=CHAR,pbt=1,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=30,type=DATETIME,pbt=9,dbt=0,ct=0,prec=0,scale=0

(105c4878): ,len=256,type=CHAR,pbt=1,dbt=0,ct=0,prec=0,scale=0

 

Is this caused by the Bind setting and is it something that should/could be eliminated? Does it only get executed for DataWindows or will a inline cursor query do it as well?

 

Basically I am looking for somewhat non DBMS specific ways I can speed up the app before I look into adding indexes.

 

It is already very fast for in-house servers but when run over the internet I need it to be as fast as possible so every millisecond counts.


Call a windows PB app from a linux/php website

$
0
0

Sorry for the oddball question.

 

We have a website built on a Linux / PHP stack and we'd like to be able to call a function in a PB application (passing data) and get return data (possibly a blob).

 

I've done the opposite, have PB make a web service call using MSXML.XMLHTTP, but is there any way to do the reverse?

 

TIA,

Steve Woitkowski

Single Sign On (SSO) integration in Powerbuilder Application

$
0
0

We have an application developed in PB v8. Our client has asked us if PowerBuilder application can integrate with their Active Directory using single sign on. Users launch the application from Windows OS. They login to their desktop with network user id and password. When they run PB application, it should automatically authenticate with AD server (like Keberos) and open the application without asking credential again.

 

If this is not possible in PB v8 but later version like v12.5 supports SSO then it is possible for us to upgrade our application to PB v12.5.


I would like some assistance with implementing SSO feature in PB application. Any help provided would be much appreciated.

 

-Ravi

Partner Failover on connection string

$
0
0

We have out database mirrored. Has anyone ever gotten the Partner Failover attribute to work on the connection string.

 

Thanks

Richard

PB12.6 monthcalendar setbolddate causes crash

$
0
0

HI All

 

I have a problem with PB12.6 Build 4011. A simple window with a MonthControl on it. The open event posts a function that does a setbolddate(Today(),True) and the IDE crashes. A setbolddate in the open event itself does not crash nor does it set the chosen date to bold either.

 

Any code that tries to set the bold date after the window is open causes a crash.

 

I'm guessing that this is a bug in PB12.6 but thought I would see what you all thought.

 

Cheers

 

David

PB 12.6 licensing issue (standalone)

$
0
0

Performed fresh install of standalone seat license for PB 12.6 on user's PC.  Installed under my profile, assuming the license was tied to the device.  User is now on evaluation countdown, as license has not been applied.  Logged in as me, license is active.  Is PB 112.6 licensing really profile-specific?  Is there a way to associate the license with the user's profile, without uninstalling and reinstalling?

 

Thanks.

POWERBUILDER 12.5 and ORACLE 12C DBNAME

$
0
0

Dear all,

As mentioned on other threads, PB 12.5.2 works with ORACLE 12C, but not officially supported.

ORACLE 12C works with PB 12.6

Nevertheless, when I do try to work with ORACLE 12C and PB 12.5.2, when I created datawindow, on the Column specification tab, on the DB Name column, I have only the column name (column_name), while when working with ORACLE 11, I get table_name.column_name

 

Is there a way to overcome it?

Thanks


datawindow blob

$
0
0

I have a database in sql server which contains families with a photo.  The column is a varbinary(max).  I want to create a tabular datawindow report that shows the family name and their picture retrieved from the database.  I have a blob column on the datawindow but it wont show any images. The column definition is as below.  id is the primary key to the table.  What am i missing?

 

client class = datawindow

client name = untitled

key clause id = :id

file template = blank

client name expression = "data for "+string(id)

table = family

large binary/text col = photo: blob

ole class desc = paint.picture: bitmap image


Where to buy a Powerbuilder Licence today?

$
0
0

Can someone tell me how we can buy a Powerbuilder licence today? Until 31 dec 2013, the Sybase store was open, and now I cannot find PowerBuilder on the SAP store...

I have a developper arriving soon to help our team, and I want to be sure the acquisition of the licence won't be a problem

Thanks

How does a PowerBuilder 12.6 program invoke a Crystal Report 2013 file (rpt)?

$
0
0

Background:

 

We have been trying to find a solution how to invoke Crystal Reports file (.rpt) from Powerbuilder 12.6.

 

From the various forum discussions, it seems that the Crystal Viewer OLE control has been deprecated in Crystal Reports 2013.

 

What methods are available to invoke Crystal Reports 2013 rpt files from Powerbuilder 12.6, if any?

 

What methods are available to invoke Crystal Reports 2013 rpt files from other platforms, e.g, C++, .NET, Java, etc.?

 

Please post a solution or suggestion to accomplish this.

 

Your suggestions would be greatly appreciated.

 

Thank you very much.

 

Lenny

Installation Failing for PB 12.5 on Win 7

$
0
0

I am trying to install PowerBuilder 12.5 on a new Windows 7, 64-bit machine. I have the Windows 7 SDK installed as well a the .NET Framework 4.0.

There are two issues:

1. The install is indicating I do not have the SDK and .NET Framework 4.0 installed (did uninstall the C++ redistributable)

2. The Installshield window that shows the install options for the actual PowerBuilder install never displays or opens; only the icon displays in the task bar.

 

I have uninstalled and re-installed the SDK and .NET Framework several times and nothing seems to resolve the problem. I am out of ideas.

Does anyone have any suggestions.

CHOOSE PROFILE PROFILE NAME: OUTLOOK

$
0
0

Below did not happen with same code in Powerbuilder 10.5

converted to 12.6 now getting below

 

When I call the mSes.mailLogon(mailNewSession!)

I get a popup looks like below:

 

CHOOSE PROFILE

Profile name: outlook

 

OK cancel Options>>

 

Logic below:

 

 

 

    mailSession mSes

   mailReturnCode mRet
   mailMessage mMsg
   mailFileDescription mAttach
 
   // Create a mail session
   mSes = create mailSession
  
  // Log on to the session
   mRet = mSes.mailLogon(mailNewSession!)

Powerbuilder Web Service + Smart Client

$
0
0

I encountered many errors about "System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." in event log from the server that I hosting PB web service.

Viewing all 2881 articles
Browse latest View live


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