my question is how to secure the application on network when more than 2 developers are working on same application.
regards,
Sarfaraz
my question is how to secure the application on network when more than 2 developers are working on same application.
regards,
Sarfaraz
Hi Group,
We are currently using PB 12.5 for our application. During testing we have found
one issue while working with EXCEL on WIN7.
Below is the steps to save a powerbuilder report in EXCEL.
1. Export the content of the datawindow using saveas ascii format at temporary
folder with name as testdata.txt.
2. Write the content in "report.xls" file by reading the files generated in above
step.
3. Open the "report.xls" and using connecttoobject do the necessary formating.
4. Save the file at desired location.
Above step is working fine on XP Machine.
This does not work when application is being run on XP machine and it give warning
message as
"The file that you are trying to open is in different format than specified by the
file extension. Verify that file is not corrupted and is from a trusted source
before opening the file. Do you want to open the file now ?"
Can anyone help with this.
I have tried creating a text document with extension .xls and opened it, it works fine with XP but does not work with WIN7 and gets the same message as above.
Friends,
Version: Powerbuilder 7
I have to disable a control(dropdownlistbox) which is inside a datawindow.
i have a textbox, in which i will type the serial number...below that textbox there is a dropdownlistbox which will be displaying the serial name according to the serialnumber which was typed in the above text box.
As soon as the window opens, the dropdownlistbox should be disabled. i tried with the below code but its not working.
dw_master.modify("pre_customer.Enabled = N")
where i am making mistake?
thanks
Can someone tell me how we can buy a Powerbuilder licence today? Until 31 dec 2013, the Sybase store was open, and now I cannot find PowerBuilder on the SAP store...
I have a developper arriving soon to help our team, and I want to be sure the acquisition of the licence won't be a problem
Thanks
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?
Hi,
I have PB 11.2. I have a PB app and I am trying to setup SVN Repository for that app. 3 programmers will be accessing this PB app.
I have installed VisualSVN Server.
Using it I have created 3 users and 1 group.
I have also created 1 repository PB-Pend with 3 folders in it: branches, tags and trunk.
Now I want to upload the PB code into this repository and I am confused on how to do that. The PB code is in .PBL. How this all work? A Tutorial will greatly help.
Thanks
SRH
Hi,
We have an application which sits on a shared network drive and users within the company run it using a desktop short-cut.
This means that currently when we make a change to the application, we have to wait until everyone logs off at the end of the day before we can manually copy/paste the required application files and replace the old application.
We have recently (last week) set-up a Team Foundation Server 2012 and are using it as the PowerBuilder source control system. Which adds a .sr* file for every object within the application. (the application development directory went from 75 files to over 600)
Our current process is as follows:
1. Get the latest version from TFS
2. Make the changes in PowerBuilder
3. Complete Tests
4. Build application within PowerBuilder
5. Check all changed files into TFS (including .exe, pbl's etc)
6. Wait until after hours
7. Get latest built version (once final daily build has been approved)
8. Manually select the ~45 (.exe, pbls, pbds, dlls etc) required application files from local machine
9. Copy/replace application files with those on the shared network drive
We are looking for an automated process, so that once the final build has been completed for the day, and automated process kicks in that copies the files from preferably TFS to the shared network folder.
Has anyone had any experience with this? it is just way to time consuming to have to manually build and deploy the software.
Alternatively is there a way within PowerBuilder to deploy the software to a different folder location, so that the required .exe, pbls etc get placed in a separate folder when built meaning we no longer have to filter them out of the folder with the .pbw and 600+ sr* files?
What is the best method for automated deployment of PowerBuilder applications?
its a PB 12.5. Classic application
Thanks.
Friends...
I am calling the rowfocuschanged event from itemchanged event....but the calling event is not working.
see the italic bold line. the event
dw_2 item changed event.
String ls_PassFail
If dwo.Name = 'marks_final_grade' Then
Choose Case data // What is the letter grade?
Case 'A','B','C','D','E','S'
ls_PassFail = 'Pass'
Case 'U'
ls_PassFail = 'Fail'
dw_2.TriggerEvent(rowfocuschanged!)
case else
ls_PassFail = 'Nil'
End Choose
This.SetItem(row,'marks_final_passfail',ls_PassFail)
End If
my requirement is....marks_final_passfail field's font color should be red...once the 'Fail' case comes...
already the rowfocuschanged event is working...but now i am not going to that field to select 'Pass' or 'Fail'...iam doing it here...so i want to change the font color also from here(dw_2 item changed event)
thanks
One of our major systems, created in 1995, is currently deployed under PowerBuilder 10.5.
We use EAServer 5.5 to make selected reports available via the web as PDFs. These are dynamic reports, generating their results based on user specified input parameters.
I've been asked to come up with recommendations on possible upgrade paths for this functionality.
I understand that there is a more recent version of EAServer, but I have heard that migration to the more recent version is difficult, and that the more recent version has problems, and is less stable than the tried-and-true 5.5 version. In fact, when I go to the Sybase site and look for information on EAServer, I get directed to pages talking about SAP NetWeaver. So upgrading to EAServer 6 doesn't really look like a great long-term solution.
Can anyone give us any recommendations for a good upgrade path for our existing reporting functionality?
Hello everyone!
My company is investigating advantages of migrating our huge PB Classic to another platform/language. So far I've tested migrating it to PB.NET which worked fine but I still have some unanswered questions regarding what PB.NET actually gives to the user. I've really only discovered advantages that the programmer can use, such as IntelliSense, modern .NET-classes and easier code navigation. But close to nothing for the end user. If any of you has any input or answers on my quetions below, please share!
Best Regards,
Lucas
good morning
I'm witha problem, I want to call a propertyofa windowwithout thismethodisopento theOPEN(), bythemeassurances of myapplicationbecauseif I gowithout openingthat windowandI getNULLparameters.
Itriedto do itwith theCREATEinstantiatingand other formsbuterrorsout.
I need away in whichyou canview the properties ofthe windowwithout runningor make itvisibleto the user
Appreciating your help
I am trying to access the web service created in PowerBuilder.Net from internet explorer using the URL: "http://localhost:8001/n_PBClassicAssemblyCall/CreatePcmProj/2" and getting the following error:
"The server encountered an error processing the request. The exception message is 'Could not load file or assembly 'pcm_assembly, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.'. "
Basically I have a PowerBuilder.Net project of type "WCF Service". (The configuration file is modified to make it a REST service instead of SOAP)
Below is the code in this project that is causing the error - (This is a function within a Non-Visual object) -
*************************
integer li_ret
li_ret = integer(as_rpm_proj)
ns_pcm.pcm_proj_services ln_proj //ns_pcm is the name space and pcm_proj_services is the class name in the assembly called pcm_assembly.
ln_proj = create ns_pcm.pcm_proj_services
ln_proj.of_create_pcm_proj("1") //this is a function that inserts row into a database table
Return li_ret
*************************
The .Net Assembly (pcm_assembly.dll) is created using PowerBuilder Classic 12.5. It is included in the PowerBuilder.Net target as a reference.
Note1: If I create a WPF application in PowerBuilder.Net and call the function from .Net Assembly (created in PB classic) it works fine. BUT it does not work in the Web Service application.
Note2: PowerBuilder version used is "PowerBuilder 12.5.2 Build 5006"
Any help is much appreciated!
Thanks in advance.
Girish
I have found that the Win API function GradientFill is not working properly in the PB 15 beta. I think this may be the cause of reported issues with the Advanced GUI Library.
I have a sample app in both 10.5 and 15 flavors. If you run them side by side, you can see that color2 (right side on horizontal) is not the correct color. It seems to be showing as Fuchsia when it should be something else. If you choose Lime for color2, it shows Blue instead.
You can't attach zip or pbl files so I'll need info on where to upload it.
Infomaker 12.5.2
We just had a customer of ours call Sybase to get support for the Infomaker product and they told them it is no longer supported. What?? This is how our customers are able to customize their reports in our product! Is this true? If so then what is the plan for users to customize reports? I sure hope SAP is not thinking that they will purchase a copy of PB because the price tag for that compared to what they use it for (rearranging columns on the DW) is not going to fly.
Any info is greatly appreciated.
Chris Craft
Hi, guys, how are you?
I've been testing my PB application with SAP Hana and I am trying to get a better performance.
While comparing results between Hana and Oracle I couldn't notice any great improvement, that's bad...
Is there anyone using Hana?
Someone told me that if I change some tables to column format instead of row format, I would get better results.
So, I've selected some tables that are frequently updated in order to change them to 'row format', but I got nothing.
Thanks!
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
What is the oldest PB supported version now that will run on a Windows 7 PC?
I am building a search expression for one of my data window, below is the code i am using:
ls_dr_no = string(ld_dr_no)
ls_posting_date = string(ld_posting_date)
ll_rowfound = a_dw.find('dr_no="' + ls_dr_no + '" and audit_posting_date="' + ls_posting_date + '"',1,a_dw.rowcount())
a_dw has both columns dr_no and audit_posting_date in it. When I use the above expression I get an error message that expression types must match. If I try to build string with ld_dr_no(decimal datatype) and ld_posting_date (date datatype) the program won't even compile beause compiler tells me that I am building a string by concatenating date or decimal datatype to it. Is not possible to search thru the datawindow columns whose datatype is other then string? If it is how do I build my search string? Can someone please help. Thanks.
Friends...
I am calling the rowfocuschanged event from itemchanged event....but the calling event is not working.
see the italic bold line. the event
dw_2 item changed event.
String ls_PassFail
If dwo.Name = 'marks_final_grade' Then
Choose Case data // What is the letter grade?
Case 'A','B','C','D','E','S'
ls_PassFail = 'Pass'
Case 'U'
ls_PassFail = 'Fail'
dw_2.TriggerEvent(rowfocuschanged!)
case else
ls_PassFail = 'Nil'
End Choose
This.SetItem(row,'marks_final_passfail',ls_PassFail)
End If
my requirement is....marks_final_passfail field's font color should be red...once the 'Fail' case comes...
already the rowfocuschanged event is working...but now i am not going to that field to select 'Pass' or 'Fail'...iam doing it here...so i want to change the font color also from here(dw_2 item changed event)
thanks
Hi All,
Our PB application users some times work from home using VPN and connectivity dips (network disconnect and reconnect)are expected.
If such thing happens, our PB application throws the DB error : ct_cmd_alloc():user api layer: external error: The connection has been marked dead.
And the application has to be restarted to be able to work normally again.
At the same time, the webpages in a brower are reloading successfully when refreshed after a network dip.
I understand that our PB application is unable to resume DB connection like a browser.
Is there way to handle this situation in PB applications? I mean the application should be able to reconnect to the database after a network disconnect and reconnect.
Best Regards,
Kiran