$expand multiple child entity sets on master item selection

Hi,
I have OData service with following entityset structure:
Deals                       -> Master
   Systems               -> Detail
   Documents           -> Detail
   References           -> Detail
On Master view, I am displaying list of Deals. And when user selects any particular Deal from master view, it should show Systems, Documents and References list on details view.
Problem is its calling OData service 3 times, each for Systems, Documents and References. I want to fetch all these 3 details in one call.
I know we can use $expand. I have written following code in Master view for select event of List. And I notice its fetching data correctly here.
handleListSelect : function (evt) {
  //alert("context.getPath(): " + context.getPath());
  var context = evt.getParameter("listItem").getBindingContext();
  var oModel = this.getView().getModel();
  var newContext = null;
  oModel.read(context.getPath(), null, {"$expand":"SystemCollection,DocumentCollection,ReferenceCollection"}, false, function(oData, oResponse){ 
   var model = new sap.ui.model.json.JSONModel(oData);
   newContext = new sap.ui.model.Context(model, context.getPath());
  this.nav.to("Detail", newContext);
And in App.controller.js following code is written to set the context binding.
to : function (pageId, context) {
  var app = this.getView().app;
  // load page on demand
  var master = ("Master" === pageId);
  if (app.getPage(pageId, master) === null) {
   var page = sap.ui.view({
    id : pageId,
    viewName : "test.demo.view." + pageId,
    type : "XML"
   page.getController().nav = this;
   app.addPage(page, master);
   jQuery.sap.log.info("app controller > loaded page: " + pageId);
  // show the page
  app.to(pageId);
  // set data context on the page
  if (context) {
   var page = app.getPage(pageId);
   page.setBindingContext(context);     // Data is coming correctly here
And in Detail view item mapping is done:
<Table id="IbOverview" headerText="Systems"  items="{path : 'SystemCollection'}">
<List id="AttachmentList" items="{path : 'DocumentCollection'}"
<List items="{path : 'ReferenceCollection'}" headerText="Document References" >
I notice data is coming correctly in context but still Details view making individual calls for fetching Systems, Documents and Reference data. Am I missing something?
Regards,
Vikram

Hi,
          You link more than one Child table to a header table with document type, through code. It is highly possible.

Similar Messages

  • Multiple "Child Regions" in a Master Detail Page

    I have a table that has 4 small tables with foreign key relationships to the main table. I would like to present all of these tables on a single web page form for update.
    Is there a way to do this through the create page wizard?
    If not, what would be the recommended way to accomplish this?
    Thanks,
    Reid

    There is no standard for that. You can do that by following this example:
    http://apex.oracle.com/pls/otn/f?p=31517:163
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to set by code items selected in  listbox

    I have a listbox in which user can make multiple selections.And I have a button which make a specific action but it is clicked I want that the selected Items in the listbox remain selected.
    Due to the fact that the page is reloaded after the click on the button the listbox is populated without having any selected item.
    How can I do this please.
    Thanks in advance.

    I'm not positive I understand your question completely but I am going to take a guess that your asking how to make a command button do its action while not affecting your listbox.
    This is really a tricky problem because i'm assuming these two components are sharing the same form.
    The easiest solution would be to create two separate forms for each. The solution for a single form would be to capture the state that the listbox is in which is a little more difficult.

  • How to set particular comboBox item selected once frame loaded?

    I have a comboBox with all the items with data and labels
    (set in the parameter of comboBox). However, I can't set the
    particular comboBox item to display when the frame entered, like
    this:
    var listenerObject:Object = new Object();
    listenerObject.load = function(eventObject:Object) {
    _root.cb.selectedIndex=3;
    _root.cb.addEventListener("load", listenerObject);
    What's wrong?

    You cannot use the load event on a frame, because by the time
    the code runs the component has already been loaded. But what you
    can do is set the properties directly in that frame wihtout the
    need of a listener. Simply write this,line instead of all the
    previous code:
    _root.cb.selectedIndex=3;

  • Parent Child Value Sets for Item Categories

    I've tried to set up parent-child value sets, not independent-dependent sets for Item Categories but in vain. So, if Item Category has 2 segments - Category & Sub-Category; Sub-Category only shows valid values for a category. For example, if Category is 19 (Tools), the LOV for 2nd segment would only show 28 (Large Tools), 29 (Heavy Tools) etc.
    Creating an independent-dependent combination displays all values for the independent & dependent sets.
    Just looking for help here.
    Thanks,
    Sanjib

    Karthik, Sandeep and Hugh
    Thanks for your responses. We greatly appreciate you taking the time to reply to this thread. My e-mail is [email protected], that is if you'd like to send any documents.
    Basically, this is what we were looking for -
    The category structure is
    Equipment 1 - Spare 1,
    Equipment 1 - Spare 2,
    Equipment 2 - Spare 1,
    Tools - Large,
    Tools - Small,
    etc.
    When selecting Codes for this structure, if I choose 'Equipment 1' for 1st segment, LOV for 2nd segment would only show 'Spare 1', 'Spare 2'. Similarly, If I choose 'Tools', I only see 'Large', 'Small' for Segment 2.
    Thanks,
    Sanjib

  • Problem in Set GLby in Item Master

    Dear All,
    I am facing problem in set GL by method in item master, In my master I have defined some items with warehouse determination, some items with Item group determination and few items with Item level determination.
    but in case of items for which i have set GL by item level are automatically changes to item group as i have determined GL at item level and my item group GLs are blank system wont allow me to transact as there is no account in item group and anyway it is not desired .
    anybody has faced problems like that and what would be the possible solution
    Thanks,
    Regards,
    Atul Joshi

    Hi Atul,
    >>  I am facing problem that in Item master "Set GL By" changes from Item level to Item Group automatically
    I am not sure whether my reply will be of any further help to you or not!
    However, would you please check whether this behaviour is also reproducible in demo database (say OEC computers) or any other database on the same server environment.
    If you are able reproduce the same problem in all databases that are configured in your current server environment, I recommend to report the issue to support via a ticket (if not created already).
    If the problem is with only one database then as already recommended by other experts on this thread:
    1. Comment all user code in Stored procedure
    2. Verify if any formatted search queries are active on Item Master (like auto number generation, like ...)
    3. Is there any add-ons that are active on Item Master
    Would appreciate if you also write back whether you are not able to update on change of "Set GL By" (or) it is getting changed automatically from item level to Item group.
    Good Luck.
    Regards
    Satish

  • How to update child item expense account as master item expense account

    Hi,
    As my master item expense account is not as same as child item expense account, I want to update
    child item through item import program, what should i do, please suggest
    thanks in advance
    Regards,
    Dhananjay

    Actually, here is a better way.
    insert into mtl_system_items_interface
    (process_flag
    ,set_process_id
    ,segment1 ,expense_account
    ,organization_code
    ,transaction_type
    (select
    1,67890
    ,msi.segment1 ,msi2.expense_account
    ,mp.organization_code
    ,'Update'
    from mtl_system_items_b msi,mtl_parameters mp, mtl_system_items_b msi2, mtl_parameters mp2
    where mp2.organization_id = mp2.master_organization_id
    and mp2.organization_id = msi2.organization_id
    and msi2.inventory_item_id = msi.inventory_item_id
    and msi.organization_id != msi2.organization_id
    and nvl(msi2.expense_account,0) != nvl(msi.expense_account,0)
    --and msi.segment1 ='&item_num'
    And then run item import for set_process_id=67890
    Hope this answers your question
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant

  • Trying to assign multiple category sets to an item

    Trying to assign multiple category sets to an item-- i created a new category set and went to set it as the default set for Order Management. Receiving this error:
    category set is defined with Multiple Category Assignment flag set to yes. Order Managment functional area can be assigned only category sets having Multiple Category Assignment flag set to No.
    Is this a setting that I can change??

    If the item is in transit, I'm not certain there is a way that you can do this. It will be delivered to the person at address that is on the postage label. If there is Signature Confirmation selected on the parcel, it might be held somewhere until you pick it up, though. Since you are registered to ebay in Australia, it might be best if you contact Australia Post with this question. We can only answer with our experience in dealing with Canada Post and the couriers here. And do be sure to update your addresses with both ebay and paypal to prevent this from happening in future. Best of luck to you as you carry forward.  Sorry, that is assuming you are the receiver and not the seller. 

  • Cannot change to 2 way matching after change Master Item setting

    Thank you in advance for your help. I need to change the match method for an item to 2 way matching. I go to Master Item->Purchasing, in invoice matching section I set both Receipt Required and Inspection Required to NO. When I do Auto Create, the order is still set as 3 way setting.
    I thought the setting on item level will override other level setting so I assume the purchase order should automatically go to 2 way. But why it is not? Is there other settings I need to check? Or is there something in the requisition need to change?
    Thanks. -Bill

    Hi S.P DASH,
    Thank you very much for the information, I checked the setup at the supplier level. Here is what I did: Goto Payable Responsibilities->Suppliers, And looks none of these following are setup, am I in the right place?
    Enforce Ship-To Location  
    Receipt Routing  
    Match Approval Level  
    Quantity Received Tolerance  
    Quantity Received Exception  
    Days Early Receipt Allowed  
    Days Late Receipt Allowed  
       Allow Substitute Receipts
       Allow Unordered receipts
    Receipt Date Exception 
    Thanks
    -Bill

  • Expand Multiple Version Sets

    I just upgraded to PSE9 from PSE6.  I am doing a little housecleaning and need to move many many many files.  Is there a way to select a whole bunch of pictures and expand all the version sets in there?  For instance, if a find by a date range, then find all version sets, now I would like to 'select all' and be able to expand the version sets.  Not Possible???  Doesn't seem to be.  Any ideas how I can use a workaround?

    99jon a écrit:
    It’s not a bug
    How do you know?
    Your expectations are simply unrealistic.
    That's not the answer. I know there are a number unrealistic expectations with the organizer. Let's see if it's the case here.
    What's the problem ?
    It's very different from the original subject, not about expanding multiple version sets.
    It's simply about trusting, or the limits in trusting in the 'file/move' function of the organizer, which is a subject you'll have seen discussed many times, and for which I have never seen a clear answer. On the other hand you have seen hundreds of times the advice to use the organizer move feature instead of doing this outside of the organizer. Where is the truth? It's not because I have personally never met a problem with the move feature that it can work in all circumstances, in all versions and OS.
    The reported behaviour is that the algorithm plays nicely and ends without warning nor freezing after skipping many files. This is very unusual, but it seems to be repetitive in a given environment (we don't know the details of...) This hints rather at a 'bug' in the algorithm rather than a compatibility problem with the OS or an available RAM or disk space, but we can't know without searching further.
    You'll note that the move feature is a basic and fundamental argument in favor of a database management system : it's not anecdotic, so it is just natural to expect it does work properly.
    If there are limits in the conditions the move feature can work properly it's realistic to expect to know them. And if those limits are known to the developers, something should be done to warn the user and avoid program crashes or false results.

  • Gateway service with multiple entity sets

    Hi,
    I have designed a Gateway service with 3 entities, and 3 entity sets.Entity sets are not related one to another. This entity sets correspond to static data stored in 3 different custom table in SAP. The aim of this service is to provide static data (but customizable on the backend) for drop down lists on a SAP UI5 application consuming Gateway services.
    I am wondering if it is possible through a single read operation, to retrieve all entity sets. Since the service URL to get data related to one entity set is /sap/opu/odata/sap/ZTEST_SERVICE_SRV/EntitySet, how should I process if I want to retrieve all 3 entity sets ? Is it something possible or do we have to call each entity set at once ?
    Thanks in advance for your help.
    Thibault

    Hi Krishna,
    I'd try and avoid a construct like this because I don't think it's very compliant or discoverable - you have to know how to access it. That's maybe acceptable for "internal" services, but really, we should try and use the protocol instead of introducing so many workarounds.
    It seems that the simplicity of OData on some levels makes people think they have got the wrong answer. It can get complex but something like a value list is pretty basic and shouldn't be subject to loads of different interpretations.   
    Batching GET's on the entities or using a grouping entity as per Andre's suggestion is what I'd be thinking of doing. I know that the former is used by some Fiori applications.
    Regards
    Ron.

  • How to set an application item when report column link is clicked?

    I am trying to set the short name of a bread crumb entry when I drill into a detail from an interactive report page.
    The master report has a column link with target = detail - "page in this application"
    I can pass page items through the URL and they are set on the target page.
    How can I set an application item before the target page is called?
    Is there a way to set a process before the link is followed?

    Kenneth,
    I'm not totally sure that I understood the question but, it soounds like you want to set the value of some page items on the page that is opened when you click a link on a column in the master window. Is this right?
    If so, you can achieve what you want by creating hidden page item(s) on the target page. In the master page, on which every column provides the link, go into Report Attributes, click on the link column and scroll down to the section labeled "Column Link" Within this section, set the link text to the current column value, e.g. #MASTER_REPORT_COLUMN_NAME_HERE#. Set the target to "Page in this Application" and pick the page number for the target window.
    Underneath this you will see a section to set set the value for page items. If you click the flashlight, you can search for the hidden page item that you created above. Use the same value to set it as you did the link text, i.e. #MASTER_REPORT_COLUMN_NAME_HERE#. Do this and let APEX take care of passing the values on the URL.
    On the child page, just set whatever control you want to dynamically pick up the value from the hidden field. For example, if you hidden field where named P4_CLEARER_NAME. You could set the title attribute to "Contact Information for &P4_CLEARER_NAME."
    You need the preceeding "&" and terminating "." around the name of you hidden page item to do this.
    -Joe

  • Update/Insert child entity record in siebel when a session is saved in WD

    Hi,
    We have a requirement where we need to create/update a child entity's record in siebel when user clicks on save session link in WD window after the rule execution. We are using IO mapping. Account is the parent entity and let's say B is the child entity.We are storing row_id of the new created B record in a field of Account BC(before the WD call we are creating a new B record).
    So, in the rule we need to update one field of B entity such that we can update the new created B record using EAI Siebel Adapter BS in the Policy Automation Save Session IO Post WF. We wrote like below.
    reason(B's field) = RejectionReason (Account's attribute) if
    ButtonOption = "Reject"
    and
    B's id = Account's field where B's row_id is stored for the new record
    but we found that we had to use rule table for this.
    We used the rule table like below(could not paste the table):
    rule_loop
    Reason
    RejectionReason     ButtonOption = “Reject”
    And
    B’s row_id = B’s row_id in Account
    Reason     otherwise
    It is setting B's Reason field for the particular record of B, but for rest of the B's records it is setting Reason to null although we do not want to change the Reason for rest of the B records.
    Could you please help us on this? Also how to navigate to the question screen directly if any attribute value is null? We added the screen flow but now it is directly showing the summary screen even if the attribute value is null.
    Thanks in advance!
    Regards,
    Subhradeep

    Hi Frank,
    Yes, the parent entity is "Account" and the child entity is a new entity(B).One Account can have multiple B records(1:M relationship).Before calling WD one B record is created for the Account and we are storing the row id of that record in Account BC.
    In WD screen we have dropdown where user can select "Reject" option for the product offered to him.
    user selects "Reject": in the next screen he will select the Rejection Reason and when he saves the session the Reason field of the new B record will be updated.
    We have created an IO to send data to OPA where Account is the primary BC.So if we can update the Reason of B in the rule(for the new B record) then we can directly use the IntegrationObject returned from OPA and use EAI Siebel Adapter BS to update that B record in Policy Automation Save Session IO Post WF.
    So we need:
    Update Reason for the new B record, do not update the Reason for rest of the B records.We had written in a rule table like below:
    rule_loop
    Reason
    RejectionReason     ButtonOption = “Reject” and B’s row_id = B’s row_id in Account
    Reason     otherwise
    (B’s row_id in Account, RejectionReason are global attributes for Account, Reason is the B's attribute)
    when we used the IntegrationObject in Siebel(after the save session) it is updating Reason of the correct B record(new one)...but for rest of the B records Reason becomes null(the otherwise condition). We do not need to update the Reason for the remaining B records.
    Please could you suggest us how to stop updating the Reason of the remaing B records in the rule itself?
    Thanks & Regards,
    Subhradeep

  • HT1692 Have recently installed itunes and outlook on a new computer.  Have multiple email accounts set up in Outlook tho only use contacts and calendar in relation to one of these. Cannot sync itunes with the correct contacts and calendars, Help!

    My new computer is 64-bit running Windows 7 pro, SP1 and Microsoft Office 2010 Pro Plus 32-bit
    My phone is a 4S runing iOS 6.1.3
    Very frustrated now that I have recently installed itunes and outlook on this new computer.  Everything worked perfectly ok on my laptop which was also 64-bit Windows 7 and running 32-bit Microsoft Office 2010 Pro.  I have multiple email accounts set up in Outlook tho only use contacts and calendar in relation to one of these. Cannot sync itunes with the correct contacts and calendars, when I sync the calendar and contacts are empty.  Not sure if there is any way to point itunes to particular address books and calendars.
    I have installed and uninstalled itunes 3 times and thank goodness have a backup
    Can anyone help please?
    thanks in anticipation

    I had my home computer set up to sync to work's Exchange server. It worked well, but I didn't like seeing work email messages and other programs trying to sync with my default Outlook folder, which was then the Exchange (& work related) .ost file. I know there are various ways to manage those problems using filters, view, subfolders, etc., but it was a hassle for me. I think it could work well for many other folks.
    For now, I have published my work calendar and subscribed to that calendar on my home computer. So I have view only access to my calendar on my home computer (and I can add/edit calendar items on my iPad (or Outlook Web Access) when away from work). This is not quite what I wanted, but it may work.
    It almost makes me long for the days when I used my Windows Mobile Treo to sync back and forth between exchange at work and outlook at home (but had many sync conflicts as a result).

  • Fetching master  item name and its  description in  oracle apps .

    Hi all,
    I have to fetch master item name,its description,ordered item name,its description for a sales order .
    Do any one know the table names and link or Query.
    Please help.

    I assume ordered_item_description is same as item description (in 11i)
    Yes - there could be a relationship between customer item and your inventory item.
    You can set it up by going to Inventory > Items > Customer Items > Customer Item Cross References
    Hope this helps,
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Dec 8, 2011 9:39 AM

Maybe you are looking for

  • Browse and handle jar files?

    I´m going to make a little app to help some morons I know. Pretty much what I want it to do is to make you able to browse files on your HDD and then move them into a .jar file. I know terminal commands for this but is there a way to make it really ea

  • Error while verifying the sample application in AIS 9.3

    Hi All, I am getting an error "Physical table TBC.sales does not exist" similar error for all other tables. Any one got similar error while creating sample application in AIS. Thanks Sudheer.T

  • Messages are stuck in "delivering" status

    Hi We are doing Async RFC to JDBC Scenario. Messages are successful from R/3 to XI but getting stuck at receiver jdbc adapter . subsequent message are also stuck because of this Below is the audit log of the message 2007-06-29 10:33:08 Success The me

  • How to ...Urgent !

    Assume index.html has querylot.jsp to query the oracle database to list 2 info. ; Lot_ID & Lot_Date. After it lists the information, users should be able to click on Lot_ID and take them to another (.jsp) page where it extracts more info about that l

  • Album Art and Gapless Playback.

    Is there a way to COMPLETELY JUST SHUT OFF THESE FEATURES they sllllllooooooooowwwwww everything down. Even shutting them down manually stinks. Jamie