Watch, Follow, &
Connect with Us
Public Report
Report From: JBuilder/Database    [ Add a report in this area ]  
Report #:  23031   Status: Reported
query property doesn t show sql-statement in design mode
Project:  JBuilder Build #:  12.0.206.0
Version:    12 Submitted By:   olaf raether
Report Type:  Basic functionality failure Date Reported:  1/3/2006 2:19:22 AM
Severity:    Critical / Show Stopper Last Updated: 1/3/2006 8:54:37 AM
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
2.00 out of 5
Total Votes: None
Description
JB add s for every QueryDataSet a method

public com.borland.dx.sql.dataset.QueryDataSet getQueryDataSet1() {
    return queryDataSet1;
}

i modified this method this way:

public com.borland.dx.sql.dataset.QueryDataSet getQueryDataSet1() {
  if(!queryDataSet1.isOpen())
    queryDataSet1.open();
    return queryDataSet1;
}

After this modification the problem apears.
In JBX this modification works without
any problem.

Additionaly any(!) method that start with "get" causes that problem !!!!!

I added a method   "int[] getFoo()" and the same problem !
Renaming it to "int[] g_etFoo()" or anything else and the problem goes away.

So a very urgent bug in JB2006 i think.
Steps to Reproduce:
None
Workarounds
After Extending the method with the java.beans.Beans.isDesignTime() method, the sql-statement is visible again.

Modified version:

public com.borland.dx.sql.dataset.QueryDataSet getQueryDataSet1() {
  if(!java.beans.Beans.isDesignTime() && !queryDataSet1.isOpen())
    queryDataSet1.open();
    return queryDataSet1;
}


For all other method starting with "get" i modified them to "g_et"
or something...
Attachment
None
Comments

None

Server Response from: ETNACODE01