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

Powerbuilder Classic connection to MQ service using SSL

$
0
0

Hi,

At one of our client we connect to MQ messaging queues using IP authentication. They have asked us to explore option to set up ssl connection. at present we are using activex which comes with IBM MQ client. I have been looking on net and could not find any material as how to connect using SSL. we do not have option to use EAserver.

Has anyone been able to use PB classic to setup a SSL connection. if yes then please do let me know.

 

thanks,

Kind Regards,

Viresh


Where can I download PB 12.5.1 Maintenance (Build 4015)?

$
0
0

Hi All,

 

I am in PB 12.5 (3072) and I want to upgrade to PB 12.5.1

 

The problem is that in SAP Support I only can view EBF 20963: 12.5.1 (4953) which has the minimum requirement of PB 12.5.1 Maintenance (Build 4015)

 

Where to download?

 

Thanks!Captura.PNG

PB 12.6 .NET data in browser

$
0
0

Hi,

I want to edit data from an Oracle table in the browser. How can I do that with PB 12.6 .NET? It should run on the IIS.

 

 

Since I've done anything yet in the direction I ask how I can make it to a small example. Thank you.

 

 

André Rust

How to set default .net framework target in PB.net shell IDE (12.6)

$
0
0

I'm running into an issue because my PB build should be targeting 4.5 but it's defaulting to 4.0.

I see the information in the pbtx and pblx files, but each time I do a full build from the PB.NET IDE (The VS shell), the system restores the original 4.0 target version.

 

(There are version dependencies in pb 12.6 which require ,net 4.5 .dlls)

 

The primary reference "Sybase.PowerBuilder.Common, Version=12.6.0.0, Culture=neutral, PublicKeyToken=598c7456a83d557a, processorArchitecture=x86" could not be resolved because it has an indirect dependency on the assembly "Microsoft.VisualStudio.Shell.Immutable.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

 

The primary reference "Sybase.PowerBuilder.WPF, Version=12.6.0.0, Culture=neutral, PublicKeyToken=598c7456a83d557a, processorArchitecture=x86" could not be resolved because it has an indirect dependency on the assembly "Microsoft.VisualStudio.Shell.Immutable.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

 

 

Could I get around this by working directly in VS with the built project?  Probably, but I shouldn't have to and it's annoying I can't find where to set this in the VS Shell IDE.

 

 

Thanks for any information.

dataobject error

$
0
0

hi every1..

I  am having labels in my dataobject i want to display some texts on these labels and these texts are there in database. how can i do

with regards, Delna

Powerbuilder 12.6 application crash after migrating from Powerbuilder 11

$
0
0

In Powerbuilder 11 build - 6525, the application works fine.

After migrating from Powerbuilder 11 to 12.6 build 3506, the application crashes on opening.

 

Error - APPCRASH

Fault Module Name: PBVM126.dll

Fault Module Version: 12.6.0.3506

 

There were no errors during migration and build. On accessing the application, the application crashes with above error.

 

Thanks,

Poornima

powerbuilder 11.5 and sql native client for sql server 2012 and 2014

$
0
0

i installed  SQL native client for sqlserver 2012 but in database profile -SNC SQL native client - i can find only sqlncl  (snc 9 for sql 2005 ) and sqlncli10 (snc 10 for sql 2008)

where is for sql 2012?

Responsewindow title

$
0
0

Hi.

 

We are using PowerBuilder 12.5.2 in Windows 8.1 and 10.

When we open a response window, the title is missing until we click outside the window.

This happens both when running from the PowerBuilder IDE and compiled exe-file.

 

Has anyone got the same problem, and a solution?

 

Regards,

 

Bjarne Anker

Maritech Systems AS

Norway


PB 12.5.2 Webservice bad runtime function reference libeay32.dll TERMINAL SERVER

$
0
0

Hi,

 

 

PB 12.5.2 Build 5602 Developpement Machine Win 7 64 bit, Productions Machine: WinXp / Win 7 64 bit/ Terminal Server

 

in our application we use a .NET webservice with PB Classic. I had problem with error "bad runtime function reference" and had fixed with updated the DLL libeay32.dll. via (Shining Light Productions - Win32 OpenSSL)

Then tried on Machine WinXP and Win7 64 bit works fine.

 

Then the final one on Terminal Server as a RDP Connection i still get the error and i tried to copy the dlls in the application directory and the system32 directory.

 

Some ideas???

 

Regards,

 

Marko

How do I fill the article in richtextedit programmatically?

