Multiple repeating SubForms binding to the same data node

Having multiple repeating SubForms binding to the same data node : In our documents, many times we need to display information from same table in multiple locations. For example, if document displays information of Insureds on one page and information of drivers on another page, we need to create a LiveCycle document with two SubForms. Each SubForm needs to have a repeating binding to CommonInsured element in XSD.  LiveCycle Designer is not able to handle such case. We cannot have two subforms bound to the same node, ONLY in a case where repeating option is selected for data binding.
The only way I have found out is the following Javascript
//Get the data node from XML. You will find the code for this function in //JavaHelperFunctions library.
// InsuredDataRepeatingSubForm is a second subform.
//You need to manually add instances to this subform at the
//runtime and Insured data to each instance.
var insuArray = JavaHelperFunctions.getInsureds();
    var i=0;
    for( i=0; i<insuArray.length; i++)
       if (i>0)
var thesubform = this.InsuredDataRepeatingSubForm.instanceManager.addInstance(i);
              thesubform.InsuredName.rawValue = insuArray[i].fullName.value;
       else
               this.InsuredDataRepeatingSubForm.InsuredName.rawValue = insuArray[i].fullName.value;
Is there any way I can achieve directly using bindings since we are trying to minimize javascript that changes the layout of the form?
Thanks in advance!

