Resolving a 1:n Association to a single row
Hi,
I have a requirement wherein there are 2 BOs, and the first BO has a 1:n association to the other BO. On the UI, I want to show fields from both the BOs in ONE row, but after resolving 1 particular instance.
For eg: If the 2nd BO has 3 records, and only one of them is valid for the period I login, I should pick up only that record and show its fields along with other fields of the first BO.
BO1 BO2
ID, Desc, Type ID, BO1 ID, Current valid Indicator Amount
01 Test1 A 1, 01, True, 1000
2, 01, False, 2000
3, 01, False, 3000
UI:
ID Desc Type ID Amount
01 Test1 A 1 1000
Although there are 3 records for the ID 01 of the BO1 via association to BO2, I should pick up only the first record to show on the UI. How should one resolve a 1:n association in UI designer ?
Kind Regards
Vinita
Hi Vinita,
The way I would do this, is:
in the UI-Designer
1. create a sub-list in the data model to model the 1:n cardinality
2. Bind it to the BO that has n instances
3. use an event handler and ruby script to set the lead selection to the correct record
e.g.
lead = 2
$data.MainList.SubList.SetLeadSelectedIndex(lead)
4. bind the data fields of the sub-list to the respective UI elements in the List pane of the main list
=> the entries from the lead selection of the sub list will be shown in the main list.
Best regards,
Ludger
Similar Messages
-
I have a personal itunes account with an iPhone5s (perosnal mobile numer) and an iPad 4 mini (no SIMM). I have unlocked my old iPhone 4 to use for work on a different SIM and new number,
Do you know if I can have all devices associated to my single apple ID and still use both numbers without messing up my profile. It has just changed my number over.I would not be able to give you idiot proof guide, since different games are different. Some of them have icloud integrated already, but those already taken care of. Some of them use specific logins and once you log - you get your info. General recommendation is to contact support sites of those games for enabling icloud instructions or enabling of transfer. There are other purely apple ways - like sync your phone in itunes and then sync apps with ipad, but those are only one time transfer. There is another way that is not typically recommended - restoring ipad from iphone backup. It may transfer your game content, but once again sync in the future has to be done by game.
So if I were you, I would address that individually with every game provider. -
Customer master can only be associated with a single Plant Code
>>Customer master can only be associated with a single Plant Code. True or False
>>Plants are then extended to Company Codes, and can be extended to multiple Company Codes. T/F
>>SKUs are then extended to Plants. T/F
Please confirm..
Thanks>>Customer master can only be associated with a single Plant Code. True or False - One customer can be assigned to multiple Sales areas and customer is not assigned to plant, A customer can buy products from a plant if plant is assigned to Sales org/Dis channel
>>Plants are then extended to Company Codes, and can be extended to multiple Company Codes. T/F - True
>>SKUs are then extended to Plants. T/F - True
Thank you
Kris -
UCCX-Max JTAPI triggers that can be associated with a single script
Hi,
We are on UCCX 7.0(1)SR5 cluster. I would like to know if there is any maximum limit on the number of JTAPI triggers that can be associated with a single UCCX application/script. I have this requirement where in I will have to create 80+ JTAPI triggers and associate all of them to a single UCCX script. Will there be any impact on the performance with this approach?
My second question is- is there a limit on the number of sessions that can be associated with a single UCCX application?
Thanks,
DMThere is no need to have multiple chained CTI Route Points. The call should flow through UCM as follows:
Arrives from a PSTN gateway with a specific DNIS value per number. In most cases carriers will not give you the real toll-free number that was called but either another DNIS value representing each toll-free number; or, a portion of it such as the last four digits.
In many cases - but not necessarily required - customers then use translation patterns to change the provided value into a value that the CCX CTI Route Points are configured in. For example, if the provider is sending you a DNIS of 84XX of the toll-free calls and you want the CTI RPs to be 71XX, you can create a translation pattern that does exactly that.
You create a single trigger (assuming all the toll-free numbers go to the same script/application) and use a wildcard pattern of 71XX when creating it.
(More Optional) If the script needs to know the exact toll-free number that was dialed, you can use the Get Call Contact Info step to get the called number.
Otherwise the script wouldn't be aware that you've used wildcards in the route point. -
Free cross Ads promting Apps associated with a single Dev account
Hi,
I believe that there is a feature allowing Apps associated with a single Dev account to promote each other via free PubCenter Ads.
I would appreciate a link showing how to take advantage of this feature.
Thanks
AlaaGot the answer from PubCenter blog
Thanks -
I just want an album to be associated with a single artist!!!
I am importing albums and nobody I have talked to thinks I can do what I want to do here!! Any suggestions/tricks would be SO welcome..
When I import an album, I would like for the ALBUM to be associated with a single artist but maintain all the info it has for the song. For example, Elton John Two Rooms, is an album where all these folks got together and did Elton John songs. Elton does not perform any of the songs though. So.. When I import the album I want to be able to go to Elton John and access the album as a single unit - a single Elton John album. Instead, iTunes breaks each song out to the artist who performs each song! I couldn't care less!! I know I could change the info so it shows each song as being performed by Elton and this would be done, but I would like to hold that info!
This also happens on many other albums I have - Jools Holland's Big Band, blah blah blah..
Thanks for any help!
KenYeah.. I had figured that out for another album - Jeff Wayne's War of the Worlds.. That is one where I couldn't care less about the artists.. I just want to go to Jeff Wayne and play War of the Worlds..
But in this circumstance - and the Jools Holland one as well - I would really like to maintain the artist information but I still want the album as an album rather than tracks spread all over the place by various artists. This is my first forray into the iTunes and iPod stuff and am just getting frustrated at how useless this "organization" focus for iTunes is. It seems SO individual track focused as opposed to viewing an album as a contiguous item.
Anyone know how to use this "Grouping" thing? -
Multiple row value coming in a single row(nclob)
hi ,
i have a requirement where i have to work on a column on datatype nclob, now here the value of 2 rows coming into a single column. like this:
select distinct extractvalue(xmltype(details),'/Anything/invoiceNumber') as invoices ,
actinguserid as user_id ,createdt
from bchistevent where bucket = 201301
and upper(type) = 'COM.AVOLENT.PRESENTATION.EVENT.INVOICEDOWNLOADEVENT'
--and bchistevent.bucket = to_char (add_months (sysdate, -1),'YYYYMM')
395452969-000-20130103 1.46388193452398E37 1/8/2013 3:05:42 AM
300000590-000-20090723 1.46388193452398E37 1/11/2013 8:11:45 AM
300000590-000-20090723 1.46388193452398E37 1/11/2013 8:12:50 AM
395453127-000-20130103 1.46388193452398E37 1/14/2013 4:44:26 AM
*300084670-000-20120906, 300084671-000-20120906* 1.46388193452398E37 1/7/2013 12:45:19 AM
395452626-000-20130103 1.46388193452398E37 1/8/2013 3:03:57 AM
300084679-000-20120906 1.46388193452398E37 1/11/2013 8:10:47 AM
300000728-000-20090731 1.46388193452398E37 1/11/2013 8:19:19 AM
300084679-000-20120906 1.46388193452398E37 1/14/2013 12:31:48 AM
300000590-000-20090723 1.46388193452398E37 1/14/2013 4:13:19 AM
395452718-000-20130103 1.46388193452398E37 1/8/2013 7:10:19 AM
300084679-000-20120906 1.46388193452398E37 1/23/2013 6:54:11 AM
300084679-000-20120906 1.46388193452398E37 1/22/2013 3:11:54 AM
300000590-000-20090723 1.46388193452398E37 1/11/2013 8:14:02 AM
395453127-000-20130103 1.46388193452398E37 1/14/2013 4:33:12 AM
300084679-000-20120906 1.46388193452398E37 1/22/2013 3:03:36 AM
300084679-000-20120906 1.46388193452398E37 1/14/2013 12:34:13 AM
395452997-000-20130103 1.46388193452398E37 1/7/2013 3:31:38 AM
395452391-000-20121027 1.46388193452398E37 1/3/2013 4:40:05 AM
and the value of bold highlighted row is coming in a single row, plzz help how to break this in 2 rows??
Edited by: user1175303 on Mar 13, 2013 5:43 AMuser1175303 wrote:
the column value which is in question is <Anything><invoiceNumber>300084670-000-20120906, 300084671-000-20120906</invoiceNumber></Anything> here i am getting 2 values in a single column and because of this i am unable to get desired output...So you have XML issue but trying to resolve it in Oracle??? Why <invoiceNumber> holds two invoice numbers? Anyway:
with t as (
select distinct extractvalue(xmltype(details),'/Anything/invoiceNumber') as invoices,
actinguserid as user_id,
createdt
from bchistevent
where bucket = 201301
and upper(type) = 'COM.AVOLENT.PRESENTATION.EVENT.INVOICEDOWNLOADEVENT'
select regexp_substr(invoices,'[^,]+',1,column_value) invoices,
user_id,
createdt
from t,
table(
cast(
multiset(
select level
from dual
connect by level <= length(regexp_replace(invoices,'[^,]')) + 1
as sys.OdciNumberList
/SY. -
Hi All
I have facing the Single row sub query Error . I tried to resolve , but my condition not working .can please any help to rewrite the query (sub query)
SELECT DISTINCT wdlsv.serial_number
,wdlsv.date_shipped
,wdlsv.inventory_item_id
,wdlsv.organization_id
,wdlsv.lot_number
,(select distinct engine from xxtc_tr_pr_open_data where chassis=wdlsv.serial_number and rownum=1
union
select distinct replace(replace(attribute11,'*',''),' ','')
from xxtc_chassis_scanout_details
where serial_number=wdlsv.serial_number
and operation_line_code ='CHASSIS') "ENGINE_NO"
,oola.attribute1 oh_excise_no
,msi.attribute16 vehicle_type
,bbom.attribute2 model_no
,xxst.tariff_code tariff_code
,substr(xxst.color_type,1,1) color_type
,(SELECT TO_CHAR(trunc(rt.transaction_date),'RRRRMMDD')
FROM rcv_transactions rt,
rcv_shipment_lines rsl,
rcv_shipment_headers rsh
WHERE rsh.shipment_header_id=rsl.shipment_header_id
AND rt.shipment_header_id=rsl.shipment_header_id
AND rsl.attribute1=wdlsv.lot_number
AND rt.organization_id=wdlsv.organization_id
AND rt.organization_id=rsh.organization_id
AND ROWNUM<=1
union
select distinct to_char(xxtp.indent_import_date,'RRRRMMDD')
from xxtc_tr_pr_open_data xxtp
where xxtp.chassis = wdlsv.serial_number) "CKD_IMPORT_DATE_YEAR"
,to_char(xxtp.indent_import_date,'RRRRMMDD') import_date
FROM WSH_DELIVERY_LINE_STATUS_V WDLSV
,oe_order_headers_all ooha
,oe_order_lines_all oola
,mtl_system_items_b msi
,bom_bill_of_materials bbom
,xxtc_sales_tax_cal xxst
WHERE 1=1
AND PICK_STATUS = 'C'
AND delivery_status = 'CL'
AND ooha.header_id = wdlsv.source_header_id
AND ooha.header_id = oola.header_id
AND oola.line_id = wdlsv.source_line_id
AND msi.inventory_item_id = wdlsv.inventory_item_id
AND msi.organization_id = wdlsv.organization_id
AND bbom.assembly_item_id = wdlsv.inventory_item_id
AND bbom.organization_id = wdlsv.organization_id
AND xxst.inventory_item_id = wdlsv.inventory_item_id
AND xxst.organization_id = wdlsv.organization_id
and upper(msi.attribute15) not like 'SUB%'
AND WDLSV.SERIAL_NUMBER IS NOT NULL;
Regards
SanjayThis forum is for questions about working with SQL*Developer. The title is "SQL Developer (Not for general SQL/PLSQL questions)" and yours is a general SQL question. You should get a better answer by re-posting in the SQL and PL/SQL forum in the Oracle Database section. Please mark this tread as answered and re-post there.
-
*URGENT ORA-01427 single row subquery
I am trying to do this:
UPDATE projectdetails SET projectdetails.projectname=
(SELECT projectid FROM project WHERE projectdetails.projectname = project.projectname);
but it returns with the error: single row subquery returns more than 1 row.
I tried in the same PROJECTDETAILS table with another table A3, it works fine. but not for the PROJECT table.
Below is the project table (i have 2055 rows)
projectid
projectname
1
NEWEST
2
PARK WEST
3
THE VISION
4
PEOPLE'S PARK CENTRE
5
REFLECTIONS AT KEPPEL BAY
6
THE CLIFT
7
CLEMENTIWOODS CONDOMINIUM
8
HUNDRED TREES
9
PASIR VIEW PARK
10
CARABELLE
11
PARC IMPERIAL
below is the projectdetails table:
Projectname
CORALS AT KEPPEL BAY
2024750
2294
883
Strata
1
01 to 05
Jun-13
99 yrs lease commencing from 2007
1
CORALS AT KEPPEL BAY
2786880
1890
1475
Strata
1
01 to 05
Jun-13
99 yrs lease commencing from 2007
1
CORALS AT KEPPEL BAY
1525050
2180
700
Strata
1
01 to 05
Jun-13
99 yrs lease commencing from 2007
1
ECHELON
2162980
1647
1313
Strata
1
21 to 25
Jun-13
99 yrs lease commencing from 2012
1
WHITEHAVEN
1356000
1285
1055
Strata
1
01 to 05
Jun-13
Freehold
1Hi ,
UPDATE projectdetails SET projectdetails.projectname=
(SELECT projectid FROM project WHERE projectdetails.projectname = project.projectname);
For any query, to test and excecute do as follow.
Break the query like
1. UPDATE projectdetails SET projectdetails.projectname=
2. (SELECT projectid FROM project WHERE projectdetails.projectname = project.projectname);
Run the select statement and you can identify ..
as the error defines the select statement is getting more than 1 value.
3. Check the 'Where' conditions each and every line, by commenting line by line and running the query.
You can resolve step by step, be confident bro we are with you.
I suggest you before updating all the rows, just try to update one row and test, if its working fine and you can update all.
Regards,
Afzal. -
I am having trouble with a query, I need a single row from a 1-to-many relationship that is prioritized by certain ID's.
Department Table - dept_id,dept_name
Employee Table - emp_id, emp_name
D-E-Lookup Table - dept_id,emp_id
Employee ID priority are 5,8,9,21,33,78
I need each department name with the associated employee name.
There should be only one row per department.
If that department does not have empID 5, than 8, if not 8 then 9, if not 9 than 21, etc
Any help would be greatly appreciated.How about this:
WITH departments AS
( SELECT ROWNUM AS deptno, COLUMN_VALUE AS dname
FROM TABLE(sys.dbms_debug_vc2coll('Sales','IT','Research')) )
, employees AS
( SELECT ROWNUM AS empno, COLUMN_VALUE AS ename
FROM TABLE(sys.dbms_debug_vc2coll('Bennett','Parkman','Nakamura')) )
, department_assignments AS
( SELECT 1 AS deptno, 1 AS empno, 5 AS priority FROM dual UNION ALL
SELECT 1 AS deptno, 2 AS empno, 8 AS priority FROM dual UNION ALL
SELECT 1 AS deptno, 3 AS empno, 9 AS priority FROM dual UNION ALL
SELECT 2 AS deptno, 2 AS empno, 8 AS priority FROM dual UNION ALL
SELECT 2 AS deptno, 3 AS empno, 9 AS priority FROM dual UNION ALL
SELECT 3 AS deptno, 1 AS empno, 9 AS priority FROM dual UNION ALL
SELECT 3 AS deptno, 3 AS empno, 21 AS priority FROM dual )
SELECT dname, ename, priority
FROM ( SELECT d.dname
, e.ename
, dp.priority
, DENSE_RANK() OVER (PARTITION BY d.deptno ORDER BY dp.priority) AS ranking
FROM departments d
LEFT JOIN department_assignments dp ON dp.deptno = d.deptno
LEFT JOIN employees e ON e.empno = dp.empno )
WHERE ranking = 1;
DNAME ENAME PRIORITY
Sales Bennett 5
IT Parkman 8
Research Bennett 9
3 rows selectedThe <tt>WITH</tt> clause is just to define test data inline rather than creating tables, in case that's not clear. -
Hi experts...
I want single row in alv report.
I have use loop for fatch data into internal table using loop when i am passing data in alv report then the data comes according loop. i want onlu one data in alv row.
how can i do such, plz help me.decleare two internal table.
read table itab into wa index 1.
append wa to itab2.
pass itab2 only one record display. -
Merge two rows & show in a single row in table results
Hi, I need to merge 2 rows having 3 columns in a single row in table view
The cols are currently shown as :
Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
123123 10000
20000
Revenue is a single column with revenue for diffreent Period.
10000 is for May
20000 is for April
Project NO for both are same, just the periods are different. if I am not displaying Period i need to merge the 2 rows & show as
Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
123123 10000 20000
Please let me know how we can acheive this??
thanx
Pankaj123123 is the project number..
the above is not getting displayed properly....as the blank spaces are removed...
Please consider this -
How to add A single row at the middle of the table in a Webi report
Hi,
I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
Thanks in advance
Regards
MonikaHi Monika,
It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
Can you explain in more detail what you are trying to do?
Thanks -
Multiple rows Converge to Single row and join
Hi Folks,
I am facing a tricky challenge to join a table with multiple rows and converge into a single row (based on ID, period) and join with another table to get a single row. Let me explain.
Table 1: DTL_TABLE (id, period, course, names, title, type)
1 2010 mat john null null
1 2010 mat jim null null
1 2010 cam null officer null
1 2010 cam null Prof null
1 2010 phy null null Inclass
1 2010 phy null null Online
Join with
Table 2: ID_TABLE(id, period, Loc, Dept, Code)
1 2010 nj 101 CC.
Output format (id, period, course, names, title, type, Loc, Dept, Code)
result : 1 2010 mat,cam,phy john,jim officer,prof inclass,online nj 101 CC
I have created all the DDLs and DMLs if that help. Kindly let me know if a Join SQL query is possible.
Thank you,
Aj
CREATE TABLE DTL_TABLE
ids VARCHAR2 (10),
period VARCHAR2 (10),
course VARCHAR2 (10),
names VARCHAR2 (10),
title VARCHAR2 (10),
TYPE VARCHAR2 (10)
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'mat',
'jim',
NULL,
NULL);
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'mat',
'john',
NULL,
NULL);
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'mat',
'kale',
NULL,
NULL);
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'cam',
NULL,
'officer',
NULL);
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'cam',
NULL,
'prof',
NULL);
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'phy',
NULL,
NULL,
'inclass');
INSERT INTO DTL_TABLE
VALUES ('1',
'2010',
'phy',
NULL,
NULL,
'online');
COMMIT;
CREATE TABLE id_table
ids VARCHAR2 (10),
period VARCHAR2 (10),
loc VARCHAR2 (10),
dept VARCHAR2 (10),
code VARCHAR2 (10)
INSERT INTO id_table
VALUES ('1',
'2010',
'nj',
'101',
'cc');
COMMIT;Aj09 wrote:
Hi Folks,
I am facing a tricky challenge to join a table with multiple rows and converge into a single row (based on ID, period) and join with another table to get a single row. Let me explain.
Table 1: DTL_TABLE (id, period, course, names, title, type)
1 2010 mat john null null
1 2010 mat jim null null
1 2010 cam null officer null
1 2010 cam null Prof null
1 2010 phy null null Inclass
1 2010 phy null null Online
Join with
Table 2: ID_TABLE(id, period, Loc, Dept, Code)
1 2010 nj 101 CC.
Output format (id, period, course, names, title, type, Loc, Dept, Code)
result : 1 2010 mat,cam,phy john,jim officer,prof inclass,online nj 101 CC
I have created all the DDLs and DMLs if that help. Kindly let me know if a Join SQL query is possible.
SELECT TBL.id,
DTLperiod,
course,
names,
title,
TYPE,
Loc,
Dept,
Code
FROM ID_TABLE TBL,
DTL_TABLE DTL
WHERE TBL.ID = DTL.ID
AND TBL.PERIOD = DTL.PERIOD; it not good to use RESERVED WORDS like "ID" or "TYPE" as column names -
i have table dept of deptno d001,d002,d003,d004
i want to list the data like below
deptno
d001,d002,d003,d004 ( in a single row)
is it possible..?
SBased on your database version you can try any one of the following http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php
Maybe you are looking for
-
My jsp page does not get refreshed
I have a jsp page which looks like - the top portion of the page has 3 textboxes and a submit button to add an entity. the rest of the page displays a list of all the entities in the system. when i load the jsp and add a new entity, the new entity sh
-
I have a problem with my messages!
I have the iPhone 5s and my messages take a while to send, when they do send they are being recieved multiple times and when I get messages I get them multiple times. How do I stop this?
-
For almost half a year I am trying to stabilize my Leopard upgrade installation. I have problems with picture transfer in Nikon applications, color management in Nikon and Adobe applications, system freeze after going into Sleep, etc. After having we
-
Recently my Macbook had to be repaired, which involved rebooting. The iPhoto app is not there anymore. An Apple employee told me if I sign into Applications, then iPhoto would come up for free, but it won't give me an option other than paying for it.
-
Repost: Hi, In my BI Beans JSP application, I have a problem that is also described in the BI Beans 10g Release Notes: "You might encounter a problem with the executeCommand method of the Connection object if the input OLAP DML string or the output l