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

Font files

$
0
0

We use Wingdings 1, 2, 3 fonts in our apps.

We recently realized that not all computers have theses fonts installed, because some of them are shipped with Office.

 

Do you know how the license works for distributing theses fonts ?

Is there a way to embed the fonts in a Powerbuilder app, without delivering the font files, as a resource maybe, like pictures ?

 

Thanks

Guillaume


Does PowerBuilder 12.5 Classic support these Webservice standards?

$
0
0

Greetings,

I'm a long term PB Developer but I am new to this site and new to consuming Webservices.  I was asked by our Provider the following:

 

The main standard/actions that your platform of choice (PowerBuilder 12.5 Classic) will have to support is:

  • MTOM, does soapconnection support MTOM?
  • signing with Certificate
  • support for large images (PDF)

 

Any feedback would be greatly appreciated.

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>

PowerBuilder7 and MS Word 2010

$
0
0

I have been struggling with this problem. I have an

  application where I am using Ole to store word documents and

  it has been working fine. I have 7 machines with the

  application 4 of them work fine 3 of them give me an error

  at "ole.application.

activedocument.saveas(ls_file). I am not
  sure what can be the problem? All the machines are running
  Win 7 and Office 2010. can you help?
  Best regards,
  Nand Belani

Charlotte PowerBuilder Conference a Big Hit

$
0
0

The conference, held March 5-7 2014, brought over 70 participants from North America, Australia, and Europe to participate in PowerBuilder specific training and break out sessions.  Although the weather was unsettled at times, the attendees were universal in their praise of the conference content, venue, and the conference organizers. 

 

"Thank you for organizing this event" was a near universal comment.

 

Panelists.jpg

Discussion Panelists Christophe Dufourmantelle of Novalys, Armeen Mazda of Appeon, Sue Dunnell and Dave Fish of SAP

 

Panel_crowd.jpg

Panel discussion drew a large crowd.

 

More pictures are on the Charlotte PowerBuilder Conference group on Facebook

Workaround for Datepicker calendar cut off problem

$
0
0

(PowerBuilder Classic 12.5)

 

Workaround is related to the problem that the datepicker calendar part is being cut off (left right edge) when using themes other than Windows Classic. The problem becomes more extensive when using Week Numbers, leaving the control then more or less useless.

After searching around, I found this article(Setting calendar size when overriding DateTimePicker to add week numbers) that pointed me in the right direction.

 

The workaround is not extensively tested, but it seems to work pretty well on my computer (Win 7) in compiled code. Good effect with different resolutions and PPI. When changing to Windows Classic Theme, the calendar part gets some wider margins but not too much.

I see no reason why this code should not work with other PB Classic versions other than PB12.5 as long as they have the datepicker control..


<suggested implementation> - See attached file (rename to .sru and import into pbl library)

 

Create a standard visual userobject(u_ datepicker) based on the datepicker type, and place the code in the dropdown event. Also
add the structure and Local Extrernals Functions to the userobject. Then Place the standard visual userobject on your window.

<Local Extrernals Functions>

 

//FUNCTION long SendMessageGetCal (long hwnd, ulong wMsg, ulong wParam, long lParam) Library "user32.dll" Alias for "SendMessageA"
//FUNCTION boolean MoveWindow(long hwnd,int wx,int wy,int ww,int wh,boolean wflag) Library "user32.dll"
//FUNCTION ulong GetParent(ulong hWnd) Library "user32.dll"
//FUNCTION boolean GetWindowRect( ulong hWnd, REF str_rect lpRect ) LIBRARY "user32.dll"

<Structure>

 

type str_rect from structure
long  left
long  top
long  right
long  bottom
end type

 


<script in dropdown event on datepickert>


long ll_innerCalHwnd
long ll_outerCalHwnd
str_rect rc

CONSTANT ulong DTM_GETMONTHCAL = (4096 + 8) //(DTM_FIRST + 8)

 

