MI 7.1: Query to get correct child objects for a parent
I have this problem for both PDA and Laptop apps.
We have created a Data object with Customer as parent and Email and addresses as child to it. Customer will have basic customer info like his name, nationality etc. email and address will have zero or more emails and addresses of that customer.
In my application I have written a query to fetch all customers, display it in a table and upon selection of one customer I will fetch the customer id which is the key and will fire one more query with customer id as input which will fetch all his addresses and display it in another table.
Now look at this scenario: I create a new customer. Then I go on and create a new address for the same customer. The address will also have foreign key customer id as zero. Now I go on and create one more new customer. Now when I select any of there customers their id is zero (since i havent syncd). Hence my second query would fetch the same newly created address for both the customers since both of them have customer id as zero. Now there is a option for adding join in query in PDA app. I added the join like address.psynckey = customer.synckeyMMW in my second query to fetch addresses apart from filter address.customerid := custid where custid is input parameter. In laptop also I clicked on add join condition by relation button which added to existing condition AND (address.psynckey = customer.synckeyMMW). Now even after this it is not working correctly i.e. only the relevant childs for a parent record should come. Plz help.
Hi,
well, I have a problem in understanding.... If I create an item locally on the device - it immediately has a SyncKEy - this is not empty! Furthermore when I select on the item, I have the Top item as select criteria - aswell at the create process. I need the TOP item to create a child item.
Do you have a chance to look into any SAP standard app to get an idea how they do it? The ITEMMANAGER should handle the requested create,delete,modify,select handling for TOp to child items - I think there is the issue.
Regards,
Oliver
Similar Messages
-
Which view I can query to get the granted objects privilege to a user?
Hi all,
which view I can query to get the granted objects privilege to a user?
for example:
grant execute on accounting.get_name to scott;
Which view has above object granted information?
ThanksSQL> select * FROM all_tab_privs where grantor = upper('accounting');
no rows selected -
Unable to get the admin object for the CsContainerAdmin service
Hi,
On AIX, we deployed XIR2 SP2 --> XIR2 SP3 --> SP3 Productivity Pack.
The Conection server does show up on the server list in the CMC, but on trying to access this server, it throws an error" Unable to get the admin object for the CsContainerAdmin service"
Tried to manually create another Connection server, same result.
Is this an issue that is addressed by a later FP?
Thanks in advance
Rajesh JayakumarHi Rajesh,
Were you able to resolve this issue? I am facing the same issue with almost every BOE 11.5 SP3 server on Windows.
For example, the Input file server says this -
"Unable to get the admin object for the FileServerAdmin service for server Input.BOCMSMSGT1.fileserver".
Getting the same error on WebI Report Server as well -
There was an error while retrieving data from the server: Unable to get the admin object for the WebiServerAdmin service for server BOPROCENG1.Web_IntelligenceReportServer.webiserver
Thanks,
Sarang
Edited by: Sarang Deshpande on Sep 26, 2008 3:08 PM -
Business Scenario- We have a parent organization with 6 different Business Units.One BU requires 9 stages for for Opportunity(Tender) Tracking.The client requirement is to show the basic details of the tender at the header level and to show details specific to individual sales stage as different tabs.There will be multiple opportunity members added as opportunity team and will be responsible for capturing details specific to individual sales stage(tab). The Tab should be enabled and disabled based on the role. Reporting is required against each stage with specific fields of child objects against each opportunity.
We created multiple children entities under the oportunity(one to many mapping) but we are unable to add more than 3 child objects for a primary object for reporting purpose.
Kindly suggest what needs to be done to meet the requirementCan you provide the exact steps you took to "created multiple children entities under the oportunity" ?
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Query to get batch GLBATCH name for the invoices of AP and AR
Please provide a query to get GLBatch name for an invoice of AR and AR.
From one cursor iam getting invoice number and invoiceID of AP and AR.
I have written query but it is taking much time
select distinct gjb.NAME
from gl_je_headers gjh,
gl_je_lines gjl,
gl_je_batches gjb
where gjl.REFERENCE_2=to_char(:p_invoiceid)
and gjh.JE_HEADER_ID=gjl.JE_HEADER_ID
and gjh.JE_BATCH_ID=gjb.JE_BATCH_ID
so iam getting performance problem.
Please suggest if iam wrong.
Waiting for your valuable suggestion.
Thanks
ganeshHi,
the version of Oracle E-Business Suite is R12
and ORacle Database IS 11I
Thanks & Regards
ganesh -
Query --- to find all child tables for a master table
Suppose i have a table master .
I want to know all tables which are child tables for this master table .
In other words i want to know all those table names which have foreign key constraint for the master table .
regards
shubhaYou may want to join on the owner in case you have multiple schemas with same table names and same primary key names
SELECT c.table_nameFROM all_constraints c, all_constraints p
WHERE c.constraint_type = 'R'
AND c.r_constraint_name = p.constraint_name
AND p.constraint_type = 'P'
AND c.owner = p.owner
AND p.table_name = '&YOUR_MASTER_TABLE' -
How to comple query to get correct results?
Hello,
I am having problems getting the results from a query. I have 2 tables:
Marriage table
People1ID People2ID DateMarried
1 4 5/5/2014
5 7 6/5/2014
2 3 7/5/2014
People table
PeopleID First Last
1 Bob Jones
2 Mary Smith
3 Steve Smith
4 Jane Jones
5 Robert Apple
6 Julie Jackson
7 Diane Apple
Looking for result like this:
First1 Last1 First2 Last2 DateMarried
Bob Jones Jane Jones 5/5/2014
Robert Apple Diane Apple 6/5/2014
Mary Smith Steve Smith 6/5/2014
PaulI'm little confuse on your expected result specially on the third row column "Datemarried". Are you sure that its 6/5/2014. I think its 7/5/2014. Anyway you can try this query.
select b.[First], b.[Last],
c.[First],c.[Last],
a.DateMarried from marriage a
left outer join People b
on a.people1id=b.peopleid
left outer join People c
on a.people2id=c.peopleid
this will be the result:
First Last
First Last
DateMarried
Bob Jones
Jane Jones
5/5/2014
Robert Apple
Diane Apple
6/5/2014
Mary Smith
Steve Smith
7/5/2014 -
Query to get data (child-parent)
Hi
i want to to display as below for the below table.But how am i to quiz the database to get the values in that order..
xxx
yyy
AI
zzz
xyz
ABC
table called web-goups/
web_groups_id, web_group_desc, flag, parent_web_group_id
101 xxx
102 yyy 101
103 zzz 101
104 xyz
105 ABC 104
106 AI 102SQL> with t as (
2 select 101 web_groups_id,'xxx' web_group_desc , null parent_web_group_id from dual union all
3 select 102 ,'yyy', 101 from dual union all
4 select 103 ,'zzz', 101 from dual union all
5 select 104, 'xyz ',null from dual union all
6 select 105, 'ABC', 104 from dual union all
7 select 106 ,'AI' ,102 from dual )
8 select web_group_desc
9 from t
10 start with parent_web_group_id is null
11 connect by prior web_groups_id=parent_web_group_id
12 /
WEB_
xxx
yyy
AI
zzz
xyz
ABC
6 rows selected.
SQL> -
Possible to get filtered child information on the parent's browse screen?
We're writing a 'case management' system that revolves around an event in the workplace-- slip and fall, burned your lip on hot coffee in the kitchen, etc.
Related to a 'case' are people-- witnesses, investigators, etc. As you might imagine in the database structure the 'case' is the head of the octopus, with witness and investigator tables linked to it in a 1-to-many fashion.
Right now we're trying to craft a screen whereby we pass in a a 'Person' as a screen parameter-- and I don't mean the built-in 'Person' type from LS, but an entity of our own making. We would like to see on the screen all cases involving that person,
whether they're an investigator or witness or other. (The witness and investigator and other entities have related links to the Person entity, so for Investigator #342 you know who that is.)
On this screen we're working on, as one of the datasources, we have the Case table, and have selected the 'Edit Query' link to filter the listing of cases to only those involving our 'Person' parameter.
Here's where I'm getting a bit lost. In the filter screen itself I can easily craft something based on the fields in the Case table, but is it possible to filter based on related entities to the Case, like the Investigators or Witnesses? Maybe
I'm missing something obvious but I don't see any provision for child entity properties as filters.
I'm pretty sure we can do a workaround by creating multiple tabs on this screen, so that for a given person we can see individual tabs listing cases in which they're Investigators or Witnesses. But is it possible to list this all out without tabs?
Or at least without advanced stuff like getting creative with WCF RIA services?
In short, the question is this: can I list on one screen all cases involving a person no matter their role? Or do I need individual tabs for each role (Investigator, Witness, etc?)Yes you can by creating a custom query on case. Use the PreProcess query event to filter the cases in code.
Dave
Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer. -
Unable to get correct sort order for subquery
Hi,
I have this complex subquery and I am sort of stuck on how to get the correct sort order. Here is the query
select *
from
(select r.ResultsId, r.TestName, p.ProjectName, h.PhaseName,
t.TypeText, s.StationName,
to_char(max(r.ExecutionStartDate) over
(partition by r.TestName, b.ConfigValue, .ConfigValue,
d.ConfigValue),
'DD MON YYYY HH24:MI:SS'), r.Owner, t.Status,
b.ConfigValue Language, c.ConfigValue Telemetry,
d.ConfigValue Flex
from Results r, Projects p, Phase h, Type t, Station s, Status t,
ConfigResults b, ConfigResults c, ConfigResults d
where
r.resultsId = b.resultsId and
r.resultsId = c.resultsId and
r.resultsId = d.resultsId and
b.configurationid = 1 and
c.configurationid = 2 and
d.configurationid = 3 and
r.projectid = p.projectid and
r.statusid = t.statusid and
h.PhaseId = r.PhaseId and
t.TypeId = r.TestTypeId and
s.StationId = r.StationId and %s
Order By
r.TestName, b.ConfigValue, c.ConfigValue, d.ConfigValue)
order by resultsid
My results are sorted by TestName, ConfigValue but I am trying to the
results sorted by resultsid
Any assistance would be greatly appreciated.
Thanks,
JeffWhat happens if you add an order by r.resultsid to your order by statement directly in your subquery rather than doing an order by later?
It will not work because I need to specify the exact fields that I use in
the partition by statement.
Jeff -
Cannot get correct print layout for multiple page/booklet printing
In trying to print a pdf file that is landscape, 2 pages per sheet, booklet format, I cannot get the print preview to show the correct layout. I have tried all the options in the print menu, but either I get the pages in the incorrect order or I get what should be on the right side on the left side and vice versa. Of course, there is NO help in the Adobe knowledge base. Has anyone else experienced this problem. Is there a fix? Additionally, Adobe wants me to pay $39 for assistance that they will not guarantee they can fix. How crazy is that!
Thanks for your response.I highly recommend Quite Imposing. It can create nearly any booklet you want as a pdf file. Then you will have no problem being sure it is what you want before you print to paper.
http://www.quite.com -
Query to get all the worksheets for a particular work book
Hi All,
I want to get all the associated worksheets for a particular workbook. What query will fetch mne those details. Also, where can find the EUL5 tables documentation
Regards
ThomasHi Tamir,
Thanks so far. I am yet to make the crucial breakthrough as far my application goes. Are you talking about the EUL5_QPP_STATS table? I tried retrieving worksheets even from that table also with the following query
SELECT DISTINCT Eul5QppStats.QS_DOC_NAME,Eul5QppStats.QS_DOC_DETAILS
FROM EUL5_QPP_STATS Eul5QppStats,EUL5_DOCUMENTS Eul5Documents
WHERE Eul5QppStats.QS_DOC_NAME = Eul5Documents.DOC_NAME
However, the worksheet data retrieved by Discoverer Oracle's product is not matching my dataset for every workbook. Please suggest.
Reg
Thomas -
Query to Get next Highest Value for the given value passed
Hello Gurus
i want help with a query that would get me the next highest value from a table for a given value passed. Let say these are the values in col of a table
col
6000
5000
4000
3000
2000
1000
if i pass 2000 then the output should be 3000 or if i pass 4000 then query should result 5000. Please helpMay be this:
WITH t AS (SELECT 6000 val FROM DUAL
UNION ALL
SELECT 5000 FROM DUAL
UNION ALL
SELECT 4000 FROM DUAL
UNION ALL
SELECT 3000 FROM DUAL
UNION ALL
SELECT 2000 FROM DUAL
UNION ALL
SELECT 1000 FROM DUAL)
SELECT min(val)
FROM t
WHERE val > &YourVal -
Can not get correct page numbering for sections
I have created a RTF template for a report that is Burst by USERID and then on the template I have the DeptID as the section for the report. When I run the report I get page numbering by DeptID - so if 1 department has 2 pages I see page 1 of 2, 2 of 2, then the page numbering starts over for the next department. I actually want the report to show a total number of pages for the entire report in the header. Any ideas on how I can accomplish this? Thanks!
Vetri changed the template to have the body start prior to rows that I wanted repeated on all pages and then copied the repeated rows on the second page. This allowed for my page break between departments to happen and the page numbering in the heading also included the total number of pages not the total pages for each department.
-
Query to get translated seeded prompts for responsibilities
My customer is doing a global EBS R12.1.3 implementation and they are in need of a query that can give all the seeded or custom translated Prompts for the Responsibilities. If any you have developed such query, please share with us and it is much appreciated.
user13380563 wrote:
My customer is doing a global EBS R12.1.3 implementation and they are in need of a query that can give all the seeded or custom translated Prompts for the Responsibilities. If any you have developed such query, please share with us and it is much appreciated.
Please see previous threads.
https://forums.oracle.com/search.jspa?q=Responsibilities+AND+Query+AND+EBS
https://forums.oracle.com/search.jspa?q=Responsibilities+AND+Query
Thanks,
Hussein
Maybe you are looking for
-
I have a 2010 macbook pro 2010 13.3" laptop that will not update from 10.6.3
I have an Apple macBook pro that will not update at all. It is a 13.3 model the initial load is 10.6.3. The battery is dead as well and the pram seems to not hold as well, time reset even when plugged in on restart. any update leads to the spinning w
-
How to "Ink Markup" a PDF when Security Settings won't Allow it?
I am an onsite computer tech support person and have been asked to solve a problem that is outside my expertise, and would appreciate any help I can find here. The Doctor's office recieves electronic faxes from pharmacies that require the doctor's si
-
Hi , I am doing a IDoc to JDBC scenarios ,the number of IDoc hitting XI is huges.Most of them pass XI successfully and create records in XI.But some of them get stuck in Queue.I can see them in SMQ2.When I check them they are struck there with the er
-
How do you edit samples in esx 24?
Hello, I am trying to edit my saples in ESX 24 by clicking on the triangle next to the audio files name and choosing "open in sample editor." I edit the audio file, close sample editor wanted thew sample to reflect the edit but it does not. Thank you
-
I'm installing Netweaver2004s ,I have problem
I got errors below while installing Sap NetWeaver2004s. How can I solve the problem? Thanks. ERROR 2007-04-03 11:58:43 CJS-00030 Assertion failed: lsnrctl: Parameter dbHome has to be a valid ORACLE_HOME. ERROR 2007-04-03 11:58:43 MUT-03025 Caught ESA