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

EAServer security certificate question

$
0
0

I have a client with EAServer 6.3.1.07 Advanced Edition. They need to install a new security certificate which will change it from SHA-1 to SHA-256.

 

SAP tells them they need to install new SAPCRYPTOLIB.

 

My question is whether there is a certain patch level of 6.3.1.07 or perhaps a newer version that is required before they can install the latest SAPCRYPTOLIB and then the new SHA-256 certificate?

 

I'm not familiar with EAServer 6.x so if there is any info you have about this subject please reply.

 

Thanks,

Roland


Powerbuilder, missing scripts

$
0
0

Our company is using Powerbuilder 12.5.2 build 5629 on up-to-date Windows 7 machines (HP Elitebooks – few different models). During the last work project, we noticed that scripts 'disappear' from windows inherited from other windows.

We have our own framework, which has a few basic windows. All windows used across our program are inherited from those windows with added functions. This is the structure of windows for the given example:

  • w_basic_window
  • w_singledw_window
  • w_add_user

Below is an example of the problem:

Window for adding new users (w_add_user) was created and it was inherited from a existing basic window (w_singledw_window from w_basic_window). It had a event triggered from 'Add user' button, which adds a new row to the datawindow. This worked fine in a previous project. Now it was needed to add a titlebar to all our window. This was done by editing the basic window (w_basic_window) from which all our windows are inherited. A full rebuild of the worskpace was done and all windows had a titlebar. Then during testing I noticed that the event on 'Add user' was no longer working. I checked the source and our event was missing from the list.

Afterwards, during testing, a few other windows had some events missing (not all). However it is hard to determin all windows with missing events, since our program has 100+ windows.


Did anyone else encounter this problem?

Older PowerBuilder versions

$
0
0

Hi there. I've been searching a bit today to try to find some support for older versions of PowerBuilder. I have a client that I wrote a PowerBuilder application for 15 years ago in PB7. They are finally doing some enhancements (wow!) but something's not quite working right. They found their CD's and installed 7.0.2 Build 8003, and re-entered the original license key and resurrected their source code. I was able to run the source code from the PB app without problem, but as soon as I start making modifications it's really quirky. Datawindows won't show their rows unless I resize the detail band (in the PB app), and I can't add a dw control to an existing window because it fails to instantiate it in the create event of the window when I run it.

 

I'm wondering where they can find the latest patch of PB 7 to download? I'm sure their license entitles them to the latest patch. Given the weirdness I see today, I'm guessing someone applied a patch 15 years ago but the patch was lost. I'm hoping that with the latest patch, things will stabilize.

 

Thanks for the help!

PB Newbie - Auto rounding of decimals

$
0
0

Hi PB Gurus,

 

 

 

I'm trying to save into a table a decimal value, I tried to capture the variable in a messagebox before my save event, just to check if it's the same:

 

 

decimal_1.jpg

 

But when the event was triggerd, it rounds the value.

 

 

decimal_2.jpg

 

 

Im using PB12.0 Classic and SQL Server 2008.

 

the field is decimal(10,2).

 

 

 

 

TIA,

SNC MSS2012 - Unicode - Internationalizing

$
0
0

Welcome 2016 & Hello All!

 

This is a wide open question:

 

A PB 12.5 application currently accesses SQLSVR 2012 using OLEDB with ANSI encoding. Goal is to internationalize the application with a Unicode UTF-8 or UTF-16 encoding accessed from PB 12.6 and SNC

 

What needs to be done to the DB and PB to support internationalization (storing / retrieving and editing in native languages)?

 

Documentation is sketchy at best  The section titled "Unicode support in PB" says

"A Unicode database is a database whose character set is set to a Unicode format, such as UTF-8 or UTF-16.  All data in the database is in Unicode format, and any data in the database must be converted to Unicode implicitly or explicitly"

 

The goal is that Varchar and Char type be accessed as Unicode with no datawindow or embedded sql changes. We do not want to have to converte all strings to NvarChar or NChar types

 

