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

How to get the first date of week from a date input?

$
0
0

Hi All,

 

How to get the first date of week from a date input?

The first day here is Monday.

 

Example:

 

Input date = 09/09/2015

 

Result:

First date of week = 07/09/2015

 

Thank you in advance.


Calendar view of Datepicker control - How to make week number clickable and can be used to get the date from and date to?

$
0
0

Hi All,

 

Calendar view of Datepicker control - How to make the week number clickable and can be used to get the date from and date to?

 

Example:

2015 - Week 53: 28 Dec 2015 - 31 Dec 2015

2016 - Week 01: 01 Jan 2015 - 03 Jan 2015

 

Thank you in advance.

Datawindow(s) auto-retrieve on set time interval - tips pls

$
0
0

Hi,

 

Powerbuilder 11.5.1

 

I'm sorry for asking what is probably a run-of-the-mill functionality, I did some initial googling, but I am incredibly pressed for time, and I cannot afford to spend a lot of extra time researching it. I would appreciate someone pointing me out to any examples that they know about having a window within the app which automatically refreshes its datawindows every 60 seconds.

 

From what I understand from a couple of documents I've seen, it sounds to me as simple as coding

 

Timer (60, this)


in the open() event of the window, and then in the Timer() event of it put something simple like

 

dw_browser1.Retrieve()

dw_browser2.Retrieve()


Is that really all there is to it, and are there issues with this or other hints?

 

Two questions:

1. Would this Timer() based auto-refresh work if the window instance in question does not have focus on it?

2. Would it work if the application does not have focus on it (in Windows)?

 

 

The objective is to present a window (or two) showing two self-refreshing lists with daily orders inserted elsewhere that would for large amounts of time just stand on one of the PC screens while user is busy with other applications.

 

 

Thanks

Power Builder Migration to 12.6 and Active X issue

$
0
0

We have a PB 11 application and it is set up as below:

  1. We have a .net menu (in browser) that opens power builder PBD files version 11 (modules) based on what menu option is selected.
  2. We display the PB module in a active x container
  3. We are upgrading this to PB 12.6. My understanding is when we upgrade to 12.6, we lose the capability to display the individual PB modules in the active x container as Active x is not supported any more.

If I want to migrate my application from PB 11 to PB 12.6 , what are my options ? How can I display the individual PB modules in a "container" that is not active x. Thanks in advance for any suggestions/ideas.

Java VM PB IDE 12.5

$
0
0

Hi all ...

 

I been trying to create JAVA VM from PB but it keeps failing ...My current JDK is 1.8 x64, PB IDE JRE is 1.6_04 on Win7 x64.

 

Java settings on PB IDE are empty, no VM loaded and no classpath value. I have already set JAVA_HOME variable and already pointed IDE setting to both environments and still no working.

 

Any help ...?

Zoom datawindow not in preview mode

$
0
0

With ctrl + mouse wheel I'm able to zoom a datawindow that is not in preview mode. This works fine.

 

But I'm not able to get the value of property zoom. This works only in preview mode.

 

I would like to use this feature without switching to preview mode. Any ideas?

Powerbuilder webservice, print a datawindow

$
0
0

Hi

 

I want to print out a datawindow from my Powerbuilder (12.6.0.4081) webservice.

 

It this possible?

 

I tried the functions Print, PrintGetPrinter, PrintGetPrinters..., but it returns null.

 

So I have the feeling that (print datawindows) is not supported in powerbuilder webservices?

 

Thx

Andy

PowerBuilder 12.6 App crashes randomly

$
0
0

Hey Guys,

 

we have a big problem with our application on only a few clients of our customers, running our PB application. The application is crashing randomaly. The crash can't be reconstructed. Sometime it crashes, on a Click, Open of Window, .....

 

information about used components/version:

  • PowerBuilder 12.6 classic
  • Version: 12.6.0.4011
  • PFC is used
  • compile options:
    • Pcode
    • Platform: 32 bit
  • used Database: SQL Anywhere 16
  • operating system of client: Windows 7 32 bit

 

Below you will find the event log of windows:

 

 

Does anybody know this Problems? Are there known issues with PB12.6.0.4011?

 

