Remove subform instance problem

HI there
I am using the following code to remove the last subform instance
subform.instanceManager.removeInstance(1)
However in test it appears to be removing the last instance but one.
Can anyone help me fix this.
Thanks
Darren

Hi Paul
Many thanks for your quick response.  When I added that to my form it removed the first instance rather than the last instance.  I had a look on the links here and for any one else that has a similar prob the following seems to have fixed the problem
subform.instanceManager.removeInstance(subform.instanceManager.count-1)
Thanks again
Darren

Similar Messages

  • Subform instances problem

    I have a subform that reads data from an XML data file.
    For every instance of an XML data elelment - I want a new instance of the subform with the associated data -
    I cannot seem to get this to work - after many attempts.
    from the Live Cycle UI - The for It appears to be working , at least, the bindings are correctly indicating the right information for the subform - but the object palette is grayed out and I can't seem to figure out how to instruct the subform to re-instantiate for every occurrence of a particular XML data element.  It reads the first element encountered , one only .... and misses all other occurrences of the data element.
    would it be possible to zip up the form and the xml data file and submit it for a review -
    the form is actually rather simple - so this is even more frustrating  (Arggh)
    Thanks

    Thaks Paul ;
    I have sent the form and the data file - to the email yo listed.
    The form is signed, etc - and works normally - but i can' identify the issue for the subform instances -
    I gave it my best effort -
    Thanks for assisting .

  • How to remove all instance in a repeatable subform (bis)

    Hi Niall,
    A few years ago, you helped a user who asked "How to remove all instance in a repeatable subform". Please could you do again with approximately the same problem ?
    In a click event, I have the script "_CarteEN.addInstance();". Well ! Many cards appear. To protect them, I put above a mask (it's a button with a background Fill). Now, how can I do to remove all masks with only one click using the resetdata or anything else...
    I try this but it doesn't work.
    while (flowedSubform.CarteEN._CacheCV.count > 2)
         flowedSubform.CarteEN._CacheCV.removeInstance(1);
    Many thanks for your help !

    There is no subform named "flowedSubform"
    The "CacheCV" is not a container object (subform). so you can't access the instanceManger of this object.
    the below lines should work
    while(_CarteEN.count >1)
         _CarteEN.removeInstance(1);
    Nith

  • Javax.ejb.RemoveException: An attemp was made to remove stateful instance

    Hi,
    I am working with a SAP PI 7.1 File adapter without content conversion but attachments. I created an adapter module to change the attachments name and its Mime type. But get following error when i use this module. Even if i just pass the rinputModuleData back without any coding in between i get the same error. (Adapter engine is on the latest SP stack)
    Does anyone know what is wrong and how to solve this problem ?
    Error: javax.ejb.RemoveException: An attemp was made to remove stateful instance while it still participates in a transaction.This is strictly forbidden by the EJB Specification. However the current transaction won't be marked for rollback allowing you to recover from the error.
    Regards,
    Andreas

    Hi Agasthuri,
    thank you for your quick reply. I use exactly the scenario described in following Blog
    /people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module
    The only thing i did is changing the coding a bit so that it fits PI7.1
    Regards,
    Andreas

  • How to remove netweaver instance completely?

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    INFO 2007-03-29 13:15:35
    CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO 2007-03-29 13:15:51
    CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
    PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO 2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
    bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO 2007-03-29 13:18:29 [syxxcfile.cpp:523]
    CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO 2007-03-29 13:18:29 [syuxcpath.cpp:369]
    CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    Hi ,
    I removed all the folders of previous Netweaver 2004 installation from aix machine, as there was problem in starting server .
    In new installation I am getting following error:
    ERROR 2007-05-28 10:11:59 [iaxxinscbk.cpp:289]
    abortInstallation MDB-07021 Registry information for database software found in system but the software check failed. The software was not properly removed or installed incorrectly.
    I have already deleted following folders:
    /sapdb
    /usr/sapdb
    /usr/spool/sql
    /sapmnt/
    /home/sqdjet
    /home/jetadm
    Is there any folder remaining to delete?
    Please help.

  • 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,

  • DBCA can´t remove an instance

    Hellos guys, How are you?
    I am having a problem when I try to remove an instance...
    I have an Oracle instance 10gR2 (10.2.0.3.0) on a windows server 2003 R2, and when I try to remove the instance through DBCA the "Next" button is disabled and when I click on "Finish" button, nothing happens.
    If there is anybody that can help me, I will be grateful.
    Thanks.

    Facundo wrote:
    Hellos guys, How are you?
    I am having a problem when I try to remove an instance...
    I have an Oracle instance 10gR2 (10.2.0.3.0) on a windows server 2003 R2, and when I try to remove the instance through DBCA the "Next" button is disabled and when I click on "Finish" button, nothing happens.
    If there is anybody that can help me, I will be grateful.
    Thanks.On *nix, dbca reads the oratab file to get a list of 'deleteable' databases.  if there are no databases listed in oratab (watch for commented out lines) then the 'delete database' option will be greyed out.  Don't know if the same behavior on Windows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What, exactly, are 'encoded assets'? Why does removing them resolve problems? How can they be avoided in the first place?

    What, exactly, are 'encoded assets'? Why does removing them resolve problems? How can they be avoided in the first place?

    As I understand it, encoding fomats your digital video clips and photos (assets) into Standard DVD mp2 format so that it can be burned to a DVD.  If there has been an error in the encoding process, then you remove the old encoded assets and start over.  There are numberous reasons why there can be errors in the encoding process. 

  • Using a function and array to remove stage instances

    I'm trying to figure out the best way to handle this.
    I have an array of items I want to be looked through and removed if a specific function is running and if the stage contains them.
    removalArray = [axScene, bridgeScene];
    public function Removal(event:Event) {
                trace("cheese");
                for (var i:uint = 0; i>removalArray.length; i++) {
                    if (stage.contains(removalArray[i])) {
                        removeChild(removalArray[i]);
                        removeEventListener(Event.ENTER_FRAME, Removal);
                        addEventListener(Event.ENTER_FRAME, CampScene);
                    } else {
                        removeEventListener(Event.ENTER_FRAME, Removal);
                        addEventListener(Event.ENTER_FRAME, CampScene);/**/
    addEventListener(Event.ENTER_FRAME, Removal);
    I'm able to get trace("cheese"); to work at its current position, but the function does not seem to like my "for" and "if" statements because putting trace("cheese") amongst them does not work.
    As always, help is appreciated, and let me know if you need more info.
    EDIT: Perhaps I should also note I am able to get
    if (stage.contains(axScene)) {
                    removeChild(axScene);
                    } else if (stage.contains(bridgeScene)) {
                        removeChild(bridgeScene);
                        } else {
                            null;
    to work correctly in that function.
    EDIT2: Would this have something to do with addChild only being able to remove one instance at a time? I can't imagine that's it since this suppose to be run through a loop.

    You appear to have an unhealthy obsession with using the ENTER_FRAME event. 
    I'm sure you're right, but realize that I'm learning by the seat of my pants and am not great with logic and stuff that doesn't happen chronological. (I'm 26, and graduated with a degree in graphic design.) If I find something that works I'm going to keep using that until I find a better way, and thus far ENTER_FRAME has been all I've had. (I can find tons of AS3 information online, but a lot of it is forum posts seems to be lacking useful context for my purposes.)
    For what it's worth (if you remember another post I did that had a ton of event listeners), I've started using more booleans and gotten rid of a lot of listeners adding and removing.
    What you might try doing instead of creating all manners of them is to have just one and within that one you manage your objects using conditionals.
    So something like this?
    if (campSceneOnStage == true) {
         addChild(campScene)
         } else if (campSceneOnStage == false) {
              removeChild(campScene);
    EDIT: Although this would keep adding a campScene instance, wouldn't it?
    EDIT2: Could I write something like this, have one constant event listener (addEventListener(Event.ENTER_FRAME, Scenes)...
    public function Scenes(event:Event) {
                if (campSceneOn == true) {
                    addChild(campScene);
                    if (stage.contains(campScene)) {
    and use a line to tell the function to temporarily stop listening if campSceneOn = true and campScene is on the stage?
    Would "null" work?
    Also, is there an equivalent to "stage.contains" that looks to see if the stage does not contain?
    That ENTER_FRAME listener is being removed as fast as it was added, whether or not there is something in the array to remove.
    So the even though the intention is to only have the removeEventListener only occur if something is found in the array to remove, the script "skips over" that and removes the event listener even if it doesn't "use" the for loop or if statements?

  • How to remove previous instance of Netweaver 2004???

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    <b>
    INFO       2007-03-29 13:15:35
               CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO       2007-03-29 13:15:51
               CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
               PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO       2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
               bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO       2007-03-29 13:18:29 [syxxcfile.cpp:523]
               CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO       2007-03-29 13:18:29 [syuxcpath.cpp:369]
               CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO       2007-03-29 13:18:29
               CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO       2007-03-29 13:18:29
               CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"</b>
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    Yes.
    Do all people visit all forums..?
    I'll not open it in more than one forums then.

  • How to remove netweaver instance on AIX machine completely?

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    INFO 2007-03-29 13:15:35
    CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO 2007-03-29 13:15:51
    CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
    PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO 2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
    bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO 2007-03-29 13:18:29 [syxxcfile.cpp:523]
    CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO 2007-03-29 13:18:29 [syuxcpath.cpp:369]
    CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    follow Note 599129 - Using SDBUNINST to uninstall MaxDB/SAP DB software
    follow the steps given in the installation guide for uninstall SAP.
    Cheers,
    -Sunil

  • 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 remove JFrame instance

    Dear all
    Can someone tell me ho to remove an instance without exit the whole system, the reason is I need to remove a JFrame after the user click the button, the setVisible() is not work in case.
    any advice will be greatest appreciate.

    show de .dispose() method. If this doesn't work, then look in this url and look for more methods:
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFrame.html

  • Remove an Instance aka database

    During my install of Oracle 10g on mac osx. I created a database via a script that I have found on the net or in one of the forums, (forget which one). Anyway I was wondering how I could remove the instance? I ran dbca but it doesn't pick it up, I guess since I didn't create it with dbca.
    Anyone have any ideas?

    That's relatively easy, just remove all the files and directories associated with the instance.
    I don't know how you've set up your OFA, but the directories would be something like:
    <mount point>/oradata/<sid>
    $ORACLE_BASE/admin/<sid>
    The files would be:
    $ORACLE_HOME/dbs/*<sid>*
    Then edit /etc/oratab to remove the line containing the SID.
    That should be it, I've only done this in 9i on AIX, so I'm not 100% sure this gets all the created files in 10g - perhaps the Administrators Reference would have more info.
    HTH,
    Steve

  • 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

Maybe you are looking for

  • Multiple iPhone backups in Time Machine

    I have my wife's iPhone and she was charging it on our Mac via cable. Our iTunes is instructed not to sync automatically. We have two phones in iTunes. Child comes along and somehow resets or wipes phone: not sure which one. My question is, if I were

  • No Audi input on 2011 Macbook Pro - How can i record in DJ sets ?

    Hi Just upgraded my old DJ laptop from my trusty old 2006 Powerbook 12" to a brand new 13" 2011 Macbook Pro My Powerbook had a Audio Input next to the headpone Jack.  Macbook Pro does not ? so whats the deal here as it was usefull to me for recording

  • Facebook images do not load after upgrading to 6.0. What to do?

    After upgrading to Firefox 6.0 my Facebook images will not open. I see a white box with a frame but after clicking on it a totally black square opens up instead a photo. All is OK when using IE9. (Also, the same with Twitpics on Twitter.)

  • Contact person/s for Vendor master

    Is there a way I can add multilple contact persons to the vendor master? If yes, plase indicate how this can be done and what config changes are to be done. Thanks.

  • FI-FM - How to reconciliate FI invoice to FM ?

    Hello, I have an invoice with lines which impact FM and lines without impact on FM (commitments which are not relevant to budget). I deleted the FM link in the invoice by using the program RFFMDLFI to check some reports. But now i would like to resto