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

Google maps zoom and LatLong in powerbuilder

$
0
0

Hi

 

I have a Powerbuilder 12.5 application interacting with Google maps. The app is refreshing the map every 5 minutes and thus resetting zoom, Lat o Long to the original values. How can I store zoom, Lat and Long values modified by the user to use them the next time the map refreshes?


Working with MsSql 2005/2008

$
0
0

Hi all ,

 

I am deploying a database application with Sybase SqlAnywhere 11 / MsSql(2005/2008).

 

With SqlAnywhere 11 i can run a sql file within my application with an embbeded sql as we all know.

( like :

ls_alter_command = "alter TABLE tlunot_status add file_flag smallint"

execute immediate :ls_alter_command;

)

 

How do  i  do the same with MsSql 2005/2008 (R2 64 bit) ?

i have tried it and it does not work

 

thankx

Moshe

Graph into Tabular DW

$
0
0

Hi everyone!

I need to show some data grouped by a criteria but, also, the report has to show a graph using this info. As there's no need to fulfill the entire page with data, I thought I could split the page vertically to present them both.

So, the report will be presented like this:

 

Group No. 1

------------------------|------------------------

G R A P H                | Title 1     | Title 2

                               |------------|-----------

                              | Data 1     | Data 2

------------------------|------------------------

Group No. 2

------------------------|------------------------

G R A P H                | Title 1     | Title 2

                              |------------|-----------

                              | Data 1     | Data 2

------------------------|------------------------


I've got no problem with columns or groups. However, I have some issues when I put the graph into the tabular DW. I'm not sure if I have to put it at group's header or at detail band. But I got different results when I change graph's Layer in Position tab.

1. Band Layer shows it incomplete.

2. Foreground Layer or Background Layer didn't put it at same level as data.

 

I think I'm doing something wrong but I don't know what that is. If you have suggestions on this, please, let me know.

 

Thanks in advance.

Andres De la Ossa.

Please sign the SAP take notice of PowerBuilder petition

Formating Value text on graph

$
0
0

I have a stacked bar graph that the values are dollar amounts.  The data is returned as a money type.  I want to change the format on the values text to $###,### - I do not want to show cents.  I can change the format.  But as soon as I save and run the graph, it shows back without the formating.  If I preview the graph before saving it will show the formatting. 

 

The graph will be included on a composite report

 

any suggestions on how to get the formatting?>

How to pass info to an app that is already running via commandline parms

$
0
0

I have a powerbuilder application and now we are taking part of this application and migrating them to our new

.net app. Our delimma is that we must use both applications at this time and in order to move back and forth

between these applications both applications must pass data between both apps to determine the modules user is

working with.

 

 

Our .net developers tell me that they have created a method in thier app that when there app is called, if app

is not already running it starts the app but if app is running the instance that is running somehow determines

this call to launch and then since it is already running does not start another instance of the app and simply

takes the parms passed via commandline and passes them to the instance of the app already running. (how they do that I have no idea because I am under the impression that even the .net app will fire the open event of the app (.net app is window based app) and will try to start a new instance why it tries to send this to an instance that is already running I am not sure but they claim it is happening)

 

 

Is this possible in my PB application? I know I can code the open event of my app and check for the main window

 

 

winhandle = FindWindow( 0, "w_main")

 

 

if I have defined the FindWindow fucntion from user32.dll as an external fucntion and if an instance is already

open then I can get the Commandline argument in the open event to get the commandline parms and not open another

instance but these commandline parms will be in the context of the second instance that was being strated.

The first instance already running have no clue about the commandline parms but I want these commandline parms

to be used in the first instance? is this even possible? does my question make sense? Please help.

How to handle French characters in PB12.5

$
0
0

I am having a problem with displaying text which includes French characters in PB12.5. We have text controls with the text property as bilingual, for example Region should display as Region/Région but displays as Region / R[there is a space here]gion: .

 

Any insight on how to handle French characters would be much appreciated.

 

Thank you,

 

William

PowerBuilder 12.5.2 app crashing often

$
0
0

Hi,

 

We recently updated our software from PB 8 to PB 12.5.2 Build 5550. Our client's are now beginning to have issues with our software crashing to desktop (a few times a day per user) and the Windows error reporting message displays. The issue seems random (it happens throughout the program at no discernible point or task).

 

I've tried to read around on the web and it sounds like 12.5.2 isn't very stable...

 

Does anyone else have any experience with this type of problem? At this point, I'm not sure what we can do about it?

 

Thanks,

Dan


Powerbuilder datawindow format changed after migration

$
0
0

Hi,

 

After migration from PB7 to PB11.5 all number fields are displayed with zero decimals.

 

For example:

testfield decimal(20,5) with value 5 is displayed as 5.00000 in PB11.5 while in PB7 it was displayed as 5. (without zero decimals after the decimal point). The format of the datawindow field is set to [General].

It's like [General]-format in PB has changed.

 

Anyone recognize this issue? How can it be fixed?

 

 

Kind Regards,

Sylvie

Drop down issue in 12.5.1

$
0
0

Hi,

We are facing an issue in the Tab data window with drop downs and checkboxes as

1) Checkbox does not appear checked

2)Drop down does not show the selected value when the focus is changed to some other element in the tab window-

 

Example: Dropdown contains the following values:

     Text          Data

India               10

South Africa     20

America

 

On selection India is displayed, when focus is moved to any other element the drop down value becomes blank and only a blank drop highlighting is didplayed(This happens in cases where the code and value has different data types like code (Number) and value (char))

