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

How to remove table fragmentation to improve performance?

$
0
0

Use DBArtisan to check ASE space and found there are 132 fragmentation under tabe analyst.  How to remove table fragmentation to improve performance?


Msxml2.XMLHTTP.6.0 Issue

$
0
0

Hi,

 

We have been using the MSXML object as a OLE to call REST services successfully. We can send the header and XML body as request and get back responses in a good fashion.

 

We also migrated to PB12.5.2 now with the same code in place and it has been functioning fine until....

 

User reported that a BULK operation is stopping at Row 4999 and it seems like the APP is not responding to anything.

 

On further investigation, we found that for every row in this module, we call REST service, it is almost like 2 REST calls in a second, it is pretty fast and it just waits for a success/failure HTTP status code.

 

While running this module in test, we had Fiddler open and could see the service being called, and on record 4999, the Fiddler request showed that there was ZERO bytes sent in the body of the XML. However, we have a log just before we call the "SEND" function which shows that the XML body was perfectly constructed, somehow the OLE Object crapped up and did not send anything, and PB code is just waiting for a response, which will never come through.

 

There is not much we can do about this since we know that the XML is being generated and passed into the send function. The OLE object is created and destroyed for every call, so there is no memory issue. (actually tried the other way NOT to destroy, but it did not work).

 

Is there any other option that we can use to call REST services. It is a classic PB version, and we cannot migrate to a .NET target right now.

 

Any help or guidance is highly appreciated.

 

Thanks,

Praveen

Is Powerbuilder 11.5 compatible with SQL Server 2012?

$
0
0

I have found the PB 12 is compatible with SQL Server 2012 but what about PB.11.5?

 

Our Company has two SQL Server databases one being 2012 and the other 2008.  We want to update the 2008 to 2012 but our application runs on the 2008 box and is PB 11.5 version.  Would we have any issues if we update?

Your machine does not have Microsoft .NET Framework 3.5 SP1 installed.

$
0
0

Hi

I have to install PB12.1 in a Windows 8.1

 

 

 

When i try to install PB12.0, it says me:

Your machine does not have Microsoft .NET Framework 3.5 SP1 installed.

You must install Microsoft .NET Framework 3.5 SP1 to enable the .NET related features.

 

 

 

 

 

 

I have already installed 'Microsoft Windows SDK for .NET Framework 3.5'

When i try to install 'Microsoft Windows SDK for .NET Framework 3.5 SP1' it doesn't work. No message display to me.

 

 

