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

Using PowerBuilder to build Interface between multiple applications

$
0
0

Greetings:

 

We have a PowerBuilder 11.5 application which interfaces with various other applications.  The method which is used to interface with these multiple different applications are:  Socket, File Copy, sFTP and it also uses the FTP Server like SecureFTP and EAI.

 

Is it possible to used PowerBuilder either 11.5 or 12.5 to implement these interfaces?  How can I use PowerBuilder to build these interfaces between these various applications?

 

I appreciate in advance for any help I can get on this.

 

Kind Regards,

 


powerbuilder 12.6 classic using an access database

$
0
0

How can I tell if my Datawindows in 12.6 are actual using the indexes that I have built on my tables. Or to reinstate in a different way, how do I know if I chose the right fields or combination of fields to optimize the indexed fields between a database and an application?

Question about Type.GetField .net method.

$
0
0

Hi.

 

 

I try to a .net method called getfield. I'm using PB.NET 12.5, but the getfield method exist from .net v.2.

The syntax for that method are (as documented in MSDN):

  • Type.GetField Method (String)
  • Type.GetField Method (String, BindingFlags)

 

Now, I need to use the second syntax, which expect two arguments, and the second one is of type BindingFlags Enumeration. Of course this isn't a problem. But how should I use that function if I need to write something similar to the following c# code:

 

FieldInfo myFieldInfo1 = myTypeB.GetField("field", BindingFlags.NonPublic | BindingFlags.Instance);

 

How can I write "BindingFlags.NonPublic | BindingFlags.Instance" ? Is there a way to pass two values with a logical operator in Powerbuilder (I guess not)? If not, is there any workaround?

 

Thank's in advance.

 

Andreas.

2 DW -> 1 PDF

$
0
0

good morning.

I need to create a PDF originated by two DataWindows. (I can not use the nested)

Is there any solution?

 

Now i use PDFtk ( PDFtk - The PDF Toolkit ) but i don't like it .

 

 

Ty

Gimmy

Printing on checks

$
0
0

Good morning,

 

I am looking for information to print from a PowerBuilder application in printers like www.cognitivetpg.com/product/A776. The goal is to print in the back of the checks using the slip station. The printer would be connected directly to the computer using the USB port. For this type of printer, I think its necessary to send the information directly to the print spool using APIs, I'm not sure for now. I don't know if PowerBuilder has any functionality to do this.

 

Additionally, the computer is W7 64 bit, the PB app is 32 bit. I must install the printer driver on 32 or 64 bit?

 

I am reading the printer manuals, but in the PowerBuilder side is where I want to know more about it.

 

 

Thank you very much.

 

Luis

More help with .Net web service

$
0
0

Hello all. I was able to successfully create a .net web service and deploy it to IIS on a Windows Server 2012 box. The service runs fine from there but I can't figure out how to invoke it from a client machine.

 

Here's some images of the service working on the server using localhost.

Capture.PNG

Capture.PNG

 

On the same server, I created a web site that submits this form, which works if I run it from the server, but returns a runtime error if I run it from a client . I'm not sure if I'm doing this part right.

 

Capture.PNG

Capture.PNG

Capture.PNG

Capture.PNG

Capture.PNG

Infomaker 11.5

$
0
0

I just migrated a customers servers from Hyper-V to VMware and now sybase\infomaker 11.5 will not launch as it states the following.

 

"The Sybase SySAM license was not validated"  It lets me choose the licensing server, asks that I relaunch and it just goes back to the same error.  I then proceeded to launch lmtools on the licensing server and found that it was erroring out on the HOST ID.  Give that I migrated to a new server the MAC of the server changed.  I then modified the .lic file to reflect the new address, ran the "ReRead License File" no longer the HOST ID message but now it's telling me in the log file the following "Invalid license key (inconsistent authentication code)

 

Any suggestions would be greatly appreciated.

 

Thanks,

 

Brandon

Exe with dll build fails

$
0
0


I am using PB 12.6 working with a fairly large (~24 pbls and quite a few objects in each) PB application that has always been built as an exe with pbds.  I am new to the application and trying to build full, machine code, speed, as an exe with dlls instead since that is what I have done with "my" PB applications since 1997.  But the deploy crashes during the process.  I reviewed the log file but it only says CODEGEN compilation error and the log file says "syntax error; probable cause: missing ';'.  All objects regenerate fine and the PBD build deploys fine.  Hopefully I have provided enough info.  Any help appreciated.  BTW, if anybody knows of any serious or gotcha bugs going from PB 10 to 12.6 that would be helpful too.


Set AccessibleName property for MenuItems

$
0
0

Hey,

 

is it possible to set the AccessibleName propertie for MenuItems. There is no such property in the "Properties-View" in the Painter/IDE. Is this possible in the code view? We are using PB12.6 (Classic, with PFC).

 

Thanks.

Have a nice weekend.

 

Heiko

Tips & tricks for master - detail searching

$
0
0

Hi all,

 

Using PB11.5.1.

 

Our application provides the user to create lets say an insurance claim. Each claim is saved in the master table ,the master table information is shown to the user in the main lookup window.

 

Users can doubleclick to open the claim to edit data. Each claim has detail records , and each detail records can be a master again that has details again. We are having up to 7 master detail combinations possible. So 1 master table with a detail record 1 , detail record 1 can have multiple detail records 2 , detail record 2 can have multiple detail records 3 and so on .... Each detail record can have up to 100 columns possible.

 

Our users are now asking for an easy way to search for a claim based on information in any of the detail records. We can't use the table names (this would require the end user to know and understand the relation between the different tables)  nor the column name as these were created a long time ago and don't always reflect the contents of the column anymore.

 

