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

Slow in Save

$
0
0

Hi guys

 

I've just migrated from PB 11.1 to PB 12.6 last EBF but even if my pbls are stored locally I spend 20 second for every Save; with PB 11.1 saving was very fast

If I open my workspace from a remote disk PB 12.6 is slower

I tested PB 12.6 in Windows 10 and Windows 7, PB 11.1 was installed on a W2003 Server

 

someone has an hint?

 

thanks a lot


Is there a future after PowerBuilder 12.6?

$
0
0

Could someone at SAP elaborate on this topic?

PB12 trial version usage pop-up

$
0
0

Hi,

 

We currently have a trial version of PowerBuilder 12.  We are upgrading from PB10 and are currently trying to run some tests on PW12 trial version. One of the test is a build through Jenkins.  This build is failing because a window pops up stating how many days we have left on the trial and requires manual intervention to dismiss the window.  Is there any way to surpress this window so we can continue testing until we are able to get a full license?

 

Below is the pop-up window:

Capture.PNG

thanks,

 

Lisa

web services in powerbuilder 10

$
0
0

I want to call Web services written in ASP.net from power builder 10. Is it possible? and if possible then how to do it?

Trying to call Java-function from Powerbuilder

$
0
0

Hello, i am using Powerbuilder 12.1 build 6639 on Windows 7 Pro 64 bit. //constant string CLASSPATH = "C:\Eigene Dateien\pb105\kmt" string classpath = ".;C:\Eigene Dateien\pb105\kmt" //string classpath = "C:\Program Files (x86)\Java\jre1.8.0_66\bin\client" //string classpath = "" boolean lb_err long ll_rc string ls_msg, ls_cp, ls_version JavaVM ln_java_vm EJBConnection ln_ejb_conn Simple ln_hw do ln_java_vm = create JavaVM ll_rc = ln_java_vm.createjavavm( CLASSPATH, true) if ll_rc < 0 then Messagebox(gs_app_tit, "createjavavm: " + string(ll_rc)) lb_err = true exit end if ls_cp = ln_java_vm.getjavaclasspath() ls_version = ln_java_vm.getjavaVMversion() Messagebox(gs_app_tit, "java version: " + string(ls_version) + " class_path: " + ls_cp) // createjavainstance via JavaVM Class // ll_rc = ln_java_vm.Createjavainstance(ln_hw, "Simple") //-> PB crashes here // createjavainstance via EJBConnection Class (deprecated!) ln_ejb_conn = create EJBConnection ll_rc = ln_ejb_conn.createjavainstance(ln_hw, "simple") // return value is -1 (failed to create java class) Messagebox(gs_app_tit, "createjavainstance:" + string(ll_rc)) try Messagebox("", "before sayHello") ls_msg = ln_hw.sayHello() Messagebox("", "3") catch (CreateException ce) Messagebox(gs_app_tit, "Create Exception: " + ce.getMessage()) catch (Throwable t) Messagebox(gs_app_tit, "Other Exception: " + t.getMessage()) end try Messagebox("", ls_msg) loop while 1 = 0 destroy ln_java_vm return 1

Clearing data in dw

$
0
0

Hopefully I am in the right spot. I know for sure if I do a dw.reset() in a dw I clear all data and if I do dw.retrieve() I get fresh data back into the dw.

Here's my problem. I error  out of a record if there is a problem while saving a record; resets the dw and do retrieve to get back the old record for display. Somehow there is field which is from another table (part of the dw) which does not lose it's data. No matter what I do if I do re-retrieve I get the new data while all the other updated fields from the updateable table give me the original data. I thought doing the re-retrieve will re-freshen my dw. I have even gone to extent of setting that field to the old record and saving which works fine but as soon as do a re-retrieve I get the new data which I don't need. It's only when I log off completely from the application and log back in do I get the old data back. I know this is a long winded way to present problem but I thought I could just do a reset and retrieve and get rid of all the bad data if there is an error. Any help?  I am using PB 12.1 and DB2


