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

Where oh where can I buy a copy of 12.5?

$
0
0

Greetings all,

 

I need to buy a license of PowerBuilder today if possible. I tried the PB Trial link off this forum, but it is a dead link.

 

I went to the SAP Store and search on PowerBuilder getting back only 'No Solutions'.

 

Will someone please take my $3,000.00 and give me a license? Pretty please?

 

Paul

 

SAP-Thought-Leadership.pngSAP-Store-PowerBuilder-No-Solutions.png


AutosizeHeight and run-time value

$
0
0

I know this has been asked many times before, but my Google-fu has failed me.

PowerBuilder 12.5.2 classic mode, running on Win7 64 bit.

I have an autosize height column in a datawindow, and I want to know how tall it has become after I set a value to it (to account for word/line wrapping, etc.). There is only one row in the datawindow at a time.

 

I have tried dw.Describe(ColumnName + ".Height"), and I get the design-time value.
Tried dw.Describe("Evaluate('" + ColumnName + ".Height', 1)"), get an invalid expression error.
Used RowHeight(), but it seems to increment sporadically (every 5-12 lines).

Even put an invisible line under the column with SlideUp, and looked at the Y1 value, but again only get the design time value.

 

Help?

 

-Kennon

add a Tag when Consuming a web service using Proxy wizard

$
0
0

i am currently consuming a web service using the proxy wizard.  i was able to import the wsdl and it created all of the structures that are required to create the xml document that i need to send.    i am having an issue where one of the elements is using the wrong namespace.  it's a complex schema that is using inheritence and the namespace that is currently associated with the element is incorrect.   i tried to modify the structure and add an xmlns string property, assign the correct namespace to xmlns, but when the structure is created, it does not associate the xmlns tag to the element.   does anyone know if you can modify anything that was generated from the proxy to add properties?

 

thanks

Jim

What's this I see Vishal Sikka is leaving SAP?

How to control the scroll property of a tree view control

$
0
0

Hi,

 

I have a tree view control created using a table data source. Particular item in tree view has three levels for the root item and there are number of root items will be available in the tree view. I am facing an issue each time I refresh the tree view. Scenario is like, I have expanded many items in the tree view level and I am moving the vertical scroll bar and keep it somewhere in the middle and then I select an item in the tree view. Now I have a button that will refresh the entire tree view (It will re create the tree view again with any available new item from the table data source). Once the tree view items have re created the vertical scroll bar position moves (up or down) from the position where it was before the refresh button is clicked. Is there any way with that I can keep the vertical scroll bar to the same position as it was before refresh?

 

Thanks,

Anoop

Printing datawindow

$
0
0

Hi everyone ,

 

I want to give the user the ability to choose his columns and print the dw but I want to print composite one ( I put a dw title with the dw data)

I put a grid dw with  known columns ( using the tag ) , and  let the user to make each column he want visible / not visible , adjust width , sort , filer ,

change the column , move columns ( change the column order ), BUT , now I need to print it after all the the actions made ,

but I don't want to print the grid itself , I want the grind to share data with nested one in a composite dw ,

 

How do I do that ?

 

 

Thanks

View full Query String when Debugging

$
0
0

I am trying to debug a database error my application throws randomly.

 

I have a window with two shared DataWindows on it. Most of the time when I modify and save everything works fine. But on some records the application throws a "row changed between retrieve and update" error.

 

I read here that it could be to do with the database/triggers. I have been through debugging but cannot seem to find the actual query that gets executed.

I don't think this is an error with the application itself as I have been able to modify the same column of other records using the same process. so I think there has to be something wrong with the query for this particular record.

 

The closest I could find to the query being executed was:

 

string sqlsyntax = "UPDATE "TABLENAME" SET "CHANGED_ROW" = :1 WHERE "TABLE_ROW_1" = :2 AND "TABLE_ROW_2" = :3 AND .. etc".

 

But cannot see what the values of :1, :2 etc are to get a full idea of what the query is, and hopefully why it is happening for this particular record.

 

Is there a way to view the exact query that is being executed against the database?

 

It is an Oracle database, application is PB 12.5 classic

 

Thanks

change resulution

$
0
0

Hello everyone ,

 

Does any one know how can I change the application to fit to user resolution screen ?

my app's developed in 768X1024 in original , if user works with 1280X1024 or more , it really gets hard to see , not to talk that in

wide screen it gets worst

 

 

working with 12.5 classic

 

thanks

 

Moshe


PB .net 12.5.2, datawindow retrieves choke on Oracle TO_CHAR function

$
0
0

