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

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

You do not mention what the error is you are seeing or why you think it is the ‘Convert to Syntax’ is causing the issue?

 

You say a runtime error,  could there be a retrieve where the returned rowcount is not tested and then e.g. a GetItem is done and no row is found?

 

I have taken many PB classes and worked in numerous large corporations with extraordinary developers and have never seen the must save to ‘Graphics mode’.  I am not saying it is not correct, simply sharing that is the first time I have seen that. Also, the link posted is from 2005.  

 

Be this the case(graphics mode save), I wonder how a Stored Procedure behind a dataobject if/would impact this?

 

Thoughts on using Convert to Syntax:

  1. It could be as simple as style.  An app with 4000 objects, that tells me there must have been many, many developers over the years and I am sure each and everyone had their own ideas on how to use Powerbuilder. That is not directed at anyone just what I have seen in many applications.
  2. Is there a pattern?  e.g., The objects which use the graphic mode is it very basic SQL, Select From Where. 
  3. The dataobjects Convert to Syntax,  the SQL does it use e.g., Outer joins, Unions or other SQL syntax where building in graphic mode would be time consuming or not possible?

 

I cannot remember the last time, I used or saw graphic mode used.  For the most part, the SQL I put behind dataobjects is very complex.  I build outside the object, test, check the where clause is properly structured, test, then cut and paste into the dataobject.

 

I would prefer a Stored Procedure but am a contractor and have to adhere to the site standards and SP's are not always used.

                                                                                                             

4000 Objects, I can’t imagine regression testing and signoff must be time consuming. Also, this leaves so much room for error, duplication and  trying to figure out where an issue is and how to find it. It also makes me wonder if some developers created basically the same object over and over instead of modifying a Where clause.


Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi, Chris.  How are you?

 

 

 

 

 

What I meant is that the "graphic mode" option is causing the errors, not the opposite.

 

 

 

About the erros, sometimes we experience SetTransObject() errors, or retrieving errors. And the errors are not at a fixed point in code.

 

Database connections are ok, and we have all datawindow objects we need, no one is missing.

 

As only 10% of our objects are "converted to graphics" mode, we are going to change them to "syintax mode", I am just sharing this thought of "something may go wrong with graphic mode... "

 

 

 

I agree with you, the link I've posted is old, indeed, that's why it caused me some surprise.

 

 

 

 

 

Our application is very complex, it's been written over the years by many different developers, and now we have it all converted to PB 12,5,2 ( using both Classic and .NET ides ).

 

 

 

The SELECT statements vary in complexity, but even a very simple one may  trigger the errors I mentioned.

 

 

 

We do have a very tight quality control, that involves unit testing, regression tests, versioning, developing patterns, source control and so on. That's not the main point, although I agree with you a simple mistake may damage an entire system, we are aware of that and we take a lot of care 

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Often when the same error creeps up at different points, the code is missing Error Checking. It is dropping thru code and not being trapped. Is the SqlCode tested on the Connect?  Is the Rowcount on the retrieves being tested?   With so many objects, has anyone checked that the object being executed isn't in more than one library?  When I think this many be the case, I often will change the font color on one field to verify I am looking at the correct object at runtime.

 

Could a dw.modify be happening? A GetChild?

 

From what you wrote above you seem to have a good understanding of what is going on so you are probably already doing this.

 

Have you gone into the debugger and looked at the settings on the Transaction Object at SetTransObject time, could something be being reset?  Also, I find looking at the SqlCode and SQLErrText in the debugger can be very helpful.

 

Hope this helps,

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

You didn't mention which DBMS you're using, and which database driver.

 

I've never seen graphic mode cause any kind of errors - except errors in SQL execution.  For example, if you have "chained outer joins" (A loj B loj C, for example), and you don't create the joins in the correct order (A to B, and then B to C), older versions of PB would create improper syntax.


But I've never seen it cause a runtime error just because of graphic mode.

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi Denise;

 

  FWIW: I never use Syntax mode unless I am using some specific SQL feature like for example HINTS or special options specific to a DBMS vendor. Graphics mode allows PB applications to easily adjust the DW SQL at run time to the specific DBMS version or better yet run across various DBMS vendors where the DWO automatically changes the flavour of the SQL depending on the vendor found at run time.

 

  IMHO - using Syntax mode is where you are fully aware of the possible negative future impacts as the DBMS vendor version changes versions or you are 100% sure that you will never change DBMS vendors. Many of my clients build applications that - when sold - run on the customers DBMS software. So these applications can never use Syntax mode and hope to dynamically switch DBMS vendors as they would be "tied into only one" DBMS.

 

Food for thought!

 

BTW: I have never had any issues using Graphic mode like Chris describes.

 

