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

Re: DLL, OCX or PDB ?

$
0
0

The problem is that you're trying to call a .Net assembly as if it was a C++ library.  You don't use external function calls with .Net Assemblies.

 

What kind of target type are you working with? 

 

  • If you are doing a Win32 application, you would need to use a COM Callable Wrapper to use a .Net assembly.
  • If you are doing a .Net target in PowerBuilder classic, you would need to use a conditional code block to use a .Net assembly.
  • If you are doing a WPF application in PowerBuilder.Net, you would just reference the .Net classes directly once you added the assembly as a reference.

 

I also don't know if you saw my previous note, but I wouldn't recommend using a .Net assembly to do what you're doing.  .Net assemblies are good for providing PowerBuilder capability to other .Net development environments.  There are better methods when the calling application is also PowerBuilder.


Re: Batch Command Processing (pbshell) for PB 12.5 .NET question

$
0
0

No problem ( I had to add the txt extension to attach the file)

 

My command line looks like this:

 

pbshell /pbcommand d:\asc\pb125net\ClassicDW\build.cmd

Re: Batch Command Processing (pbshell) for PB 12.5 .NET question

$
0
0

Thanks!  That worked. I don't see many formatting differences between your command file and mine, but obviously there was something different.  I'm thinking it was a case-sensitivity issue or a statement order issue.  I used the same file names/paths as before, so that wasn't the problem. 

 

Thanks again and I hope this post will help others who need to build PB .NET assemblies from a command line.

Re: Batch Command Processing (pbshell) for PB 12.5 .NET question

$
0
0

Wow.  Not sure how this got posted twice, especially when I posted a few days earlier.  Maybe because I had to post a few times due to forum errors on the 31st.

 

Please reference this post for the correct answer:

http://scn.sap.com/thread/3334919

Re: Powerbuilder classic Randomize

$
0
0

It works for C# , though you do not get the same result as in PB classic.  I would have expected PB.NET to use same algorithm as in Classic for backward compatibility and also allow us to use .NET Random class if we so wanted!

Re: Have I been black balled???

$
0
0

SAP is actively working on it.

 

As I mentioned somewhere else around here, I've been using SCN since March of last year and it worked fine until recently.  This is a rather recent phenomenon which apparently also affected forums run by Oracle and Cisco (as they call use the same underlying 3rd party product).

Re: Powerbuilder download link is dead

$
0
0

The download link did not work for me.

I went to the 'goPowerBuilder.com' suggested by Bruce Armstrong at the top.

Filled out the form, and it sent me an email.

 

The email contained the link going to 'download.sybase.com/eval/pb-12.5-eval/blahblah.zip'.

Clicking this link gives me the "The requeste4d URL could not be accessed" - with reasons including: broken or obsolete and file no longer exists.

 

Regards,

Reed Shilts

Development within Sybase/SAP

Re: Application memory usage


Re: Access to EBFs on sybase.com oddities

$
0
0

Hi Andreas;

 

   Yes, Webforms uses the Telerik controls exclusively since PB 11.2 (which was actually Webforms last updated release). In PB 11.1, they were using MS's - which were more cumbersome (feature wise) and slower.

 

Regards  ... Chris

SetTransobject detection

$
0
0

I have a several datawindow control (say dw_form) in several tab pages  control inherited from uo_dw.

the tab page has dw_form.retrive()  but this results in in the general error: Transaction object not set

How do you find the control name (dw_form). The error message  does not contain the name nor the call stack.

This is in PB12.5  Net version

32-bit MAPI Application and 64-Bit Outlook

Re: Powerbuilder download link is dead

$
0
0

Hi Reed;

 

  Yes, the same URL is broken from the ISUG-TECH download link as well.  :-(

 

Regards .. Chris

Re: 32-bit MAPI Application and 64-Bit Outlook

Re: SetTransobject detection

$
0
0

add this line before you call dw_form.retrieve()

 

dw_form.settransobject(sqlca)

Re: Application memory usage

$
0
0

Hi Russel,

 

Here's a quick and dirty I did in PB.net based on some c# I found on the net. I added the results to an external datawindow.

 

hth,

Mark

 

int i, processCnt

System.Diagnostics.Process processes[]

long ll_row

 

processes = Process.GetProcesses(".")

 

processCnt = Upperbound(processes)

for i = 1 to processCnt

    ll_row = dw_1.InsertRow(0)

   

    dw_1.setitem(ll_row, "process_name", processes[i].ProcessName)

    dw_1.SetItem(ll_row, "memory_usage", processes[i].PagedMemorySize64.ToString())

    dw_1.SetItem(ll_row, "peak_memory_usage", processes[i].PeakPagedMemorySize64.ToString())

    dw_1.SetItem(ll_row, "vm_size", processes[i].VirtualMemorySize64.ToString())

    dw_1.SetItem(ll_row, "handles", processes[i].HandleCount.ToString())

    dw_1.SetItem(ll_row, "threads", processes[i].Threads.Count.ToString())   

next


Re: SetTransobject detection

$
0
0

My message did not convey the problem I am well aware of the SetTrans method. The question is I have many lines of code with dw_control.Retrieve()  The error  message says transaction not connected. But how to find out the control name that is throwing this error? Only way is to debug and put lot of stops or is there a better method. I am using PB.net 12.5

 

thanks

Ramesh Bas

Re: License - Grace Mode?

$
0
0

I'd try regenerating the license file.  FYI, you might want to make sure that you base the computer identity on the hard drive ID rather than a network card, particularly on a laptop.  (Network card is the default).  Particularly with a laptop the network configuration can change depending where you are at (and whether you're hard wired or running wireless) and end up invalidating the license.

 

The lmtools utility in the C:\Program Files (x86)\Sybase\PowerBuilder 12.5\SYSAM-2_0\bin directory will show you other IDs you can use other than the network card.  See the "Hostid Settings" area.

 

syssam.PNG

Re: Powerbuilder - comparing data between two datawindows (datastores)

Re: Powerbuilder - comparing data between two datawindows (datastores)

$
0
0

Thank you for your reply.  I have been reviewing other options as well.  I may give up on the datawindow compare or filters.  Yes this is a cursor (ref_cursor).  The datawindows data source is via a stored procedure returning a ref_cursor (weak) and works well.  I could use links as suggested earlier but the data source is using Oracle Workspace Manager versioned enable table objects.  This complicates my situation where I have to have the workspace set before quering the correct data.  I may just try an anonymous block (using execute immediate) for a PB cursor and populating a local table with the results.  Then perform any differences sql there.  Thank you again for your replies.

How to deal with a huge report

$
0
0

PB 12.5.1

 

Looking for some suggestions on how to deal with a report in a DW that is very large (around 500 MB).  Without going into all the details they need these reports because they have to show them to the auditors.  I have a report threading program that will allow these reports to run as a seperate thread.  Once the report finishes it then uses GetFullState() to return the result set. The problem is once the GetFullState call is made it will error out because Sybase is unable to allocate the blocks of memory necessary to return the result set.

 

My first thought was to use the Storage = Disk option but this does not work as advertised (uses almost as much memory).  My next step is to have the thread save the data and the DW syntax into the database and the have the client restore this into the viewer.  Another thought is to save it as a PSR and then the client just view that. 

 

Are there any other ideas or suggestions or rule of thumb things out there for dealing with large reports that have to be stored and viewed?

 

Thanks,

Chris Craft

Viewing all 7329 articles
Browse latest View live


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