Oracle 11g, we've got at least a couple of these datawindows. Just another PB .net glitch?

 

to_char error.png

RPCFUNC Parameter Limit?

$
0
0

In Powerbuilder (11.5.1 Build 5097) I  have a Local External Function declared as follows:

 

SUBROUTINE  INSERT_TRXNDR(long p_TRXNDR_SEQ, &                                               

long p_ADDR_CITY_SEQ, &

… more parameters

string p_NDR_CASE_REVIEWED) RPCFUNC

 

I currently call this external function using the following syntax

 

sqlca.insert_trxndr(ll_TRXNDR_SEQ, &

ll_ADDR_CITY_SEQ, &

… more parameters

ls_NDR_CASE_REVIEWED)

 

I need to modify this to add more parameters. Currently there are 253 parameters. I need to add another 50 for a total of 303.

 

The problem that I am encountering is that I am getting the following error when compiling the window function that calls the subroutine after adding all of the parameters.

 

Error C0084: Bad number of arguments for function: insert_trxndr

 

I decided to add the parameters one at a time to attempt to identify exactly when it breaks.

 

When I had added 2 parameters to the declaration, saved it, and then modified the code that invoked it, the window function compiled fine (total of 255 parameters).

 

SUBROUTINE  INSERT_TRXNDR(long p_TRXNDR_SEQ, &                                               

long p_ADDR_CITY_SEQ, &

… more parameters

string p_NDR_CASE_REVIEWED, &

datetime P_TRAVEL_ARRIVED_DT1, &

datetime P_TRAVEL_ARRIVED_DT2) rpcfunc

 

sqlca.insert_trxndr(ll_TRXNDR_SEQ, &

ll_ADDR_CITY_SEQ, &

… more parameters

ls_NDR_CASE_REVIEWED, &

ldt_TRAVEL_ARRIVED_DT1, &

ldt_TRAVEL_ARRIVED_DT2)

 

However, when I added the 3rd parameter to the declaration, saved it and then modified the code that invoked it, the window function gave me the error when I compiled it (total of 256 parameters).

 

SUBROUTINE  INSERT_TRXNDR(long p_TRXNDR_SEQ, &                                               

long p_ADDR_CITY_SEQ, &

… more parameters

string p_NDR_CASE_REVIEWED, &

datetime P_TRAVEL_ARRIVED_DT1, &

datetime P_TRAVEL_ARRIVED_DT2, &

datetime p_TRAVEL_ARRIVED_DT3) rpcfunc

 

sqlca.insert_trxndr(ll_TRXNDR_SEQ, &

ll_ADDR_CITY_SEQ, &

… more parameters

ls_NDR_CASE_REVIEWED, &

ldt_TRAVEL_ARRIVED_DT1, &

ldt_TRAVEL_ARRIVED_DT2, &

ldt_TRAVEL_ARRIVED_DT3)

 

I have found some references to a limit of 256 parameters on various web sites but they are very, very old.

 

I even tried changing the parameter names to make them shorter in case that was the issue, but got the same results.

 

Any insight would be appreciated.

 

Thank you,

Michelle

PB 11.5.1. - win 8 64 bit

$
0
0

Hi all,

 

I am in the process of converting my win7 laptop towards a win8 desktop.

 

I have about 5 different PB programs/workspaces.

 

4 of them are starting fine on the new desktop, only the 5th one is giving me problems.

 

I tried optimising the different pbls , did a full rebuild without any error. When i click on the RUN TEMPLATE icon , it simply crashes. I even added a messagebox in the open event at line 1 , but this messagebox is never shown.

 

 

Anyone have any idea's as to why my project won't run ? The compiled version does start without any problem.

 

Any tips or clues ?

 

 

TIA

John

How to send multiple records to a webservice in pb.net

$
0
0

HI All,

 

i have created a pb.net webservice.I have created a nonvisual object and defined a function in the NVO.The function is returning multiple records.

I am returning the records by using a Structure array.It is successfully created.But whenever i am accesing the webservice through powerbuilder or SOAP UI, after providing the required inputs,the webservice is not returing any values.But in response it is showing all the out put columns( defined in the structure) with out any data.

 

If i am giving hard code values to the structure then i am getting this out .

 

Can anybody please help me how will i get the datas.In the structure i have more than 20 columns.

 

Note- In structure data is returning, as i have checked this in WPF application with same object and same function,

 

 

Regards

Subrat

Create windows service

$
0
0