Regards .. Chris

PS: I have a free SQLExtract utility that can help you locate Syntax vs Graphic mode DWO's in your PB applications: http://sourceforge.net/projects/stdfndclass/

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi, Chris.

 

It's a WCF application, so it doesn't have a visual interface. In that case, I only see things by debugging and it's not possible changing font colors.  Anyway we do have all necessary datawindows objects, this is part of our checklist and database Connections  are ok..

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi, Paul..

 

Our system works with Oracle 10g, 11g, SQL and even SAP Hana.

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi M;

 

FWIW: I have been using PB since v0.8 Alpha (1999) across a myriad of DBMS vendor products and never encountered Graphic SQL problems (other than not being able to revise SQL in graphics mode in version 1.0    ).

 

Regards ... Chris


Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

No - I'm not saying that at all.  I haven't tested this in 12.x, so my only experience with this feature happens to be with older versions.

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Hi Chris P,

If you switch to using ANSI as the outer join syntax then you may see the problems.

 

Using the PB outerjoin syntax (which generates '*=' in SS/ASE instead of 'left outer join') may still work, although we moved away from that years ago it order to generate ansi standard sql so i really don't know.  But it did used to work.

 

The graphical ansi problems typically show on more complex sql with outer joins and several tables and the use of multiple columns in the outer joins.  Simple datawindows are fine in graphical, and much more convenient.  Its great that you haven't encountered the graphical bugs, but they are certainly there.

 

 

Also, using syntax is a good option these days.  ANSI sql fixes the problems that graphical used to be the only solution for.  for example, in the old days oracle and ASE/SS used completely different syntax for outer joins (*= vs +) , now if you use ansi outer join syntax you have nothing to worry about.    Unless you are using a very old version of a database, they will support ansi standard join syntax.

 

having said that, i do agree that graphical is the way to go - when it works.  i even use it with subselects (i just put that in the compute or where tabs) when i can.

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

Thanks for the details on what causes your issues. I'll try and keep an eye out for these scenarios. Yes, switching to ANSI Join mode was a departure from the PB Join. I remember getting some issues with this when the feature was 1st released - but, I have not heard from any of my clients regarding this since those days. Of course - like at home -  Dad's quite often the last to heard about something. 

Re: Data Source Design options: Convert to syntax or Convert to Graphics ?

$
0
0

We're straying off-topic here.

 

Nobody said that outer joins were the issue.  The OP has a "runtime error", and suspects graphical vs. syntax view - and that's all that's been said.

Re: PowerBuilder roadmap location should one exist

$
0
0

Could any share documented version of Roadmap for PowerBuilder?

Re: PowerBuilder roadmap location should one exist

$
0
0

Hi Balu;

 

   There is no current road-map for PowerBuilder. The PB community is hoping to hear about the PB Road-Map and other topics at the 2015 PowerBuilder Conference in May. SAP Senior VP Dirk Bosseman is to attend and will be addressing the attendees on this and other PB topics in his Friday AM session.

 

FYI:  http://wwww.ncpbug.org

 

HTH

Regards .. Chris

Re: PowerBuilder roadmap location should one exist

$
0
0

Thanks for your reply...

 

Its hurts,  such a big development tool is having any road map. Let see what SAP is having for PowerBuilder.


Re: PowerBuilder 11.5 & C++ DLL issue

$
0
0

I made some small test using Visual Studio 2010 Express and get it working by using a def file.

 

My function looks like this...

 

EASYDLL_API TCHAR * sayhello (void)

{

    return L"Hello PowerBuilder";

}

 

The .def file:

LIBRARY "easydll"

EXPORTS

sayhello

 

external function in PowerBuilder:

function string sayhello () library "easydll.dll"

 

hth

 

Arnd

 

easydll - Microsoft Visual C++ 2010 Express (Administrator)_2015-03-23_23-49-24.png

easydll-Eigenschaftenseiten_2015-03-23_23-53-22.png

Re: PowerBuilder 11.5 & C++ DLL issue

$
0
0

When I make a .dll I always use a .def file and define my functions like this:

 

datatype WINAPI functionname ( datatype argumentname )

Localized RunTime Files for spanish

$
0
0

Hi guys

 

Does anyone know the path to download the localized runtime files for spanish?

 

Thanks in advance

Re: Using Manifest File in PowerBuilder 5

$
0
0

Hi,

 

Please let me know,

 

Is there any other way to get the list of components and reference ( DLL & OCX ) used in PB5 application?

 

Thanks,

Sundar

Re: SQL Server 2012 Always On ?

$
0
0

I may have trust my client too much on this.

Thanks for the info

I will check that

Viewing all 7329 articles
Browse latest View live


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