Hi All,
May I know how can I read the DW computed field value in Javascript during itemchanged event in PB Webform?
Many thanks.
Regards,
VS Chew
Hi All,
May I know how can I read the DW computed field value in Javascript during itemchanged event in PB Webform?
Many thanks.
Regards,
VS Chew
We've installed our flagship app on a Windows Terminal Services farm for a couple of our remote users. The network guys are complaining that folks are saving reports and files to the folder where the app is installed, and not to their %APPDATA% folder. Talk has centered around simply changing the working directory to the path pointed to by %APPDATA% if the %TERMINAL_SERVICES% environment variable is set. In a small, test app of two pbls, this works file. For example, when a file SaveAs dialog opens, it defaults to the user's appdata/roaming folder, not the folder where the exe is running as it does now for the big app.
I've always thought that the class loader or whatever it's called, only loads libraries as needed. In my way of thinking, how does it know where the libraries are if you change the working folder? And what about bitmaps? We don't store the full path when inserting a picture into our apps.
Am I being overly concerned and everything will still work with no rework of the app? I don't think so.
Larry
I'm trying to create my first datawindow with a web service as the data source and no matter what wsdl file I use I can't get past the "Select WSDL File" window. I've tried using a URL to the file and I also copied it locally. I tried our in-house build service and also some public soap web services such as the weather web service located at webservicesx.com. I used both http://www.webservicesx.com/globalweather.asmx and http://www.webservicesx.com/globalweather.asmx?wsdl.
I click the Next button my computer just beeps and stays on the window without displaying any kind of error message. I have imported the extensions from pbwdclient125.pbx.
I'm using Version 12.5.2 Build 5602 on Windows 7 64 bit.
I'm really lost here. Is there something else I need to do to be able to create a web service datawindow?
Does anyone know if it's possible to dynamically call a user defined function on powerbuilder.
My guess is know but wanted to check.
We are trying to store all the function calls in a table if possible vs. hardcoding these calls.
Thanks
Richard
Hi, I've got a grid datawindow looking like:
Where apart from the default blue highlighted line of the current row, I have enabled "Mouse Selection" across the fields. I am trying to find the best way to move the selected data cells, if possible all the selected text, but if not, at least one line / one cell, selected with a mouse like on the screenshot, to Clipboard, so it can be copy-pasted into Excel or similar.
I'm trying to capture the data with
ls_selected_data = (this.Describe("DataWindow.Selected.Data"))
this.event ue_setclipboard(ls_selected_data)
(that event simply does Clipboard(passed parameter) )
but not matter what I try, ls_selected_data always remains an empty string, ""
I'm sure I'm missing something really simple to get that selected data, but I cannot see what exactly? For the record, all columns on the datawindow except first and last are not updateble and have a tab order set to 0, to make them inaccessible to users.
Ideally, I would like just to right-click and be able to use native "Copy" facility from the right-click pop-up window. I have already made the pop-up show option "Copy" by extending pfc_prermbmenu() with
am_dw.m_table.m_copy.enabled = true
Cheers for any insight
I want my new PB to be the "Swiss Army Knife of Business Application Development"!
If I'm going to pay $3,000 for PB,
etc
Don't forget to tell Appeon what you want in your PB box (click here).
PS: Oh yeah ... and Batteries included - Ho, Ho, Ho!
Regards ... Chris
My name is Michael McKernan. I am a documentation contractor supporting the U.S. Army’s Joint Medical Logistics Functional Development Center at Fort Detrick in Maryland.
I am researching the PowerBuilder application for methods and coding protocols for advancing developers’ productivity.
Specifically, my assignment is to research and to discover potential or existing PowerBuilder developer shortcut commands for addressing and incorporating in PB coding for U.S. Federal Government legislated Section 508 requirements for physically impaired users access to IT applications, and electronic and information technology. The research conceptual outcome is that by using the SAP PowerBuilder data-handling object named DataWindow (and Open Data Protocol (OData)), there may be productivity enhancements available that may be improved by developing shortcut commands (either embedded in PB or some other object) to reduce developer time in writing script. So far, there are many sources with application descriptive write ups, but scant sources for process or coding detail. We would interested in publications, with relevant coding examples.
powerbuilder.info/en/tag/sap-sybase-powerbuilder
scn.sap.com/community/developer-center/powerbuilder
access-board.gov/guidelines-and-standards/communications-and-it/about-the-section-508-standards
Telephone contact for SAP and Sybase shown in screen display: +1-800-872-1727
SAP's public accessibility Website: websmp207.sap-ag.de/public/accessibility
service.sap.com/sap/support/notes/995251 (S-User required) for SAP Note 995251 / OSS Note 995251
numerous Wikipedia entries to validate proper spelling and terminology
Message was edited by: Jason Lax
I am facing a problem with a datawindow editmask in PB 12.6 Evaluation Version on Windows 7 Pro.
The column is a numeric field and the edit mask is set to ###,###.00.
The problem is when ever this column gets the focus, and the user types just one number for example 5, the value in the column is becoming 500.00.
If the user wants to input 25 and then tab out the value in the column becomes 200.50.
The regional setting is Indonesian, which it, comma character is for decimal sign, and dot for thousand separator group.
Someone had also experienced this some time ago, but I didn't get the right solution.
Appreciate if anybody can help.
I have a number of Powerbuilder applications. Two of the 30+ will not create an .exe file when building in 32 bit mode. It says "Creating executable file..." and doesn't give me any errors, but there is no .exe file created. It will create one in 64 bit mode. I've played around with my project and exported a working project from another application and imported into this app and still no luck. I've regen'ed, optimized, done full and incremental builds, etc.
Any ideas?
Is there another way to connect to the informix database with a powerbuilder 12.6 classic app
other than Pbin9120.dll and pbi10120.dll
We currently use these with informix connect.
But, our client is saying the following:
We also have several local applications that make use of direct SQL connections to the ECF database, and those also became slow with centralization. Over the past couple days I’ve done a lot of application and network traffic profiling to identify the root cause, and came to the conclusion that the Informix connect driver is simply terribly inefficient at TCP communication.
My developer suggested we make use of the more modern IBM driver set known as the “IBM Data Server Client”, and I have implemented it for one of our local apps, which resulted in a 300% speed boost when compared to the Informix Connect driver. This was a simple configuration change on the Informix server, and a switch in my application from using an Informix ODBC connection to using an OLE DB connection with a connection string specifying the newer driver.
we don't use odbc... .so, I'm confused about that comment.
But, can powerbuilder make use of the "IBM Data server client"?
Hello, all
Our company is running into trouble with multiple PB Classic applications need to share the same code. The shared code, is, usually, a window, which can open other windows (also shared).
I was wondering if it was possible to use PB Classic windows as external COM object to existing PB Classic apps.
Using PB.NET is not an option, because I need win forms, not WPF.
Does anyone have any experience with wrapping PB Classic VISUAL code in COM? Preferrably, the whole window, not just user objects.
Thank you
Fellow PB veterans,
Is it possible to add options to IDE generated SCC commands. Specifically I'd like to get rid of those pesky duplicate dialogs
TFS batch commands have a /noprompt option to suppress dialog boxes
Right now we get double prompting when checking in change or adding new. You enter the comment in the PB dialog, click OK
Then you get the TFS dialog and you have to click OK again
When adding a new object you also get the TFS dialog prompting to accept a prefilled comment when modifying the PBG file
How to get rid of these pesky SCC provider dialogs? Is there a way to specify options to be added to calls
This help document does not show such an option
Thanks for commenting
Hello,
I am running an application created in PB 10.5 on a Windows Server 2012 R2 machine. The application works fine except that the checkboxes inside my datawindows got disappeared completely. The text along with check box appears correctly but the 'box' is missing. Any idea why this is happening?
Thanks in advance for your help.
Regards,
Arjun.
Anyone experience with function of_callwebservice but in different domain address for web service URL?
Example script is run smoothly with localhost domain, but when I try with external domain, always return an error like below:
Execute call Web Service failed. Error message:AppWebservice:Failed to generate dynamicly Web Service proxy assembly!Message=Could not load file or assembly 'file:///C:\Windows\TEMP\4jvbado4.dll' or one of its dependencies. The system cannot find the file specified.
Any suggestions would be greatly appreciated
Note: PB 12.6 using appeon 2015
I am having an issue with my Appeon Development on a brand new Windows 10 PC.
Any time I try to do an Incremental Deployment for an application to the Appeon Web Server, Appeon will instead perform a Full Deployment. This is slowing up development and testing. This occurs after making any minor change in any DW or Powerscript and attempting to Deploy using 'Incremental Application Deployment' option.
Powerbuilder is set to run 'As Administrator' to ensure correct privileges. Having to develop between 2 desks at the moment and it is very time consuming. The application has 77 PBLs so not feasible to continue working on the Win 10 PC if I cannot do incremental deployments, even for single line code changes.
This was logged with Appeon Support over a month ago as a bug, but still waiting on an answer/fix.
Has anyone else experienced this or been able to work around it?
(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
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.
Naive question ahead...(I know very little about mail server, exchange server etc)
Some customers of ours want to store the email conversations with their clients inside our app.
Obviously I do not want to make our database a gigabyte beast or maintain numerous text files inside the filesystem.
I was thinking if I can query a mail server by email address on the fly...
I mean...I have the window that contains the client profiles and I scroll to the ClientA profile. By getting his/her email, can I go to the mail server and download (just for the moment) all the emails that contain his/her address? Then I just have to display them inside a datawindow (somehow) ordered by date and not store them anywhere...
Thank you!
Hi
I am using the following code and everything is fine. But in one new computer the pdf not created . Please can you let me know the which dll be could be missing on that folder
s_attach = g_str_filepath +'\' + "HolidayReminder.pdf"
lds_holiday.Object.DataWindow.Export.PDF.Method = Distill!
lds_holiday.Object.DataWindow.Printer = 'CutePDF Writer'
lds_holiday.Object.DataWindow.Export.PDF.Distill.CustomPostScript="Yes"
li_ret = lds_holiday.SaveAs(ls_attach, PDF!, true)
if li_ret=-1 then MessageBox("Error","PDF file cannot be created",stopsign!)
Return False
end if
Hi
I´m working with PowerBuilder 11.5 and MySql, on my Log In Application Window if the user&password are bad or not exist, why I have gotten a message from Odbc Mysql and then my own message ? I don't want to show that Window of Odbc ..... I attache an example