Developing forms based on more than one table
I need to develop a form which requires to insert and query data elements from
more than one table in the database. Can create a view and develop a form based on the view to achieve this functionality? Also is it better to use portal forms for this purpose or Forms developer 6i for this purpose?
Any inputs/ideas will be greatly appreciated.
Thanks,
Suzanne
Yes you can do more than one table per form in portal.
You can base a form on two tables in portal if they are designed as master/detail tables. You can also provide linking to other forms passing parameters from a one form to the next to work with multiple tables. Combining more than two tables into a form using portal would require using a view, I believe.
HTH
Similar Messages
-
Crystal Report - More than one table from MySql
Hello, I am in need of help big time.
I have am using Visual Studio 2010 and Crystal Report 10.
The problem that I am incounting is that I am unable to retreive data from more than one table from a MySql database. I have been stuck on this for too long and need to hjump the hurdle.
I am using a MySql connection string, a dataset and a crystal report which is based on the dataset.
The main error that I am having is, the browser opens and a form appears saying "The report you requetsed requires further information" With the Server name: DataSetPropertiesDetials, while the User name and Password fields are then enabled.
I am guessing I am missing something in my code.
When I retreive data from one table the report is fine, but when I try to use more than one table it throws the error.
My Code is below and also attached:
Imports System.Data.SqlClient
Imports System.Configuration
Imports MySql.Data.MySqlClient
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Web
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim con As MySqlConnection
Dim rpt As New CrystalReport3()
Dim myReport As New ReportDocument
Dim myData As New DataSet
Dim cmd As New MySqlCommand
Dim cmdUser, cmdProperty, cmdBranch As New MySqlCommand
Dim daBranch, daProperty, daUser As New MySqlDataAdapter
con = New MySqlConnection()
'Connection String
con.ConnectionString = "Server=****;Database=***;UID=***;Password=****"
Try
con.Open()
cmdBranch.CommandText = "SELECT branch FROM tblbranch"
cmdBranch.Connection = con
daBranch.SelectCommand = cmdBranch
daBranch.Fill(myData)
cmdProperty.CommandText = "SELECT ref, keys_held, key_no, keys_out, no_name, address_line1, address_line2,key_label FROM tblproperty"
cmdProperty.Connection = con
daProperty.SelectCommand = cmdProperty
daProperty.Fill(myData)
cmdUser.CommandText = "SELECT known_name FROM tbluser"
cmdUser.Connection = con
daUser.SelectCommand = cmdUser
daUser.Fill(myData)
myReport.Load("REPORT LOCATION")
myReport.SetDataSource(myData)
myReport.Database.Tables(0).SetDataSource(myData.Tables(0))
CrystalReportViewer1.ReportSource = myReport '
Catch myerror As MySqlException
MsgBox(myerror.Message)
End Try
End Sub
End ClassHi,
You have 3 SQL commands but you are calling SetDataSource only once. You need to look through for each of the SQL Commands.
Good luck,
Brian -
Persisting CMP bean over more than one table
Hello,
I was wondering if it is possible to persist an Entity Bean over more than
one table using CMP. For example 3 attributes go in table A and 2 attributes
go in table B.
I can see this might come in handy when having some kind of inheritance in
your architecture.
Thanks,
Rein ReezigtCMP are based on one DB object however object could be a database table or a
view. You can create a view and base your bean on that view. This is mostly
useful for read-only entity beans that just do select queries because databases
have all kind of different restrictions on update froma view, ( for example
ORACLE allows update to only one table in view). However in case you need a
logical abstraction of multiple tables, consider EJB2.0 relations or a product
like toplink for your object to relational mapping.
Viresh Garg
Principal Developer Relations Engineer
BEA Systems
Rein Reezigt wrote:
Hello,
I was wondering if it is possible to persist an Entity Bean over more than
one table using CMP. For example 3 attributes go in table A and 2 attributes
go in table B.
I can see this might come in handy when having some kind of inheritance in
your architecture.
Thanks,
Rein Reezigt -
Want to Know how to Join more than One Table
I want to SHOW search results based on the search conditions user enters the form (eg: oracle advance search form OTN)
In this case i have to link more than one table and i have fetch the query results based on the user entered conditions in the search form.
can you please guide/help me in how to write/map this query using TOPLINK API.
my query should be like this:
SELECT A.ORDER_NUMBER, B.SAPORDER_NUMBER, C.CUSTOMER_NAME FROM DEAL_QUOTE A, DEAL_SAPORDER B, DEAL_CUSTOMER C
WHERE A.DEAL_QUOTE_ID=B.DEAL_QUOTE_ID AND B.START_DATE = C.START_DATE AND C.END_DATE=B.END_DATE
expecting your valuable reply.
Thanks in advance
Regards
babuIm not sure this is what you wanted, but couldn't you use a named query in TopLink and then use ADF to display the results?
-
How to delete the double records connected to one or more than one tables in SQL 2008?
Hi
Can anyone please help me with the SQL query. I Im having a table called People with columns names: personno., lastname, firstname and so on. The personno. is having duplicate records,so all the duplicate records i have written with "double" in
the beginning of the numbers. I tried deleting these double records but they are linked to one or more than one tables. I have to find out, all the tables blocking the deleting of double person. And then create select statements which creates update statements
in order to replace the current id of double person with substitute id. (The personno. is in the form of id's in the database)
ThanksYou should not append "double" in the personno. When we append it will not be able to join or relate to other table. Keep the id as it is and use another field(STATUS) to mark as duplicate. Also we will require another field(PRIMARYID) against
those duplicate rows i.e the main or the primary personno.
SELECT * FROM OtherTable a INNER JOIN
(SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
ON a.personno = b.personno
UPDATE OtherTable SET personno = b.primaryid
FROM OtherTable a INNER JOIN
(SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
ON a.personno = b.personno
NOTE: Please take backup before applying the query. This is not tested.
Regards, RSingh -
Failed to upgrade more than one table at same time
Hi
In Deployment Manager, I failed to upgrade more than one table at same time.
I tried to hightlight 4 tables and set the default action as Upgrade, and click File/Generate Deploy. It passed the code generation step then I click Deploy, they are all failed with no error message.
But they are all successful when I upgrade them one by one. Any one has any idea about this?
For the known reason, we have no choice to do the deployment with action of 'upgrade' through OMBPlus, instead, can only do that interactively through OWB Client. I can't imagine to ask our Production side DBA to upgrade 80 tables one by one. Or I have to use the generated scripts to do the upgrade, which will resulted in 'no deploy status updated' in OWB. Any help will be very appricated.
The version I'm using is OWB 10g.
Thanks,
DamingHi
First of all, Patrick's solution doesn't work for me. I didn't do cloning and there is no problem when check the WB tables.
Second, I think your solution is only good for the developing environment just to get tables upgrade via deployment manager. In most cases, when you do a new release on PROD environment you just exp/imp the MDL file from DEV to PROD and any developing is not recommended on PROD. But your approach is trying to manually the DB, and then EDIT the mapping to do the Reconcile and then deploy. Surely you can do that if you have full control on your PROD side. However, in my situation, I have no access to the PROD for the security reason and an DBA Operator of the Client is responsible to implement my Migration process on PROD by himself. -
Update in JDBC Sender adapter for more than one table
Dear Friends,
I have to select more than one table in the JDBC sender using the join condition. But i found that update statement is also mandatory in the sender comm channel. I am not going to update any flag after the select but as it is mandatory, i have decided to use the following update statement which wont effect the existing data UPDATE <tablename> set flag = ' ' where flag = ' '.
But in my case i have 3 tables, do i need to update stmts for all the three tables.
if yes how can i do the same.
plz revert back i u couldnt get the queries.
Thanks
PremHI
UPDATE T1
Set T1.flag =1
where T1.columnA=value1 and T2.columnB=value2
where T1 and T2 are tables in the same database,
and the values (value1 and value 2 ) are provided to XI by SAP based on which the flag need to be updated in T1
write a stored procedure specifying the join and call it in XI.
For doing it in SQL statement only reffer to the below link ..sur you will get help .
Multiple records update using JDBC
Regard's
Chetan Ahuja -
Value Set Use More Than One table
folks, is there a way to use more than one table in the value set of type table?
ok if i want to create a view and then when i'm trying to create a table value set. what application should i be selecting? i have created my view in apps schema. if i look in application object library then i do not see it in the list. So i need to register this view? and i think we could not register the views. We could only register tables in apps.Yes you can -- In the Value Sets form (Edit Information button), you can set the view name in the "Table Name" field, and write a (Where/Order by) condition in the same window.
Oracle Applications Flexfields Guide -- R12
http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121flexug.pdf
Oracle Applications Flexfields Guide -- 11i
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115flexug.pdf
Thanks,
Hussein -
Can more than one table be updated from a single form that was created using a wizard? If so, how? I tried firing a trigger to add a new record to another table, but get this message "No updatable report found. Multi row updated and delete operations can only be performed on tabular forms of type "Updateable Report"
Thanks
JohnHi John B
Please make sure you explain to forum when asking for help.
What version of Apex your using.
Database Version:
Browser etc.
Yes you can update multiple tables from one single form. I'm not 100% sure about the wizard part, because before anyone can answer that we need to know which version of Apex your using? -
Network or database calls are made when joining more than one table
Hi Friends,
could anybody please let me know how may networks are called when joining more than one table.
Thanks
RinkyHi Rinky,
Normally when a JOIN between two database tables is made then following steps occur:-
1) The control goes to database. Based on the JOINING and WHERE condition, an internal table is created in the DATABASE only which is filled. So here the computation is done at DATABASE level.
2) Once the internal table is filled at database level, it is sent back to the application level.
A Join operation normally minimizes the round trips to the database as most of the computation is done at database level only and results sent back to the Application layer.
<b>Thus for a simple JOIN OPERATION makes a single DATABASE call.</b>
NOTE: If you are satisfied with the explanation, then please reward points
accordingly :).
Thanks and regards,
Ravi . -
View more than one table in SD3 simultaneously
Is there a way to 'view' more than one table at a time in SQL Developer 3? Currently, if I have a tab open that shows contents of a table, and I double-click on another table I want to look at, the previous table view closes, and a new one reopens. I'm looking for a way to keep two such views open at the same time.
Has this question been addressed in the forum before?
Thanks!...and the useful Preferences - Database - Worksheet - Automatically Freeze Result Tabs...
Have fun,
K. -
Layout issue - More than one table sections on report?
Hello all
I am wondering if any of you know if there is a way to have more than one table or table field on a report.
I'm asking this because I'd like to include a large number of fields in one report, but then that makes the report hard to read (everything is on one long line).
I am wondering if there is a way to have more than one table section on a report so I could have the address information at the top of the report than have other additional information below the address. Basically I'm interested in making things easier to read for the user.Use Pivot tables to isolate the columns you want in each table in your report.
Mike L -
How can i update more than one table at a time?
i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?
Hi,
Please go through the below thread might be of help to you.
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
RK -
How to insert into more than one table at a time also..
hi,
i am a newbee.
how to insert into more than one table at a time
also
how to get a autoincremented value of an id say transactionid for a particular accountid.
pls assume table as
transactionid accountid
101 50
102 30
103 50
104 35
i want 102 for accountid 30 and 103 for accountid 50.
thank u@blushadow,
You can only insert into one table at a time. Take a look here :
Re: insert into 2 tables
@Raja,
I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
Insert, extract... ? Can you clarify your job ?
Nicolas. -
Oracle OUTER JOIN on more than one table
Hi!
Friends, please help with this urgent problem: How can an outer join be written on more than one table?
An SQL Server query:
SELECT * from a INNER JOIN b on a.id = b.id LEFT OUTER JOIN c ON c.id = a.id AND c.id = b.id
works fine with SQL SERVER
But Oracle query:
SELECT * from a,b,c WHERE a.id = b.id AND a.id = c.id (+) AND b.id = c.id (+)
gives an error: OUTER JOIN cannot be used on more than one table? Why?
I use OracleDriver from classes12.zip to connect to Oracle8i database.
Please, help!The Oracle 8i and later SQL reference reads that the following "join_types" are supported and under this syntax it does not limit the LEFT OUTER JOIN (syntax the same as SQLServer example in original note) to two tables as implied in these notes:
The join_type indicates the kind of join being performed:
Specify INNER to indicate explicitly that an inner join is being performed. This is the default.
Specify RIGHT to indicate a right outer join.
Specify LEFT to indicate a left outer join.
Specify FULL to indicate a full or two-sided outer join. In addition to the inner join, rows from both tables that have not been returned in the result of the inner join will be preserved and extended with nulls.
You can specify the optional OUTER keyword following RIGHT, LEFT, or FULL to explicitly clarify that an outer join is being performed.
Maybe you are looking for
-
My Macbook Pro can't detect or read my CDFS file system external HDD
My Macbook Pro can't detect or read my CDFS file system external HDD
-
Multiple ipods with one computer
i have an ipod nano. I just bought and connected my son's ipod shuffle on the same computer. My problem is that when I click on the itunes icon on my desktop, i get his library. I can't find my library in itunes, although the music files are in "my m
-
I Don't know a way to post an example, but here's the issue; In the preview column window, where you can see a portion of the conversation, I have what looks like extra messages showing up. In the view column, this extra text is not there! These mess
-
I just got a new computer and I transfered all of my old music via an external hard drive to the new one. All the music showed up in itunes fine so I deleted the old files. Then I went to sync my iphone I got an error that said "The song... Could n
-
How to add F4 help to standard infotype field
Hi, I need to add a F4 help to a standard field in a PA infotype (0021- Personal data). Is this possible? Is it correct that, in a custom field a F4 help can be added using a foreign key relationship? Or what is the correct method? Also, I think I ca