KB

'MID' is not a recognized built-in function name

$
0
0

Hi, I am trying to run the following :

 

 

  SELECT auth.c_name,  

         auth.auth  ,

MID( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "function" from key5932 where "key-index" =0 ) as index0,

 

 

But i am getting following error:

 

'MID' is not a recognized built-in function name.

 

can any1 pls help me to solve this....

 

with regards,

Delna

Retrieval problem

$
0
0

in my application i am having check box and edit(the style type) in data objects i need to display som etexts on thos edit and those texts are there in my sql and in the dataobject i have a query like this

 

SELECT auth.c_name,

        auth.auth  ,

substring( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "Fn" from key5932 where "keyyy" ='0' ) as index0,

FROM auth

where auth.c_name = :a_name

 

here "auth" and "Fn" are the two tables and only table"auth" has been selected in this dataobject and i am getting data from"auth"

and "index0" is the name of edit and text which must shown on the edit is taking from table "Fn" but those are not coming properly.

and there is code lyk

dw_security.retrieve(data) here "data is from "auth" and  there is retrievel argument (a_name )in the object  which is from "auth"

 

my problem is i am not getting values from table "fn"


.Net Webservice - soap connection runtime error in windows 10

$
0
0

Hi everyone ,

 

I have a problem with windows 10 ,

when I create a soap connection for a .net WebService it shows this error on run-time :

01-04-2016 6-07-35 PM.jpg

 

this errors occurs only with Windows 10 , I don't get this error when I run from a previous window version

here is my code :

conn = create SoapConnection 

conn.SetOptions("")

ii_instance_ret = Conn.CreateInstance(proxy_obj, "webprod_productsservice", istr_endpoint)

 

Any help with be appreciated

Declaring Arrays in PB 12.5.1

$
0
0

Sorry if this is rudimentary, but I need to declare and load an array for X number of rows of data with various datatypes, sort it and then read the information in the sorted order.

 

The data I need to store in the array is:

 

integer row_number

 

//FROM


string s_country_code

string s_state_province

string s_city

string s_county

string s_postal_code

 

//TO

string s_country_code2

string s_state_province2

string s_city2

string s_county2

string s_postal_code2


decimal s_base_rate

decimal s_tolls

 

integer aleph_cartype

 

I want to create one array with all of the above variables and sort it by the FROM variables and then the TO varibles.

 

I think I know how to handle this if all of the variables are strings, but no so much if the array includes more than strings (e.g. integers and decimals as shown here).

 

Thank you!!

 

Paul

Problem using querymode after modifying dddw allowedit property

$
0
0

Hi,


I have a strange issue that I am unable to solve and wondered if anyone has any ideas.


My application uses querymode heavily. In most screens we have dddw objects that have allowedit set to No. When placing a datawindow into querymode we loop through each dddw field and set the allowedit property to Yes to enable it to be used for querying. When coming back out of querymode we then set them back to allowedit = No.


Here is the generic code I use to place datawindows in and out of querymode:


string s_desc,s_colname,s_allowedit

long l_col,l_cnt

 