In few cases the code is displayed instaed of value(where code and value has similar data type like char and char).

This works fine in 9.0 and there is another similar tab window where this works fine even in 12.5.1 version.

Please suggest the fix for this as this a showstopper defect in the application after migration from 9.0 to 12.5.1

 

Regards,

Supreet

Google maps zoom and LatLong in powerbuilder

$
0
0

Hi

 

I have a Powerbuilder 12.5 application interacting with Google maps. The app is refreshing the map every 5 minutes and thus resetting zoom, Lat o Long to the original values. How can I store zoom, Lat and Long values modified by the user to use them the next time the map refreshes?

Calling PowerScript from Java

$
0
0

Hello,

 

I posted a question in another space. The discussion can be accessed here , in case the reply is useful to others.

 

Here is the original question :

 

While it is possible to call Java from PB, is there conversely a way to call PowerScript code from Java, and how ?

 

Best regards.

How to prevent a script error to pop up within PowerBuilder?

$
0
0

I'm using an OLEObject to navigate to an URL. For some extrange reason I get a script error message (this does not happen when I open an Internet Explorer browser and paste the URL). How can I prevent the error message from showing up within PowerBuilder?

Sending emails using OLE

$
0
0

PB 12.1 and 12.5

Outlook 2007/2010

Win XP and 7

 

Having issues sending emails automatically from application. Code developed in the 90's no longer works. MSDN documentation seems to indicate it should so I'm guessing I'm doing something wrong in Powerbuilder.

 

Basically the mailitem.Display and mailitem.Send functions trigger a runtime exception saying unable to access.

 

I've replaced mailitem.Display to...

   inspector.mailitem.GetInpector

   inspector.Activate

 

It works great.

 

I cannot find a Send alternative. Anyone familiar with this? I know my target audience is limited so please respond only if your familiar with OLE and Outlook interop.

 

Thanks

PB 8.0.4, Datawindow click event problem

$
0
0

First I'm new to SCN.SAP and I hope that I'm posting at the proper place for this

question. If not please reply to me where I should ask the following question.

 

I have a picture object in a datawindow, when I click on the object

the clicked event argument dwo.name return 'datawindow' and should

be returning in this case 'p_next' the name of the picture object.

 

Anyone has an idea on what is causing or could cause this problem...

 

 

TIA

Sylvain


.Net Dataset into PB datawindow/datastore

$
0
0

Hi.

 

I guess the title says it all, but is it at all possible?

 

The reason why I ask, is because we're trying to centralize our code in C# so that it can be used both in PB 12.5 Classic, C# and SQL Anywhere (as a CLR).

Most of our functions returns either strings or decimals, so that's easy to accomplish.

But in some cases we need to return a datatable containing several datarows from the C# code.

Is it possible to receive the dataset and directly put it into a PB Classic Datastore/Datawindow?

Is perhaps XML the way to go? In that case, how can I save a Dataset as XML and create a PB Classic Datastore from it?

 

Hopefully waiting for some good examples or ideas.

 

Regards,

 

Bjarne Anker

PB slows down on windows 2008

$
0
0

We have PB code on 12.5.2. It looks like when we run the code on windows 2003 the code run fast. But when we run it on windows 2008 the same code runs 2 times slower?

 

Does anyone know of a list of things that could be slowing down PB on windows 2008?

Using custom WPF styles in PB.NET

$
0
0

Has anyone tried downloading a third-party WPF style library and tried it out in PB.NET?

I recently tried this simple one and failed: http://mui.codeplex.com/wikipage?title=My%20first%20Modern%20UI%20app&referringTitle=Documentation

 

If I follow those instructions and then try to open the window regular PB style , Open( lw_window ), I get a invalidclasscast exception. So then I tried the WPF way like this:

 

W_mui      lw_mui

lw_mui = create w_mui

lw_mui.Show()

 

Then the window shows but It's just black.

 

Thing is that a WPF application in a PB.net Solution does'nt seem to have a App.xaml resource file, which is declared in the linked tutorial. Can I manually add one?

 

Also if I open my W_mui it fails to load the layout and some errors are given. That is because I changed the xaml for it to the one given in the tutorial. The application is runnable but that just doesn't feel right.

create a licence feature for my Powerbuilder application

$
0
0

Can you give a tutorial of how to integrate a licence key feature into my PB application ?

regards

kumar

Thread callback to main thread

$
0
0

I've started experimenting with threads in PB.net.

I'm using this well known code to start up a thread with just populates an instance datastore with some rows.

 

// In main thread, fire up background thread which retrieves data

long ll_cnt

System.Threading.Thread l_thread

System.Threading.ThreadStart l_process


l_process = of_getDwData()

l_thread = create System.Threading.Thread(l_process)

l_thread.IsBackground = true

l_thread.Start()

 

And in the of_getDwData function:

 

// In function of_getDwData() which the thread is running

integer li_cnt

 

// Fill the instance datastore with data

for li_cnt = 1 to 10

          ids_left.InsertRow( 0 )

          ids_left.Object.rownumber[ li_cnt ] = li_cnt

next

 

// When this function is done i would like to go back to the main thread, using some kind of callback.

MainThread.of_threadIsDone()

 

And in the callback function, a DataWindow on the window can just copy the data fetched.

 

// In function of_threadIsDone that is runned on main thread.

// Copy the fetched data!

dw_1.object.data = ids_data.object.data

 

 

I've tried lots of stuff calling from the thread back to the main thread without success.

Could anyone please give me some pointers?


Viewing all 2881 articles
Browse latest View live


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