Schema binding, add new subform instance

I'm creating a fairly simple form which has an unknown amount of grouped entries. I made a data connection to my schema and used "Generate Fields" to bring the fields into the document bound to the schema.
If I do this multiple times using each instance as a subform I can get a nice xml doc out of it ripe for digestion like so:
<root>
     <entry>
          <data1>
          <data2>
          <data3>
     </entry>
     <entry>
          <data1>
          <data2>
          <data3>
     </entry>
</root>
However, I don't know how many entries the client will be adding so I want to have a button that adds a new instance of the bound data as done manually before. I have been able to prove the concept with a static subform using _Subform1.addInstance(1) on a button.
When I try to apply it to the bound data subform, nothing happens, no error, no new instance. Also the Repeat Subform for Each Data Item area is greyed out in the Object Binding for the Schema-ed subform.
Does anyone have an idea about what's going wrong here?
Thanks in advance,
Kevin

Few things to check here.
1) The parent subform needs to be set to Flowed. Then you should get the Repeat Subform for Each Data Item enabled for you.
2) The form should be saved as dynamic.
Let me know if you still have issues. If so, send the form to [email protected] so I can have a look at it..
Thanks
Srini

Similar Messages

  • How to add new Java Instance to cluster in EHP1?

    I've installed the EHP1 (Beta 3.0) on a Windows 2003 box, and have figured out how to use the
    configtool to add server processes to the initially created Java Instance.
    What tool or process do I use to go the next step and add additional Java Instances to the cluster?
    Sorry if I've missed where the steps are already described, I've tried to find them.
    Walt

    Hi Dido.  Thanks for your pointer.
    When I started the installer, it gave me only the choice of the Developer Edition. Perhaps for this
    EHP1 Evaluation Version the Productive Edition is not yet available??
    The top line in the installer was "SAP Enhancement Package 1 for SAP NetWeaver CE 7.1 SDN
    Evaluation"
    The only next choice was "SAP NetWeaver CE Developer Edition"
    The two choices under this were "Custom Server Installation" and "Uninstall - SAP Systems or
    Single Instances".
    Will any of these choices allow me to add an additional Java Instance to the cluster?
    Thanks for your help ...
    Walt

  • How to add a new Portal instance in 10.1.2

    In previous versions of AS,were able to create new portal instances by running the portal configuration assistant like this:
    ptlasst -mode PORTAL -s <portal_schema_to_create> -c <db_conn> -p <password> -demo –report
    it was possible to have several independent portal schemas in one database, and it doesn't matter if it was the infrastructure database or a custom database. In this new release of AS (10.1.2.0.2) i didn't see anything in the documentation that refers this, i know that ptlasst was replaced by ptlconfig, but ptlconfig does not have any option like that one, or at least not that simple (with a little effort i was able to see what were the commands that repca executes to create a new portal, and changing them and executing them agaim i was able to create new portal schemas, but i dont believe that this is the rigth way to do it, its too hard).
    Does anyone now if its possible to add new portal instances in the same database in AS10.1.2.0.2?
    Thanks in advance,
    Tony Cruz

    You may want to refer to the Oracle Application Server Installation Guide for more information. Chapter 6, "Installing OracleAS Infrastructure" provides information about creating a new Metadata Repository in an existing database and in a new database.
    To access the installation guide, go to the Oracle Application Server Documentation page on OTN:
    http://www.oracle.com/technology/documentation/appserver.html
    Under the 'Release Notes, Installation, and Upgrade Documentation' section, click 'View Library' for the platform on which you are performing the installation.
    Message was edited by:
    lrajesh

  • Add Subform Instance

    Hi there,
    Would it be possible for someone to help with a problem I'm having trying to add a subform instance? I've looked at an example and tried to use the same method but for some reason cannot get it to work and I've no idea why! Happy to send the form if that helps.
    Any help greatly appreciated,
    Thanks.
    Ken

    //_<subformname>.addInstance(1); //is syntax do not get confused it starts with underscore followed by subform name (no need to give entire hierarchy)
    //and the number 1 in the parenthesis adds one instance if use 2 two new instances are added
    //check the example below
    // Invoke the Instance Manager to add one instance of the detail subform.
    _Section2Detail.addInstance(1);
    //Invoke the recalculate method to include the field values from the added subform in calculations.
    //add to forec the layout manager to redraw screen
    xfa.form.recalculate(1);
    if you still run into issues do email me copy at n_varma(AT)lycos.com.
    Good luck,

  • Set Focus target when Add New Instance

    [LC Designer ES2 9.0] Using Action Builder to add a new instance of subform SITE, where first field is called SiteName.
    If I set action to Set Focus to SiteName, the focus goes to the *original* SiteName field instead of to the new instance.
    Users will typically add a number of additional sites and, each time, I want the focus to be set on the first field of the newest instance, not the original instance. How do I accomplish that? Thanks!           ~Carol

    I understand the concept (I think...), but am not clear on where to place the code.
    I used Action Builder to create an AddSite action: when check box chkAddSite is checked | Add a new instance of subformSiteInfo | and set visibility of subformSiteInfo to visible. Does your code go in that same action sequence? If so, what is the next Action Builder result selection? If not, where do I insert it?
    I never know whether the new instance of the subform will begin on the following page, so the user might keep clicking the chkAddSite box, thinking it didn't work. Although, thinking this through, maybe I could force the new subform instance to always appear at the top of the following page, and somehow direct the focus there, rather than to the specific first field???
    Thanks!         ~Carol

  • Adding subform instance - paging issue

    Hi,
    I have a form which includes a subform where one can press a button to add a subform instance.
    The subform is located in the middle of the page, with a small subform below it. 
    When I presss the add button to add the subform, the subform below the added subform goes to a new page.  I don't know why its doing this as there is plenty of room below the lower subform before the end of the page.
    I recently added data fields to the form.  Before I added the data fields, when I would press the add subform button, the subform below would not go to a new page.
    Any ideas?
    Andrew

    Just a thought but does your form content area extend to the bottom of the page or does it end at the same place the bottom subform ends?

  • How to reorder / move new pages and subform instances

    I have a form that has 2 functions - show a hidden page and duplicate the Page 1 and I need to reorder the pages once the user has added an instance or shown a page. I have Form A (Page 1) that can be duplicated but the user can add in a Form C (extra page) to be attached at the end of that instance of Form A.  So it goes like this:
    Form A (Page 1)
    button 1 - Adds new page 2 "Form C" to end of that "Form A"
    if (CompleteFormC.rawValue == 1) then
       topmostSubform.FormC2.presence = "visible"
       xfa.host.pageDown();
    else
       topmostSubform.FormC2.presence = "hidden"
    endif
    button 2: Adds a new instance of "Form A"
    topmostSubform.FormA.instanceManager.addInstance(1);
    xfa.host.pageUp();
    Currently, it adds the Form C to the very end, like so:
    Form A
    Form A
    Form A
    Form C
    Form C
    Form C
    I am trying to reorder the pages so the user can add in a Form C to every instance of Form A, like so:
    Form A
    Form C
    Form A
    Form C
    Form A
    Form C
    It's a little complicated but I would appreciate any help at all!

    Ahh, thank you. I just moved Form C into Form A subform group, it works and stays attached to that instance of Form A. Here's another issue... now that I have Form C appended to Form A, when I add in another Form A it correctly gets added after the last Form C but how can I get the form focus to go to the top of that new instance of Form A?
    Currently I am using: xfa.host.pageDown()
    But now it would be skipping down a few pages. Is there a way to also move to the top of that new instance?
    Thanks!

  • Add new nodes to IDoc in IDoc-XML Schema Mapping with Java

    Hello everyone, I'm not very sure if this is the right forum but I have a problem and I haven't being able to find the answer, my scenario is as follows:
    -First of all our system characteristics: SAP ECC 6.0, SAP BASIS 700, PI BASIS 2005-1-700 and SAP APPL 600
    -We are in Mexico and we are creating our own billing documents with digital signature and a digital certificate in XML format according to SAP Note 1303712 and all derived notes.
    -Our actual schema is working fine: We generate our IDocs (one for SD and one for FI) in SAP and we send them to PI XI to be parsed by a JAVA program and then converted to XML.
    Now we have the requirement to add new nodes (I might be wrong in the term, feel free to correct me) to the IDoc, it sounds very simple but I have only experience with ABAP  and no experience with PI, also it's working only on our production landscape, so if I don't do it right it could be very dangerous.
    I have already read the following notes that might help me: 1321680 and 1318342 but their configuration is just in the aplication server and don't mention anything about PI or the Java program.
    So, if any one could provide me some kind of guide or important aspects that I should take care (like mapping, structures, etc) to enhance IDocs for this schema i would be very grateful.
    I hope this post were clear enough, if it is not also feel free to ask me to clarify or provide more information.
    Kind Regards
    Omar

    Hi Omar,
    Since the structure of the IDoc is changing (adding a new node), you would need to do the following in PI:
    1) Reimport the IDoc in ESR/IR of PI.
    2) Change the mapping/transformation logic in the mapping parser defined. If it is a Java code, you would need to reimport it in the ESR/IR. Use link below to understand more on jave mapping.
    http://wiki.sdn.sap.com/wiki/display/XI/BeginnersguidetoJavamappingusingDOMparserinSAPXI
    3) Delete the IDoc cache using transaction IDX2, after the IDoc is reimported.
    Regards,
    Sanjeev.

  • Can we add new condition in old PO with new pricing schema

    We have created new pricing schema for addition of new condition type at header level on
    25/11/2010 in client server but the problem is for old purchase order client want new condition
    on header condition tab.It is obvious that in old po on analysis tab it shows old pricing schema.
    Is there any solution to get new condition in old Purchase order????
    It means we can add new condition in old po???
    Regards
    Jyoti Thakur

    Jyoti,
    Let me know the basic Price Condition if its PB00 or PBXX.
    Let me know how you have called the pricing schema. if you had attached it with document type and you have changed the document type, you will be required to create new PO with new doc type.
    If you have taken Vendor Schema group as a criteria, then you will be required to end the validity of old pricing conditions in condition table and need to activate new conditions on this date.
    Check for other basic keys like Purchasing Organization as well.
    Let me know if you have any existing Source List or QA for the vendor too.
    Thanks and Regards
    Raghavan

  • How to add new database server instance in Sharepoint 2010?

    I have installed SQL server 2012 BI edition and I have been trying to add new SQL Server reporting services in Sharepoint 2010 central admin .But When I click "ok "after giving the new SQL server name in the SQL Server reporting service creating
    process, I get an error stating "This user does not have permission on the SQL server".Though ,I have given this user dbcreator role on that particular database instance.Could you please help me out?

    Does the initial installation account used to set-up the farm have these permissions on the database?
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Should i need a new oracle instance or schema?

    Hello All,
    I know that this is may sound like a silly question but i really need to know. In our company we have a server with oracle standard and a instance that holds a financial database. Now, the company bought a new antivirus software and it runs over oracle database. Now, should i create a new schema to own my antivirus tables or should i need create a new database instance?
    I've worked with other database product that has a different concept from oracle, regarding Intance-Database concept. I'm really new from oracle.
    Best regards,
    Rafael Melo - Br

    >
    Now, the company bought a new antivirus software and it runs over oracle database
    >
    What exactly does 'it runs over oracle database' mean?
    You need to read the software documentation to see how to use it.
    >
    Now, should i create a new schema to own my antivirus tables or should i need create a new database instance?
    I've worked with other database product that has a different concept from oracle, regarding Intance-Database concept. I'm really new from oracle.
    >
    An 'instance' and a 'database' are two different, though possibly related, things.
    See the Database Concepts Doc for the definition of 'instance' and 'database'
    http://docs.oracle.com/cd/E11882_01/server.112/e10713/startup.htm
    >
    Introduction to the Oracle Database Instance
    A database instance is a set of memory structures that manage database files. A database is a set of physical files on disk created by the CREATE DATABASE statement. The instance manages its associated data and serves the users of the database.
    Every running Oracle database is associated with at least one Oracle database instance. Because an instance exists in memory and a database exists on disk, an instance can exist without a database and a database can exist without an instance.

  • Remove "Add New Instance" and "Remove New Instance" Entity buttons

    Hi,
    While Adding new Entity, "Add New Instance" and "Remove New Instance" buttons will be displayed.
    I don't want to display "Add New Instance" and "Remove New Instance" because by default i have created instances. I am able to disable it but i don't want to display at all.
    For "Add New Instance" , one-to-one, Automatically disabled by OPA
    For "Remove New Instance" added below code in ButtonControl.vm:
    #if( ${control.getButtonClass()}.equals("remove"))
    #set( $disabledString = "disabled" )
         #set( $visibility = "false" )
    #end
    Please tell me how to not display these two buttons.
    Thanks,
    Sri

    Hi Sri and Patrick,
    There's no out-of-the-box configuration to hide the Add/Remove Instance buttons from entity collect screens in Web Determinations. However, this requirement can be achieved through Custom Properties. This requires a technical person to create the custom property, which the rulie then attaches to the Rule Project. The technical person also needs to modify the velocity template which renders the entity collect screens so that it will remove the Add/Remove buttons on any entity collect control where the custom property is set to True.
    I can't advise on exactly how to write the custom property or edit the velocity template (I'm a functional expert, not a programmer), but the OPA Developer Help should have guidance. Try searching on ‘custom property’. From the rulie perspective, have a look at this article for how to attach a custom property to the project and to the particular screen control:
    * Augment the rulebase with metadata: http://docs.oracle.com/html/E24270_01/Content/Integrating/Augment_the_rulebase_with_metadata.htm (particularly the sections 'Specify a custom property defintion' and 'Assign a custom property to a control'). This link is to the 10.3 version of the OPM Help. If you are using an earlier release of OPA, you can look at the equivalent article in your copy of the Help.
    (If there are technical people following this thread, perhaps you could reply with specific OPA Developer Help articles people should look at with regard to writing custom properties?)
    Cheers,
    Jasmine

  • How-To Add new SMPP Driver Instance in AS 10g

    i've tried to add new Driver in Wireless in 10g. the driver that i want to add is SMPP driver. Can anyone tell what parameter should i filled in such as sms.account.id, sms.server.host, sms.smpp.transmitter.system.id, sms.smpp.transmitter.system.type, sms.smpp.transmitter.system.password, sms.smpp.receiver.system.id,
    sms.smpp.receiver.system.type,
    sms.smpp.receiver.system.password,
    Sending Thread that i filled is 1
    Receiving Thread that i filled is 1.
    But i always have this following error:
    Message Text
    [ThreadMonitor] rt.common.ConnectionImpl.stopExecutor(ConnectionImpl.java:219)
    Interrupting thread AJPRequestHandler-ApplicationServerThread-559Thread[AJPRequestHandler-ApplicationServerThread-559,5,main] hash
    code 21100441
    can anybody help me ???

    These are parameters that should be made available to you by the administrator of the SMSC.
    Regards,
    Deepak

  • XML Schema binding - dynamic form

    I am new to Designer and XML. I have been given a basic interactive form and have persevered for a couple of (often frustrating) weeks to extend its functionality to link to an xml schema and provide for dynamic record creation. Unfortunately I am still having problems when adding new instances of subforms.<br /><br />I have a main form for reporting issues. Underneath it there are major components on a subform (can be multiple major components for each issue) and under major components are sub-components (can be multiple sub-components for each major component) on a child subform of major. I can add and delete instances of the subforms for both levels of records.<br /><br />I have created an xml schema based on the form since it already existed, and so the form fields have not inherited properties from the schema. However, I have bound the fields in the form to the xml fields through a data connection. The schema basically looks as follows (bot not literally the same as you will see from the tags):<br /><br /><element complextype issue><br />   <element issueId string/><br />   ...<br />   ...<br />   <element complextype majorcomponent unbounded><br />   <element majcomponentname string/><br />   ...<br />   <element complextype subcomponent unbounded><br />      <element subcomponent string/><br />      <element quantity string/><br />      ...<br />      ...<br />      </element><br />   </element><br /></element><br /><br />My problem is as follows: <br /><br />When I add an instance of a sub-component or major component subform, the first new instance appears to work correctly. However, every subsequent one inherits the values of the previous record and when it is changed, it changes the values of existing fields of the same name but of a different node. When I change each element in the xml schema to "unbounded", the forms appear to work properly but the values are then not nested correctly in the outputted xml data file (many records will appear under one sub-component, for example, when a new sub-component should be added for each).<br /><br />I suspected my problem might be that the "unbounded" property in the schema of the major component and sub-component elements are not linked to the Designer form because the major component and sub-component subforms are not bound to the xml schema. The reason they are not bound is because if I bind the subform, the first element, major/sub component name as applicable, loses its binding.<br /><br />I am sorry if this doesn't make any sense but I am hoping that someone might recognise the problem I am talking about as it is really creating much bother.<br /><br />Thanks.

    Thanks Justin for the reply. Unfortunately I can't explain exactly what was happening because I didn't keep sufficient notes and now the form is behaving differently. You are right in that when I bind the subform to the xml schema element, child fields do change their bindings from a full to a relative path. I had seen this before on all except the first field on a subform, which had losts any binding reference at all.
    I finally gave up on the schema and bound the forms to sample xml data. This fixed my problem. Now (several days later), I have revisited the problem and deleted my data connection to the xml file to connect to the schema once again. I am quite sure I have not changed the schema at all, nor the form, but for some reason it now appears to work correctly.
    I will continue to work with it, once again but thanks very much for your interest.

  • Dynamic tables with XML schema binding

    Hello,
    I'm currently fighting a strange issue dealing with a complex dynamic form. This form contains multiple dynamic tables to which the user may add new lines or delete lines that are no longer needed. This is being implemented using the instanceManager and works just fine.
    However, if I try to bind XML based data to this table, it looks like if rows added by the instance manager are always bound to the same record (they all contain identical values). The XML schema is correct, the issue also happens with sample XML data files.
    This seems to have something to do with the programatically added lines, but I have run out of ideas ... Can anyone provide some pointers?
    Thanks a million,
    Steffen.

    Thanks for the reply, Paul.
    I have the question about the schema,
    say i have a table like this:
    Item | Cost
    A   | 10.3
    B   | 21.1
    Total| 31.4
    and my schema is:
    so when I bind the table row should it be $.ItemTable[*].Item ?

Maybe you are looking for