s_desc = dw_query.describe("datawindow.querymode")
choose case s_desc
     case "no","No"
          //set dddw columns to allowedit
          l_col = long(dw_query.describe("datawindow.column.count"))
          FOR l_cnt = 1 to l_col
               s_desc = "#" + string(l_cnt) + ".name"
               s_colname = dw_query.describe(s_desc)
               s_desc = dw_query.describe(s_colname + ".DDDW.Name")
               if s_desc <> "?" then
                    s_allowedit = dw_query.describe(s_colname + ".DDDW.AllowEdit")
                    choose case s_allowedit
                         case "no","No"
                              dw_query.modify(s_colname + ".DDDW.AllowEdit=Yes")
                         end choose
               end if
          NEXT
          //put the datawindow into querymode
          dw_query.Modify("DataWindow.Table.Sort=''")
          dw_query.modify("datawindow.querysort=Yes")
     case "yes","Yes"
          //retreive based on user query
          dw_query.event ue_retrieve()
          //take the datawindow out of querymode
          dw_query.modify("datawindow.querymode=No")
          //set dddw columns back to allowedit = No
          l_col = long(dw_query.describe("datawindow.column.count"))
          FOR l_cnt = 1 to l_col
               s_desc = "#" + string(l_cnt) + ".name"
               s_colname = dw_query.describe(s_desc)
               s_desc = dw_query.describe(s_colname + ".DDDW.Name")
               if s_desc <> "?" then
                    s_allowedit = dw_query.describe(s_colname + ".DDDW.AllowEdit")
                    choose case s_allowedit
                         case "yes","Yes"
                              dw_query.modify(s_colname + ".DDDW.AllowEdit=No")
                         end choose
               end if
end choose


The first time you run the retrieve like this it works ok, however, on any subsequent retrieves I get an incorrect syntax error - "Incorrect syntax near 'VERSION'"

 

Looking at the sqlpreview event, this seems to be caused by the select statement now being in PBSELECT format.

 

Sqlsyntax in sqlpreview is like this on first retrieve in querymode:


SELECT Bill_exasxcode.asxcode , Bill_exasxcode.appdate , Bill_exasxcode.closedate , Bill_exasxcode.instime , Bill_exasxcode.usrname , Bill_exasxcode.bexasxno , Bill_exasxcode.clsite FROM Bill_exasxcode WHERE (((Bill_exasxcode.asxcode = 'property')))

 

Then like this in subsequent retrieves:


