Count instances of additional subforms using instance manager

I am familiar with using the following code in the calculate event in tables when the instance manager is used to add rows:
this.rawValue = this.parent.index+1;
However, I have a simple form that due to the need to expand the text field, I have used used a subform rather than table. While the instance manager works correctly, the number remains at one for each added instance.
A link to the form is here:
Dropbox - SMP Comments Form.pdf
Any help would be appreciated.

Hi,
Using .parent only gets you to the StaticPortion object, you need to go one further up, so either use parent.parent or CommentSubform (which is the one that repeats).
If you change your calculate event code to the following you can remove the layout:ready code.
var count = _CommentSubform.count
this.rawValue = CommentSubform.index+1;
Regards
Bruce

Similar Messages

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Unable to connect to the database instance using Enterprise Manager.

    I just install Oracle 10gr2 in my computer and after successful installation created a database instance which also install successfully. I then configure the listener using Net Manager and then start the database instance, the listener and dbconsole, everything seems to work fine and checking the status of this services from the command prompt indicates everything started successfully. But when I try to use Enterprise Manager I was directed to the Database Down Page with a message unable to connect to database instance. I try to use startup and perform recovery but every time I log-in to the database an error message comes out:
    SQLEXCEPTION
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified.
    It seems for Enterprise Manager to connect to the database it needs to access this NLS(National Language Support) data files or specify an environment variable to point to this data files. I am just new to Oracle and I am having difficulty solving this particular problem. Where is this data files located and how do I configure Enterprise Manager to access this NLS data Files?
    Any help however small will be highly appreciated.

    Are you able to connect to the database via SQLPlus?
    What Operating System are you using?
    Assuming Windows, can you RUN regedit to open Windows Registry and check the value or NLS_LANG when you select
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<your_oracle_home>
    Examples of vaules you may find:
    1. ENGLISH_UNITED KINGDOM.WE8MSWIN1252
    2. AMERICAN_AMERICA.US7ASCII
    3. AMERICAN_AMERICA.WE8MSWIN1252
    4. FRENCH_FRANCE.WE8MSWIN1252
    5. GERMAN_GERMANY.WE8MSWIN1252
    If you are not able to connect to SQLPlus, from the command prompt try setting one of the above:
    e.g.
    D:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    D:\>sqlplus /nolog
    SQL>connect sysman/password

  • Counting instances?

    I am completely new to lifecycle and I am having difficulty with a form. It is a relatively simple form; however in the section of the form with a table for invoice items I am having some difficulty. The problem is: an expanding table to allow the end user to add a row for additional invoice items and then it calculates a total item and grand total for the invoice.
    I would like to have the item number generated automatically 1,2,3,4, ect but right now it starts at 0 (I think that might defeat the purpose of numbering items). I think this is counting the instances? I am not sure =(
    Sorry if I did not adhere to the proper forum etiquette, or if I posted in the wrong place. I dont really know the ins and outs of this whole thing and I could really use some help!!
    Here is the scripting in the form:(I think I need to change the first one, but how!?!)
    // This script displays the instance value of the row in this text field.
    // Invoke the Instance Manager to add one instance of the detail subform.
    details._detail.addInstance(1);
    //Invoke the recalculate method to include the field values from the added row in calculations.
    // Invoke the Instance Manager to remove the current instance of the detail subform.

    Courtney Wilkins,
    For future reference, the proper Adobe Forum to post such questions is the
    LiveCycle Designer ES forum.
    Have a look at the "Purchase Order -- Dynamic Interactive" sample that ships with Designer. You'll find it in the following folder:
    {Designer_install_location}\{version}\EN\Samples\Forms\Purchase Order\Dynamic Interactive\Forms
    It's a great example of a dynamic table with various sums.
    As for the "item number", I'm assuming you mean the row index. If that's the case, then lets say you have a cell in your repeatable table row named "RowIndex" which is a text field. Also assuming you're running Designer 8.0 or later, you would add the following script to the row's IndexChange event (in JavaScript):
    RowIndex.rawValue = (this.index + 1) + ".";
    For more info, you could try the following posts and comments on my blog:
    Calculate Scripts and
    Instance Manager Object Reference.
    Stefan
    Adobe Systems
    More answers at
    Stefan Cameron on Forms.

  • Add/Remove instance manager issues

    My add instance button is working as intended.
    The remove instance button is working, but not as I would like it to. The instance it removes is not necessarily the last instance added, as I would like. When "clicked" it removes the second instance listed. This is a problem when you add 5 or so instances, and need to remove the last one, and end up having to remove all of them because removing the #2 instance just messed up the order of instances.
    If this is not making sense I can show you what I'm referring to by uploading/sending interested parties the form.
    Here is the "click" event javascript code. I adopted the code from the remove instance manager example, maybe I did not convert it correctly to my form. Not sure why it deletes from the first instance down, instead of last instance up. Any help is appreciated.
    var nNumSub = 0;
    var nSubLength = Subform1.nodes.length;
    for (var nCount = 0; nCount < nSubLength; nCount ++)  {
         if (Subform1.nodes.item(nCount).className == "subform"  {
              nNumSub = nNumSub + 1;
    nNumSub = nNumSub - 1;
    if (nNumSub < 1)  {
        xfa.host.messageBox("The minimum allowable number of subforms is 1. You cannot remove any more subforms.", "Warning", 3);
    else {
         Subform1.Subform2.SubformImpression.instanceManager.removeInstance(nNumSub);
    Thank you,
    B

    Paul,
    So I want to do the same thing, but my instance manager set-up is much simpler:
    form1.QuickNoteGathering.Data.Button1::click - (JavaScript, client)
    Data.Info.instanceManager.addInstance(1);
    So what code would I use to have a button that removes the last instance added?
    Also, I want the instances to continue on to several pages if needed (i.e.: my outlay is just a small sample and one can add as many additional information layers as they need). But it all goes awray as it comes to the buttom of the first page. So I can I assure that as you click the add additional info, it will persist to as many pages as needed?
    Thanks. I can send you the form if you need me too, since there is no upload anymore to this forum.
    thanks
    Shai

  • Resolve Nodes - For Loop - Instance Manager Please Help

    Hello,
    I made a table in lifecycle designer that uses the instance manager to add rows.
    I want to write code that will loop through each of the instances and perform a comparison.  I would like the code to examine the index field.  If the index field = 2,  then return the value of the num amount field.
    This is what I have tried so far and it does not work. 
    var
     var
    var
    oFields = xfa.resolveNodes("Subform1[*].index1");
    var     
    nNodesLength = oFields.length;
    for     (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
      if (oFields.item(nNodeCount).rawValue ==2)     {
         form1.#subform[2].Table5.Row5.NumericField1.rawValue
         = form1.Page1.Subform1.Capital1.Capital1.detail.numAmount.rawValue;}
    break;    

    Here is a more lengthy definition of my problem.   I hope someone can help. 
    1.     I have a table that will allow the user to add rows when they click the plus button.  Here is the code
    ----- form1.Page1.Table7.#subformSet[0].#subformSet[1].detailHeader2.Button2::click: - (JavaScript, client)
    _detail.addInstance(this.parent.index);
    //Invoke the recalculate method to include the field values from the added row in calculations.
    xfa.form.recalculate(1);
    2.     The table also has a button to delete rows.   Here is the code
    ----- form1.Page1.Table7.#subformSet[0].detail.Button2::click: - (JavaScript, client) --------------
    // Invoke the Instance Manager to remove the current instance of the detail subform.
    _detail.removeInstance(this.parent.index);
    // Invoke the recalculate method to update the form calculations.
    xfa.form.recalculate(1);
    3.     The table has a drop down list named txtPartNum and that allows you make a selection.  Once you have made the selection a script populates other fields in the same row. The Drop Down list contains this code:
    ----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::initialize: - (JavaScript, client) ------
    // Populate the part number Drop-down List.
    partNoScript.populatePartNo(this);
    ----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::change: - (JavaScript, client) ----------
    // Populate the description and the unit price when we change the part number.
    partNoScript.getDesc(xfa.event.newText, txtDescription, numUnitPrice, index1);
    4.     The following script populates the following fields:
    txtPartNum,
    txtDescription,
    numUnitPrice,
    index1
    ----- form1.#subform[2].#variables[0].partNoScript::partNoScript - (JavaScript, client) ------------
    // This script object controls the interaction between the part number, description and unit price fields.
    // When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
    // each array i.e. for every part number, there should be a matching description and price.
    // Array of part numbers.
    // This script object controls the interaction between the part number, description and unit price fields.
    // When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
    // each array i.e. for every part number, there should be a matching description and price.
    // Array of part numbers.
                         var partNo = new Array(" ",
                                                                    "Company Labor - Regular Hours",
                                                                    "Company Labor - Overtime Hours",
                                                                    "Company Engineering - Regular",
                                                                    "Company Engineering - Overtime",
                                                                    "Company Burden",
                                                                    "Subcontract Labor",
                                                                    "Subcontract Engineering",
                                                                    "Subcontract Material",
                                                                    "Subcontract Equipment",
                                                                    "Subcontract Labor & Material Bid",
                                                                    "Purchased Materials",
                                                                    "Materials from Inventory",
                                                                    "Transportation Equipment",
                                                                    "Miscellaneous Tools Shope and Garage",
                                                                    "Construction Equipment",
                                                                    "Rental Equipment",
                                                                    "Permits",
                                                                    "Legal Fees",
                                                                    "Other Miscellaneous");
    // Array of part descriptions.
    var partDesc = new Array(" ",
                                                                    "1221.9922",
                                                                    "1222.9922",
                                                                    "1221.9922",
                                                                    "1222.9922",
                                                                    "1221.9922",
                                                                    "1232.9933",
                                                                    "1232.9933",
                                                                    "1232.9933",
                                                                    "1232.9933",

  • Please help with Instance Manager

    Hello,
    I created a button that will show/hide a subform. The issue is I need multiple buttons like this. I thought changing the name of the subform in this script would allow me to use another button for a different subform. For instance, Instead of using the word Alabama I could replace it with Alaska and it would show/hide that subform. Could having multiple pages in a subform affect its functionality? Please Help!
    // Invoke the Instance Manager to add and remove the alabama subform.
    if (fAlabama.value == "0") { // fAlabama is a document variable used as a flag.
    // fAlabama = 1 when the alabama subform is displayed.
    _alabama.setInstances(1); // Add the comments subform.
    this.resolveNode("caption.value.#text").value = "Clear Alabama"; // Change the button's caption.
    fAlabama.value = "1"; // Set the flag value.
    else {
    _alabama.setInstances(0); // Remove the alabama subform.
    this.resolveNode("caption.value.#text").value = "Add Alabama"; // Change the button's caption.
    fAlabama.value = "0"; // Reset the flag value.
    Thanks,
    Venus

    When you say you are not in standalone mode, I assume you are connecting to an Oracle Management Server which is running somewhere in your network. You need to discover your node. To do this you must start the intelligent agent on the server where you have your database. Then from the OEM console select navigator from the menu bar, and then discover nodes. Next enter the name of your server. OEM will attempt to contact the intelligent agent on that server in order to get the database information.

  • Problems with instance manager and bound items

    I'm having a problem with bound fields.
    I have made a form that uses the instance manager so i can add several products,
    i'm using a button to export all this to a XML file  via XML schema but for some reason when i preview the form
    i can add new instances without problems and the original instance works ok but the second instance and all instances after that changes when anything is changed in any of them, they are in other words linked.
    Removing the xml schema made it work like it's supposed to but how do i get it to work with the xml schema?

    It sounds like your XML schema may not be properly setup to reflect the unlimited number of instances.
    <xs:element name="products">
         <xs:complexType>
              <xs:sequence>
                   <xs:element name="product" maxOccurs="unbounded">
                        <xs:complexType>
                             <xs:sequence>
                                  <xs:element name="product">
                                       <xs:complexType>
                                            <xs:sequence>
                                                 <xs:element name="productName" type="xs:string"/>
                                                 <xs:element name="useCase" type="xs:string"/>
                                            </xs:sequence>
                                       </xs:complexType>
                                  </xs:element>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    The element you wish to repeat should have a "maxOccurs" property that is greater than 1.  You should also make sure that your subform is properly linked to this element.

  • Cannot open OLAP instance manager from oem

    When I tried to connect to the OLAP Service Instance Manager from OEM, I got the XPINSMGR-10565 and when i tried to start the olap service from control panel I spotted the error "......error 2"

    i already unlock and change password for user : OLAPDBA,OLAPSYS,OLAPSVR and SH during instalation Oracle database but i don't understand because that schema unlocked but the password that i fill was not applied.
    Now i can not change their password, can explain how to do it..??
    Now i use Oracle Database 9.0.1.1.1
    and Oracle OLAP 9.0.1.0.1
    so, it match or not..??? As SYS, login into OEM and in the Security node expire these OLAP passwords. Enter in new passwords and unlock them.
    No, the Oracle Database and OLAP versions are not a mismatch. This combo version tells me you are running on the Windows platform. After you do get the initial release of OLAP up and running, it is highly recommended that apply the RDBMS patch set 9.0.1.3 and OLAP patch set 9.0.1.2.1.

  • Instance management is disabled in DBCA

    I am wondering if anybody knows why the instance management is disabled in DBCA?
    Thanks,
    Shirley

    I'm not quite sure what you mean by 'instance management' in dbca. Looked at the dbca for my 9i, 10g and 11g instances and couln't find anything marked 'instance management'
    Then again, I'm not quite sure what version of database or which operating system you are using, so any guesses I might have will probably be in left field anyway.

  • Adding Enterprise Instance Manager after Install

    I don't want to shut down server to install CF8. I have
    existing JRUN4 server with Coldfusion 7. Can I install cf8 as EAR,
    create new JRUN4 instance, deploy CF8 ear and change some settings
    in CF8 so it thinks it was installed with multiserver so instance
    manager is there in administration.
    I've installed ear on running instance on development server
    --- ready to try on production server without shutting it
    down.

    Ed, there are several things to be aware of. Ke4pym's
    suggestion of waiting for JRun's updater 7 is reasonable.
    Definitely plan on upgrading to U7 at some point if you deploy CF8
    ears. But there are other items that are more significant.
    CF8 installs with the JDK 1.6 as a standalone install. You
    will need 1.6 for flex, monitoring and other features to work
    properly with CF8. Different jrun server instances can use
    different JREs if you use the -config switch in your jrun startup
    and have different jvm.config files. Several things will break in
    CFMX7 if you run it on a 1.6 JVM.
    (BTW: Both CFMX6.1updater1 and CFMX702 are certified to run
    on JDK 1.4.2_15 as the latest jvm version. Always install the JDK
    in order to get a server JVM version. Unix/linux JRE installs may
    contain the server jvm version.)
    Finally, the enterprise manager is only installed by the
    ColdFusion installer if you run a full install - multiserver
    installation. You will not get it as part of an ear/war
    installation. I suspect there are a few workarounds for this, like
    copying the ear from a full multi-server installation. However,
    this is unsupported.

  • Crystal Report 10 - Instance Manager - Report Logs

    Crystal Report 10.
    From the Instance Manager Page we can have the Logs of all the reports executed from each user.
    I can see some options availabe to filter logs [according to users and status].
    Is there any configuration page or any other filteration methods available(Eg: date wise) for this page?
    Option to order the log entries?
    Also from where the instance manager pulling this log details and displaying in this fashion?
    Is there any other dictionaries or flat files exists to capture this information other than from instance manager?
    Please help...
    Thanks
    Joseph Panakkal

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line. If not then you may purchase a case and have a dedicated support engineer work with you directly

  • Why does a job still show as running on the server even after it's deleted from Instance Manager?

    Deleting a job in Instance Manager doesn't seem to delete the job on the actual server.  Is there another location where we need to cancel the 'connection' to the database from where it's running?

    I should also note that this only seems to be an issue with music that was purchased through itunes. Once I delete songs purchased through itunes on my iphone 5 they still show up with the cloud and down arrow and I can still play them. I do not want them visible unless I choose to download them.

  • Drop-down list to trigger instance manager

    I may have bitten off more than I can chew with this one, but I have two pages. One comprises a checklist of Y/N/NA drop-downs; the other page has a repeating table row.
    If the drop-down selection is N I want the Instance Manager to trigger a new row on the second page and populate one of the textboxes within it with the caption value of that drop-down.
    If anyone has an idea as to whether this can be done or, even better, how I could actually do it, do please let me know. I'm no programmer unfortunately so the best I can manage is to tweak other scripts.
    Thanks in advance

    Hi Manuel,
    You will find your answer, with diagrams, in section 3.4 Model Advanced Input Fields in the following document:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/07134c67-0b01-0010-0493-b89287cf330f
    Be sure that within the Entry List tab, your list scope is dynamic for 0CALYEAR, then just map the fields.
    Failing that, make sure you have values against 0CALYEAR in your source system.
    Regards,
    Chet.

  • Best guidance for WCF instance management

    i read about  instance management from this article http://www.tutorialspoint.com/wcf/wcf_instance_management.htm
    but still do not understand when one should go for per call , per session and single instance management.
    suppose i will develop wcf service which will be consumed by 1000 client and every time traffic will be huge and also few function could be there in my service which may take long time to return response. so guide me which instance mode i should choose.
    thanks

    Hi Mou_kolkata,
      According to this case, I have shared the corresponding details below:
    1.First of all, I just summarize the key points of instance management
    (1) Per-Call Service :
    default instance activation mode of WCF
    every client request achieves a new dedicated service instance
    memory consumption is less
    (2) Per-Session Service :
    Private or confidential session is maintained between the client and a particular service instance
    the per-session service offers a new service instance which remains dedicated to each client request and autonomous of all the other instances
    (3) Singleton Service :
    all client requests independent to each other get connected to the same well-known single instance
    it gets disposed only when the host closes down
    2.For your case, I suggest you to apply singleton service .because your wcf service consuming more than 100 clients. This service is created just for once when the host is created. In case, the host is not provided with any singleton
    instance, the service returns as NULL. The activation mode is at its best when the work amount in each method call is little and no pending operations are there in the background.
    for  configuration , set like below :
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    class MySingleton : ...
    Further guidance for service code,host code & client code, you can refer in that link is enough.

Maybe you are looking for

  • Airport Extreme no longer sees my Canon PIXMA MX 700

    I have used my Airport Extreme to print wirelessly with my Canon PIXMA MX 700. 2 Macbooks and 1 PC Windows Vista have successfully done so for several months. I just upgraded to Leopard, and now Airport can't see the Canon; the other Macbook came wit

  • Iphone 5 stopped working after updated to IOS 7.1

    I have just updated my iphone 5 to IOS 7.1 and unfortunately it stopped working. I can not turn it on. Anyone got the same problem? My phone is already out of warranty so I have no idea how much it would cost to fix my died phone

  • OCCI VS 2008 & OCCI 11.1.0.6.0  Performance Problem

    I have been using VS C++ 2003 in combination with the oracle instant client 10.2.0.4 in our tool. We now moved to VS C++ 2008 (Express Edition) and oracle instant client 11.1.0.6.0 as listed at [http://www.oracle.com/technology/tech/oci/occi/occidown

  • Apple Tv on wireless reciever

    Hi all, I am seriously thinking about purchasing the new Apple TV, I do however have one query that I cannot find any information on. Where I would want to place the Apple TV I do not have an ethernet port. Would apple Tv work on a wireless hub? In p

  • IMac firewire problems - anyone just replace them?

    hi. i know there have been a lot of problems and a lot of posts with the FireWire busses on the aluminum iMacs. I know no Apple solution has been released. But i'm wondering if anybody has had their FW busses on their iMac replaced with a bus using a