There is no doc for the SNC 12.6 driver.

 

How do we go about this?

 

Thanks

How to set only time part of a DateTime column ?

$
0
0

I have column of type datetime

I want to set only time part now for constant date

i.e i want to set it to "01/01/2000"+ now() where 01/01/2000 is always taken and add the hour and minutes to it

 

for example

 

if now is 29/06/2016 16:45  i want to save 01/01/200  16:45

Open Transactions with Autocommit = false in ASE

$
0
0

Hi Everyone,

 

We've just encountered a problem with our applications after upgrading our database to ASE 16.  I found some ancient posts and articles about transaction logs filling up with early versions of ASE and Powerbuilder when Autocommit is false because it keeps transactions open and marked as the oldest open transaction.  We've been using these apps for years with ASE 11.9, 12.5 and then 15 without any issue, but now it seems with ASE 16 any select statements sent from Powerbuilder keep an open transaction which is marked as the oldest open transaction in syslogshold.  They don't clear until a commit is issued, either after an update operation or when the application is closed.

 

Has anyone had this problem recently, or have any suggestions for fixing it?  I know I could set Autocommit to true and do explicit transaction handling, but that would be quite a big change for all of our applications.  I am thinking of adding a commit in the application idle event, but I'm not 100% sure whether that is a good or bad idea. Any suggestions would be welcome.

 

The applications are written in Powerbuilder 10.2 and 10.5

 

Thanks.

how to prevent tab(or enter) to scroll to next row??

$
0
0

I have window with two data windows (master and detail)

 

when i was on master datawindow and press tab ,       

focus changed between column in master until last column (according to tab order) then it focus on first column in detail datawimdow

when it reached to last column in detail datawindow then it scroll to next row of datawindow even that row doesn't belong to master datawindow

 

how to prevent to scroll to next row if i was at last column in data window?


Any OData experience? A small example with issues...

$
0
0

Hello,

 

testing an OData datawindow (PB 12.6 4091) I get that issues:

 

1  my connection (is working when testing)

 

 



2  my table (clid as primary key):

 

 

 

2  my datawindow (as you can see 'Update Properties' is grayed out):

 

 

 

3  my application:

 

Retrieve is working.

When I change e.g. row 3 and want to update, I get this: ('Value may not be NULL')

 

 

 

Please notice: Update statement wants to update index=2 while update was row no. 3!

 

 

Anybody having same issues?

 

Thanks for any suggestions in advance!

 

Regards

Bernhard

HB, changes in the support forum, and build too long

$
0
0

Did you hear the noise from the celebration?  PB is celebrating its 25th birthday, born July 1, 1991.  And then more news about changes to the support form / SAP community network and Appeon.

 