Thanks for your help.

 

Heiko


Blast from the past! Infomaker/PB 6.5 and the latest windows 7 updates

$
0
0

I am sure you are all rolling your eyes with this version of the software but we still use Infomaker 6.5.   This product has been working great and still runs fine on Windows 10.   However in the last week we have been made aware of a very strange bug,  we are sure it is related to a Windows Update but cannot work out which one.

 

The bug seems to affect Windows 7 computers and interestingly enough it also affects our Window 2008 R2 Citrix servers running Infomaker but not when accessed by RDP, instead only when accessed via Citrix.  We have one Citrix server that does not have the latest windows updates or Citrix updates (Xenapp 6.5) and this server does not have the problem.

Here is the issue:  

 

I open a datawindow in Infomaker and add a text object , I then right click on the object, go to the Font tab and change the font size.  I click Apply and the text object is sized to a massive size and the font is switched to a random other font.   If however I change the font size by clicking in the header this does not happen. 

 

We have 4 very similar computers (same hardware, version of office, OS) and 2 computers are affected by this and 2 are not.  I have gone through looking at windows updates and compiled a list of updates of that are on the offending computers and not on the other computers.  I removed updates KB3013455, KB3029944, KB3032323, KB3046306 as ones that might affect this but to no avail.

 

Any ideas?

 

Mark Jones

Fortress Medical Systems, LLC

I want to export data to Excel 2010 along with no limitation of 60000 rows

$
0
0

Hello All,

 

Currently, I am using Power Builder 11.5 version.

 

Right now, we have limitation to export data in .xls file only.

 

I want to download data in .xlsx format along with no limitation on no of rows.

 

I did some search on Google and found that using Excel8! or Excel12! it is achievable. In my case, I am able to export data with Excel8! option but it is not opening xlsx file in Excel.

 

When I tried to use Excel12!, it gives me illegal enumerated constant error.

 

Please advice me for the same.

 

Thanks in advance.

Documentation of PB dll (pbshare126.dll) to get more infomation about app crash

$
0
0

Hey Guys,

 

is thera Documentation about the functions in the PB DLLs?

 

We have app crashes which we can't reproduce. The Windows protocol shows the following information:

 

  • we have analized the PBSHR126.dll relating to the error offset of the windows application protocol
  • the error offset on all clients is  0x00049085
  • this is the offset for the function osImagePrint


We don't know what osImagePrint is doing or when this function will be executed!?

How can we find out what DLL (and which function) is triggered at what time? PBDebug doesn't help.

 

 

Thanks and best regard

Heiko

 

 

FYI: More Information about our PB Version and the crash:

PowerBuilder 12.6 App crashes randomly

Imcomplete calendar view of datepicker control

$
0
0

Hi All,

 

I have a problem here, that the calendar view for datepicker control is incomplete if WeekNumbers option is checked, until I go and adjust it manually. It will back to imcomplete view when every time I open the calendar view.

I have tried to resize the datepicker control (width), it results the same.

Is this a bug?

Please help and thank you.

imcomplete.JPG

SQLite ODBC

$
0
0

Hi All,

I'm designing an Appeon Offline application (which runs with SQLite) and, I guess, I need a SQLite ODBC driver to design the datawindows in PB IDE.

 

Anydriverrecommended?

Thanks!

 

Group graph data to display quarterly

$
0
0

Hi All,

 

I have a graph as below, but I would like combine the records into quarter of year. Can this be done and how?

 

Example:

 

2015 - Quarter 1: Jan 2015 - Mar 2015

2015 - Quarter 2: Apr 2015 - Jun 2015

2015 - Quarter 3: Jul 2015 - Sep 2015

2015 - Quarter 4: Oct 2015 - Dec 2015

2016 - Quarter 1: Jan 2016 - Mar 2016

 

graph2.JPG

 

My graph setting as below:

Category = string(duedate,"mmm")+' '+string(duedate,"yy")

Value = 100*(count(wono for graph)/count(wono))


Please advise.

Thank you.

What about your country?


PB Classic 12.5.2 Web Services DW, how to return a validation error?

$
0
0

Windows Clients: Windows 7 and 8.0

 