// Get the handle to datepicker child month calendar control.

ll_innerCalHwnd = SendMessageGetCal(handle(this), DTM_GETMONTHCAL, 0, 0)

 

// Get the handel to the window containing the datepicker child month calendar control.

ll_outerCalHwnd = GetParent(ll_innerCalHwnd)

 

// Get the rectangle for the calendar window.

GetWindowRect(ll_outerCalHwnd, ref rc)

 

//Apply width adjustment to calendar window.

// Posting the MoveWindow function lets the calendar windows control render the changes.

// The datepicker child month calendar control is automatically rendered in center of the parent window.

post MoveWindow(ll_outerCalHwnd, rc.left, rc.top, (rc.Right + 28) - rc.left, rc.Bottom - rc.top, true)

 

 

Regards Bjarne Eian
Norway

 

Message was edited by: Bjarne Eian

how to setup powerbuilder on a remote windows 2008 vm?

$
0
0

We have two developers, each located on different parts of the planet, who have been accessing our PowerBuilder via GoToMyPC at different times of the day.  Recently, our company was acquired and this PB instance was moved to a Windows 2008 VM.  Now, the developer who installed PowerBuilder has access to PB but not the other developer.  New company security policy dictates that the developers each operate under their unique logins.  Ideally, (I believe) the developers, would use the same PB application library path and would utilize PB native source control, with the ability to check out and check in against the same set of application objects.  How should we install/setup PB so that each developer has access to PB and is using the same application and source control library path?  Thank you.

PB objects not sync'ing to TFS after forced get

$
0
0

All - Wierd problem. In spite of doing multiple force "get specific" from TFS, at directory level and object level, objects in pbl's are still showing up with the "+" sign next to them, demanding to be added to source control, instead of the little round dot that shows TFS and PB objects are in sync. Never have had this stick like this before. Details:

 

- workspace is connected properly to TFS

- no objects are checked out

- "get latest" tells me all objects are current

 

When I tried doing an "add to source control" to go backwards into TFS, it continually creates a new directory tree containing a new instance of the object/s I added (makes sense, as you don't want to step on an existing instance in TFS, but doesn't help...). Has anyone ever run into this and come up with a solution to get PB recognizing TFS and vice versa? Thanks.

jt


faultcode and faultstring of a soap webservice through a wcf client (PB.Net 12.5)

$
0
0

Is it possible to get the faultcode and faultstring of a soap webservice through a wcf client? (PB.Net 12.5)

 

I'm getting right now a different error message using the System.Reflection.TargetInvocationException, I did a little of research (Google) and found that I should try with FaultException, but my catch falls into System.Reflection.TargetInvocationException, and I'm not getting the right error description.

 

Any help?

How to connect to chrome browser in Powerbuilder

$
0
0

Hi all,

 

I would like to connect to chrome browser instead of internet explorer.

 

Please find my sample code below.

 

IF IsWindow(il_hwnd) = 0 THEN
ioo_so_oleobject.DisconnectObject()
  li_rc = ioo_so_oleobject.ConnectToNewObject("internetexplorer.application")
  IF li_rc <> 0 THEN
  RETURN FALSE
END IF


String ls_ie
ls_ie = ioo_so_oleobject.Fullname()
  ls_ie = ioo_so_oleobject.name

 

If i use the below code, its not working..


li_rc = ioo_so_oleobject.ConnectToNewObject("chrome.application")

 

li_rc return -2(-2 = Class name not found).

 

Could you please suggest upon this.. (how to connect to chrome instead of IE)

 

Regards,

Krishna

About PB 15 Category in forums...

$
0
0

Hi. I wanted to ask if PowerBuilder 15 Beta Category is still in use or if there is no meaning in posting new messages to that category... I ask as I don't see any recent activity here.


Andreas.

Serious Bug Powerbuilder 12.5.2 build 5609 with Inheritance

$
0
0

Hi ,

 

