Adding subform instances within subform instances

In this form (attached), the user chooses a type of page to add by clicking the buttons pagebtn, discussion, assessment, or dropbox. When they click this button, an instance of SBtemplate.Pages is created, but only the subform they requested (page, discussion, dropbox, assessment) appears. So, while the user only sees the page type they requested, they are actually seeing a subform within another subform.
The problem I am having now is that I can't create instances of subforms within these. For example, in the page subform, I need users to be able to create instances of the image, audio, and video subforms. And in the discussion subform, I need the user to be able to create an instance of the customrubric subform. I think this is not working because I need to specify the instance of SBtemplate.Pages in the code calling the instance manager.
Is this a correct assessment? If so, how do I do that? If not, what can I do to accomplish this action?
Thank you!

I figured this out, so I wanted to post my form in case anyone is having the same problem.
This is an example of a click event within one of my subforms to create an instance of another subform:
xfa.resolveNode("xfa.form.SBtemplate.Pages[" + (this.parent.parent.parent.index) + "]").page._image.addInstance(this.parent.index);

Similar Messages

  • Subforms within subforms add Instance problem

    Hi
    I am new to Adobe Livecycle Designer (I am using version 8.2.1) but I have successful made nearly all elements of the quite long form I need to produce except for one section I am having difficulty getting it to function correctly. In the example I have a repeating subform ‘Organisation’ on page subform ‘Membership’ which has buttons to add and remove instances, which work correctly. But within each instance of this ‘Organisation’ subform is another repeating instance subform ‘ExpertNames’ with buttons to add and remove instances.
    The ‘Organisation’ form allows an organisation to be named and the ‘ExpertNames’ subform allows multiple members for that organisation to be named and associated to each organisation. The user should be able to list multiple organisations each with one or more members. I can successfully add multiple instances of ‘Organisation’ form one after another using
    Membership.Organisation.instanceManager.addInstance(1)
    and remove the selected instance using
    Membership.Organisation.instanceManager.removeInstance(this.parent.index)
    I have the following set on the button to add a new instance of the ‘ExpertNames’ form
    Membership.Organisation.ExpertNames.instanceManager.addInstance(1);
    and the following to remove the selected instance of the 'ExpertNames' form
    Membership.Organisation.ExpertNames.instanceManager.removeInstance(this.parent.index);
    However when I add a second instance of the ‘Organisation’ form i.e. a new organisation and try and add additional members to the 2nd organisation it adds them to the 1st organisation rather than the second! I have an example of the problem form i can send if needed.
    Hope someone will be able to help with this.
    Many thanks in advance
    Lara

    I still have not been able to find a solution to this does anyone have any ideas?
    I have an example of the problem in a form that I can email.
    Many thanks in advance
    Lara

  • Copy to new instance of subform

    What I am looking to do is to copy a field and when a new instance of a subform is created past it to another field.
    When a user clicks the transmit button, the transmit button opens a new instance of the form.  I need the Sent To field to populate the Reviewer field on the new instance.  Is this a possibility?

    Hi,
    This should add an new item to the reviewer dropdown and set its rawValue:
    // script to add instance of subform
    // count the number of instances zero based numbering
    var lastRow = _mySubform.count - 1;
    var 2ndLastRow = lastRow - 1;
    var oItem = xfa.resolveNode("mySubform[" + 2ndLastRow + "]").sentTo.rawValue;
    // add the item to the dropdown
    xfa.resolveNode("mySubform[" + lastRow + "]").reviewer.addItem(oItem);
    // set the rawValue
    xfa.resolveNode("mySubform[" + lastRow + "]").reviewer.rawValue = oItem; 
    However this won't check for duplicates. Steve has a good script for this: Drop-down list automatic add-on
    Good luck,
    Niall
    Assure Dynamics

  • Unable to position instance of subform

    I am able to add a new instance of subform during runtime but it's not positioned properly meaning as it grows it add the form on another subform.
    Any idea how to fix this problem?

    Hello, can I see your code? I have a similar question and would like to compare my script with yours. Are you using JavaScript?
    Regards
    Harold

  • Creating New Entity Instances within OPA

    This is another one that I think I know the answer to, but I think it is best to confirm.
    In prior versions, it was not possible to create entity instances within RuleBurst/Haley Office Rules. Is that still the case in OPA?
    For example, my rules are determining the status of a case and the reason(s) why that status was determined. The case status may be Denied and the reasons may be "invalid customer Id", "expenses to income ratio too high", "primary customer not employed long enough", etc. I want to return all the reasons for the status. While the list of reasons is pre-determined, the ones that apply to a particular case are dynamic, as any, but not all can apply.
    Given this situation using a database, I would create an instance of reason for each applicable one and link it to the case. In the past, with OPA's predecessor(s), it was not possible to create new instances from within. They either had to all be passed into the rulebase or a list of all allowable reasons attributes had to be created and then set to true for the ones that applied.
    My preference is to create the instances inside OPA. Is that functionality provided in the current version?
    Thanks,
    Terry

    Hi Terry,
    Michael is correct that you can't write rules at design time which will dynamically create new entity instances at runtime. However, perhaps the new inferred relationships functionality in v10 could address what you're trying to do.
    You can write rules which conclude membership of an inferred relationship. So you might always have, say, 10 instances of 'the reason' in every case, but as for which of those instances apply in any particular case, it depends on the details of the case. You could use an inferred relationship to collect up the entity instances which apply in the case.
    First you'd need to set up a regular one-to-many relationship to instantiate the 10 instances at runtime - this would be done in the usual way. Then you'd also need to set up an inferred relationship and write rules to conclude the members of the inferred relationship. The instances which are members of the inferred relationship are then effectively the list of entity instances you wanted to create in your example above.
    Have a look at this OPM Help article: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm
    Cheers,
    Jasmine

  • Grab from an instance within split join

    Hi All
    I have a process, and every now and then a user from role 'G' wants to grab the instances of a process (that may exist in any activity) to one of his activities, say 'AAG' (Activity After Grab :)). The Grab activities properties are defined so that it can grab instances from 'All' activities and then assign to 'AAG'.
    You can visualize the process like this:
    Activity A1 --> Split ----> branch 1 after split forwards to Activity AS1, brach 2 after split forwards to Activity AS2 ---> join ---> A3 --> A4 ---> AAG --> A5 ---> end
    Now when an instance has executed the split, the main instance waits at join. THe child instances are each at activity AS1 and AS2.
    When a user wants to grab this instance, the idea is that AS1 and AS2 should disappear, the instance at join should go to AAG.
    To realize that, if I try to grab the instance waiting at join, I can move this to AAG. However instances at AS1 and AS2 still remain there.
    If I try to grab instances at AS1 or AS2, I can not send them to AAG.
    Any workarounds?
    I am basically using PAPI to get hold of the instances. Was thinking of grabbing the instance at join, and terminating all others. But am looking for a better solution.
    THanks
    Satinder

    Hi Dan
    You are right, this might be an option (I have not yet tried it though). But I guess it still might not be the best option because -
    1. This user can grab instance in any activity and assign to AAG. Now if an activity is not within split-join, then we dont really need to interrupt the instance and call this message activity, a grab works fine. Message activity will also work fine, but that would mean that for every activity in the process I will need to add a conditional transition (executed when flagToGoToAAG = true) that goes to AAG.
    2. We got a little more than usual complex process. It has about 6-7 splits. Also there are about three Grab activities. This would mean about 7*3 additional transitions originating from different joins.
    I was looking for a solution may be that can process/abort all instances within split-join when the instance at join is grabbed.
    Thanks for your help.
    Cheers
    BTW, I have never used a MessageWait, in case this becomes the only option available, could you let me know how to create an interrupt from PAPI for this messageWait.
    Thanks a lot
    Best
    Satinder

  • Using i-setup, how to migrate EBS configuration from one Business Group to the other within the instance?

    Using i-setup, how to migrate EBS configuration from one Business Group to the other within the instance?

    Sandeep,
    Yes, I think your command format is not correct.
    Try the one that Rod posted.
    About the note on metalink. It seems that it is under review.
    Here is the basics of the note:
    1. Determine the owner of the workbook. Say UserA.
    2. Open an sqlplus session to the database.
    3. Run the following sql:
    SQL> set heading off
    SQL> set feedback off
    SQL> set echo off
    4. Now spool the result of the following sql to a file.
    SQL> spool c:\exp.bat
    5. Run the sql statement
    NOTE: CHANGE DISCOE_HOME
    SQL>select '<Disco_Home>\discvr4\dis4adm /connect
    EUL_owner_name/passwd@connect_string /export c:\'||rownum||'.eex /workbook "'||
    doc_created_by||'.'||doc_name||'"' from
    SELECT EUL4_DOCUMENTS.DOC_NAME, doc_created_by, NVL(EUL4_EUL_USERS.EU_USERNAME,
    'Document Not Shared') shared_with
    FROM EUL4_ACCESS_PRIVS EUL4_ACCESS_PRIVS, EUL4_DOCUMENTS EUL4_DOCUMENTS,
    EUL4_EUL_USERS EUL4_EUL_USERS
    WHERE ( EUL4_DOCUMENTS.DOC_ID = EUL4_ACCESS_PRIVS.GD_DOC_ID(+) ) AND (
    EUL4_EUL_USERS.EU_ID(+) = EUL4_ACCESS_PRIVS.AP_EU_ID )
    where doc_created_by='UserA'
    where,
    Disco_Home is the Location or Discoverer 4 Home.
    4. SQL> spool off
    5. SQL> set feedback on
    6. Now run the batch command file (exp.bat)
    Regards
    Roelie Viviers

  • Beginner needs help with subform inside of subform

    I need to add a few different subforms depending upon the answers given in the form.  The first level is phase. Then they answer the question does this phase have tasks?  If yes then I want the tasks subform to appear.  If no then I want then I want the working org subform to appear.  After they answer then they have the option of adding another phase and starting the process again.  I have the phase adding again, but cannot figure out to have addtional subforms in between the phases.  Any help or examples would be greatly appreciated.
    Thanks!

    The answer to this depends on how the content of the  tasks and working org sections are organized.  Since each phase entry is set up as a table that's in a row of a parent table, the only way to insert a section under the phase would be to add a row.  You can add a row for tasks and a row for working org after the phase row, so that every time you insert a phase you'll get both.  Set them both to hidden, and unhide the appropriate row based on the answer to the "tasks" question.  The only issue is that if your task and working org info is complex it'll be tricky to format all of the info as a table row.  This can be done by making your row one cell wide (full width of the row) and setting that cell content to a subform, then adding all of your info into the subform.  However if there's a lot of data then the row constraint may be an problem.
    The other method would be to convert the phase section to a subform, then have three child subforms inside: phase, tasks and working org.  The idea is the same as what you're doing now, but you're using subforms rather than table rows.  You can add instances of subforms the same way that you add instances of table rows.
    I wired up your example using rows; see the attached form.

  • Add instance before existing instance

    Hello all,
    is there a way to add a new instance of a Subform to show in a top the existing subform? the way it works now when you add a click on button to add a subform, the new subform shows under the exisitng subform and so forth, every time I add a subform it goes to the bottom. I want the opposite to happen where new subforms, always show in the top of old subforms.

    It depends on where you want the subform to actually go.
    Suppose you have a button inside a subform and you always want the new subform to go on top of the entire stack of subforms:
    this.parent.instanceManager.insertInstance(0);
    If you want to add it right above whatever instance you're working on, then this code will work:
    this.parent.instanceManager.insertInstance(this.parent.index);
    Note: You'll need to add or remove reference points depending on what you're using to trigger the event, of course.

  • Error while creating the view from one instance to another instance

    Hi Experts
    I want to Create a view which reside in one instance for example xxx Instance . I want to create the same view which reside in xxx instance to another instance for example YYY Instance How to acheive this ?
    I tried desc the View take the view script from XXX instance and copied the view script to YYY instance when I compiled Iam getting an Error
    For Example My view in XXX Instance
    CREATE OR REPLACE FORCE VIEW xxx.sample
    First_name,
    last_name
    as
         select "F_NAME",
                 "L_NAME"
         FROM  EMP;When try to copy and compile the same view in my YYY Instance
    i am getting error
    ORA: table or view does not exist
    Advance Thanks
    AT

    A.T wrote:
    Hi Experts ,
    Thanks For all your valuable information I amTrying Of DB Link i think so
    As per My understanding If wrong anywhere please advice me
    Here Instance is Like : One DB 10g divided into several Instance like (test , devlopement , production Instance)
    Now hope i ll make my req clear .
    Coming to my reqirement
    the actual table EMP is in xxi.TEST (Here xxi => Schema and test is an Instance )
    I want to create the view which is based on by table EMP which in my test instance to devoplment instance
    For example xxo.development (here xxo => Schema and development is an Instance )
    Need to access the xxi schema in Test Instance How can I create a DB Link please share your ideas and advice me
    Advance Thanks
    ATIt's still not at all clear, but let me outline what I think you are after
    Given a database, ORCL_A
    In database ORCL_A we have a schema, HALFTRACK
    User HALFTRACK has a table, MYSTUFF
    Given a database, ORCL_B
    In database ORCL_B we have a user GREENBRASS
    User GREENBRASS needs to be able to query the table HALFTRACK.MYSTUFF.
    In database ORCL_B, as user GREENBRASS
    create database link mylink
    connect to halftrack identified by halftracks_pswd
    using ORCL_A;
    select * from mytable@mylink;The db link defines a connection specification to ORCL_A, using the credentials of a user on ORCL_A. The target of the USING clause in the link definition must be an entry in the tnsames.ora file on the server hosting database ORCL_B.
    When querying through the link, database ORCL_B is simply acting as a client to ORCL_A, no different that a sqlplus session on ORACL_B's server. As far as ORCL_A is concerned, ORCL_B is just another client requesting a connection, connecting with the credentials defined in the link definition.

  • Difference Between central instance And application instance

    Hi every body can any one tell me that
    what is the difference between Central instance and Application instance.
    If i am using 4.7 ee with orcale data base.

    Check these links
    http://oreilly.com/catalog/sapadm/chapter/ch01.html
    Basically these terms comes when you are working on live servers where all the users log into to do their daily work.
    We says when we want to distribute the workload on servers we requires central instance and application servers.
    Normally it is not known to common users where they are logging into...but they can login directly usign the specific Instance details of servers.
    Please see this also
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a64e8505211d189550000e829fbbd/frameset.htm

  • How to remove one sap Instance where 2 instance running in same server

    How to remove one sap BW Instance from server where 2 instance running in same server.
    We have 2 BW Instances ( QW1 and CW1) running in the same physical server (windows 2003 + MSSQL). Now we want remove one Instance from the server completly. Could any one give steps or procudure which we should follow to remove one instance without disturbing another one. Both instances are Central Instances.
    SAP System component version: SAP NetWeaver 2004s (2007)
    Please help me in this...let me know if you need any more inforamtion.
    Thanks in advance.
    Sridhar

    Hi Sridhar,
    You can definitely remove an instance completey. When you select uninstall option using sapinst, it will give you a list of running instances on the node using profile files.
    You can select which one to uninstall.
    Best Regards
    RAGHU

  • Migration of code from one instance to another instance

    Hi OAF Team,
    i want to migrate the (OAF)code form one instance(test) to another instance(Dev), what is the procedure and how can i migrate from one instance to another instance.
    could you please solution for this.
    Regards,
    Muthu

    Hi
    General procedure is to zip all the java & xml page files and copy to dev instance. Then you can write a shell script to extract the zipped files and place it in appropriate locations.
    If there are any AOL objects defined by you, then you need to include that in shell script
    Regards
    Ravi

  • Hi Experts, how to create a subform after a subform?

    Hi Experts,
    does anyone know how to create a subform after a subform? thanks in advance!
    Kind regards
    Dawson

    Dear everyone,
    does anyone know the answer? thanks in advance! and the subform is in the content node, and at this time I have another question that is the content used in the pages of master page automatically? because there is a untitled content area in the pages of master page, can anyone give some tips?
    thanks.
    Kind regards
    Dawson

  • Creating a subform to existing subform

    Hello to all,
    I am new to oracle express and impressed with its capabilities...
    After creating ordinary parent child form and subform I would like to add yet another level subform to existing subform.... In another words I would like to add the third form that is dependent to existing child form on my page.
    The wizard supports only two levels of relationship parent-child.
    How can it be done,
    thank you
    edo !
    Message was edited by:
    user492764

    Brian,
    You can use the following javascript syntax to open a document on local drive:
    xfa.host.gotoURL("file:///C:/yourdocument.pdf",1);