Powerbuilder Classic 12.5.2 Build 5583

 

Visual Studio 2013, .NET 4.5, C# WCF web services

 

 

Can anyone point me to how to code the web services side of things so I can return a validation error from web services (we are using C# .NET 4.5 WCF for Web Services) to a web services datawindow .Update statement. Ideally I'd like .Update to return -1 and not update the datawindow row statuses if there was a validation error.

 

The reason I am asking is this:

 

I have a web services datawindow, it retrieves and updates wonderfully. Now I add some logic in the web services to validate the incoming data. If some data is invalid I want the update to fail and the user to see a message.

 

To handle the above scenario I am calling a SOAP Fault in the web services and returning a nice message. Catching it in WSError and handling it in a nice manner. All seemed fine EXCEPT, after I get the error message I fix the problem in the data by setting another column from, for example, A to null, because that would then make the first column valid. What then happens is if I look at the primary buffer of the datawindow just before the .Update is called is has null in it as expected, but if I look at the XML incoming to the web services it has A in it!!!! This only seems to happen if a SOAP Fault was thrown first. Otherwise null is sent as expected.

 

I have checked, all columns are marked as nullable in both the datawindow definition and the web services, and the datatypes in the web services are nullable datatypes. Saving with null works just fine as longs as, I think, an exception wasn't thrown already. It only seems to be a problem with nulls.

 

So it has left me with a number of pressing questions:

 

1. Am I just handling validation wrong, and should not be throwing a SOAP fault? If so, what is the normal way of handling these things?

2. Is this a bug in PB (installing 12.6 + latest EBF as I type)

3. Am I going even more crazy than I already was before I started this project?

 

If anyone has any input / ideas it would be welcome. Thank you.

PB Classic 12.5.2 DW XML and empty strings

$
0
0

I want to send an XML representation of the data in a datastore to a web service. I get the XML with dw1.Object.DataWindow.Data.XML.

 

However it doesn't differentiate between empty string data and data that is null, something that is quite important since I am saving it to a database. It marks any columns with empty string and null the same, with a nill="true".

 

Does anyone know of any way for it not to do this? I'd like empty string to be represented as an empty XML element and nulls with a nill="true".

 

Thank you.

PowerBuilder 12.6 .NET Training

$
0
0

Hello,

 

I have a question about getting access to training material for PowerBuilder 12.6 .NET.  I am new to PowerBuilder and have gone through the 10.5 PB Classic manuals and am now able to write Classic Client/Server application fairly well.  Now I would like to have training on how to create a web service in PowerBuilder 12.6 .NET.  We have two licenses for PB 12.6 and would like to take advantage of them.  I have exhausted the web for resources, everything that I find is educational but at a higher level than a newbie like me can understand.  So what I'm looking for are training manuals that walk me through the creation and consumption of web services.  I have seen Bruce Armstrong's (and others) videos on PB tv and they help but are not detailed enough.  I understand what they are telling me, but that just leads to more questions that I cannot find the answers to.

 

With all that being said, are there any tutorials or training manuals that I can get for PB 12.6 .NET exclusively?

 

Thank you,

 

Colin

Error while exporting Certificate in EAS5.5

$
0
0

Hi,

 

We have followed the normal steps to generate a private key and sent it to CA to issue a certificate.

 

Then, we installed the certificate successfully in Security Manager.

 

The problem is when exporting it as pkcs#12, we are receiving an error that it cannot find the private key.

 

Not sure if this is relative, but in earlier versions of EAS, there was an option to make the private exportable but was removed in EAS5.3

 

Please, let me know if you faced a similar issue and any ideas to solve it wold be appreciated.

 

Joe

PowerBuilder Series Type Outlook

$
0
0

Hi all,

 

I hope someone can help me here.To date, was the help for problems with Outlook dissatisfied. I've searched x times the internet for help. Use someone Outlook?

 

How can I change the settings in PowerBuilder 12.5 make so that I can set the series type setting in Outlook?

 

e.g. Appointment beginning, end date

 

or

 

daily, weekly

 

or

 

the duration as the series 10 days?

 

 

Thanks in advance for your help,

 

André Rust

Viewing all 2935 articles
Browse latest View live


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