Oh no, more crying, here "we", the industry, the government, building way too many big enterprise, warehouse, conglomerate approach, all in one, "systems" just to try to find a way to segregate into something usable.  Many drop down values in the 1000s if not six figures (like the ICD10 codes, anybody having fun converting from ICD9), and on and on ... sorry but I need to go find help and co-workers with PB 12.6 build 4081 and PB 12.5.1 (4015) over and over and over and more generically PB Classic over and over and over.  Generally I found the functionality and support from the old Sybase support system to this new SAP support system to be exceptional (not so much else).  This support is my issue lifeline in many cases.  In all honesty driven by a small group of respectful people since 1997 ;<0)... I hope somehow granularity can continue with Appeon (which I have been excited about but don't count on much yet).

 

Further, I have accomplished many things with PB.  One is using PB for "batch" processing, even running an exe as a scheduled job to perform data summation, or something else apparently unique is my ability to convert data.  Writing huge PB "scripts" that run "once" to start up a system.  Sorry, I don't have time for the book so I'll get to the point.  Currently I have script in a button that processes one file out into several.  The script is over 2000 lines long.  When performing a build, the build hangs on the window so long that I canceled.  I really expected the build to fly but suspect either something wrong with PB 12.6 (4081) or the VM / Citrix platform (yeh, I know smaller scripts objectizing, book).  I wonder about PB 12.6 having another EBF, but want to wait for PB ## from Appeon.  I have performed 100s, over 1000 builds on "local" installations, C drive, with little issues.

 

I am afraid that Appeon is going to expand, Enterprise, alter GUI like VS, change PB too much also.  However, the propaganda has been encouraging and I sure am believing in Santa Claus and the New Year.  Even if Appeon / SAP do everything I wish, I still have to deal with the Bureacracy of the State and others who are not upholding their responsibility for what they have allowed to be built.

Help file won't open in PB 12.5 & 12.6

$
0
0

I'm running Windows 7 and using PB 12.5.2 & 12.6.  When I try to open the Help file, the cursor spins for a second, and then nothing happens.  (Yes, I have the Windows Help program (WinHlp32.exe) for Windows 7 installed).

 

Any ideas on how I can fix this?  Thanks.

Empty PDF is created

$
0
0

Hi

Computer is windows7 , 32 bit os

PowerBuilder 11.2

 

Whe I save datawindow  into pdf  on that machine , the empty pdf is created.

 

I did the following steps

 

1. Install Ghost script 32 bit ( I have tried 64 bit  not working)

2. Installed Sybase Datawindow PS printer using INF file in ghoscript folder

3. After that when I save datawindow, the empty pdf is created

 

Please I am looking for the solution, Every other 64 bit  machine is working

 

Regards

pol

Creating a DW form without a datasource

$
0
0

I would like to create a complex form in the datawindow painter prior to having the database tables created. Is it possible to create the blank form and than add the data after the fact?  Also, I would need the form to stay intact after adding in the SQL and or stored procedure that will obtain the data from the database. Attached is a sample of what this form will look like.

 

Any ideas would be appreciated.

 

Thanks

Tom Starkweather

PBNI Wizard Setup for VS 2015?

$
0
0

I am attempting to follow the instructions for creating a PBNI extension but all the documentation refers to VS 2002/3/5.  I just installed VS 2015 and then went to create the wizard but the Deploy.bat file creates directories for VS.Net 2003.  Needless to say I did it anyway and nothing shows under the template section.

 

Are there any current examples out there showing us how to get all this setup?

 

Chris Craft

Rich-text Datawindow Column Reporting Images

$
0
0

Hi Guys

 

I'm struggling to report data using a Datawindow rich-text edit type column. The data has a mix of formatted text and inserted images. The images are not rendering and show as strings of binary text.

 

I believe that data is entered using a rich-text control on a window (not my system), but that's what it look like, but it is a PB system. We have been asked to report this data from the database, column is a long varchar is sql anywhere.

 

PB Version 12.5.2 Build 5081

 

Any ideas of how I can get the images to render too?

 

Cheers

 

David


Default Values with HANA

$
0
0

Hi Guys

In Powerbuilder I have a Datawindow to update a table

On this table some fields has default value at 0

On SQL Server If I run a datawindow.Update and these fields are not valued (Value null) SQL server does not return an error and the App goes on

If I try the same Datawindow on HANA and I do not value a NOT NULL DEFAULT 0 COLUMN, HANA return an error:

"General error;287 cannot insert NULL or update to NULL"

 

According to you there is some connection parameter to set up in order to avoid this on HANA?

 

Thanks in advance!

Confused About Composite Datawindow - PB12.5

$
0
0

Greetings All,

 

I created a composite datawindow with 3 datawindows as: dw_remittance_composite_payment_report

 

dw_1 = dw_remittance_header2

 

     Arguments: sp_id

 

dw_2 = dw_remittance_header3

 

     Arguments: company, sp_id, payment_date

 

dw_3 = dw_remittance_line_items

 

     Arguments: company, sp_id, payment_date


I really have not idea how to get it to display with data in my application.  When I manually type in all of the values (via prompts), the composite datawindow seems to work fine.


1)  When I save dw_remittance_composite_payment_report I get an error message stating that the arguments are not configured ("Nest arguments are incorrectly specified").  I 'see' a place to type in something under 'Expression' and thought I could type in :sp_id or :company, but I keep getting a messages stating that the 'Expression is not valid'.


