12.1.3. Oracle OAF. Get selected rows from Master-Detail tables - oaf

I have two advanced tables with Master-Detail relationship. These tables connected by ViewLink. Also I have a Singe selector on Master level.
I need to get selected record from Master and Details tables.
I know how to get the Master row in particular method
XxOcmMatchHeaderVOImpl voHeader = getXxOcmMatchHeaderVO1();
Row[] rowSelect = voHeader.getFilteredRows("SelectFlag", "Y");
But how can I get rows from Detail table?

As far as I know, ViewLink connects two VOs by some kind of id. Now you already have Master table's VO selected row. So you can now get an id from that row and filter Detail table's VO by that id.

Related

When using a lookup column in SharePoint Online, can you edit in both directions?

Can you edit the master list by updating the linked field, or must you always edit the master list and have the data cascade down?
For example, if the master list has "Clients" but is maintained by someone else and I find an error, can I update my lookup column "Clients" in my list and have it update the master list as well? Or does the data only go one way?
(Sorry, new at this! thanks!)
The data in a lookup column connection only goes one way. The field values are being pulled from the master list to display in the lookup column(s) on the child list.
There is the option of adding on the master list another lookup column that connects to the corresponding lookup column on the child list, but this will just give you the count of related items in the child list.

Spotfire control table values based on column value in another table

I need to control the data being shown on table Collections and Delivery based on what I click on Table A column value on Spotfire.
For example we have the three tables below:
When the user clicks on a column on Dashboard Table let's say BO: BN. On Delivery and Collections Table only BO row should only appear. How can you do this in Spotfire?
Note: The three tables have a relationship via Code and Branch column.
Additional data:
Collections and Deliveries table takes its data from DB using parameterized SQL Query.
There are three parameters that needs to be satisfied so that the query will work and data will be retrieved these are
StartDate
EndDate
Branch
I don't have a problem with the Date parameters but with the Branch see below SQL Query
The branch parameter value is controlled by specifying/entering a value on the input field on text area.
Deliveries and Collections table is configured to refer to this value to display the data.
The suggested solution worked great, but I have this extra dependency which makes it a bit more difficult to work out a solution. Do you have any ideas on how to go about this?
#dimas- One way to do this is creating detail visualization tables for Collections and Delivery from 'Dashboards table'.
Assuming that the three tables have relationship, please follow the below steps.
Step 1: Right click on Dashboards table and select Create Details visualizations -> Table. It prompts you to select a table, select 'Collections' tables.
Step 2: Repeat Step 1. But, this time select 'Delivery' table.
The Dashboards table now controls what data to show in Collections/Delivery tables based on the row selection.
Output:
Please ensure that you right click on the table and select Properties > Data > All data for Collections and Delivery table (screenshot below) if you want to show all rows if nothing is selected in Dashboards table.

How to create m2m relationship in PowerPivot

So I am trying to link an employee metrics pivot chart with an employee project table with one slicer. I want an employee slicer that manipulates all charts but the data is coming from 2 different places (SQL, Sharepoint). When I try to create a relationship based on Employees I get the following error: "The relationship cannot be created because each column contains duplicate values. Select at least one column that only contains unique values."
So one chart has quantitative items while the table has qualitative items and I want one slicer to manipulate both at the employee level.
I want to see all the data on both charts for the selected employee, and not just single items linked by unique values. I can use unique values, and have created relationships that one slicer can manipulate however I only get one record at a time that way and therefore the slicer has thousands of buttons (one for each record).
I wouldn't think this would be that difficult and I hope it's really not.
Please Help!
M2M relationships in PowerPivot will most likely cause more headaches than solutions unless you are aware of what you are doing. After some thought, I realized that I really do not want an m2m relationship because it would result in junk data for what I wanted. I just wanted to start my answer off acknowledging that I did not achieve an m2m.
So if you want to link SharePoint data to Excel here is what you need to do:
Export SharePoint data as an RSS feed. If this is something others will need to refresh then the rss file will need to be stored on a shared drive.
Add PowerPivot if you have not already done so. In PowerPivot get external data from other sources (rss feed) then add your file. To link data you will need a Unique ID to join tables on.

Cognos error -Data items cannot be moved to a data container that uses a different query

I have two lists on my report page. In report studio, I am trying to drag one list on top of the other with the intent of creating a master detail relationship between the two lists.
I am getting this error:Data items cannot be moved to a data container that uses a different query. But when we link two data items through a master detail relationship, the data items will always refer to different queries. No?
I always do this by putting all of the detail/header data into one list, then pick a header column and click 'section'. Then unlock the list and drag the remaining data items into the header

Core Data Relationship shown in tableView

I am developing an application with a tableview showing the content of a core data table.
The datamodel is something like this:
Entity(name, code)->>Translation(text, code)
I retrieve all the entities using the usual NSFetchedResultsController, but then once is time to populate each row (through tableview cellForRowAtIndexPath:) I have to dive into each entity to retrieve 2 translations based on the code inputed by the user. I am using a NSFetchRequest to do that but I was wondering if it is the right thing to do (one fetch request each time I populate a row).
Instinctively I would retrieve all the data I need in the NSFetchedResultsController, instead of searching for each translation each time I populate a cell, but I cannot figure out how.
Do anyone has some advice, or maybe some interesting links?
If each cell must display the Translation objects related to each Entity object, then you only need to walk the relationship from the fetched Entity object to the appropriate Translation objects.
Once you've fetched the Entity objects and then structured the table to display them, then to access the values in the translations for each cell row like so:
NSSet *translations=[anEntityObject valueForKey:#"translations"];
... which returns a set of Translation object for the Entity object represented by the tableview row.
As a very general rule, you only do one fetch per tableview. A table view should be configured to display data related to one particular entity.

Resources