$
0
0

hello sir/madam

     I have microsoft word file which is doc file,PowerBuilder is support this format which version is 10.5 or later,so how do I write the resume?in my case is like this

 

there is a employees table

 

first_name char(50),

last_name char(50) ,

birthdate datetime,

elementryschoolname char(100),

juniorhighschool char(100),

seniorhighschool char(1000)

 

the records is

 

first_name ,last_name, birthdate ,elementryschoolname ,juniorhighschool ,seniorhighschool

a                 b                1/1/1961     abcd school         efghijk school     mnopq school

c                 d                 2/6/1972     bcdefg school      cdefgh school     defghi school

............................... etc

 

and the doc file is

 

My name is {firstname}{lastname},I was born in {birthday},my elementry school was {elementryschoolname},my junior high school was {juniorhighschool},

my senior high school was {seniorhighschool}.

 

How do I fill this resume for each employee in the richtextedit programmatically?

regards

Ken

12.6 ORCA 64 bit compile support??

$
0
0

Hello PB Mavens,

 

I just finished scanning the 12.6 ORCA doc - looked at PBORCA_ExecutableCreate:  The doc does not reference 32/64 bit platform flag -

 

The option is in the project painter

2016-01-25 16_03_24-ywTrunkTFS - PowerBuilder.png

 

Anyone know if the property is exposed via ORCA despite the lack of doc?

 

Is it possible to compile 64 bit applications using ORCA?

 

If the answer is a resounding NO,  How about this approach?  On the assumption that PBDs are bit neutral and the EXE contains the bittiness. 

 

I might experiment having ORCA do that PBD part and then provide the PB Project with a 99% PBD lib list and let it just do the EXE with 64 bit markers.

 

Your thoughts?

 

Thanks

 

Yakov

what I have done wrong?I try to export the RTE to a MS-WORD file,but nothing in it.

$
0
0

hello sir/madam

    I try the following code,my purpose was I tried to export a Rich Text Datawindows to a MS-Word file,when the file have exported,there's nothing on it,I don't know what I have done wrong

//dw_exp is datawindow which is rich text datawindow

//rte_exp is rich text edit which I tried to export to a ms-word file

//dw_sub is the source that I trie to replace some text in dw_exp with.

//my

 

value = getfilesavename( "SAVEAS" ,path,name, "doc" , "Word files( *.doc),*.doc" )

 

if value=1 then

         dw_exp.reset()

         dw_exp.retrieve(ld_caseid)//I can't see the records appeared when it executed here.but actually there's a record in the table,just can't figure it out

         rte_exp.Clear()

         string ls_richtext

         string ls_prodname,ls_gjfzlx,ls_batch,ls_jx

         decimal ld_nxl,ld_ncl

         long ll_thenumber

         ls_richtext=dw_exp.CopyRTF()

         rte_exp.PasteRTF( ls_richtext)

         rte_exp.SetRedraw(False)

 

