Populate One table by a field from other
Hi Guys,
Just started working on OAF, need a some help.
I want to populate a table (RegionStyle - tableLayout) with data based on the value of a field in another table(RegionStyle - tableLayout) after user clicks on the field both regions are on the same page. I was unable to find any examples in Developers Guide.
Any help appreciated.
Regards,
Shoaib.
Shoiab,
Sorry, I lost track of your issue.
For assigning the value to each link, use SPEL. Check Dev guide for its usage if you are not sure. And to redirect to same page, use method forwardImmediatelyToCurrentPage or setForwardURLToCurrentPage based on whether you want to continue the code processing for all the nested bean or not.
--Sihv
Similar Messages
-
Auto Populate Drop Down and Text Fields from Other Drop Down and Text Fields
Hi everyone
I'm trying to pre populate a "Proposed Employment Status" drop down field with the selection from the "Current Employment Status" drop down field and allowing users to select another option if the proposed employment has changed. If it hasn't it would just remain as populated by the Current Employment Status" entry.
I'm also trying to do this with text fields eg "Proposed Position Title" is populated with "Current Position Title". If the title changes in the bew employment arrangements users can enter it over the Proposed Position Title that is presented when the Current Position Title is entered.
I can get it to work if the drop down or text field names are the same, but this doesnt solve the problem.
Any ideas
Regards,
MichaelJava is a full featured-language and you shouldn't have any problem doing the mathematics, etc.
As far as the rest, Studio Creator is a relatively easy way to create the user interface that you describe. If supports drop-down selectable lists and standard form capabilities. A Web Application architecture would appear to be ideally suited to what you describe, and this is supported by SC. Be aware that this would require a server to serve the application to the client computer.
If the server is a problem you could consider an applet that would be downloaded from a website, and then run entirely on the client computer. But the first approach is better. -
Populate a table reading the data from a TXT file
how can I populate a table reading the data from a TXT file?
thanksHey Kevin!
Using FORMS.TEXT_IO to bulk load data from a file strikes me as re-inventing the wheel. It is just about justifiable in a self-service environment, but I regard the EXTERNAL TABLE is a better solution for that situation as well.
The same applies to UTL_FILE. I think the ability to read text with UTL_FILE is primarily intended for read file-based configuration or file manipulation/processing rather than data loading.
Re-writing a text file into SQL statements is too much like hard work (even with an editor that supports macro definition and regular expressions) for no real benefit. You lose all the bulk load peformance you would get from SQL*Loader. But for QAD I'd probably let you off with it.
You missed out one obvious alternative: using Java to turn the contents of an XML file into a CLOB and inserting it into a table which is read by a PL/SQL procedure that parses the XML records and insert the retrieved data into a table.
Stay lucky, APC -
We have several portable devices and a mini mac on our system and have found that if we delete an email on one device it is removed from others.
We don't want this, but at the same time we need to keep our devices clear of clutter.
It was suggested that switch off the sync mail switch in settings - Icloud, but this only works on IPads & Ipods
anybody got any better ideas ??We have several portable devices and a mini mac on our system and have found that if we delete an email on one device it is removed from others.
We don't want this, but at the same time we need to keep our devices clear of clutter.
It was suggested that switch off the sync mail switch in settings - Icloud, but this only works on IPads & Ipods
anybody got any better ideas ?? -
How export one table along with data from one location to other location
Hi All,
I'm new in export/import practice.
Can anyone plz tell the steps along with commands to do the following:
1. I want to export a table with data from one location(computer) to other(computer) that are in same network.
2.Also from one user to another user.
I'm using oracle 10g.
regards
Sonia
Edited by: 983040 on Feb 19, 2013 11:35 PMFirst of all read documentation
Oracle Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
Datapump Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
If you are using Datapump or Traditional Export/import you need to follow following steps
*1) Take User dump via EXPDP on Computer A .*
For EXP
exp username/password owner=Test file=D:\test.dmp log=D:\test.log
For EXPDP
expdp username/password schemas=TEST directory=TEST_DIR dumpfile=TEST.dmp logfile=TEST.log*2) Copy that to Computer B*
*3) Import dumpfile.*
For IMPDP Use remap_schema optionhttp://www.acehints.com/2012/05/data-pump-impdp-remapschema-parameter.html
For IMP use fromuser and touser option
one user to another user imp -
Deleting rows from table based on value from other table
Hello Members,
I am struck to solve the issue said below using query. Would appreciate any suggestions...
I have two tables having same structures. I want to delete the rows from TableA ( master table ) with the values from TableB ( subset of TableA). The idea is to remove the duplicate values from tableA. The data to be removed are present in TableB. Catch here is TableB holds one row less than TableA, for example
Table A
Name Value
Test 1
Test 1
Test 1
Hello 2
Good 3
TableB
Name Value
Test 1
Test 1
The goal here is to remove the two entries from TableB ('Test') from TableA, finally leaving TableA as
Table A
Name Value
Test 1
Hello 2
Good 3
I tried below queries
1. delete from TestA a where rowid = any (select rowid from TESTA b where b.Name = a.Name and a.Name in ( select Name from TestB ));
Any suggestions..
We need TableB. The problem I mentioned above is part of process. TableB contains the duplicate values which should be deleted from TableA. So that we know what all values we have deleted from TableA. On deleted TableA if I later insert the value from TableB I should be getting the original TableA...
Thanks in advancedrop table table_a;
drop table table_b;
create table table_b as
select 'Test' name, 1 value from dual union all
select 'Test' ,1 from dual;
create table table_a as
select 'Test' name, 1 value from dual union all
select 'Test' ,1 from dual union all
select 'Test' ,1 from dual union all
select 'Hello' ,2 from dual union all
select 'Good', 3 from dual;
/* Formatted on 11/23/2011 1:53:12 PM (QP5 v5.149.1003.31008) */
DELETE FROM table_a
WHERE ROWID IN (SELECT rid
FROM (SELECT ROWID rid,
ROW_NUMBER ()
OVER (PARTITION BY name, VALUE
ORDER BY NULL)
rn
FROM table_a a
WHERE EXISTS
(SELECT 1
FROM table_b b
WHERE a.name = b.name
AND a.VALUE = b.VALUE))
WHERE rn > 1);
select * from table_a
NAME VALUE
Test 1
Hello 2
Good 3Edited by: pollywog on Nov 23, 2011 1:55 PM -
I want to enter information in one table and have it update other tables automatically
I am a very unlearned Numbers user.
Here is my desire/dilemma. I run a summer camp and have to record information for our camp. I use the information in a number of forms from check in and check out to records for each cabin, and more.
I would like to create a master table that has all of the information for each camper that I will call a master list. I then want to create the tables that will contain the information needed for each specific form. I want the specific forms to be able to update automatically when new information is entered in the master. The master record will be sorted by the cabin and bed numbers, so I can tie the subtables to those cells, but I need the row to update as well.
My question is how can I do this in the shortest and simplest way possible?
I hope this question is clear.
Thanks!
RoyHi Roy,
Well, the simplest is likely to sort the Master table by Cabin number, then use copy/paste to transfer the information to the separate tables for each cabin. But that's not automatic.
Before jumping in to this, I'd like a better idea of what your Master table will look like, what one of the sub-tables would look like, and which data you want to transfer from the Master to the Subs. A screen shot would be helpful to anyone trying to help you with this, not just to me.
One consideration is how you will use the sub-tables. An immediate difficulty that comes to mind if you are goiing to mix retrieved data and directly recorded data on the same table is that data collected from the Master table and data recorded directly on one of the sub tables are independent of each other. Consider the list below:
1 Bob Baines
2 Chuck Clay
2 Dexter Davis
3 Ed Elmore
1 Frank Fencepost
1 Greg Gilson
3 Harvey Hall
Bob, Chuck and Frank would appear (in that order) on the Cabin 1 list:
Bob x √ √ √
Frank √ √ √ √
Greg √ x x √
But if Chuck, for some reason, was transferred to cabin 1:
1 Bob Baines
1 Chuck Clay
2 Dexter Davis
3 Ed Elmore
1 Frank Fencepost
1 Greg Gilson
3 Harvey Hall
That transfer would affect only the data collected from the Master table. The data entered directly would remain where it was when entered, with disastrous results to Frank's (so far) perfect attendance record.
Bob x √ √ √
Chuck √ √ √ √
Frank √ x x √
Greg
Regards,
Barry -
Show name from one table, and a sum from another table.
Hi,
For instance: I have 2 tables.
1. Table1 has fields TenantID, TenantName,
2. Table2 has fields AmmountCredit, AmmountDebit, TenantID.
I need the following behavior.
In the detailed section I want my report to show a list of TenantName, and a SUM of AmmountCredit minus Ammount Debit for that Tenant (which will come from Table2).
How would I do this? If a formula is involved, please provide an example because I'm fairly new to Crystal Reports.
Thanks
AronHi Aron,
Please see if this helps:
1) Go to the Database Expert > Add the two tables > Go to the Links tab > Join the two tables on the 'Tenant ID' field using an 'Inner Join' > Click OK
2) In the report, go to the Group Expert and create a group on the 'Tenant ID' field
3) Place the 'Tenant Name' field on the Group Header 1
4) Suppress the Details Section
5) Create a formula with this code and place it on the Group Header 1:
Sum({AmountCredit}, {TenantID}) - Sum({AmountDebit}, {TenantID})
Here, {TenantID} is the Group field. So replace these fields with the right fields from your datasource.
-Abhilash -
Update table based on values from other table
Hi,
I am trying to update one table based on the values of another table. Since you can't use From in update statements, how do you execute this?
For example i have to tables, Table A and Table B. I want to update a column or columns in Table A based on another value in Table B:
So if the column in Table B was 1 then column in Table A would be Yes, if Table B was 2, then Table A would be Yes, if Table B was 3 then Table A would be N/A and so on...
Any help would be appreciated.
thanks,
scottSQL> select * from t1;
ID ST
1
2
3
SQL> select * from t2;
NO
1
2
3
4
SQL> update t1 set status=(select decode(no,1,'Y',2,'N','NA') from t2 where t1.id=t2.no);
3 rows updated.
SQL> select * from t1;
ID ST
1 Y
2 N
3 NA
Daljit Singh -
Table names for fields from standard extractors
Hello Experts,
I want to know, if there is an easy way to find R/3 table names from extractor fields of standard data sources / extractors.
ROOSOURCE , RSOSFIELDMAP did not help.
ThanksHi
find your extract structure name from RSA6 or RSA5 and then go to SE11data type>give your extract structure name and click on 'where used list', then select 'programs'..
You can see the name of the extract programs written by sap.go to the program then you can find the tables and their fields...
Hope it helps up to some extent....
Thanks,
Teja -
I accidentally deleted ALL the messages from my wife from my iPhone, nearly all of them iMessages. Yet, I can see all of them on my iMac and on my MacPro. Indeed, there is a discussion item (https://discussions.apple.com/message/21313040#21313040) that confirms that messages are deleted and maintained independently on each device, even though they are all ultimately resident only in Apple's cloud.
I would dearly love to have all of them back on my iPhone. Yet, reading about 20 or so discussions here, the only way to recover them would be a recovery from my iTunes backup. I have a somewhat recent backup, but I'll still lose about 100 messages that way.
So, if all the messages are still in the cloud, why CAN'T I recover them directly from the cloud to my iPhone? Any ideas? Any software? Is this an App just begging to be built??
ThanksIt depends on the type of email account you are using, not on iCloud. If you are using an IMAP or exchange account, when you delete from one device, it is deleted from all devices. If you are using a POP (POP3) account, it won't. (iCloud email, Gmail and Yahoo are all IMAP accounts.)
-
Count moving object (Inter the ROI from one side and leave ROI from other side)
Hello All
I want to design program that can counting moving object that inter ROI from one side and come out from the other side, I want to give each object ID number
I have design a program that compare between object distances from one frame to the next frame, but the program efficiency is very low
If any one can give me a sample code that I can use or modify it to suite my applicationHello,
you will find the code in the attachment (saved for LV2013). There is a longer delay inside the loop, remove it for efficiency.
Roughly measuring the time to read an image, the processing takes ~8 ms on my computer (~500x200 image resolution). That is ~125 samples/images per second. Is this not fast enough for you? Considering better image resolution, the time is of course increased.
My specifications:
Core i7 3632QM
6 Gb RAM
Win 7 x64 (Labview x86 though).
Best regards,
K
https://decibel.ni.com/content/blogs/kl3m3n
"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Attachments:
IDMovingObjects.zip 64 KB -
How to populate a filter field in one page with the value from other page
Take the classic report with form application.
on page 1 (report) I have a filter (dbname) for the records that will appear in the report. Say that, I enter "ap02" in the filter and all records where dbname starts with "ap02" will display. It works ok.
Then I click on "create" button and page 2 appears. I enter all fields except the dbname. This field is generated, at "pre-insert trigger on the table".
What I want is when I press the button "create" on page 2 to pass the value of the generated dbname field into the filter in page 1 so when that page refreshes I will have only one record on the report page (1). I understand that the dbname at the page 2 level still empty because it is generated by the trigger. How do I have access to that info to populate the filter.
Thanks for your assistanceJoe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
Another option would be to update session state directly in the trigger.
Scott -
Auto Populate Field in One Table with Primary Key from another table.
Greetings all,
I have created two tables. One for Root Cause which will be the based description information of an analysis. Each Root cause can have many corrective actions.
My Table structure is as follows:
RCCA TABLE:
=====================================
Column Name Data Type Nullable
RCCAID NUMBER No
DESCRIPTION VARCHAR2(4000) Yes
SUMMARY VARCHAR2(4000) Yes
OWNER VARCHAR2(4000) Yes
DATEOFINCIDENT DATE Yes
STATUS VARCHAR2(4000) Yes
CORRECTIVE ACTION TABLE
=====================================
Column Name Data Type Nullable
CAID NUMBER No
RCCAID NUMBER No
CANUMBER NUMBER Yes
CACTION VARCHAR2(4000) Yes
DATEDUE DATE Yes
COMMENTS VARCHAR2(4000) Yes
So I have a form that creates the RCCA and then I have another form that I want to feed off of the first form. My thought was that when the RCCA was created, it would open a report of the RCCA and then in another region of the page I would add corrective action form. What I am looking to do is when I press the Create Corrective Action, it will automatically populate the RCCAID in the Corrective Action Table so that it is associated directly to the RCCA. I don't want to have to have someone know what the RCCAID is from teh RCA table because they are autogenerated.
There may be a better way to do this and since I am new to APEX and to Oracle Databases, I am just going with what my logic tells me. Any assistance or thoughts would be appreciated.
Assuming there would be some type of trigger?
I will have to be able to view each RCCA and CA in a report that customers will see.
Thanks in Advance
WallyHi Debasis,
Have a look on this
Quick note on IDENTITY column in SAP HANA
Regards,
Krishna Tangudu -
Hi all,
Apologies if any of the following sounds at all silly but I am fairly new to this so here goes...
I have 3 tables that require data insertion at the same time. The first table is the customers table, I then want to take the automatically generated custid from that table and inser it into 2 other tables along with some other data
Here's what I have so far which does not work:
CREATE PROCEDURE CustomerDetails.bnc_insNewRegistration @CustId int,
@CompanyName varchar(100),
@FirstName varchar(50),
@LastName varchar(50),
@Email nvarchar(254),
@HouseStreet varchar(100),
@Town smallint,
@County tinyint,
@Postcode char(8),
@Password nvarchar(20)
AS
BEGIN
begin tran
insert into CustomerDetails.Customers
(CompanyName, FirstName, LastName, EmailAddress)
Values (@CompanyName, @FirstName, @LastName, @Email)
set @CustId = (select CustId from inserted)
insert into CustomerDetails.Address
(CustomerId, HouseNoAndStreet, Town, County, PostCode)
values (@CustId, @HouseStreet, @Town, @County, @Postcode)
insert into CustomerDetails.MembershipDetails
(CustomerId, UserName, Password)
values (@CustId, @Email, @Password)
commit tran
END
GO
If anyone could help with this I would very much appreciate it as I am currently building an online store, if there's no registration there's no customers.
So to whom ever is able to help, I thank you whole heartedly :)I hope by now it is apparent that statements like "doesn't work" are not particularly helpful. The prior posts have already identified your first problem. But there are others. First, you have declared @CustID as an argument for your
procedure - but it is obvious that you do not expect a useful value to be supplied when the procedure is executed. Perhaps it should be declared as an output argument so that the caller of the procedure can know the PK value of the newly inserted customer
- otherwise, replace it with a local variable since it serves no purpose as an input argument.
Next, you are storing email twice. Duplication of data contradicts relational theory and will only cause future problems.
Next, I get the sense that your "customer" can be a person or a company. You may find that using the same table for both is not the best approach. I hope you have constraints to prevent a company from having a first and last name (and
vice versa).
Next, your error checking is inadequate. We can only hope that you have the appropriate constraints to prevent duplicates. You should expect failures to occur, from basic data errors (duplicates, null values, inconsistent values) to system issues
(out of space). I'll leave you with Erland's discussion for more detail:
erland - error handling.
Lastly, you should reconsider the datatypes you are using for the various bits of information. Presumably town and county are foreign keys to related tables, which is why they are numeric. Be careful you don't paint yourself into a corner with
such small datatypes. One can also debate the wisdom of using a separate tables for Town and County (and perhaps the decision to limit yourself to a particular geographic area with a particular civic hierarchy). Password seems a little short to me.
And if you are going to use nvarchar for some strings, you might as well use it for everything - especially names. Also, everyone should be security conscious by now - passwords should be encrypted at the very least.
And one last comment - you really should allow 2 address lines. Yes, two separate ones and not just one much larger one.
Maybe you are looking for
-
Changing any other print parameters does not get rid of the problem. Firefox is fully up to date.
-
We are upgrading UCM from 8.5(1) to 10.5(1) and migrating from MCS to UCS. We used UCM 8.5 OVA (7500 user) and migrated to UCS. Once migrated to UCS we upgraded UCM to 10.5(1). We wanted to use OVA to accommodate 10,000 users, hence took backup of 10
-
Safari not working the same after os 5 update, no pages show in ipad2
After OS5 update, safari in ipad2 does not show pages of websites visited (should be up to 9) - it's now a bar at the top which I do not want. Prefer previous method. Anyway to get back to that?
-
Hi, Easy question I assume, but for some reason am stuck. Have been creating linework in CAD and printing to PDFs. Set up a new document in photoshop, A1, 300ppi, RGB colour 8 bit. When I go to 'Place' the PDFs into the blank document, all the linewo
-
Enterprise Manager Menu Missing
Running CF8 with multiple instances. After doing a hot fix update, I lost my "Enterprise Manager" menu in the coldfusion administrator for my primary instance. I know it's not suppose to be in my secondary instances, but now it's not in the one I man