Hi!

     I'm trying to create a windows service from PB Classic 12.5. Does anyone know or have a sample about how can I create this? I tried to create a simple application that  change a registry key. I generated an exe file and executed this command line on cmd [sc create <new_service_name> binpath= "<path_to_the_executable>"]. This created the service on Windows service list, but this error occurred: error 1053 the service did not respond to the start or control request in a timely fashion.

Can anyone help me?

Thanks in advance.

Pedro Soares

animated gif as tab picturename

$
0
0

I am using PB 12.5.1 and trying to set an animated gif on a tab control's "PictureName" property. It correctly displays the gif when I want it to, but it is not animated. Is this a limitation of the tab's picturename or does something else need to be done for it to be animated? (When I view the gif in a browser it is animated).

Incompatible type for NOT operator: nullable`1[system.boolean].

$
0
0

Hello, all

I am having a strange problem in consuming my PB.NET assebly in another PB.NET application.

 

I have a function InitializeComponent in the assebly, which returns boolean,

But when I try to use it in the following code:

 

//---------------------------

if not ln_guest_srv.InitializeComponent(gs_odbc) then

  return false

end if

//-------------------------

 

I get the following error:

 

Incompatible type for NOT operator: nullable`1[system.boolean].

 

 

Is there some definition problem in the assembly?

 

Arcady


DataWindow.Net 2.5 IE 10 support

$
0
0

Hi,

 

 

 

I know DW.Net is not supported but we have still used this component. I have recognised issue with IE 10 . CSSs for WebForm are not generated. I have tried

 

to changed HTMLGen.Browser property but no success. Any idea or suggestion appreciated.

IE10 compaptibility view is OK.

 

Thanks in advance.

Regards Miroslav

Ole LocationURL call crashes on Citrix

$
0
0

To All,

 

The following call causes a crash of powerbuilder when running via Citrix

ls_OldURL = iole_ie.LocationURL

It goes well withour Citrix.

 

Strange enough setting properties like this goes well in Citrix:

iole_ie.width =  ls_settings[1]

iole_ie.height =  ls_settings[2]

iole_ie.Toolbar = (ls_settings[3] = 'T')

iole_ie.Statusbar = (ls_settings[4] = 'T')

iole_ie.Menubar = (ls_settings[5] = 'T')

 

Please advise

 

Thanks in advance!

 

Regards, Patrick Posthuma

Peculiar Behavior using SlideLeft in Datawindow - Help

$
0
0

PB Classic 11.5 Build 3050.

 

I'm using the SlideLeft propery in the datawindow to manage the space between objects.  When trying to get further information about the objects on the DW in the clicked event of the DW control two pecular issues are occuring.

 

/* Sample Code */

string  s_Name
integer i_X, i_Y, i_H

s_Name = Lower(dwo.Name)
i_X = Integer(dwo.x)
i_Y = Integer(dwo.y)
i_H = Integer(dwo.Height)

/* Sample Code */

 

1.  The name of the dwobject does not match the name of the of the dwobject clicked.  It can be seen between the text and picture objects in the attached DW (Returns sub2_t instead of sub2_p) I've also had it return the name of a text object when another text object is clicked (sub3_t instead of sub4_t).  That later doesn't happen as frequently.  Is this a known bug?

   

 

2.  X is the the value of the location of the object before it is slid to left.  I would like to get the X value after it is moved.  I've tried to use:  s_Desc =  "evaluate( '" + s_Name + ".x', 1 )"  , but I recieve a message indicating "Expression is not valid".  Is there a way to get this value?

 

 

TIA

 

Regards,

Mike

Problem in saving PDF's in PB.NET 15 (greek regional settings).

$
0
0

Hi.

 

Using PB.NET 15 Build 2005.

 

Trying to save a PDF file with datawindow's saveas function. I receive the following messages (i provide two screenshots because the modal assertion window shows twice). Using greek regional settings, but the data in the datawindow is in English.

 

 

 

(this problems occurs also in PB.NET 12.5 but not in PB,NET 12.1).

 

Andreas Mykonios.

Slightly used PB developer on the street

$
0
0

First mistake:

I thought I had a sunset job, i.e., a comfy position with a stable company that I could hold on to until retirement age (5 years to go).

 

Second Mistake:

Not learning anything but PowerBuilder.

 

The inevitable happened:

'Stable' company's parent sold to another investment firm. Firm didn't want the satellite divisions (us and another). Satellite divisions sold to a competitor. We find out tomorrow by meeting with new company's HR if we have employment and for how long.

 

So... what's the PB field like out there? Still a lot of contract positions?

 

Larry Molter

It sucks being a dinosaur.

Viewing all 2881 articles
Browse latest View live


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