Adding a Table to an Existing Subview
I can create a new populated subview by selecting tables and performing "Create Subview from selected" but how do I add another table to this Subview?
Edited by: John Gilmore on 24-Nov-2011 15:18
Yeah I see that way but I was hoping for a different way. The reason I don't like using the tree view is because the tables are not listed in alphabetic order by schema name. So it makes it extremely are to find a table when you got 20 plus schema's.
Similar Messages
-
Adding a table to an existing table results in wrong link
This is the code being used to add a table to a report:
private ISCRTable AddLinkTable(ILinkTable linkTable, string sourceTableAlias, ConnectionInfo connectionInfo)
{ // construct a new Table from its name
ISCRTable newTable = new Table();
newTable.ConnectionInfo = connectionInfo.Clone();
newTable.Name = linkTable.LinkTableName;
newTable.Alias = linkTable.LinkTableName + "_ThisIsTheLinkTable" + LinkTableId++;
if (_dataServiceSettings.DataProvider == DataProvider.Oracle11G)
newTable.QualifiedName = _dataServiceSettings.DatabaseUserName.ToUpper() + "." + newTable.Name.ToUpper();
else
newTable.QualifiedName = "dba." + newTable.Name;
// add a field to this new Table
newTable.DataFields.Add(AddDbField(linkTable.DataField, newTable.Alias));
// join this table to another one named sourceTableAlias, using linkFields TableLink
tableLink = new TableLink();
tableLink.SourceTableAlias = sourceTableAlias;
tableLink.TargetTableAlias = newTable.Alias;
tableLink.JoinType = CrTableJoinTypeEnum.crTableJoinTypeEqualJoin;
Strings sourceFields = new Strings();
Strings targetFields = new Strings();
for (int i = 0; i + 1 < linkTable.LinkFields.Length; i += 2)
sourceFields.Add(linkTable.LinkFields[i]); targetFields.Add(linkTable.LinkFields[i + 1]);
tableLink.SourceFieldNames = sourceFields;
tableLink.TargetFieldNames = targetFields;
TableLinks tableLinks = new TableLinks();
tableLinks.Add(tableLink); _report.ReportClientDocument.DatabaseController.AddTable(newTable, tableLinks);
_report.ReportClientDocument.DatabaseController.VerifyTableConnectivity(newTable);
//AddFieldToReport("{" + newTable.Alias + "." + linkTable.DataField + "}");
return newTable;
This is the resulting query SELECT "Article"."ArtId", "Article"."ArtDescr", "ArticleGroup"."AgDescr1", "Article"."ArtPurchLevel", "Article"."ArtMaximum", "Article"."ArtAbc", "Article"."ArtContext", "Article"."ArtPurchPrice", "Article"."ArtServOutUnt", "ArticleSite"."ArtsSitId", "Article"."ArtRecStatus"
FROM (dba.Article "Article" LEFT OUTER JOIN dba.ArticleGroup "ArticleGroup" ON "Article"."ArtAgId"="ArticleGroup"."AgId")
INNER JOIN "10_78_00"."dba"."ArticleSite" "ArticleSite" ON "Article"."ArtId"="ArticleSite"."ArtsPurch" WHERE "Article"."ArtContext"=1 AND ("ArticleSite"."ArtsSitId"='63'
OR "ArticleSite"."ArtsSitId"='64') AND "Article"."ArtRecStatus">=0 ORDER BY "Article"."ArtId"
the link field artspurch is not the field I declared . It happens to be the first column of the table ArticleSite. This seems to be a bug. has anyone ever experienced anything like this?
( Fixed the formatting )
Message was edited by: Don WilliamsHi Henk,
What was the SQL before you added the table?
I reformatted your code but you may want to confirms it correct or simply copy it into Notepad and then paste into this post.
I find the easiest way to confirm is ad the table and joins in CR Designer first and then look at what Debug mode returns using this:
btnReportObjects.Text = "";
string crJoinOperator = "";
foreach (CrystalDecisions.ReportAppServer.DataDefModel.TableLink rasTableLink in rptClientDoc.DataDefController.Database.TableLinks)
//get the link properties
btnCount.Text = "";
int y = rptClientDoc.DataDefController.Database.TableLinks.Count;
btnCount.Text = y.ToString();
string crJoinType = "";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeAdvance)
crJoinType = "-> Advanced ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeEqualJoin)
crJoinType = "-> = ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeGreaterOrEqualJoin)
crJoinType = "-> >= ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeGreaterThanJoin)
crJoinType = "-> > ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeLeftOuterJoin)
crJoinType = "-> LOJ ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeLessOrEqualJoin)
crJoinType = "-> <= ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeLessThanJoin)
crJoinType = "-> < ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeNotEqualJoin)
crJoinType = "-> != ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeOuterJoin)
crJoinType = "-> OJ ->";
if (rasTableLink.JoinType == CrTableJoinTypeEnum.crTableJoinTypeRightOuterJoin)
crJoinType = "-> ROJ ->";
textBox1 = "Only gets Link type:" + rasTableLink.SourceTableAlias.ToString() + "." + rasTableLink.SourceFieldNames[0].ToString() +
crJoinOperator + "." + crJoinType + rasTableLink.TargetTableAlias.ToString() + "." + rasTableLink.TargetFieldNames[0].ToString() + "\n";
btnReportObjects.Text += textBox1;
btnReportObjects.AppendText(" 'End' \n");
There are some join types RAS is not capable of.
Attach the report before and after you manually add the join and I'll see if I can get it to work also.
Don
( PS - use the Advanced option to attach files and rename the reports to *.txt. ) -
Adding Additional Tables to an Existing Query
Dear All
I have the following tables and relationships:
I have the following query that returns records from the table SENAlert where the StudentID and the TeacherUsername are passed in as parameters.
Also, records are only returned if there isn’t a corresponding record in the SENAlertHistory table (i.e. SENAlertHistorySENAlertID IS NULL).
This query is returning the results that I would expect:
SELECT
SENAlert.SENAlertID, SENAlertType.SENAlertTypeDescription
FROM
SENAlertHistory RIGHT OUTER JOIN
Teacher INNER JOIN
Class ON Teacher.TeacherCode = Class.ClassTeacherCode INNER JOIN
ClassMember INNER JOIN
SENAlert INNER JOIN
SENAlertType ON SENAlert.SENAlertType = SENAlertType.SENAlertTypeID INNER JOIN
Student ON SENAlert.SENAlertStudentID = Student.StudentID ON ClassMember.ClassMemberStudentID = Student.StudentID ON
Class.ClassClassCode = ClassMember.ClassMemberClassCode ON SENAlertHistory.SENAlertHistorySENAlertID = SENAlert.SENAlertID AND
SENAlertHistory.SENAlertHistoryTeacherCode = Teacher.TeacherCode
WHERE
(Student.StudentID = 011763) AND (Teacher.TeacherUsername = 'dsmith') AND (SENAlertHistory.SENAlertHistorySENAlertID IS NULL)
However, I need to extend this query to include additional teachers who may also teach this student. I am trying to add in 3 additional copies of
the Teacher table as Teacher_1, Teacher_3 and Teacher _3 in order to include them in the query also.
However, when I add these tables in I no longer get any results returned.
I have managed to do this on other queries but not this one.
SELECT SENAlert.SENAlertID, SENAlertType.SENAlertTypeDescription
FROM SENAlertHistory INNER JOIN
Teacher ON SENAlertHistory.SENAlertHistoryTeacherCode = Teacher.TeacherCode INNER JOIN
Teacher AS Teacher_1 ON SENAlertHistory.SENAlertHistoryTeacherCode = Teacher_1.TeacherCode INNER JOIN
Teacher AS Teacher_2 ON SENAlertHistory.SENAlertHistoryTeacherCode = Teacher_2.TeacherCode INNER JOIN
Teacher AS Teacher_3 ON SENAlertHistory.SENAlertHistoryTeacherCode = Teacher_3.TeacherCode RIGHT OUTER JOIN
Class INNER JOIN
ClassMember INNER JOIN
SENAlert INNER JOIN
SENAlertType ON SENAlert.SENAlertType = SENAlertType.SENAlertTypeID INNER JOIN
Student ON SENAlert.SENAlertStudentID = Student.StudentID ON ClassMember.ClassMemberStudentID = Student.StudentID ON
Class.ClassClassCode = ClassMember.ClassMemberClassCode ON Teacher_3.TeacherCode = Class.ClassTeacherCode AND
Teacher_2.TeacherCode = Class.ClassTeacherCode AND Teacher_1.TeacherCode = Class.ClassTeacherCode AND
Teacher.TeacherCode = Class.ClassTeacherCode AND SENAlertHistory.SENAlertHistorySENAlertID = SENAlert.SENAlertID
WHERE (Student.StudentID = 011763) AND (SENAlertHistory.SENAlertHistorySENAlertID IS NULL)
AND (Teacher.TeacherUsername = 'admin\dsmith' OR Teacher_1.TeacherUsername = 'admin\dsmith' OR Teacher_2.TeacherUsername = 'admin\dsmith' OR Teacher_3.TeacherUsername = 'admin\dsmith')
No results are returned from this adapted query. I have noticed that by adding the additional tables, it keeps changing the type of joins that I
have between certain tables. I have tried all sorts of combinations but haven't been able to make it work.
I would be really grateful for any advice that you may be able to offer.
Many thanks
DanielDear All
I followed the advice and created the query again from scratch, one table and relationship at a time checking that I am getting the expected result. I have put much of the query back together with the correct output:
SELECT
SENAlert.SENAlertID,
SENAlertType.SENAlertTypeDescription
FROM dbo.SENAlert
INNER JOIN dbo.SENAlertType
ON SENAlert.SENAlertType = SENAlertType.SENAlertTypeID
INNER JOIN dbo.Student
ON SENAlert.SENAlertStudentID = Student.StudentID
INNER JOIN dbo.ClassMember
ON ClassMember.ClassMemberStudentID = Student.StudentID
INNER JOIN dbo.Class
ON ClassMember.ClassMemberClassCode = Class.ClassClassCode
INNER JOIN dbo.Teacher
ON Class.ClassTeacherCode = Teacher.TeacherCode
LEFT OUTER JOIN dbo.Teacher AdditionalTeacher1
ON AdditionalTeacher1.TeacherCode = Class.ClassAdditionalTeacherCode1
LEFT OUTER JOIN dbo.Teacher AdditionalTeacher2
ON AdditionalTeacher2.TeacherCode = Class.ClassAdditionalTeacherCode2
LEFT OUTER JOIN dbo.Teacher AdditionalTeacher3
ON AdditionalTeacher3.TeacherCode = Class.ClassAdditionalTeacherCode3
WHERE Student.StudentID = 011763
AND (Teacher.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher1.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher2.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher3.TeacherUsername = 'admin\dsmith')
The problem arises when I try to add the SENAlertHistory table back in. I only want to show results where a related record does not exist in SENAlertHistory. I have tried every combination of relationship but none have been successful.
I think maybe I need to be using a subquery instead.
Thanks for your help
Daniel
do you mean this?
SELECT
SENAlert.SENAlertID,
SENAlertType.SENAlertTypeDescription
FROM dbo.SENAlert
INNER JOIN dbo.SENAlertType
ON SENAlert.SENAlertType = SENAlertType.SENAlertTypeID
INNER JOIN dbo.Student
ON SENAlert.SENAlertStudentID = Student.StudentID
INNER JOIN dbo.ClassMember
ON ClassMember.ClassMemberStudentID = Student.StudentID
INNER JOIN dbo.Class
ON ClassMember.ClassMemberClassCode = Class.ClassClassCode
INNER JOIN dbo.Teacher
ON Class.ClassTeacherCode = Teacher.TeacherCode
AND NOT EXISTS ( SELECT 1
FROM SENAlertHistory
WHERE SENALertHistoryTeacherCode = Teacher.TeacherCode
AND SENAlertHistorySENAlertID = SENAlert.SENAlertID)LEFT OUTER JOIN dbo.Teacher AdditionalTeacher1
ON AdditionalTeacher1.TeacherCode = Class.ClassAdditionalTeacherCode1
AND NOT EXISTS (SELECT 1
FROM SENAlertHistory
WHERE SENAlertHistoryTeacherCode = AdditionalTeacher1.TeacherCode
AND SENAlertHistorySENAlertID = SENAlert.SENAlertID
LEFT OUTER JOIN dbo.Teacher AdditionalTeacher2
ON AdditionalTeacher2.TeacherCode = Class.ClassAdditionalTeacherCode2
AND NOT EXISTS (SELECT 1
FROM SENAlertHistory
WHERE SENAlertHistoryTeacherCode = AdditionalTeacher2.TeacherCode
AND SENAlertHistorySENAlertID = SENAlert.SENAlertID
LEFT OUTER JOIN dbo.Teacher AdditionalTeacher3
ON AdditionalTeacher3.TeacherCode = Class.ClassAdditionalTeacherCode3
AND NOT EXISTS (SELECT 1
FROM SENAlertHistory
WHERE SENAlertHistoryTeacherCode = AdditionalTeacher3.TeacherCode
AND SENAlertHistorySENAlertID = SENAlert.SENAlertID
WHERE Student.StudentID = 011763
AND (Teacher.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher1.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher2.TeacherUsername = 'admin\dsmith'
OR AdditionalTeacher3.TeacherUsername = 'admin\dsmith')
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Adding New table to the existing page
Hi,
i have a task i.e i have to create a new UI(consista table structure) and add to the existing page.How can do this one.If any one knows please respond asap.
This is urgent requirement.
Thanks in advance.
Bye
PalakondaiahHi,
i have a task i.e i have to create a new UI(consista table structure) and add to the existing page.How can do this one.If any one knows please respond asap.
This is urgent requirement.
Thanks in advance.
Bye
Palakondaiah -
Screen error while adding table control to existing tab in BP screen
Hi experts,
Requirement: Add new section with table control in existing tab in BP screen. Purpose of creating table control is to add or delete multiple entries etc.
To fill this requirement, we have created custom transaction with table control facility. When we run this transaction from SAP easy screen, we are able to add, delete and create multiple records to database.
We have configured this custom program and screen in BDT (views) and saved.
When we call BP transaction we are getting following error message.
"Screen ZMOD_TEST1 0100 must be an Include screen (screen error)".
We are not sure, the approach we have chosen is correct. Incase, any one of you come across this type of problem, please guide us to rectify.
Thanks in advance.
VenkyVenky,
If you are on CRM 4.0 or even 5.0, my approach to adding a table to business partner attributes would have been the following:
- Use EEWB to generate the table extension
- Modify the generated code/screens if what was generated did not meet you complete requirements
However going back to your original question, if you add new screens for the BDT, then they must be "subscreens". The screens you create for the BDT tool are always subscreens placed in a container by the BDT program.
So your options are one:
1. Convert your screen to a subscreen and if you have coded all the BDT event function modules correctly it should work
2. Use EEWB to generate a new extension and make adjustments as necessary.
Good luck,
Stephen -
Adding 2 new fields as Primary Key field in a Z Table which is existing PRD
Hi Friends,
I have to add two new fields as primary key fields in a Z TABLE, which is existing in Quality and Production Systems with Data.
If I incorporate these two new fields (Primary Key fields) in development and if the TR is moved to Quality and Production sytems, is there any possibility of loss in data will happen at Quality and Prd systems?
At present, Table is having 20 fields with 2 primary key fields and i have to add 2 more primary key fields.
I have checked in SCN and not find relevant threads.
Please help me out.
Regards,
Suresh.NO . It wont be a problem .
For ex :
If you have VBELN , POSNR are key fields now , you have an unique reord with that combination .
If you add one other field in it fo ex VKBUR then records will be like this
VBELN POSNR VKBUR MATERIAL QTY
10020 10 abcxyz 1
10020 10 1234 abcxyz 1
So your previous records before adding new primary keys , will have new fields balnk , and the new records will have data filled up in all primary key fields .
However , if you try to update the existing records that will be in existing PRIMARYKEY combination only .
for example if you try update record 1 above with VKBUR value 85858 , it creates a new record , it wont be updated in existing record.
Hope this helps , Pls let me know if u have any more doubts. -
Which is better a new schema or adding tables in the existing schema
Hi All,
We have a new requirement from the client asking us to include a few new functionalities(pages--- all together a new application has to be embedded into our application) in our application. By adding these new functionalities, the number of hits to our application can be doubled.
As per the above requirement, I would like to know that whether to create a new schema or to create some new tables in the existing database for the new functionalities.
By what way, can I handle the number of requests in a better way? by creating the new schema or by creating the new tables for the new functionalities.
Also I would like like to know what kind of factors will differ between creating a new schema or creating new tables for the new functionalities in the existing schema.
FYI... We are using Cold Fusion as front-end and Oracle 9i for back-endI agree with VD in that it all depends on how closely the new features ties into your existing application structure.
The second major factor to consider is since you mention "for client" is if your application has more than one client and if you will be rolliong this feature into the application for all clients. If you have multiple clients but only this one gets this feature then it may make more sense to use a second schema, but it really depends on how easy to identify and separate this feature's objects for the purpose of maintaining it through future upgrades is going to be.
HTH -- Mark D Powell -- -
Hi,
I have source as oracle database and target as HFM. However, I am facing issue in reverse engineering the RDBMS model. It doesn't show the table columns and gives the error "Table doesn't exist.".
I have tried creating a public synonym as well but to no avail.
Can anyone please suggest the suitable resolution?
Thanks
AbhiHi,
I added these keys but it is still not reflecting the columns. I tried with credential with DBA privileges but to no avail. The database connection is also getting connected with no hassles.
Please advice.
Thanks! -
How does one add tables to an existing universe using COM designer SDK.
Morning All
How does one add tables to an existing universe using COM designer SDK. I have tried:
objUniverse.Tables.Add (strTable_Name)
but get "Cannot create Table" error.
Any ideas?
Thanks in advance.
AnitaHi Anita,
-Use the Add method to add classes and objects to an existing universe using a VB 6 application.
Adding a Class
Definition: Function Add(Name As String) As Class
Syntax: NameOfClassesVariable.Add
Adding an Object Instance
Definition: Function Add(Name As String, [ClassName As String]) As Object
Syntax: NameOfObjectsVariable.Add(name, [class])
- name is the name of the object.
- class is the name of the class containing the object. This parameter should be used in cases where more than one objects exist with the same name.
Sample Visual Basic 6 Code
Dim DesApp As Designer.Application
'MODIFY AND EXPORT CLASSES AND OBJECTS OF AN EXISTING UNIVERSE
Sub modify_and_export_universe()
Dim DesUnv As Designer.Universe
Dim DesCls As Designer.Class
Dim DesObj As Designer.Object
Dim DesDBCol As Designer.DBColumn
Dim DBColName As String
Set DesApp = New Designer.Application
'Login to designer
Call DesApp.LogonDialog
'Make sure to log on with your administrator profile
'e.g : "hostname","username", "password","Enterprise"
'Make Designer application visible
DesApp.Visible = True
'This line disable warning messages from Designer
DesApp.Interactive = False
'to Open locally the universe you want to modify
'Set DesUnv = DesApp.Universes.Open("club_uni")
'Use OpenFromEnterprise method (Universes Class) to import a universe from the repository and opens it
Set DesUnv = DesApp.Universes.OpenFromEnterprise("Universes", "club_uni", False)
'Add a valid connection which already exists
DesUnv.Connection = "club"
'open the universe
'Call DesApp.Universes.Open("club_universe")
'Add the table Account and refresh the view in the main window
Set DesTab = DesUnv.DBTables.Item("Customer").Insert
DesUnv.ArrangeTables
'Add a class
Set DesCls = DesUnv.Classes.Add("Class MyCustomer")
'Looping through all the fields of the DB Table Account
For Each DesDBCol In DesUnv.DBTables.Item("Customer").DBColumns
'Store name of the column
DBColName = DesDBCol.Name
'Add an object to the class
Set DesObj = DesCls.Objects.Add("Obj " & DBColName)
'Affect a field to the object
DesObj.Select = "Customer" & "." & DBColName
Next
'Save the existing universe with the same name club_uni or you can change
DesUnv.SaveAs "club_uni"
MsgBox "Universe created and saved Class MyCustomer has been added!!"
'Close the universe
UnvFullName = DesUnv.FullName
MsgBox "The UniverseFilePath is " & UnvFullName
'Close the universe
DesUnv.Close
'This line disable warning messages from Designer
DesApp.Interactive = False
'Export the universe to the CMS DB (to the last universe folder)
'Make sure you save the universe before exporting it
Call DesApp.Universes.Export("Universes", UnvFullName)
MsgBox "This document has been exported successfully !!"
'Close designer
DesApp.Quit
Set DesApp = Nothing
End Sub
Hope this helps.
Regards,
Deepti Bajpai -
Adding additional tables to the extractor configuration
Hi Experts,
Can you please help me adding additional tables to the SAP extractor and to configure the field data in the orgstructure to show a flag against the position.
Luke - I have tried using the option said by you from Application-wide Settings-->Data Centre --> Read SAP Table, it has properly save the added table, but not able to see it from SAP extractor configruation and not able to extract any data. Also, can you please guide me how to use the fields from this table (HRP1010) to write a small piece of logic to show a flag for a particualr position based on data.
Thanks in advance,
PurandharHi Purandhar,
I have tried using the option said by you from Application-wide Settings-->Data Centre
--> Read SAP Table, it has properly save the added table, but not able to see it from
SAP extractor configruation and not able to extract any data.
This has probably added a data element - I would check in the dataelementconfiguration folder in your build's .delta folder. IF so then you have the first step completed. Now you need to add the necessary configurations to use the data that comes through this data element.
Go to your orgchart/hierarchy and navigate to Views. Here select your view (or your first view if this needs to be done for more than one view - if so you'll need to repeate these steps but not the step you already did in the Data Centre), and then click the + icon next to Design Details. Here you can add a new linked detail to your view detail. Simply give it a name, select the detail to link it to (usually the top level detail which is in blue), select a link field and then select your data element that was created in the Data Centre.
Now if you try to add a section to your view inside the Design Details view designer you will see your new detail added. You can then select it and add fields from this detail.
Also, can you please guide me how to use the fields from this table (HRP1010) to write
a small piece of logic to show a flag for a particualr position based on data.
Once you have been able to add the data in the views designer you will probably need to do some XML and XSL editing because you cannot edit XSL files in the AdminConsole and you will need to do this to get your icon/flag to show.
First of all you need to create a new XSL file and put it into a folder in your .delta\root folder. For example, My_XSL_files. Here you need to write the code to render your flag based on your variable. You can find plenty of examples in all of the pre-existing XSL files. Then you need to copy PresentationResources.xml to .delta\root\XML and add the reference to your new XSL file.
Go to your build's .delta folder and go to detailconfiguration. Find the detail you just created and open it. You'll find a section in their that you just added with a reference to an XSL file (e.g. if you added a Simple Caption section it will probably be something like SimpleCaptionXSL). Change this to the reference in the PresentationResources.xml.
Load your build in the AdminConsole and hit Publish. Once done you should see your icon. Sometimes if your XSL is invalid or the code doesn't work you won't see anything. This is not unusual as the whole process can be quite tricky - even for us with lots of experience!
Good luck!
Luke -
StackOverflowError after adding a table to a TopLink Map
Hello,
I am really puzzled by the next problem. After adding a table (Customer) to an existing TopLink Map, I get the same kind of error for every query in the project that I use.
ERROR J2EE EJB8006 [CustomerToplinkTestPublicFacade:public java.util.List com.companyname.toplinktest.model.CustomerToplinkTestPublicFacadeBean.findCustomersByCompany(java.lang.String,java.lang.String)] exception occurred during method invocation: javax.ejb.EJBException: java.lang.StackOverflowError
I get this with every page and every query, just change the name findCustomersByCompany to the name of the named query. Otherwise all pages seems to have the correct behaviour Removing the Customer-table from the application solved all problems, and they reoccurred after adding the table again.
I have no clue why this happens, the only thing that might be useful is the fact that the Customer-table is also a part of a database view which I already use.
but why would that cause errors on queries it has absolutely no relation to
Kind regards,
Nematahello,
another update on my testcases. I have used the following procedure to narrow down the source of the problem.
First I create one or more TopLink pojo's based on my database tables and views, add them to a session bean and create the data controls. I'm always working with the default named queries (selectAll).
Then I create a .jspx file, drag and drop a data control from the data control palette to create an ADF table with the defaults...
and run... with one of two outcomes.
I either get all the data from the table (correct) or I get a message "no rows yet" and an error message in the log window "2006-05-04 12:37:40.214 ERROR J2EE EJB8006 [testCustomerSession:public java.util.List model.testCustomerSessionBean.findAllCompany()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.StackOverflowError"
This is an overview of the testing I have done:
Objects created | ADF table | Error
Customer | Customer | Yes
Company | Company | No
Customer and Company | Company | Yes
Company and ViewOfCustomer | Company | No
Company and ViewOfCustomer | ViewOfCustomer | No
Company and Person | Company | No
ViewOfCustomer is a database view with the same data as the Customer. So the table Customer seems to cause the problem.
Does anybody have an idea why a database table might cause such distinct problems ?
Kind regards,
Nemata -
Adding condition table into pricing report-reg
Hi,
We have a requirement to add additional condition tables in an existing pricing report. Is there a way to include the condition tables through V/LB or we have to delete the existing pricing report and create the new one with the required tables. Please suggest..
Thanks in advance
Tajudeen S.Hi Tajuddin,
Unfortunately, there is no other way except to delete the report and create a new one by adding the table.
Regards
Nikhilesh -
I'm having some issues with adding to tables in my files. These are pre-existing files i'm being asked to edit, and there are no table or cell styles set up. I feel dumb asking this, as i'm sure it's a simple answer, but tables are one area of Indesign I haven't explored all that much.
I have tables that look like this- here's a working and preview view sample:
My issue is i'm having to insert new locations/dates into the tables- you can see where i've tried- but I can't get the formatting the same, with the two column setup with "Event Date" and then the course name. I can't just copy and paste a section of table- or at least any method I try doesn't work, I just end up pasting into a cell. There are no styles set up, and i'm not sure how to replicate exactly what's there. I'm not an Indesign newbie, but I am a newbie to using tables- my work just hasn't called for it much in the past. Help!? There's got to be a simple solution...When I'm doing tables like that
I'll insert new rows, then I'll Right Click (cmd click on mac) and then choose "Unmerge Cells"
I can then highlight a range of other cells (as long as it's the same row count) If I select two rows to copy then I make sure i have 2 unmerged rows to paste into.
Then I copy into those by highlighting the empting cells and pasting.
Usually works for me. -
Cols getting added to Table:With user log-ins
Hi,
I have a table in Oracle 11g database for application reporting purpose, as per design whenever a specific user log-ins, columns gets added in the table
and its growing col wise.
Is there any better way to handel that?Pls suggest.
RegardsHi,
You have specified that what is happening in your current application. But you have not specified what actually you are looking for. As other forums members stated you must follow them, Since over a period of time or in weeks your application will since you can extend columns for same table - since there exists some limit for that.
So, If I analyze your requirement you would like to peform the auditing of the use logins. Then what logic you have implemented try to modify a little bit , instead of dynamically adding the columns - insert the rows in to the table.
That way you can figure out, when and what time specific users are logged in - making history for your users login session times.
Note - Try to elaborate your requirement / problems, other it is little difficult for us to understand.
- Pavan Kumar N -
Very urjent (What is the procedure for adding a table documentation to IMG)
Hi abapers,
It was very urjent,
What is the procedure for adding a table documentation to IMG entries.
(It does not have "deletion" information, but there is a section on making changes to Z tables and then updating the IMG, which presumably could be expanded for deletion of objects.)
I having the procedure, But that is not clear.
Can any body tell me step by step.
With regards.Hi,
Assign IMG Documentation
Prerequisites
You have opened the IMG structure in change mode and created an IMG activity.
Procedure
Choose the Document tab in the Assigned objects group box.
If you want to create a new document for the IMG activity, enter a name for the document and choose Create.
The name can contain alphanumeric characters and the special character "_".
You go to the text editor. Specify a package class when you save the text. You return to the previous initial screen with Back.
To use an existing document, choose the Assign other document pushbutton to the right of the document name. Choose an existing document and choose Copy.
Save the changes with IMG activity Save.
Regards,
Renjith Michael.
Maybe you are looking for
-
This is beginning to really annoy me. I can't find a simple way to create and use playlists using Windows Media 0 and my Zen Micro. While it's very easy top create a playlist in WM0 and then sync it's contents tothe Zen, how do I then play that playl
-
Error while printing the dunning form
Hi all, I have a smartform for printing dunning form in FI from tcode F150...but while I schedule and try to take the print the job log entry shows error as "Form Z_DUNNING language EN is not active and has no errors". Can anyone tell why this error
-
Can I upgrade the video card in my 2009 iMac with the new ATI 2 GB VRAM card?
I am looking for more video RAM for video, CGI and animation work in Blender. I may purchase Final Cut Pro X in the near future and I need to make sure there is enough video RAM to be able to work with this version of FInal Cut. I, currently, use Fin
-
Is there something that will extend the reach of my wifi on ipad 2? I didn't get it with 3G.
-
Subtitles on a movie with itunes
I have a great Dvds collection but as it takes too much space I am making all my Dvd into itunes to be able also to watch them on my Apple Tv I use Handbrake, last version to encode my Dvds as I am French I am encoding the movies with both audio Fren