I'm using Powerbuilder 12.5.2. build 5609. I think it is the latest release. I have three windows in my app.

The Grandfather , the father and the child. Child window (w_child)  is inherited from the father (w_father) which inherits from the grandfather (w_grandfather).
I have some events in my windows , clicked events with code etc.

I made a change in the grandfather , regenerated the father and the child and my code in the child window was messed up!. And when I say messed up I mean that the code in my clicked event was disappeared or moved in other cases to other events.

With Full build and incremental build didn't fix the bug.

Using export and import FIXED the issue.

BUT.....

Why is this happening ? Of course this is a Powerbuilder BUG but  do I need to export and import my objects when I make a change to ancestors objects ?

FYI using the edit source option I can see the code that it's there.

 

Will this issue been fixed because this is a very serious BUG. Every time I want to make a change to ancestors should I need to export all objects and import them again ???

 

thank you

zkar

PB12.5.2 on Windows 8 Issue

$
0
0

I have a strange issue with PB12.5.2 Build 5006 running on Windows 8 systems.

 

From the PB IDE, the application doesnt seem to recognize any of my MAPPED network drives. But it works fine when I run the application as an exe.

 

For eg: I have code to read a file - "F:\test\test.xls" This fails from PB IDE, it works if I provide the full UNC path like "\\servername\test\test.xls".

 

It also works when I run the exe, so what is it that is missing when I run from the IDE? Any thoughts?

 

Praveen

Issues Generating Dynamic RichText Datawindow using SyntaxFromSQL

$
0
0

Hi,

 

I am running into issues/crashing when attempting to generate a dynamic richtext datawindow using the SyntaxFromSQL function.

 

I am using PowerBuilder 12.5 Build 2551.

 

Below is the code I am using to generate the datawindow:

 

ls_presentation_style = "style(type=form) datawindow(Processing=7)"

ls_datawindowdef = sqlca.SyntaxFromSQL(l_sql_statement, ls_presenation_style, ls_err)

 

My sql syntax is sound and if I do not include the 'datawindow(Processing=7" the datawindow is generated correctly.

 

I have attempted to modify the datawindow after the syntax is created either using the Modify statement or editing the syntax directly and assigning the value 7 but I always get a crash when attempting to access the syntax after assigning the Processing property to the datawindow.

 

I am looking for guidance or ideas on what I may be doing wrong trying to generate a dynamic RichText datawindow.

 

Thanks,

 

Karen

Does Declare Dynamic Cursor Support with Order Clause?

$
0
0

Given a dynamic cursor like

   

     declare CUR_10 dynamic cursor for SQLSA;

     prepare SQLSA from :ls_SQL;

     open dynamic CUR_10;

 

     do while TRUE

          fetch CUR_10 into :ls_var1, :ls_var2

          ...

     loop

 

     ...

 

where ls_SQL is "select COL1, COL2 from TABLE_A order by COL2 desc"

 

can I fetch values in the exact DESCENDING order of COL2?


Are there known issues calling powerbuilder 12 automation via Web app running on IIS?

$
0
0


We have few clients that have been running our web application using asp.net on IIS. We used to instantiate the Powerbuilder Automation within the web app to be able to call functions in one of the powerbuilder objects. The librarylist and objectname were provided and it worked fine using Powerbuilder 11 on IIS 6. Now we have upgraded and have a client that just received the Powerbuilder 12.1 version on IIS 7.5 and the Powerbuilder Automation initializes sometimes and other times it just crashes. There were moments in the EventViewer we got a pbvm120.dll error. We have not encoutered this issue previously nor can we reproduce this in our local environment. See sample code below in VB.NET. The bold area of the code fails sometimes. Not sure if it is a concurrency issue, IIS environment issue or whether this is something that is not supported any longer.

 

[VB.NET code]

       Dim pb_1 As Object

      Dim pb_2 As Object

      Dim strLib As New System.Text.StringBuilder

 