2) Where I want to use the report, I already have two datawindows as dw_1 (not related) and dw_2 for the composite report.  Do I have to change dw_2 to dw_10 so there is no conflict?


3) I read that I have to use GetChild to retrieve the datawindow, but I cannot find any example code to do that.  I figured it would be in the Appeon Demo, but while I can publish it, I cannot find the .pbw for the demo on my drive.


Thanks in advance for any and all pointers!!


Paul

PB 12.6 issue: passing structure to external C++ function

$
0
0

Hello,

 

I'm just in the phase of migrating applications from PB 12.5.2 5629 to PB 12.6 4011.

My application uses calls of external functions residing in a C++ DLL with passing structures as arguments.

 

PB structure:

global type s_s7sbsbulk from structure

    boolean     bconn

    long        job

    integer     machine

    integer     silo

    integer     product

    long        setvalue

    long        actvalue

    integer     state

    byte        manual

end type

 

C++ struct:

#pragma pack(push, r1, 1) 

typedef struct S7SBSBulkData

{

   ULONG  m_lJobID;       // Job-ID

   short  m_sMachine;     // Machine-No. (1 or 2)

   short  m_sSilo;        // Source Silo (1 - 28)

   short  m_sSiloProduct; // product in silo

   ULONG  m_lSetValue;    // Setvalue in kg

   ULONG  m_lActValue;    // Actual values in kg

   short  m_sStatus;      // Silo-Status

   BYTE   m_bManual;      // manual input

} S7SBSBulkData;

 

// for GUI (Powerbuilder)

typedef struct S7SBSBLData

{

   WORD   bConn;           // Connection

 

   S7SBSBulkData m_Bulk;   // data of loading machine

} S7SBSBLData;

#pragma pack(pop, r1)   // stack popped


This worked well for years with PB 12.5.2.

After migrating to PB 12.6 it seems that the alignment of the structure elements in PB has changed.

It seems that each long variable starts now on an address that is a multiple of 4.


PB
C++
size
PB 12.5.2 address
PB 12.6 address
C++ address
boolWORD2000
longULONG4242
intshort2686
intshort28108
intshort2101210
longULONG4121612
longULONG4162016
intshort2202420
byteBYTE1222622


Is this a new feature of PB 12.6 or am I missing something?

 

Thanks

Werner

 

PS

This mean that I can't migrate migrate the projects to 12.6 without changing the c++ structures.

Appeon Deployment with external DB update

$
0
0

Hi All,

 

Just a quick one about Appeon Mobile and DB deployment.

 

I have an Appeon Mobile App in Beta for a client and it uses an offline SQLite DB that is generated using a Powerbuilder Service.

 

At the moment I am manually generating the DB and redeploying the application to prompt users to update.

 

Is there a way of generating the DB and copying into the App DB folder so that the Users are aware of the updated DB, without having to redeploy each time?

 

Unfortunately, still jetlagged after long flights to and from Australia, so my brain is not engaged enough to figure it out the hard way.

 

Thanks

Michael

PB 12.6 and Row change between retrieve and update

$
0
0

Hi Guys

 

we are on SQL 2012 and PB 12.6 Build 4088

On machines with IDE installed there is no issue

On customers machine the issue:

 

We have a Datawindow with 2 tables (A and B)

On our MSSQL 2012 DB a trigger on A (on update) update B

 

If we do dw.update(), updatable fields are just on A table, but if the trigger is enabled we have the error:

Row change between retrieve and update

 

This happens just on PB 12.6 Build 4088 and just on machines without ide installed

With our previous version (PB11.1) no issue

 

We already tried to delivery our pb.ini and pbodb126.ini but no way

 

someone has an hint?

 

thanks in advance

 

Regards

Viewing all 2881 articles
Browse latest View live


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