//the follwoing code I just tried to replace some text on the RTE control

         ll_type1count=0

          ll_type2count=2

      

                 for li_rowsub=1 to dw_sub.rowcount()

            ls_type=dw_sub.getitemstring(li_rowsub,"thetype")

             ls_prodname=dw_sub.getitemstring(li_rowsub,"prod_name")

             ls_gjfzlx=dw_sub.getitemstring(li_rowsub,"gjzlm")

             ls_batch=dw_sub.getitemstring(li_rowsub,"ph")

             ls_jx=dw_sub.getitemstring(li_rowsub,"jx")

              ld_nxl=dw_sub.getitemdecimal(li_rowsub,"nxsl")

              ld_ncl=dw_sub.getitemdecimal(li_rowsub,"ncl")

            if isnull(ls_type) then

                ll_type1count++

                ll_thenumber=ll_type1count

          

            else

                ll_type2count++  

                ll_thenumber=ll_type2count

            end if

         Integer  li_Loc

          li_Loc =rte_exp.Find("name"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText(ls_prodname )

              

            end if

             li_Loc =rte_exp.Find("prodname"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText( ls_gjfzlx )

              

            end if

          

             li_Loc =rte_exp.Find("batch"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText( ls_batch )

              

            end if

          

             li_Loc =rte_exp.Find("jx"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText( ls_jx )

              

            end if

          

             li_Loc =rte_exp.Find("sellanu"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText(string(ld_nxl) )

              

            end if

                 li_Loc =rte_exp.Find("produceanu"+string(ll_thenumber), True, &

                  true, &

                   true, True )

           if  li_Loc > 0 then

                rte_exp.ReplaceText(string(ld_ncl) )

              

            end if

                       

                       

      

           next

          

          

       

  

       rte_exp.SaveDocument(path,FileTypeDoc! )

       

     end if

 

thanks

regards

Ken

How to set a different DDDW on a row-by-row basis in a dw?

$
0
0

Hey everyone!

Currently I have a DataWindow with a DropDownDataWindow (DDDW) in a column (let's call it columnA).

Problem is that they now want different dropdown values for different rows of columnA. Because the ID which is stored in the columnA is not unique, therefore the list of values needs to be filtered depending on other ID columns (columnB and columnC).

If it's not filtered on columnB and columnC then it may displays the wrong text, since the dropdown picks the first matching ID's text on the list

 

Is it possible to set a different dropdown values for each row? And if so how?

Or is there another way to solve this?

Powerbuilder 12.6 eval ??

$
0
0

I have been evaluating PB 12.6  (.net) and have a couple of issues.

 

1) Starting up the IDE the program crashes.  The workaround I use is to create a new solution and than add the target from the original.

 

2) Saving in the DW painter is taking up to 30 seconds.  This would make my project very difficult to complete

 

3) Tabular data window with 200 + columns the DW painter is nor responsive at all. And when click on an item it displays the focus above what I clicked on.  This will also make my project very difficult using powerbuilder..

 

I am running powerbuilder in an oracle VBOX virtual machine. I have 4 CPU's assigned with 16GB of ram. So the machine should not be causing the slow behavior.

 

Any ideas?

 

Thanks

TPS

Bug in datastore.Find() when > 32k records

$
0
0

The documentation for .Find() claims that > 32k rows are supported.  But when the desired row is beyond that limit, an erroneous value is returned.  Is there a fix for this?


new column not showing in dw

$
0
0

I am using PB12.6 and SQLServer 2008.  Yesterday I ran into a problem I have never had before.  I added a new column (num_graph_years) to a table (employees).  It shows up in the database explorer in PB, but not in the dw designer.  I have tried restarting PB, rebooting my computer, removing the column from the table and putting it back in.  No results - still doesn't show up in dw designer.

Problem with Send Email using Smtp

$
0
0

Hi,

 

     I am getting an error 'Object could not be created' sending email by smtp.

 

     I created an assembly using Visual Studio 2015 and used on PowerBuider 12.6 Classic to send email.

 

     On Visual Studio I selected the properties as show on attachment 1 and 2.

    

     Then I use regasm to register the 'dll'. I tried 'RegAsm.exe "path of dll" /regfile:SendEmail.reg'

    

     In my machine it worked fine, 32 and 64 bits.

 

     The problem is that I execute the same process that I made in my PC on a client and I'm getting an error 'Object could not be created'.

 

     Is There something missing that I didn't execute? I can't find the solution of this problem.

 

     Regards, Vinicius

Not printing TIFF when PB-app is offered as a 'Remote App'

$
0
0

I have a strange problem with a Remote Desktop Service setup, and I can't put my finger on it. I hope you guys can push me in the right direction.


We offer our PB12.5 application to our colleagues as a normal Windows application. But our office in another city had some performance issues, so we installed a server for them and offer our PB application as a so called 'Remote App', with the use of Remote Desktop Services (formerly known as Terminal Server in application mode). Users are really happy with the performance and the app works like it supposed to.


The problem comes when printing to the Peernet TIFF Image Printer. We use that one to create a TIFF file for our archiving application. The normal clients have no issue with that. Our users press print and the TIFF is created. When our remote users do the same, It does not work. We set the same printer queue and al the parameters are the same, but still it won't print on the RDS-setup.

Server Information:
VMWare virtual server
OS - Windows Server 2012 R2 Standard
Architecture - 64 Bits
Processor - Intel Xeon

The following server roles installed and configured:
File and Storage Services
Print and Document Services
Remote Desktop Services
Web Server ( IIS)

The following printers are installed on the server:
Standard network printer with the Canon PCL6 Generic Printer Driver.
Peernet TIFF Image Printer 10.0 ( Terminal Server Edition )
Peernet PDF Image Printer 10.0 (Terminal Server Edition )
http://www.peernet.com/


Do you guys have any ideas, or maybe some questions we can answer to clarify and hopefully come to the right solution...

TABLE FUNCTION CAST TYPE DATAWINDOW POWERBUILDER 12.5

$
0
0

Hi, i have the following pl/sql Oracle function:

 

  FUNCTION fun_vir_anti_detail (

    av_id_codct  IN cl_strutture.id_codct%type,

    an_id        IN cl_anagrafiche.id_anag%type

  ) RETURN wa_typ_epn_talk_vir_ant_tab;

END;

 

the return type 'wa_typ_epn_talk_vir_ant_tab' is define as:

 

 

CREATE OR REPLACE TYPE EMOINT.wa_typ_epn_talk_vir_ant_tab AS TABLE OF wa_typ_epn_talk_vir_ant_row

 

 

and 'wa_typ_epn_talk_vir_ant_row' is:

 

 

CREATE OR REPLACE TYPE EMOINT.wa_typ_epn_talk_vir_ant_row AS object (

  vir_pazs_list    wa_typ_epn_talk_vir_pazs_tab,

  rich_ant_list    wa_typ_epn_talk_rich_ant_tab,

  test_coombs_list wa_typ_epn_talk_coombs_tab,

  cod_errore       VARCHAR2(50),

  descr_errore     VARCHAR2(200)

)

 

 

I need to get data using PB datawindow from the 'wa_typ_epn_talk_vir_ant_row' field, for example 'rich_ant_list' define as this type:

 

CREATE OR REPLACE TYPE EMOINT.wa_typ_epn_talk_rich_ant_tab AS TABLE OF wa_typ_epn_talk_rich_ant_row

 

where 'wa_typ_epn_talk_rich_ant_row' is:

 

CREATE OR REPLACE TYPE EMOINT.wa_typ_epn_talk_rich_ant_row AS object (

  id_ric_abdy     NUMBER(9),

  id_anag         NUMBER(7),

  id_typc         VARCHAR2(4),

  rc_typc         VARCHAR2(3),

  id_unita        NUMBER(9),

  dtesecuz        DATE,

  esito_ric_abdy  VARCHAR2(3),

  operat          VARCHAR2(8),

  dtoperat        DATE,

  dtmedico        DATE,

  proven          VARCHAR2(30 BYTE),

  dtprel          DATE,

  dtstoriciz      DATE,

  tipo_storicz    VARCHAR2(1),

  note            VARCHAR2(500),

.

.

.

.

.

)

 

 

 

i would like to retrieve data from the 'rich_ant_list' field of the 'wa_typ_epn_talk_rich_ant_row' type

but i don't know if it's possibile.

I could write this DW SQL :

 

 

 

SELECT

    rich_ant_list

FROM TABLE ( CAST (emoint.wa_pkg_epn_int_talk.fun_vir_anti_detail (

                              '0201',

                              1)

AS EMOINT.wa_typ_epn_talk_vir_ant_tab))

 

 

 

but when i try to retrieve data the error is:

" Select Error: ORA-00932: inconsistent datatypes: expected %s got %s"

 

and the reason is clear, it's beacuse it tried to retrieve data from the field "rich_ant_list"

that is a table-field with different type.

I don't know if it's possible to write a subquery and cast the result type as 'wa_typ_epn_talk_rich_ant_tab'.

I tried many times and different ways but it doesn't works.

 

Any suggestions?

 

I'm using PB12.5

 

Thanks a lot

 

 

Luca

Question about Project objects

$
0
0

I am working on one of my developer tools and have a question about the contents of the Project object. I don't have 12.6 and I need to find out what flag within the project object source is used to indicate 64bit compile.

 

The first two lines of a project object look like this:

 

EXE:myapp.exe,,0,1,1

CMP:0,0,0,2,2,0,0

 

Here is the mapping that I was able to figure out:

 

EXE:

1: Executable Filename

2: Resource Filename

3: Prompt Overwrite - 0=False, 1=True

4: Rebuild - 0=Incremental, 1=Full

5: Visual Style - 0=Classic, 1=New Style

 

CMP:

1: Machine Code - 0=False, 1=True

2: Context Info - 0=False, 1=True

3: Trace Info - 0=False, 1=True

4: Executable Format - 0=16bit, 2=Native

5: Optimize - 0=Speed, 1=Space, 2=None

6: ?

7: Debug Info - 0=False, 1=True

 

I need someone with 12.6 to compare a project object with 64bit on/off and see what is different. Then post here your findings.

 

Bonus questions:

What is CMP-6?

What is CMP-4 with a value of 1 mean? I think it was an option in PB 6.0 that went away in PB 6.5 but I can't verify that.

Viewing all 2935 articles
Browse latest View live


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