Try
        m_cLogger.LogDebugger(DEBUGSTART, "LoadPBObject", "", m_Page)

                pb_1 = CreateObject("Powerbuilder.Application.12")  

        With pb_1
          .LibraryList = libraryList

          .MachineCode = False
          pb_2 = .CreateObject(className) 'create library pointer
          Return pb_2 'create object pointer
        End With
      Finally
        pb_1 = Nothing
        m_cLogger.LogDebugger(DEBUGEND, "LoadPBObject", "", m_Page)
      End Try

[VB.NET code]

 

Any ideas whether this is a known issue and how to resolve it?

Procedure has already been executed [PB 11.5]

$
0
0

I have been having a big issue.

 

I am using SQL Server 2005 and PowerBuilder 11.5

 

I have added a call to a procedure (lets say proc1) in my PB app which contains a cursor that calls another procedure (lets say proc2). Proc2 is an intense procedure I use often during the everyday operations of the application. It contains Begin Tran sections.

 

After Proc1 is being executed, the first time I get to write to the database I get a mysterious "Procedure has already been executed".

 

The first thing that crossed my mind was that a TRAN has been left uncommitted.

 

But I did DBCC OPENTRAN and SELECT @@TRANCOUNT during several stages of the operation which, to my disappointment, returned 0. So no open TRAN exists.


Have u guys got a clue of what to look? This thing is making me crazy...

PowerBuilder Conferences: Charlotte Recap, ISUG-Tech coming up

$
0
0

It was great to see so many PowerBuilder folks in Charlotte last week for the 3 day regional user conference. I expected a large turnout from the North Carolina, South Carolina, and Georgia areas but was surprised that customers came from all over the US (Texas, Maine, New Hampshire, Oregon, Washington, Michigan...and more...) as well as Mexico, Australia, and multiple provinces in Canada!  It's more proof that PowerBuilder developers are some of the most committed and loyal out there, and for good reason - their apps work, and they're highly productive using PowerBuilder.

 

It was nice to see so many familiar faces and old friends, as well as hear about how folks are not only still actively using PowerBuilder for their existing apps, but building new applications and modules.  Dave Fish held a few sessions on PowerBuilder as well as an overview of the  River Definition Language .

 

The keynote featured Appeon CEO Armeen Mazda and customers got a close up look at how easy it is to deploy a PowerBuilder app as a native iOS or Android application. Some long time PowerBuilder folks also presented, including Buck Woolley of DW Extreme fame, and Chris Pollach

 

Customer feedback at this event was aligned with what we've been hearing through email and other forums. Top issues include PDF (i.e., SaveAsPDF,) focus on Classic PowerBuilder and moving core .NET functionality into that IDE, and a statement of direction from SAP.

 

Next month, another event, the ISUG-TECH Conference, 2014 will feature PowerBuilder as well as other SAP products, including the launch of ASE 16, and opportunities to learn about SAP's strategic HANA platform. This event will also be another multi-day conference with options for pre-con training. Looking forward to more customer interaction and feedback!

Error saveas PDF PB12.5.NET

$
0
0

Hi,

 

I have create a Webservices with PB12.5.NET.

In my webservices, I have a graph datawindow, that I want to saveas as pdf to send an email.

When I save graph datawindow to PDF I have an error (-1). However, if I save other type datawindow, I can save it.

 

The problem is graph datawindow and saveas pdf.

 

Anybody can help me, please?

 

Regards,

WCF Web Service NULL values

$
0
0

Hi

 

I'm having a WCF Web Service, created from PB .NET 12.5.2 , running on IIS7.

 

If I receive a message with an empty tag ex. <decimal_value/> or <decimal_value></decimal_value>

 

The service failes with an error like: "The value '' cannot be parsed as the type 'decimal'

 

How can I set up the service to accept NULL values?

 

Thanks!

Viewing all 2935 articles
Browse latest View live


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