Maybe you are looking for

  • Wireless repeater using wrt54g and wap54g

    i am having problems connecting my wrt54g and wap54g as wireless repeater. my setup is as follows: 1. wrt54g (192.168.1.10) is connected to a dsl provider modem/router (192.168.1.1) (dhcp server). With this setup i do not have any problems connecting

  • Performance test planning:  timing

    Hi folks, I'm wondering if anyone has suggestions or input on the timing of test planning specific to performance testing. In particular, how far in advance is it recommended that performance test planning would begin in reference to the intended tes

  • System will only boot with 1 x DDR DIMM stick!

    Hi guys, Recently upgraded to a K8T Neo (VIA K8T800) however when I try and run the system with 2 x DIMM's (TMC 512MB PC3200) it doesn't boot and I just get audio beeps.  I have tried all the DIMM sockets and it still does the same thing.  It does wo

  • Regarding basic idea of SAP GUI

    Hi friends,                I am a fresher in sap family joined before 6 months. I would like to know about basic knowledge of SAP GUI especially its definition. When i searched in Google i didnt get apt information regarding it. So please help me to

  • Can you have more than one ipod on the same computer?

    me and my sister live together and we would like to be able to have two seperate libraries on the same computer. one library is already there and when the second ipod is plugged in, it comes up as a sub-library that is unacessable.