Ideally we would like to have the data appear in our main lookup window with all the claims (not necessarily show the information of all the detail records).

 

Any tips or idea's are more than welcome !

 

 

 

Kind regards,

 

John

Datawindow orientation

$
0
0

Good morning.

 

 

Is there a property that tells me if the DW (being printed) is part of the A4 horizontal / vertical or if it needs more pages ?

 

 

Sometimes i have more fields than the A4 form can display.

 

 

The only thing that comes to my mind is to verify the X value + length of each field and see if it is greater than the margin.

 

Other ideas?

 

 

 

 

Ty

 

Gimmy

One more web service question

$
0
0

Hello,

 

In previous posts, I mentioned that I was able to get a PB ASP.NET web service working, but I'm having difficulty with one component.

 

I'm trying to have the service write to local disk, but I can't seem to get it to work -- SaveAs is failing. I've tried to save to a couple of different directories on my C drive (web site is on localhost), and I've tried a lot of permissions setting on the folders. I've given full access to IIS_IUSERS, NETWORK SERVICE, PBDotnet4AppPool, even "Everyone" but none helped. I tried  a C:\Windows\TEMP folder, and I've tried folders under the service's install folder "C:\Program Files (x86)\webservice\webservice\webservice_root\".

 

Any guidance would be greatly appreciated.

 

Steve

New laptop, PB 11.5 licensing questions

$
0
0

It seems that my company will get me a new laptop because the old one became so crappy that it is almost non-functional.

 

My only drawback is that I always had issues when changing PCs with PB licensing.

 

My PB 11.5 lic is linked to my network card I guess.

 

So, with having SAP into play now, if I get a new laptop what is the procedure to move my lic into?

 

Thanx in advance!

Failed to initialize SySAM licensing Powerbuilder 11.5.1 urgent!

$
0
0


Hi

 

Powerbuilder suddenly stopped working after a system crash. Get message "License initialization" "Failed to initialize SySAM licensing" "A mandatory property is missing". Powerbuilder shuts down.

 

Any help is appreciated,

 

Thanks

Vinay

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.


About PB 12.6 SP00 PL02 (build 4035).

$
0
0

Hi.

 

Has anyone tried PB 12.6 SP00 PL02 (build 4035)? I ask because after installation, when I try to launch Powerbuilder Classic 12.6 I receive the following error:

 

 

And PBGShare126.dll isn't installed in \Program Files\Sybase\Shared\Powerbuilder folder...

 

I wonder if there is a problem with the installer...

 

Andreas.

call store procedure from PB 12.5

$
0
0

Hi!

 

I have this:

 

alter procedure DBA.PermisoDocumentoInventario(@usuario varchar(20),@Ingresar integer output

as

declare @Existe integer,

@Control char(1)

begin

  select @Control = USER_CHEQ_NIVEL from

    tb_data_seg_def_user where

    USER_ID = @usuario and USER_STATUS = 'A'

  if @Control = 'S'

    begin

      select @ingresar = COUNT(GRUS_ID) from

        tb_data_seg_rel_grus where

        GRUS_ID = @usuario and AUDI_COD_TRAN = '102001'

    end

  else

    begin

      select @Ingresar=1

    end

end

 

In my form i have this:

 

 

 

Declare wsp_permisoInventario procedure for PermisoDocumentoInventario

  @usuario = :gs_user,

  @Ingresar = :ii_ing output

using sqlca;

 

execute wsp_permisoInventario;

 

But PB show me error:

 

DATABASE C0038 SQLSTATE 0 37000 Sybase ODBC Driver. Syntax error or access violation: near 'OUTPUT'

 

Why is the error?

 

Regards

 

Victor Carrión

PowerBuilder Education

$
0
0

Hi There

For a start off, I am perfectly aware that I am not the person who should be writing about PowerBuilder Education. There are at least a handful of folk I know who have been the mainstay of delivering courses and expert help on PowerBuilder to people in the last decade.

I would like to bring up an Education subject though.

How do we teach PowerBuilder from now on?

1.. Should Appeon produce the subject by subject videos on "Designing a Free Form Data Window" or "Populating a TreeView"?

2.. Should they publish Webinars such as:, "Advanced Topics PowerBuilder", "Enhancements when your Target is the Web" ?

3.. Should there be three day courses: "An Introduction to PowerBuilder with Appeon" ,"Using STD Foundation Classes"?

 

Whats the best platform or platforms?

 

I love a course. I believe meeting with a knowledgeable instructor has always delivered far more value than the syllabus. Unfortunately I believe that this cannot be the standard method of teaching PowerBuilder in todays business world.

 

I am over 55 so my approach is probably not whats needed here.

 

Suggestions anyone?

Characters Inserting on Focus

$
0
0

I am using PowerBuilder 12.6 Build 4058. When I created a build of an existing application after converting from 12.5 to 12.6, I tested the build on my computer (where the build was made), and everything seemed to work fine. However, after testing the deployment to a different computer with the same files, I found that the first edit field in a datawindow will be filled with characters of a different language when the mouse enters the datawindow. I tried recopying the PB 12.6 PBD files to make sure that they were up to date, but that did not work. Does anyone have an idea of what could cause this to happen on one computer, but not another?

 

Bug.png

PowerBuilder roadmap location should one exist

$
0
0

http://service.sap.com/saproadmaps

 

The roadmaps for ASE and PowerDesigner among others are there. You need and "S" user id to get to the page. I have no clue how you get there using the navigation on this site. I found the URL from the PowerDesigner forum. If this is wrong please correct me.

 

hth,

Mark

Viewing all 2935 articles
Browse latest View live


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