=(

 

 

ty GMMY

PB 12 Memory issue with huge arrays

$
0
0

A french guy has memory issues with PB 12, the memory is not deallocated after the garbagecollect call.

Here is the code to reproduce the problem:

 

Double t_1[], t_2[] 
long ll_i  
for ll_i = 1 to 50000000 
t_1[ll_i] = 1 
next
t_1 = t_2 
garbagecollect() 

During the loop, the memory is increasing but after clearing the variable and calling garbagecollect(), the memory is still used.

The guy must exit the application to free the memory.

He tried with a fixed size array but PB does not allow 50 millions records in an array.

 

Any suggestion?

 

Link in french:

PowerBuilder � Donf ! / Comment lib�rer compl�tement la m�moire avec PB

PB 12.5 Width.Autosize not working

$
0
0

I can't get dw.Object.column.Width.Autosize to work in grid DWs in PB 12.5 Classic. I'm setting it on all columns with code like:

 

if dw_report.Object.Datawindow.Processing = "1" then

     li_columns = Integer(dw_report.Object.Datawindow.Column.Count)

     for i = 1 to li_columns

          ls_err = dw_report.Modify("#" + String(i) + ".Width.Autosize='3'")

          if ls_err > "" then

               MessageBox("When setting Width.Autosize on column " + String(i) + " error: " + ls_err)

          end if

     next

end if

 

But it's not doing anything - the columns are still the same widths (e.g. wider than the data in most cases, narrower in some cases) than without that code. And the Modify() call is not returning errors. I've tried other values for the Width.Autosize too - none of them seem to do anything.

 

Any bright ideas about what's wrong? Thanks.

Problems Migrating from PowerBuilder 5 to 10.5, including PFC.

$
0
0

I  am doing the migration of an application from version 5 to 10.5, but I'm having problems with the PFC .

 

 

I have created a workspace with the existing application, a target .

 

 

If I migrate the application completely , including the PFC , I get errors that must be corrected . This is fine .

 

 

I want to use the 10.5 version of PFC . When I replace the PFC PBLs that were migrated , with version 10.5 , PowerBuilder tells me that i must migrate again. I Migrate again, however , I get the following error "could not add target Because the target xxx.pbt Could not be created. " .

 

 

I had already checked permissions problems on the boards , and reviewed cases of others who have had a similar problem , but I could not solve my problem.

 

 

How you make me recommend this migration ? I must make some changes in my application to update and use the newer version of PFC and not version 5.0 ?

 

 

Thank you.

Datawindow does not display in build

$
0
0

We have a window with 10tabs.All tabs have different datawindows say tab1 has dw1, tab2 has dw2....tab10 has dw10. Now in the build(exe file), tab 10 displays dw2 when it should display dw10. This scenario does not happen in the Code base. Hence we are unable to replicate and figure out whats going wrong. We are using PB12.5

It will be great if anyone could help us determing the cause/fix for the issue.

 

Thanks,

Ashish


PB Classic 12.5.2: Error When Deploy - Create of executable file failed

$
0
0

Dear all,

 

My project is developed under PB classic 12.5.2 Build 5006.

I can full build and deploy the exe file in my PC.

My colleagues copy all files to his PC and can Full Build.

He can also perform Build Runtime Library.

But when he run deploy, it fails with following error:

 

--------- Deploying project something

Creating executable file . . .

Inspecting Application Dependencies...

Inspecting Application Dependencies...

Inspecting application libraries...

---------- Linker: Errors

Create of executable file failed

  ---------- Finished Errors


OS of both PC is windows 7


We have make sure that he has full access rights on the project folder.


One more thing, we use domain user account to login the PC. When I login his PC with my account, I can deploy successfully.


Why my colleagues fail? Can anyone help?


Many Thanks,

Kin Lok

Powerbuilder Classic calling webservice and get message "can not be reflected"

$
0
0

We are switching to Ultipro Saas offering, so I need to convert a program that synchronizes data to use Web Services instead of the direct DB connection we had before.

 

I created the proxy using .NET, but when I run authenticate I get the message "Method LoginService.Authenticate can not be reflected"

 

I'm not sure what I am doing wrong

 

li_ret = s_conn.createinstance(u_soap,"LoginService")

u_soap.setclientaccesskey( lws_client )

u_soap.setuseraccesskey( ls2_userkey )

u_soap.setusername( ls3_user )

u_soap.setpassword( ls1_pass )

u_soap.authenticate( ll_status, lb_status, ls_msg, ls_token )

 

 

 

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:i0="http://www.ultipro.com/services/loginservice" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="LoginService" targetNamespace="http://tempuri.org/">

<wsp:Policy wsu:Id="WSHttpBinding_ILoginService_policy">

<wsp:ExactlyOne>

<wsp:All>

<wsaw:UsingAddressing/>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsdl:import namespace="http://www.ultipro.com/services/loginservice" location="https://service2.ultipro.com/services/LoginService?wsdl=wsdl0"/>

<wsdl:types/>

<wsdl:binding name="WSHttpBinding_ILoginService" type="i0:ILoginService">

<wsp:PolicyReference URI="#WSHttpBinding_ILoginService_policy"/>

<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="Authenticate">

<soap12:operation soapAction="http://www.ultipro.com/services/loginservice/ILoginService/Authenticate" style="document"/>

<wsdl:input name="TokenRequest">

<soap12:header message="i0:TokenRequest_Headers" part="ClientAccessKey" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="Password" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="UserAccessKey" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="UserName" use="literal"/>

<soap12:body use="literal"/>

</wsdl:input>

<wsdl:output name="TokenResponse">

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="LoginService">

<wsdl:port name="WSHttpBinding_ILoginService" binding="tns:WSHttpBinding_ILoginService">

<soap12:address location="https://service2.ultipro.com/services/LoginService"/>

<wsa10:EndpointReference>

<wsa10:Address>https://service2.ultipro.com/services/LoginService</wsa10:Address>

</wsa10:EndpointReference>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

How to change BackColor of a treeview node

$
0
0

Hi,

I want to change the back color of selected treenode. Does somebody know how to do it?

PB 12.1 Browser Not Appearing

$
0
0

My Browser (the window available via Tools - Browser) has disappeared, and I am not sure how to find it.  When I click on the Browser, the main PB window flickers, but the Browser window never appears.

 

I'm not sure where the Browser window parameters are stored.  There doesn't seem to be anything remotely conspicuous in PB.INI. I did check the registry, and found that when I rename the HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\12.0 key and re-start PB, I can then get the Browser to appear.  However -- if I close out of PB, re-open it, and try to open the Browser again, I get the same behavior with PB flickering and otherwise not opening the Browser.

 

I've used this version of PB (12.1, build 6950) for years and have never had a problem with the Browser before.  I can work around the issue by re-naming the registry key as mentioned in the prior paragraph, but that is going to get old very fast.  There must be some registry key or other setting that I am missing.

 

Any ideas?  Thanks.

Datawindow BUG in Powerbuilder .NET (12.5.1 4953)

$
0
0

Hi ,

I have created a wcf service in Powerbuilder .NET (12.5.1 build 4953).

If I want to modify a datawindow , for example add a column or modify the datatype Powerbuilder .NET crashes.

In other words I cannot modify an existing Datawindow. Only create a new one.

 

Will Sybase release a fix for this Huge BUG ?

 

thank you

Install of PB 11 on win 7-64 bit fails

$
0
0

Like everyone else, I'm being forced to upgrade my machine to Win 7.

(because XP has been desupported)

I tried to install PB 11 on the win 7 machine.

It installs infomaker fine... but, when it gets to the end of the Pb install it crashes

I was able to install the PB12 version without any problems.

 

But, we still have some clients that are on the older version of PB.

Any ideas on what could be causing the problem?

 

it simply comes up with a message saying the program has stopped running

and, my only choice is to cancel the install

an appcrash message

 

I saw an old posting in one of the google groups... but, there wasn't much help there

 

Any ideas?

PowerBuilder does not recognize existence of window during webform deployment

$
0
0

12.5.1 Build 4953

 

Greetings All,

 

I have a webform that was working fine. The application object opened w_login and after logging in w_main would open with a report in it. Worked fine.

 

So I saved w_main as w_report_test and w_report_test2. I created a new window and saved over the old w_main. I added a menu as m_main to call w_report_test and w_report_test2. I got deployment errors where the deployment process could not find a definition for w_report_test.

 

So I did another test. I deleted the menu and on w_main I have a simple button with one command as 'open(w_report_test)'.

 

I did a full rebuild and then tried to deploy. I still get the same goofy error as shown below. I have tried opitimizing the PBL and regenerating all of the objects. But every time I try to deploy I get the same error.

 

Does anyone have an idea as to what could be going wrong?

 

Thank you!!

 

Paul

 

 

---------- Error messages:    (1:23:12 PM)

Error when compiling generated C# code:

w_main.cb_1.clicked(1,102): error CS1061: 'c__tms_u002d_reporting' does not contain a definition for 'w_report_test' and no extension method 'w_report_test' accepting a first argument of type 'c__tms_u002d_reporting' could be found (are you missing a using directive or an assembly reference?)

w_main.cb_1.clicked(1,4): error CS1502: The best overloaded method match for 'Sybase.PowerBuilder.Web.PBSystemFunctions.Open<T0>(ref T0)' has some invalid arguments

w_main.cb_1.clicked(1,102): error CS1503: Argument 1: cannot convert from 'ref c__tms_u002d_reporting.w_report_test' to 'ref T0'

---------- Finished    (1:23:12 PM)


Powerbuilder 11.5.1 on Windows 8?

$
0
0

Hi,

 

Sorry if this was asked before - my company still uses SQL Anywhere 11 and Powerbuilder 11.5.1 (4011) as the main development tool, and would prefer not to upgrade to Powerbuilder 12 yet. However, we just need to know what are the experiences of running PB and developing on it on a Windows 8 (probably 64-bit) platform? I did find only one report about a possible issue on google, but would be interested mainly in seeing if there are other people using it on Windows 8 and would they give it a clean bill of health on that OS?

 

 

All info warmly appreciated.

 

Thanks

Msxml2.XMLHTTP.6.0 Issue

$
0
0

Hi,

 

We have been using the MSXML object as a OLE to call REST services successfully. We can send the header and XML body as request and get back responses in a good fashion.

 

We also migrated to PB12.5.2 now with the same code in place and it has been functioning fine until....

 

User reported that a BULK operation is stopping at Row 4999 and it seems like the APP is not responding to anything.

 

On further investigation, we found that for every row in this module, we call REST service, it is almost like 2 REST calls in a second, it is pretty fast and it just waits for a success/failure HTTP status code.

 

While running this module in test, we had Fiddler open and could see the service being called, and on record 4999, the Fiddler request showed that there was ZERO bytes sent in the body of the XML. However, we have a log just before we call the "SEND" function which shows that the XML body was perfectly constructed, somehow the OLE Object crapped up and did not send anything, and PB code is just waiting for a response, which will never come through.

 

There is not much we can do about this since we know that the XML is being generated and passed into the send function. The OLE object is created and destroyed for every call, so there is no memory issue. (actually tried the other way NOT to destroy, but it did not work).

 

Is there any other option that we can use to call REST services. It is a classic PB version, and we cannot migrate to a .NET target right now.

 

Any help or guidance is highly appreciated.

 

Thanks,

Praveen

how to find out sql or datasource for dynamic dw?

$
0
0

I have dw syntax exported like:

"?$PBExportHeader$d_mydw.srd

release 11.5;

 

 

datawindow(units=0 timer_interval=0 color=16777215 brushmode=0 transparency=0 gradient.angle=0 gradient.color=8421504 gradient.focus=0 gradient.repetition.count=0 gradient.repetition.length=100 gradient.repetition.mode=0 gradient.scale=100 gradient.spread=100 gradient.transparency=0 picture.blur=0 picture.clip.bottom=0 picture.clip.left=0 picture.clip.right=0 picture.clip.top=0 picture.mode=0 picture.scale.x=100 picture.scale.y=100 picture.transparency=0 processing=0 HTMLDW=no print.printername="""" print.documentname="""" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="""" )

header(height=320 color=""536870912"" transparency=""0"" gradient.color=""8421504"" gradient.transparency=""0"" gradient.angle=""0"" brushmode=""0"" gradient.repetition.mode=""0"" gradient.repetition.count=""0"" gradient.repetition.length=""100"" gradient.focus=""0"" gradient.scale=""100"" gradient.spread=""100"" )

summary(height=64 color=""536870912"" transparency=""0"" gradient.color=""8421504"" gradient.transparency=""0"" gradient.angle=""0"" brushmode=""0"" gradient.repetition.mode=""0"" gradient.repetition.count=""0"" gradient.repetition.length=""100"" gradient.focus=""0"" gradient.scale=""100"" gradient.spread=""100"" )

footer(height=0 color=""536870912"" transparency=""0"" gradient.color=""8421504"" gradient.transparency=""0"" gradient.angle=""0"" brushmode=""0"" gradient.repetition.mode=""0"" gradient.repetition.count=""0"" gradient.repetition.length=""100"" gradient.focus=""0"" gradient.scale=""100"" gradient.spread=""100"" )

detail(height=84 color=""536870912"" transparency=""0"" gradient.color=""8421504"" gradient.transparency=""0"" gradient.angle=""0"" brushmode=""0"

 

then use datawindow.Create(ls_Syntax,ls_Error) to create dw dynamically. but where to find out the SQL or SP for this datawindw?

Powerbuilder mysql catalog tables

$
0
0

I use PowerBuilder 12.5 with mysql 5.6.12 via ODBC MySQL 5.2 Unicode driver, but in database painter I get "Catalog tables could not be created and are not available for use".

 

In database properties->system tab->Powerbuilder Catalog Table Owner I have tried both root and another mysql user.

 

Catalog tables already exist in the database.

Does powerbuilder 11.5 support RDLC file?

$
0
0


Does PB11.5 or earlier version support RDLC file? Any tutorial on the same?

 

~Cheers

Viewing all 2935 articles
Browse latest View live


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