Unfortunately not. I've spent countless hours/days trying to do the same thing. You have to use code. The form consumes all the data it can into the repeating elements until there is none left and it is not reused.
Here's a function I wrote just for that purpose. Feel free to use it:
function loadData(source,target){
target.setInstances(source.count);//set the target's subform instances to match the source's
for (var a=0;a<source.count;a++){//loop through each subform instance
  var sourceSubform=source.resolveNode(source.name.substr(1)).all.item(a);
  var targetSubform=target.resolveNode(target.name.substr(1)).all.item(a);
  for (var b=0;b<sourceSubform.nodes.length;b++){//loop through the children of each
   if (sourceSubform.nodes.item(b).className=="field" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching fields
    if (typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData)=="undefined" ||
     typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.body)=="undefined")
     targetSubform.resolveNode(sourceSubform.nodes.item(b).name).rawValue=sourceSubform.nodes.item(b).rawValue;
    else
     targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.loadXML(sourceSubform.nodes.item(b).value.exData.saveXML(),1,1);
   if (sourceSubform.nodes.item(b).className=="instanceManager" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching subforms
    loadData(sourceSubform.nodes.item(b),targetSubform.resolveNode(sourceSubform.nodes.item(b).name));
Just make sure the source and target subform hierarchies are identifal, same name and all. It will recurse down the tree and transfer source fields (rich text and plain) to their sister targets.
Kyle

Similar Messages

  • Multiple Purchase Requisition generate in the same date WHY ?

    Hi All,
    In MD04 Tcode for one Material No , I can see multiple PR getting generated for the same Date !! I would like to know based on what settings same date is appearing ?? and also please tell how to combine all this PR into one PR !!! Please guide me
    Thanks & Regards,
    Vinoth.

    Hi,
    Che on it:-
    Re: Third party Drop Ship
    Re: Single PO for Multiple PR
    Re: MD04 + Auto PR generation
    pherasath

  • Multiple MM schedule lines for the same date

    Hello All Gurus,
    I am facing a problem where the MM schedule lines are divided into various quantites for the same date. For example on 02/11/2010 the total quantity is 120, it is appearing in the below form in ME38:
    02/11/2010 - 40
    02/11/2010 - 40
    02/11/2010 - 40
    Although this is not an error, but my client is not happy with this. Can someone tell me why I am getting this error? Is it because of the rounding value that we maintain in MRP 1 view of material master record? Or is there any other setting that I am missing?
    Please let me  know. I would be very much thankful to you.
    Thanks and Regards,
    Umakanth

    Hi,
    Before changing the setup, note that sometimes it is beneficial to split one demand into multiple delivery schedules. Especially if the demand is bigger than equipment type (container/truck etc.). If you want to manage inbound transportation for such delivery schedules, it is much simpler to do this when each delivery schedule is not bigger than one equipment.
    Regards,
    Dominik Modrzejewski

  • Able to bind to the same port on twice with  setSocketOptionReuseAddress

    Hi,
    I am not sure wether it is bug in API or lack in understanding.
    I have a server , using Java networking API and I have set "setSocketOptionReuseAddress(true)" for "java.net.ServerSocket". Now I am able to start more than one instances of server with same port and IP.
    If I set "setSocketOptionReuseAddress" to false. second instance won't start an throws 'Address in user : bind exception".
    setSocketOptionReuseAddress is supposed to help only in socket "TIME_WAIT" situation, why is bind getting effected by this?

    I assume the original poster is on Windows in which case the SO_REUSEADDR socket option has different semantics for streams socket compared to other platforms. As the poster says, it allows multiple servers to bind to the same socket. Assuming this is a ServerSocket then the simplest solution would be not use setReuseAddress -- ie: leave it as its default value and everything should be fine. On Windows you can re-bind when a previous connection is in TIME_WAIT. On other platforms (Solaris/Linux anyway), the SO_REUSEADDR option is enabled by default for ServerSockets so the server can be restarted even if there is a connection in TIME_WAIT.

  • I have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device?

    i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine

    Itunes content and pics are NOT part of the backup that itunes performs.
    Backing up, updating, and restoring iPad, iPod touch, and iPhone software
    You should transfer any purchases from iphone regularly:  File>Transfer Purchases  , if they fail to be transferred when you sync.
    You buy one and only one download.  It is your responsibility to move/copy/backup your purchases.
    You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
    http://www.apple.com/support/itunes

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Can we with ligthroom  have the sofware set up on multiples computer mac and mc and share the same dat base library?

    can we with ligthroom  have the sofware set up on multiples computer mac and mc and share the same dat base library?

    No, a Lightroom catalog cannot be on a networked drive, and can only be accessed by a single user at a time.

  • Multiple reads of the same data from Multiprovider by Query (Bex)

    Hello, guys!
    We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
    Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?

    Hello Nikita,
    By "copy of a query" i meant something like this as shown below :
    *Kindly click on the screenshot for a better view.
    1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
    2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
    As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
    I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
    But this does not mean that this is wrong approach. There are various areas where you can improve for example :
    1) Either improve your BEx query if possible or use aggregates or something like that .
    2) Use the  Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
    Thanks!!
    Regards,
    Ashutosh Singh

  • Did being able to use the same data in multiple apps get added?

    In the new iOS 4.2, did Apple include the ability to use the same data, eg PDF files in multiple apps? I have several hundred PDF files that I want to use in three different apps.
    Or is it still the same, that you have to load up (and use valuable space) the same data again and again for EACH individual app?
    Thanks

    I don't know but think it would mean the PDFs must be stored somewhere on the device itself (like on a computer). Then also the apps must be designed to use the files from there. So a change in the iOS wouldn't be all that's needed.

  • Sending the same data to multiple receivers.

    Hi,
    In 7.1, I did a simple file-to-file scenario with mulitple receivers.I used only 1 Rcvr Det.(included multiple business components) and 1 Interface Det. without BPM and it works.I would like to know if there's any other way to send same data to multiple receivers without BPM and/or the approach used by me.
    Thanks,
    Vishal

    Thanks all for your replies. I did multimapping as suggested by couple of you and it works. Since it is required to send to 7 or more systems and the no. of fields to be mapped is huge, multimapping is time-consuming. So I would like to know if there's any other approach.
    @Ravi: can you please explain with more details regarding the approach suggested by you?
    Can someone explain why and/or how a mapping executes multiple times if we have multiple receivers getting the same data?
    And if there's any way to check(For Ex: Moni) if the mapping executed multiple times?
    Thanks in adavnce,
    Vishal

  • Events cannot have multiple exceptions for the same date

    I just starting getting this message and could not sync to one of my Google calendars. I'm posting this for others who might get the same problem.
    I didn't find the answer on these forums but did find it on this thread on Google:
    http://www.google.com/support/forum/p/Calendar/thread?tid=241155f758d9e2a4&hl=en
    Here's the important excerpt:
    "I had a client, who just had this same issue, nothing to do with Google cals.
    It was apparently, in my best guess, a corruption of the subscribed cal.
    *I did a get info on the cal, copied the URL, deleted the cal, then re-subscribed to it by pasting in the URL, and now it's working fine*."

    I've been having the same problem with my iCal calendars and the "Events cannot have multiple exceptions for the same date" error. Once it gets going, it uses up a lot of the CPU and resources. After reinstalling iCal, all my calendars were missing and I could not even resubscribe to them.
    I took my MacBook Pro to the Apple Store, and they were able to solve the problem by moving some of the iCal files from their existing folders out to the desktop, and reopening the program. That got it working, however, now I'm having the same problem again. So back to square one. Anyone else having this issue and know the cause?
    My setup is my MacBook Pro uses Entourage, use that calendar in my iCal. And I subscribe to two calendars my wife publishes on her Macbook. We're both using Snow Leopard.

  • Prevent multiple users from editing/approving the same form SPD 2013,SP 2013

    Hello all, I have a workflow with a to do task, the task is assigned to a group so any of the users in that group can go in and do a quality check on form data and approve it.  How do I prevent multiple users from working on the
    same form? do I just require check out? or is there a way to notify the rest of the group that a user has already started the quality check.

    The "Require Checkout" option is your best bet.  You can also enable the auto checkout on edit option to allow minimal effort on the side of the user.  Other users will then get the error message stating the item is checked out, if they try to
    edit it.
    If you'd like, you could add a workflow to the task list that triggers when something is changed.  That workflow can check if the item is checked out and if so, email the other users assigned to the task.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Trigger problem -- can't insert the same data into audit table

    Sir/Madam,
    I'm trying to use insert trigger with a 'long raw' datatype data for my audit purpose. Each time, the data of original table can be inserted correctly. While the trigger for audit table in which it contains almost the same data as original would failed. The error messages are some thing like following:
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    ORA-06512: at "CORPSEC.TI_ARCHIVE_PDF", line 9
    ORA-04088: error during execution of trigger 'CORPSEC.TI_ARCHIVE_PDF'
    If the column with 'long raw' datatype is taken out, then there is no error at all. I'm using Oracle 8i 8.1.6 for Windows NT and suspect there is bug in PL/SQL execution.
    The following are SQL text for the trigger:
    CREATE OR REPLACE TRIGGER "CORPSEC"."TI_ARCHIVE_PDF" AFTER INSERT ON "ARCHIVE_PDF" FOR EACH ROW DECLARE
    LOG_SEQ_NO NUMBER;
    BEGIN
    SELECT AUDIT_SEQ.NEXTVAL INTO LOG_SEQ_NO FROM DUAL
    insert into ad_archive_pdf (DOC_TITLE,PDF_FILENAME,CONTENT,DOC_DESC,AUDIT_REF_NO,AUDIT_DATE,AUDIT_MODE,AUDIT_BY)
    values (:new.DOC_TITLE,:new.PDF_FILENAME,:new.CONTENT,:new.DOC_DESC,LOG_SEQ_NO,sysdate,'I',:new.created_by);
    END;
    Any help on this. Thank in advance.
    Best regards,
    Ruijie

    See here for a discussion of how to incorporate LONG datatypes into triggers:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:635439::NO::F4950_P8_DISPLAYID

  • Query result shows the same data twice

    Hello All,
    I've created UDFs like Supplier Name, Supplier Address, and (Excise Details like)Supplier ECC No,
    Supplier Range.
    And I've created Query for Supplier Name and Supplier Address, and I assigned to FMS, Its working Correctly.
    I've created Query for Supplier ECC No. the Query is,
    SELECT  T0.[ECCNo],T1.[CardName]
    FROM CRD7 T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    WHERE T0.[ECCNo]  Like  '[%]'
    I saved the Query, and assigned to FMS.
    At this stage (i.e. Query for Supplier ECC No.) the above Query showing the same data twice.
    Please suggest to rectify the problem.
    Thanks,
    Pratheeviraj

    You can get rid of the duplicates by changing the query to
    SELECT DISTINCT T0.ECCNo,T1.CardName
    FROM CRD7 T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    WHERE T0.ECCNo Like '[%]'
    But it is always worth understanding why you are getting multiple records to check that you are getting back what you want.  I think you may be seeing this because CRD7 can have multiple records for a business partner - maybe one for each of 'pay-to' and 'ship-to' address?

  • 2 Repeating Frames based on the same group

    I have this report which contains 3 groups, I have the requirement to break the 2nd group so that I create a 'footer' based on the 2nd group.
    I have created 2 repeating frames (one which holds the account number, payment terms, currency) and the 2nd repeating frame based on the same group which contains the bank details
    My report looks like this:
    (1st Group)
    Customer xxxxx
    Address xxxxx
    (2nd Group)
    Account No xxxxx
    Payment Terms xxxxx
    Currency xxx
    (3rd Group -repeating)
    Trans id xxx
    amount xxx
    (2nd Group)
    Bank Details xxxxxxxxxx <--will only have one per account
    I had originally designed the report using 2 identical frame structure.
    e.g.
    Main
    Repeating Group Customer
    Repeating Group Account
    Repeating Group Transactions
    Footer
    Repeating Group Customer
    Repeating Group Account
    This format worked when the Main group did not go over a page. The 2 Account Groups were coordinated.
    When the Main group extended to more than one page, the 2 Account Groups did not match.
    The jest of what I am trying to do is a footer of the bank details be printed at the bottom of the page always.
    Any suggestions would be greatly appreciated!!!

    I didn't realise that this was such a difficult problem to solve. The requirements are quite simple (I thought)
    1) Query
    3) Groups
    a) Company
    b) Accounts
    c) Transactions
    My report needs to look like this:
    {page 1}
    COMPANY XXXXX
    ACCOUNT: 123
    Invoice ID Amount
    aaaaaaaaaa 111.11
    bbbbbbbb 111.11
    Sub Total 222.22
    --> To be printed at a predefined space on the physical page on each page. bold Bank Details for Account 123: xxxx bold
    {page 2}
    COMPANY XXXXX
    ACCOUNT: 456
    Invoice ID Amount
    aaa 10
    bbb 20
    ccc 30
    ddd 40
    ....<as many records that will force a second page
    --> but..this still needs to print!!!To be printed at a predefined space on the physical page on each page. bold Bank Details for Account 456: xxxx bold
    {page 3}
    zzz 100
    Sub Total 1000
    --> To be printed at a predefined space on the physical page on each page. bold Bank Details for Account 456: xxxx bold
    Say the next records in the query are for
    COMPANY XXXXX, ACCOUNT 789 with one detail record.
    COMPANY XXXXX, ACCOUNT 321 with multiple details records which will force a second page.
    What is happening at the moment is that the 2 repeating frames based on the Account Group,
    the first 2 pages will print out correctly, however, because the 2nd account goes over 2 pages and how I have this set the structure of the report (see above post), the bottom Account Group thinks that the account number is now 789 when in fact the top account group is still on 456
    I really hope that this is clearer.
    I am working on Reports 10g on a 10g database
    I have tried to create a ref cursor & separate the query to bring back bank details. but with no luck.
    A person had suggested that I create a separate frame and hold the bank details, which is fine. but as I previously stated, those bank details need to print on every page at a specific area on the physical page.
    If this might be of use:
    Repeating Frame Group Customer, Vertical & Horizontal elasticity Fixed
    Repeating Frame Group Account, Vertical Elasticity: Variable & Horizontal - Fixed
    Repeating Frame Group Transations, Vertical Elasticity: Expand & Horizontal - Fixed

Maybe you are looking for