Remove a specific table instance

I have a subform with a table in it. I have a two buttons in the table. The addTable button adds another instance of the subform (i.e. a new table). The delTable button is supposed to delete the table I am in. The code for remove is _subform.removeinstance(this.parent.index). The problem is that the remove button always removes the first table and not the table specific to itself:
Example 1: have table 1 and add another table. Hit delete on table 2 and it deletes table 1. Hit delete on Table 1 and it removes table 1 leaving table 2.
Example 2: have table 1 and add 2 tables. Hitd delete on table 2 and it deletes table 1. Hit delete on Table 3 and it removes table 1. Hit delete on table 1 and it deletes table 1.
What I would like it to do is to delete table 2 if that is the table I choose to delete. Anyone know what the code for that would be?
Thanks,
Mallard27

It depends on your hierarchy when you say this.parent.index in your code. You need to find the correct repeating subform index which maybe a couple of levels above your current context. If you have a repeating table in a subform and you button is inside a row of the subform it could be that you should have this.parent.parent.parent.subform.

Similar Messages

  • SQLPS - Checking for a specific table

    I am trying to check for a table existence in each database.  Any ideas why this does not work?
    Import-Module
    "sqlps" -DisableNameChecking
    $SQLServer
    = "wobdslezberg2"
    Set-Location
    SQLSERVER:
    $dbArray
    = Get-ChildItem
    -name -Exclude
    "tempdb*",
    "master*",
    "model*",
    "msdb*" |
    Sort-Object
    foreach ($DatabaseName
    in $dbArray)
    $instance =
    $DatabaseName
    #write-host  $instance
    if (test-path
    "SQLSERVER:\SQL\wobdslezberg2\DEFAULT\Databases\$instance\Tables\eConfig") {write-host
    "exists"}
    else {write-host
    "not exists"}

    I am trying to iterate through all the databases on the server and check for the existence of a specific table in each database. 
    Actually that line does work fine because if I comment out the if test-path line, I get results as expected.  and I get list of tables like this
    dbo.SRC04_TABLES
    How do I put in the schema (dbo) in the test-path?
    The test-path does not seem to work as I get this message
    Test-Path : Cannot retrieve the dynamic parameters for the cmdlet. SQL Server PowerShell provider error: The number of keys specified does not match the number of keys required to address this object. The number of keys required are: Name.
    At line:19 char:9
    +     if (test-path "SQLSERVER:\SQL\wobdslezberg2\DEFAULT\Databases\$instance\Tabl ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParameterBindingException
        + FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.TestPathCommand
    Thanks
    Scott

  • Size of a specific table on disk? Queries over multiple (2) tablespaces?

    I am looking for a way to find out (for Oracle 9.2.0.1.0).
    How much space does each or a specific table require on disk?
    (whether with indices or without is the other question).
    And how much "payload" data is in each or a specific table?
    Another question - of my team leader - is:
    Is it possible to make queries over multiple (2) tablespaces?
    I assume - no - am I right?
    Thank you for precise answers as well as links to other threads in this forum (where I did not find it until now),
    and chapters in online documentation - or other sources.
    PS: I know SQL, PL/SQL a bit.
    We have Oracle Enterprise Manager console and SQL*Plus console.

    >
    The table size can not be found in bytes precisely, but in number of blocks of a certain size allocated for this table (index etc.).
    select segment_type,segment_name, Sum(Bytes)/1024 as kB from DBA_EXTENTS
    where tablespace_name = 'xyz' group by segment_type,segment_name;
    There are more blocks allocated for a table than space is needed by the current data amount.
    I guess, that this table was once bigger and has been emptied a bit.
    >
    A table grows in extents that get filled then with new rows. The columns
    blocks and bytes of user_tables get populated from dba_stats.
    In below example, the table rows have filled up to MB_TABLE the extents:
    SQL> select table_name,blocks*8/1024 as mb from user_tables order by 1;
    TABLE_NAME                   MB_TABLE
    CUSTOMERS            11.6015625
    SALES                 278.96875
    SQL> select segment_name,bytes/1024/1024 as mb from user_segments order by 1;
    SEGMENT_NAME                 MB_SEGMENT
    CUSTOMERS                    12
    SALES                       285If you later on delete again from the tables, that does not deallocate extents nor remove the high water mark unless you reorganize the table:
    SQL> select count(*) from customers;
      COUNT(*)
         55500
    SQL> delete from customers where rownum<25000;
    24999 rows deleted.
    SQL> commit;
    Commit complete.
    SQL> select segment_name,bytes/1024/1024 as mb from user_segments order by 1;
    SEGMENT_NAME                 MB
    CUSTOMERS                    12
    SALES                       285
    SQL> select table_name,blocks*8/1024 as mb from user_tables order by 1;
    TABLE_NAME                   MB
    CUSTOMERS            11.6015625
    SALES                 278.96875
    SQL> exec dbms_stats.gather_table_stats('ADAM','CUSTOMERS')
    PL/SQL procedure successfully completed.
    SQL> select table_name,blocks*8/1024 as mb from user_tables order by 1;
    TABLE_NAME                   MB
    CUSTOMERS            11.6015625
    SALES                 278.96875
    SQL> alter table customers enable row movement;
    Table altered.
    SQL> alter table customers shrink space;
    Table altered.
    SQL> exec dbms_stats.gather_table_stats('ADAM','CUSTOMERS')
    PL/SQL procedure successfully completed.
    SQL> select segment_name,bytes/1024/1024 as mb from user_segments order by 1;
    SEGMENT_NAME                 MB
    CUSTOMERS                6.4375
    SALES                       285
    SQL> select table_name,blocks*8/1024 as mb from user_tables order by 1;
    TABLE_NAME                   MB
    CUSTOMERS             6.2265625
    SALES                 278.96875Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Deleting the current table instance

    Hi
    I am replicating table dynamically using
    this.resolveNode('form1.#subform._subForm2').addInstance(1);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    When I try to delete the current table instance using
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.parent.index);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    results in always deleteting the first instance ( table )
    Any help ?
    I have a table with a button "Duplicate Table" and "Delete Table"
    If user clicks on "Duplicate Table" it creates/replicates/duplicates the entire table with all the fields and the buttons.
    Now from the user perspective suppose I have created/duplicated 5 tables with all the data fields and buttons ( please note each of the newly created table will also have their individual "Delete Table" option). Now I want to delete the third table using the "Delete Table" from the third table ( want to delete the same instance from which the button is clicked deleted .

    Recheck your line:
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.paren t.index);
    Replace this.parent.index with the name of the subform you are deleting. (ex: myParentTable.index);
    or
    Find how far down your delete button is in the hierarchy. For example if my delete button is wrapped in Subform1 and Subform1 is inside of TableToRemove then your syntax would have to be removeInstance(this.parent.parent.index) because the subform you want to remove is 2 parents up.
    Kyle

  • Backup of specific Table

    Hi,
    Is there any way i can backup a specific table?
    Can anybody give some advise? Its very urgent
    Regards,
    Mofizur

    Hi,
    We have raise an OSS due to some problem.
    Last reply from SAP was:
    the problem is caues by a database inconsistency.
    The following entry in table INOB is wrong and should be deleted.
    I ran report RCCLZUOB in display mode that found several more
    inconsistencies.
    Please run this report in display mode and check the result.
    From my point of view the report has to be run in deletion mode after
    that to remove the wrong database entries.
    <b>It might be usefull to have a backup of tables INOB KSSK and AUSP</b>.
    Thats why my development team is beating my head to take a backup and if required we have to restore it.
    Regards,
    Mofizur

  • Error while running query for a specific table

    Hi All,
    I need your help please.
    I've configured everything correctly in my SCCM environment. And i used to connect the CAS database from a separate box(same domain) which has SSMS console installed in it. Now the problem is, whenever i try to run a query in CAS database locally, it runs
    successfully. But when i connect the CAS database remotely and run the same query with the same login i used in CAS, it says the below error. This is happening from past 2 days only. :'(
    Query ran :
    select top 100 * from v_GS_WORKSTATION_STATUS
    Error :
    Msg 18456, Level 14, State 1, Line 1
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    OLE DB provider "SQLNCLI11" for linked server "abc.domain.com" returned message "Invalid connection string attribute".
    I checked the SQL connection authentication information it says authenticated by kerberos using below query :
    SELECT 
        s.session_id
      , c.connect_time
      , s.login_time
      , s.login_name
      , c.protocol_type
      , c.auth_scheme
      , s.HOST_NAME
      , s.program_name
    FROM sys.dm_exec_sessions s
      JOIN sys.dm_exec_connections c
        ON s.session_id = c.session_id
    where s.host_name='servername'
    Result:
    136 2015-01-30 17:50:29.277 2015-01-30 17:50:29.280 domain\user TSQL KERBEROS servername Microsoft SQL Server Management Studio
    But, another wierd information is i can successfully run the below query in remote.
    select * from vSMS_R_System
    I think that specific table is not working in remote. Pleaseeeeeeee helppp me......
    Regards,
    Jay

    Hi JaySmiley,
    According to your description, you get the logon issue when connecting to CAS database remotely and execute query. Right?
    In this scenario, this error can happen when the SPN account is registered without setting 'trusted for delegation' property. Account must be trusted for delegation in order for Kerberos delegation to succeed. Here's a blog talking about your scenario, please
    refer to the link below:
    http://blogs.technet.com/b/umairkhan/archive/2013/10/19/the-distributed-views-do-not-get-created-in-configmgr-2012-sp1-because-of-the-login-issue.aspx
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Can I remove a SPECIFIC file from the "Recents" list?

         As far as I can see, Adobe Reader for Android has only the option of clearing ALL the files in the "Recents" list. It doesn't have the option of removing a specific file from the "Recents" list.
         Maybe I'm just missing the option I'm talking about or Adobe Reader doesn't really have that feature.
         Sensible answers to my question will be greatly appreciated. Thanks!

    Hi iSTULIN
    I assume you can delete the complete list, not the single file ...
    Please check the below link : http://blogs.adobe.com/readermobile/2011/09/09/faqs-for-adobe-reader-on-android/
    You can raise a feature request on the below link : https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How To Restric all kind of access to 2 specific tables in SQL Server for all Users.Instead of table we would like users to go through View.

    Hi All,
    I am looking at an Technical solution for Restricting the direct access some specific tables in my data base  to all the users(Except admins and few Service accounts). However views created on top of these tables would be exposed to all Users.
    Could any one help me with the best solution.
    Thanks in advance,
    Regards,
    Raja Suri

    Hello,
    You can try to create a new role "Client_User" in the database and deny access to the new role on the specify tables. And then add all user which you want to restricting the direct access the specific tables to the database role.
    For example:
    Use Database
    CREATE ROLE [Client_User] AUTHORIZATION db_securityadmin;
    DENY SELECT ON OBJECT::schema.table TO [Client_User] ;
    EXEC sp_addrolemember 'Client_User', 'username';
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • HT4207 how can I remove a specific gmail account from my ipad 4?

    How can I remove a specific Gmail account from my ipad 4?

    Assuming you are not syncing with iCloud and you mean, syncing with iTunes only...(you can only use one or the other for syncing to prevent duplicates)
    iTunes -
    - Open iTunes on your Mac. Connect your iPad. Then click on your iPad (either its name or just "iPad"), then click the info tab (right above the photo of an iPad in the middle). From here you can select sync contacts, then sync groups, and select the groups you want and choose Apply/Sync in the bottom left corner.
    iCloud -
    - With iCloud if you just sign into iCloud in System Preferences and turn on Contacts, it will prompt to merge all of your contacts that are not already syncing with Gmail or Yahoo!, etc. so there really isnt a way to pick and choose as much with that.
    - However if you really want to use iCloud and not iTunes, you could import the contacts that you want into iCloud.com, but you would need to export them from your Contacts App on your Mac and then import them into iCloud (VCard / .VCF is the format you want).
    * Exporting the contacts from your Mac Contacts Application --> http://mac.tutsplus.com/tutorials/app-training/contacts-101-a-beginners-guide-to -contacts-on-os-x/ (further down the page)
    *Importing contacts into iCloud.com - http://support.apple.com/kb/PH3605
    **NOTE - Remember if you do the import into iCloud.com method, DO NOT sign into System Preferences > iCloud, and choose to MERGE contacts. If you do this later, all of your contacts will merge with iCloud and you will have duplicates of this group.
    I hope this isnt too confusing. Have a good night!

  • How to get search help tables of a specific table

    Hello Guru,
    I've a problem.
    I'm looking for a way to find out how many "search help" tables exist in a specified Check Table.
    Well, when I look for a check table of a field like MARD-LGORT
    I got as a check table T001L, now when I read the data from it, using the function module RFC_READ_TABLE I got all the data that I need, except now that I don't know which fields are actually displayed in the search help table of the field LGORT
    This what I want, in my case, the field that I need in the table T001L are : LGOBE LGORT WERKS
    All the others, are not so important.
    Please let me now, if you have an idea to find this.
    The search help table is for LTGORT : H_T001L
    Best Regards,
    Kais

    hi ,
    try this
    in the F4 value..
    call funtion '  HELP_VALUES_GET'                                                                               
    DISPLAY        =   "Text u want to display                                                                      
    FIELDNAME       = "Field name in specific table                                                                     
    INPUT_VALUE    = "Any default value                                                                       
    TABNAME           =   "Table name           
    Exporting
    SELECT_VALUE     = "The selcted vale in pop=up
    SELECT_INDEX      = "selected Index.
                Regards,
    prabhudas

  • Manual Exporting of BLOB specific table to text file

    Hi,
    Our application is having 60000 record in a BLOB specific table.
    My requirement is to export the entire table data to text files .
    When I tried converting BLOB to sting and writing to file, it took almost 3 mins for 100 records, if so, will take so much of time in exporting data from BLOB specific table.
    I am using the following logic,
    byte[] bdata = blob.getBytes(1, (int)blob.length());
    String data1 = new String(bdata);
    buffer.append(data1);
    Can anyone please tell me how can I speed up the operation.

    >
    Our application is having 60000 record in a BLOB specific table.
    My requirement is to export the entire table data to text files .
    >
    Welcome to the forum!
    If you are looking for a pure Java solution you should post this question in the JDBC forum.
    https://forums.oracle.com/forums/category.jspa?categoryID=288
    Unless your BLOB data is located inline you are going to use Oracle to read 60,000 files, one at a time, and then use Java to write 60,000 files one at a time.
    That will be a very slow process.
    Also - your Java code is only going to read the LOB locator and inline BLOB data since you are not getting and processing the actual stream.
    See 'Reading and Writing BLOB, CLOB and NCLOB Data' in the JDBC Dev Guide for details
    http://docs.oracle.com/cd/B28359_01/java.111/b31224/oralob.htm#sthref756

  • How do I removing a specific item from an Array?

    Hi there.
    I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).
    How do i remove a specific item from within an array?
    Can someone help me? Thanks a lot.

    i haven't noticed anyone showing deference because of the points.  in fact, i've seen some people (a minority, to be sure) be just obnoxious about it.  i never encountered that before:  some people feel they have power because they can dole out points.
    but overall i agree with you:  the loss of the list of threads i am participating in, along with the most recent posters name, is a significant drawback of the new forums.  and there's nothing new in these forums that offsets that drawback.
    in addition, i think we've lost way more than 1/2 the older threads.  that's a lot of information that's no longer available.

  • Can the cell lines be removed from a table inserted in a Pages document?

    Can the cell lines be removed from a table inserted in a Pages document?

    Inspector > Table > Table > Cell Borders
    The buttons immediately below "Cell Borders" allow you to choose left, right, inside, outside etc.
    Choose None from the border style Pop-up.
    Download the Number'09UserGuide from the Help menu in Pages. Search for borders.
    Regards,
    Ian.

  • Disable Statistics for specific Tables

    Is it possible to disable statistics for specific tables???

    If you want to stop gathering statistics for certain tables, you would simply not call DBMS_STATS.GATHER_TABLE_STATS on those particular tables (I'm assuming that is how you are gathering statistics at the moment). The old statistics will remain around for the CBO, but they won't be updated. Is that really what you want?
    If you are currently using GATHER_SCHEMA_STATS to gather statistics, you would have to convert to calling GATHER_TABLE_STATS on each table. You'll probably want to have a table set up that lists what tables to exclude and use that in the procedure that calls GATHER_TABLE_STATS.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Trim Whitespace.vi - remove unused polymorphic VI instances

    Hello All
    From some time while building the exe file I have started to receive the error:
    Error 1073 occurred at E:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\Utility\error.llb\Trim Whitespace.vi
    Possible reason(s):
    Application Builder: Unable to disconnect type definitions and remove unused polymorphic VI instances for this application. Deselect this option on the Application Settings tab and build the application again.
    It did not happen before. Of course I can leave all polymorphic vis in my application, but why I started to get this error? It never happened before. Especially that the Trim Whitespace.vi is not a polymirfic vi.
    Any ideas?
    thanks in advance.
    Pawel

    Hi Mohadjer
    Demn.... I remember now. I started to get this error when I saved my vi (for other purposes) with removed diagrams. Probably it removed it also from the vi.lib vis. Wow.... Now I am having problems, how many vis I have destroyed when this happened.
    Anyways, thanks a lot for this. At least I know what I have done .
    regards
    Pawel

Maybe you are looking for

  • NF-e de entrada - Email com dois ou mais XMLs

    Amigos, boa noite! Configurei recentemente o recebimento da NFe por e-mail no PI e funcionou conforme o esperado, agora tenho uma situação que são enviados dois arquivos XML no mesmo email, o GRC/PI faz o download dos arquivos, grava um deles no GRC

  • Incompitible Print Setting Error for HP LJ 8500n in Windows Vista

    Hi, I have two laptops, one with Windows XP and another with Windows Vista Business. There is a HP LJ 8500n connected with router and accessed by both laptops. Somehow, when I print from Windows XP laptop and I change the print settings there is no e

  • Can I open a excel file from labview

    I have a program who write temperature in a excel file and i want to open this file from labview .

  • Delivery document creation using vl01n

    Hi, I want to create a delivery document using VL01n.i need to create the doc for a particular selected item if there are many items for the order.i want to delete the remaining documents. how to handle this in BDC.

  • Unable to call a form from drill-down report

    hello i have a drill-down report, from where i wanna to call a transacation level form, so that user can modify the data from that transaction level form after seeing the result from report. After modification in data through form, report should be r