PBSELECT( VERSION(400) TABLE(NAME="Bill_exasxcode" ) COLUMN(NAME="Bill_exasxcode.asxcode") COLUMN(NAME="Bill_exasxcode.appdate") COLUMN(NAME="Bill_exasxcode.closedate") COLUMN(NAME="Bill_exasxcode.instime") COLUMN(NAME="Bill_exasxcode.usrname") COLUMN(NAME="Bill_exasxcode.bexasxno") COLUMN(NAME="Bill_exasxcode.clsite") EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" WHERE(EXP1 = "(((Bill_exasxcode.asxcode" OP = "=" EXP2 = "'property')))") )

 

If I remove the code to set allowedit back to No I don't get this issue.

 

Am I missing something in my code or is this a bug? 


Does anyone have any ideas on fixing this. Can I convert the PBSELECT syntax to standard sql syntax somehow?

 

FYI - I am using PB 12.6 classic, connecting to SQL Server 2012 using SNC ODBC.

 

Thanks

Gordo

Querymode issues when amending DDDW allowedit property

$
0
0

Hi,

 

I have a strange issue that I am unable to solve and wondered if anyone has any ideas.

 

My application uses generic querymode functionality in all data windows. In most data windows we have dddw objects that have allowedit set to No. When placing a datawindow into querymode we loop through each dddw field and set the allowedit property to Yes to enable it to be used for querying. When coming back out of querymode after the retrieve, we then set allowedit back to No.

 

Here is the generic code I use to place datawindows in and out of querymode:

 

STRING s_desc, s_colname, s_allowedit

LONG l_col, l_cnt

 

s_desc = dw_query.describe("datawindow.querymode")

CHOOSE CASE s_desc

  CASE "no","No"

    //set dddw columns to allowedit

    l_col = long(dw_query.describe("datawindow.column.count"))

    FOR l_cnt = 1 to l_col

      s_desc = "#" + string(l_cnt) + ".name"

      s_colname = dw_query.describe(s_desc)

      s_desc = dw_query.describe(s_colname + ".DDDW.Name")

      IF s_desc <> "?" THEN

        s_allowedit = dw_query.describe(s_colname + ".DDDW.AllowEdit")

        CHOOSE CASE s_allowedit

          CASE "no","No"

            dw_query.modify(s_colname + ".DDDW.AllowEdit=Yes")

        END CHOOSE

      END IF

    NEXT

    //put the datawindow into querymode

    dw_query.Modify("DataWindow.Table.Sort=''")

    dw_query.modify("datawindow.querysort=Yes")

  CASE "yes","Yes"

    //retreive based on user query

    dw_query.event ue_retrieve()

    //take the datawindow out of querymode

    dw_query.modify("datawindow.querymode=No")

    //set dddw columns back to allowedit = No

    l_col = long(dw_query.describe("datawindow.column.count"))

    FOR l_cnt = 1 to l_col

      s_desc = "#" + string(l_cnt) + ".name"

      s_colname = dw_query.describe(s_desc)

      s_desc = dw_query.describe(s_colname + ".DDDW.Name")

      IF s_desc <> "?" THEN

        s_allowedit = dw_query.describe(s_colname + ".DDDW.AllowEdit")

        CHOOSE CASE s_allowedit

          CASE "yes","Yes"

            dw_query.modify(s_colname + ".DDDW.AllowEdit=No")

        END CHOOSE

      END IF

    NEXT

END CHOOSE

 

The first time you run the retrieve like this it works ok, however, on any subsequent retrieves I get an incorrect syntax error - "Incorrect syntax near 'VERSION'"

 

Looking at the sqlpreview event, this seems to be caused by the select statement now being in PBSELECT format.

 

Sqlsyntax in sqlpreview is like this on first retrieve in querymode after changing DDDW allowedit property to Yes:

 

SELECT Bill_exasxcode.asxcode , Bill_exasxcode.appdate , Bill_exasxcode.closedate , Bill_exasxcode.instime , Bill_exasxcode.usrname , Bill_exasxcode.bexasxno , Bill_exasxcode.clsite FROM Bill_exasxcode WHERE (((Bill_exasxcode.asxcode = 'property')))

 

Then like this in subsequent retrieves after having amended the allowedit property back to No:

 

PBSELECT( VERSION(400) TABLE(NAME="Bill_exasxcode" ) COLUMN(NAME="Bill_exasxcode.asxcode") COLUMN(NAME="Bill_exasxcode.appdate") COLUMN(NAME="Bill_exasxcode.closedate") COLUMN(NAME="Bill_exasxcode.instime") COLUMN(NAME="Bill_exasxcode.usrname") COLUMN(NAME="Bill_exasxcode.bexasxno") COLUMN(NAME="Bill_exasxcode.clsite") EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" EXP2 = "(not sorted))" WHERE(EXP1 = "(((Bill_exasxcode.asxcode" OP = "=" EXP2 = "'property')))") )

 

If I remove the code to set allowedit back to No I don't get this issue.  So it seems that setting allowedit to Yes has no impact but setting back to No casues the problem.

 

Does anyone have any ideas? I this a PB bug, or am I missing something obvious?

 

To workaround it can I convert the PBSELECT syntax to standard sql syntax somehow?

 

FYI - I am using PB12.6 classic, connecting to SQL Server 2012 using SNC ODBC.

 

Thanks

Gordo

License for PowerBuilder Enterprise

$
0
0

Hi to everyone.

 

i'm not able to install PB 12.6 license on a windows 7 machine.

 

i have my *.lic file, but after the installation, PB remain an evaluation copy.

 

( Originally i installed PB like an evaluation, but now i have to activate it ).

 

 

i try to activate in WINDOWS SAFE MODE but nothing is changing.

 

 

Can someone help me ?

 

 

ty

 

Gimmy

PowerBuilder 11.5 Download

$
0
0

Does anyone know where the prior version downloads are located?  I have a valid PB 11.5 license but can't find the download for the life of me. I am able to check-in and re-generate my license key but it appears Sybase took the download files down and finding something on the SAP site is about as intuitive as finding the Higgs Bison Particle without an education in physics. Thanks in advance for pointing me in the right direction.

 

Somehow I have a feeling that my PB 11, 11.1, 11.5 licenses are gone because I don't have the ISO's. It killed me to move on from PowerBuilder (to NetSuite and .NET) but when I come back to PB I realize that Sybase ruined PB, and SAP drove the final nail in the coffin. Frustrating to say the least. My manager wants to buy a copy of PB but he doesn't trust SAP because of the challenge finding someone who sells a license and those who had ability to sell PB revoked. Something about Fortune 500 (or similar size foreign companies) they are about as worthless as Government. </ rant >

Change the default values of richtext style?

$
0
0

for column in datawindow , if one field is of richtext style

when i on this field the richtext menus appears with some default value ( for example font is "times new roman" - size is"11" - alignment is "left to right"

how can i change this default values (for example font size =14 or alignment is to be center) i know the user can change it -but i want user start to type without make change every time he on this field


Datawindow Grid Lines disappear

$
0
0

Hi all,

 

I have simulated a rowfocus indicator by putting an expression in the background color of the detail band in a grid datawindow.

That way the colors of the columns remain visible, in contrast to using the standard ugly blue rowfocus bar.

The expression is "if(currentrow() = getrow(), rgb(213,232,255), 536870912)".

 

Somehow the gridlines disappear when the currentrow is the last visible row, or the very last row in the datawindow.

I tried working around the issue with setredraw and switching the gridlines on an off, but no success.

 

Googling this, I found an old Sybase case number describing the same issue: case 11704036.

Does anyone know what the status is of this case?

 

Regards,

Alain

What is the alternative to Sybase Infomaker for creating reports and .pbl files?

$
0
0

We, a local government in Utah, have a budget application called BRASS that we acquired in 2000.  In the past, we used Sybase Infomaker  version 12 to create report definitions or templates and save them in a .pbl file.  This file currently contains around 50 report definitions or templates.  Next, we would save the .pbl to the application's folder.  The application had a config file that pointed to this specific .pbl  file.  This configuration file apparently made it possible for the application to provide an interface which allows an administrator to define a report name that points to one of the .pbl files report templates, and later use that report name to select and produce a report. 

 

Even though SAP no longer offers Infomaker, I still need a means of creating report templates and producing the all important .pbl file.  I have Infoaker 12 and am still using it but I am concerned about the applications longevity if this tool is no longer available.  Can anyone tell me if there is a replacement product that would continue to allow me to create report templates that can be saved in a .pbl file?  Please advise.

 

Below is sample screenshot that shows the application's report definition pointing to a .pbl file contained template.

 

ReportSetup.png

PowerBuilder 12.6 crashes when closing application

$
0
0

PB 12.6 classic application works fine until closing it.

Message "SAP PowerBuilder 12.6 has stopped working correctly. Please close the program."
Development or Runtime makes no difference.

Windows 7 Enterprise Service Pack 1.

 

Thanks in advance,

Rene.

 

Application error log:

ApplicationLog.jpg

Crash debuging PowerBuilder 12.5.2 Classic Target WinForm

$
0
0

Hello fellows

 

Is there anyway to debug an application that was developed with  PowerBuilder 12.5.2 Classic using WinForm Target  (compiled in Windows .NET Forms Application).

 

Application runs ok but when I try to debug using either debubreak() function or break, crash !

 

 

I also develop a simple Hello World application for debugging popouse but it failed !

 

Any clue , I will really appreciate some help!

 

Best regards!

 

pd: My Pc has Windows 7, 4 gig RAM, enough space, PowerBuilder 12.5.2. I also tried using PB 12.6 but is the same behavior in other PC!

Need to remove EAserver Jaguar components from PowerBuilder Application.

$
0
0

Is there any documentation on the strategy/plan to remove Jaguar from PB distributed application viz. Converting a Distributed Application to a 2-tier Power Builder C/S Application?

 

If any one of you have done it please share experience.

 

Thanks

ShivOhum!!!

Viewing all 2935 articles
Browse latest View live


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