Delete and modify orgs from Load from File

Hi,
I created my organizations with the Configure > Import File option, but how can i delete or modify organizations in a same way.
Thanks,

In that case Do i need to write the entire contents of my file to a hash table(sumthng like this) and modify the Second row in my case with the new values..
is it possible??I would have done like this (though there maybe better methods)
1- create a class representing the record.
class Record{
      String field1;
      String field2;
      String field3;
      // and so on....
      //setters
      public void setFeild1(String str){
          field1=str;
      // and so on....
      //getters
      public String getFeild1(){
          field1=str;
      // and so on....
      public String toString(){
           return(field1+"||"+field2+"||"+field3);
}//end class2- then create an ArrayList meant to have objects of this class (Generics).
3- read from the file , create a new Record Object and add that to the ArrayList
4- perform operations on the ArrayList (you can add new records, and delete record, update......)
5- write the record back to file using 'toString()' method.
is there ne sample code available for thisdon't know, but you rarely get full code on forums.....outline given can be followed
Thanks!
Edit: It appears that 'r035198x' and me have the same point. This shows that this methodology is almost a standard way( if we ignore the Random access files.....)
Edited by: T.B.M on Jan 13, 2009 2:39 PM

Similar Messages

  • Feature Request: save metadata to file, and read metadata from file.

    Please have function to save metadata to file, and read metadata from file.
    This would allow us to write cross-platform plugins that can assure data is up-to-date in the xmp, or modify xmp and have it reinstated in the catalog.
    This would go nicely with the ability to save xmp for virtual copies, dng, and rgb formats.

    Perhaps someone with direct experience with publishing to Smugmug will chime in.  Short of that, some thoughts on your issues:
    Should I not bother to "Save Metadata to File", this seems to be what is messing up the SmugMug publish service?
    I very much doubt that it is messing up the publishing.  What gets saved to the file from the catalog is independent of what gets exported.  Saving metadata to the file is generally a good practice (in case you screw up your catalog backups).  Many, perhaps most, users set the preference Catalog Settings > Automatically Write Changes Into XMP.
    I would have expected it to behave like an export which would write synonyms, exclude keywords that should be excluded, etc, which seems to work ok in point 6 above.
    Yes, that's a reasonable expectation.
    You may have done this already, but double-check: Right-click the Smugmug publishing service in the left-hand column of the Library, select Edit Settings, and in the Metadata section verify that you have Include: All Metadata set.
    Did you download the Smugmug plugin from Smugmug? You might try this Smugmug plugin instead -- the author designed the publishing architecture of LR and has an excellent reputation. 
    Are the publish services more effort than they are worth? So I get SmugMug to work, what happens when I try Flickr?
    I think many users find the publishing services are generally worthwhile.  I publish regularly to Flickr (using the built-in Flickr plugin, which isn't completely reliable) and the Zenfolio plugin from Friedl. 

  • How to connect, add delete and modify sqllite data base.

    dear friends,
    i am developing a stand alone project, in that i want to
    store the datas in the local machine using sql lite. Iam new to
    Flex. i know air and flash very well.. any body can help me, how to
    connect, add, delete and modify the data in sql lite. i want to
    store users option in local machine.. i got struct up. i have to
    finish my project...pls..
    thanks and Regards,
    Syed Abdul Rahim

    Hi,
    Please find details on how to access SQL Lite database from
    AIR applications at the URL below.
    http://livedocs.adobe.com/flex/3/html/SQL_01.html
    Hope this helps.

  • Can not delete and modify events

    Sun Java System Calendar Server 6 2005Q4 (built Jul 21 2005)
    I have created a new event in my calendar but I can not delete and modify event.
    Everyone on this system have same problem.
    How do I do ?
    Regards,
    JO.

    I did not see any errors in log directory.
    # showrev -p | grep ics5
    Patch: 116577-24 Obsoletes: 117706-08 Requires: Incompatibles: Packages: SUNWics5, SUNWica5
    Patch: 117860-16 Obsoletes: Requires: Incompatibles: Packages: SUNWics5, SUNWica5
    Patch: 118186-16 Obsoletes: Requires: Incompatibles: Packages: SUNWics5, SUNWica5
    # ./csdb check
    Checking the database health condition.
    Please be patient, this may take a while...
    Start by scanning components db...
    Scanning events database...
    102 events scanned
    102 events copied
    Scanning todos database...
    10 todos scanned
    10 todos copied
    Scanning deletelog database...
    14 deletelog entries scanned
    Scanning gse database...
    0 gse entries scanned
    Scanning recurring database...
    0 recurring entries scanned
    Successful components db scan
    Now starting calprops db scan...
    Scanning calprops database to uncover events...
    326 calendars scanned
    Scanning calprops database to uncover todos...
    finished...
    Calendar database consistency check completed successfully
    Regards,
    JO.

  • Problems deleting pdf's generated from files off of Snow Leopard Server

    The small design studio I work at has just upgraded from G5's running 10.4 Tiger, working off Tiger Server, to new iMacs running 10.6 Snow Leopard and a Mac Mini Server, on Snow Leopard Server.
    Normal working practice is to open files off the server across the network, making changes and saving them back down. Most of the time, a pdf will be generated from the file to send to the client when copy changes have been made, then saving down the pdf file to the iMac to email to the client.
    The issue is now that when the pdf has been emailed, attempting to delete it brings up a warning window that 'You do not have sufficient accesses privileges to delete the file' and this then has to be done by selecting secure empty trash.
    We are all registered users on the Mac Mini Server and this was not an issue we had when using Tiger.
    Could anyone suggest any setting changes that would be required to get around this issue?
    As a note, all the work files were originally on a older G4 being used as a sever and were copied to the new Mac Mini Server, that was set up as a new machine and was not done via transfer files.
    Thanks
    Ben

    Hello Ben,
    I'm very sorry, but this is not the correct forum in which to post your question! Universal Access is the facility for ensuring that all Mac users can benefit fully from their machines, regardless of disability.
    Try Snow Leopard Server—Installation, Setup and Migration instead!
    Cheers,
    Archie

  • Upload material and contract data from file in CCM 2.0

    Hi guys,
    This might be a difficult one!
    We have the following situation in a Client:
    We are upgrading a Requisitite catalog (working with BBP 2.0)
    to a CCM 2.0 catalog.
    In Requisite, one can upload material- and contract data from a file (it is standard funcionality) into the database.
    We need to have the same kind of funcionality in CCM 2.0 because our client does not prefer to work with XI (which is the standard SAP solution in these cases).
    How can we accomplish this? maybe with some additional ABAP coding!
    Our client is not working with Vendor Catalogs but I´m trying to see if we can use a dummy vendor catalog to accomplish material upload in CCM2 form a CSV file.
    Anyone had to face this situation before?
    If so, please provide some clues how to do it?
    Thanks in advance,
    Aart

    SAP CATALOG CSV 2.0 <;>
    Defaults;EN
    Model
    Catalog;All;;All Catalog
    DataType;DATE;DATE;Date
    Characteristic;Z_ACTION;/CCM/NAME;false;Action
    Characteristic;/CCM/PRODUCT_ID;/CCM/ID;false;Part Number
    Characteristic;/CCM/SHORT_DESCRIPTION;/CCM/DESCRIPTION;false;Description
    Characteristic;Z_MATERIAL_TYPE;/CCM/ID;false;Material Type
    Characteristic;/CCM/MINIMUM_QUANTITY;/CCM/MINIMUM_QUANTITY;false;Order Unit
    Characteristic;Z_CONTENT;/CCM/MINIMUM_QUANTITY;false;Content
    Characteristic;/CCM/LEAD_TIME;/CCM/LEAD_TIME;false;Lead Time
    Characteristic;Z_SUPPLIER_ID;/CCM/ID;false;Supplier Number
    Characteristic;Z_SUPPLIER_NAME;/CCM/NAME;false;Sup Name
    Characteristic;Z_P_GROUP;/CCM/ID;false;Purchasing Group
    Characteristic;Z_P_ORG;/CCM/ID;false;Purchasing Org
    Characteristic;/CCM/CONTRACT_ID;/CCM/ID;false;Contract Number
    Characteristic;/CCM/CONTRACT_ITEM_ID;/CCM/ID;false;Contract Item
    Characteristic;/CCM/PRODUCT_GROUP;/CCM/ID;false;Product Category
    Characteristic;/CCM/PRICE;/CCM/PRICE;true;Price
    Characteristic;Z_DATE;DATE;false;Date
    Characteristic;/CCM/LONG_DESCRIPTION;/CCM/LONG_DESCRIPTION;false;Long Description
    Characteristic;/CCM/PICTURE;/CCM/ATTACHMENT;false;Picture
    Schema;All;Z_ACTION;Z_MATERIAL_TYPE;Z_CONTENT;Z_SUPPLIER_ID;Z_SUPPLIER_NAME;Z_P_GROUP;Z_P_ORG;Z_DATE;All Schema
    Category;10000300;;;ABC
    Category;10000400;;;DEF

  • Extract date/time stamp and modifier name from memo field

    I need to extract all date/time stamps and modifier name strings from the Work Log memo field - or conversely, filter out all of the comments after the date/time modifier strings.    I have the string extract but it only extracts the first one.  I need to loop until all are found - how can I do this?  The memo field will look something like this:
    3/5/2009 3:32:05 PM John Doe
    Comments - string can be any length
    3/4/2009 12:35:43 PM John Doe
    Comments - string can be any length
    3/4/2009 12:28:17 PM Jane Dough
    Comments - string can be any length and include date format 2009-06-04 14:20 CST.
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    Comments - string can be any length
    3/4/2009 12:26:55 PM Lamseedivy
    Comments - string can be any length
    3/4/2009 12:15:22 PM Mareseedoes
    Comments - string can be any length.

    Here is a formula that will strip all 'comment' and blank lines and puts the datetime stamp and user names into an array.  You have to manipulate the elements of the array to further separate the datetime stamp and user name if required.
    // Declare two indices
    numbervar i := 1;
    numbervar j := 1;
    // Split each row of the memo field into an array
    // if chr(10) does not work then try with chrw(13) or chr(13)
    stringvar array x := split({Sheet1_.Comments},chr(10));
    // Declare a holding array
    stringvar array y;
    // Declare the size of the new array to be equal to the elements in array 1
    redim y[ubound(x)];
    // Copy only if the first word of each element of array 1 is neither "comments" nor a blank line
    for i := 1 to ubound(x) do
    if split(x<i>) = 'comments' or x<i> = '' then
    else
    (y[j] := x<i>;
    j := j + 1;
    // Compress the new array to eliminate the last blank element
    redim preserve y[j-1];
    // Joining the elements of the new array and the number of elements for display
    join(y,chrw(13)) & chrw(13) & ubound(y);
    With your example, this formula will return:
    3/5/2009 3:32:05 PM John Doe
    3/4/2009 12:35:43 PM John Doe
    3/4/2009 12:28:17 PM Jane Dough
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    3/4/2009 12:26:55 PM Lamseedivy
    3/4/2009 12:15:22 PM Mareseedoes
    6.00
    Make sure the "can grow" option is checked to display the results and also check for case sensitivity of "comments".
    Edited by: Sanjay Kodidine on Jun 30, 2009 10:13 AM

  • Itunes seems to be unable to locate original file to play songs. Songs are in the itunes media file and playable direct from file. Preferences/advance file location is correct. Some files are playing and others aren't with no obvious pattern.

    Itunes is unable to locate original file when attempting to play music. Songs are in the itunes media file and playable direct from there. Preferences/Advanced file location pointer is correct. Some songs play but most don't. I did move files around a bit in an attempt to share music with another account on same computor, however this did not work so have returned file to original location. Please help, I am way outside my feild in this one. Ta.

    I have solved the problem. i think when I moved the media file back out of public to my account, I put it back into the wrong place and ended up with a media file inside a media file, inside another media file!! So I moved it again and fixed!! Now I just need to work out why i can't share with another account user of same computor.

  • Creation/modified date from files

    Hi all,
    I work with Forms6i on a 8.1.6 database.
    In my Application I copy/move files from e.g. C: to an folder on the server. Now I will check, if the application really had copy/move the file. I would do this with the creation/modified date from the files. (e.g. If the modified date on the server is the same as the modified date from C:, then the application had really copied.)
    How can I find out the creation/modified date from the file in Forms6i. Which package can I use?
    Thanks. Sorry, for my english.
    Regards
    Sandra

    In Client server forms you can use D2KWutil (See the WIN_API_FILE package).
    http://www.oracle.com/technology/software/products/forms/files/d2kwutil/d2kwutil_6_0_6_0.zip

  • Function for deleting and modifying Infotype 2011 : HR_TMW_DB_UPDATE_TEVENT

    Hello experts,
    we have and requirement where we have to insert/delete or modify specific clock in/out posts from infotype 2011. Looking trough this forum I was not able to find how to delete or modify specific events from SAP correctly.
    We are able to insert new record via FM : HR_INFOTYPE_OPERATION with ease, but can not use the same function module to either delete or modify the same record.
    I was able to find FM: HR_TMW_DB_UPDATE_TEVENT and tried it in combination with HR_TMW_DB_READ_TEVENT, with out any succes.
    My question is: in what way must the tables be filled for deletion or modification, for FM HR_TMW_DB_UPDATE_TEVENT to work?
    With testing deleting a record, function explicitly demands taht all four tables are set
             del_teven      = t_teven_del
             ins_teven      = t_teven_ind
             del_teven_more = t_teven_more_del
             ins_teven_more = t_teven_more_ins 
    , but still the record is not deleted form table TEVEN.
    Thank you in advance for any given anwsers,
    Matevž

    Hello Rajesh,
    the code goes:
    * get original data:
        CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
          EXPORTING
            pernr    = iv_pernr
            fromdate = iv_begda
            todate   = iv_endda
          IMPORTING
            result   = result_tmw.
    * get next seq. nr.:
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = lv_ragne
        object                        = lv_object
    IMPORTING
       NUMBER                        = lv_number
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8.
          LOOP AT result_tmw INTO s_result_tmw.
            s_teven = s_result_tmw-teven.
            IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
              "set TEVEN_DEL tables for reading
              APPEND s_teven TO t_teven_del.
              APPEND s_teven_more TO t_teven_more_del.
              "set status for change to TEVEN_INS tables
              s_teven-pdsnr = lv_number.
              s_teven-ldate = iv_ldate.
              s_teven-ltime = iv_ltime.    
              s_teven-satza = iv_satza.
              APPEND s_teven TO t_teven_ins.
              MOVE-CORRESPONDING s_teven TO s_teven_more.
              APPEND s_teven_more TO t_teven_more_ins.
              EXIT.
            ENDIF.
          ENDLOOP.
    * execute deletion of current record:
          CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
            TABLES
              del_teven      = t_teven_del
              ins_teven      = t_teven_ins
              del_teven_more = t_teven_more_del
              ins_teven_more = t_teven_more_ins
            EXCEPTIONS
              insert_failed  = 1
              update_failed  = 2
              OTHERS         = 3.
          COMMIT WORK.
    Now I am using the following code, that is working:
    * get original data:
        CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
          EXPORTING
            pernr    = iv_pernr
            fromdate = iv_begda
            todate   = iv_endda
          IMPORTING
            result   = result_tmw.
    ********************************************************************** modification
    * CODE :                            MODIFY CLOCK IN/OUT
        IF iv_operation = 'MOD'.
          LOOP AT result_tmw INTO s_result_tmw.
            s_teven = s_result_tmw-teven.
            IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
              "set TEVEN_DEL tables for reading
              APPEND s_teven TO t_teven_del.
              APPEND s_teven_more TO t_teven_more_del.
              "set status for change to TEVEN_INS tables
              APPEND s_teven TO t_teven_ins.
              MOVE-CORRESPONDING s_teven TO s_teven_more.
              APPEND s_teven_more TO t_teven_more_ins.
              EXIT.
            ENDIF.
          ENDLOOP.
    * execute deletion of current record:
          CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
            TABLES
              del_teven      = t_teven_del
              ins_teven      = t_teven_ins
              del_teven_more = t_teven_more_del
              ins_teven_more = t_teven_more_ins
            EXCEPTIONS
              insert_failed  = 1
              update_failed  = 2
              OTHERS         = 3.
          COMMIT WORK.
    * insert new (updated) record of clock registration:
          s_p2011-pernr = iv_pernr.
          s_p2011-infty = '2011'.
          s_p2011-ldate = iv_ldate_new.
          s_p2011-ltime = iv_ltime_new.
          s_p2011-erdat = sy-datum.
          s_p2011-ertim = sy-uzeit.
          s_p2011-satza = iv_satza_new.
          s_p2011-origf = 'E'.
          s_p2011-begda = iv_ldate.
          s_p2011-endda = iv_ldate.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty            = '2011'
              number           = iv_pernr
    *         SUBTYPE          =
    *         OBJECTID         =
    *         LOCKINDICATOR    =
              validityend      = iv_begda
              validitybegin    = iv_endda
              recordnumber     = f_recordnumber
              record           = s_p2011
              operation        = 'INS'                       
              tclas            = 'A'
              dialog_mode      = '0'
    *         NOCOMMIT         =
    *         VIEW_IDENTIFIER  =
    *         SECONDARY_RECORD =
            IMPORTING
              return           = fm_return
              key              = personaldatakey.
          COMMIT WORK.
    ENDIF.
    Kind regards,
    Matevž

  • How to delete and edit particular line in a file and save it in same file ?

    Hi,
    I want to delete and edit text at particular line in a file.
    But edit and delete should reflect in same file.
    I have done googling for this but it results with using another file, that i dont want as i need to save changes in same file.
    How can i do this?
    Thanks in advance
    Edited by: vj_victor on May 24, 2010 3:33 PM

    I just want to make sure, this is the only way to do what i mentioned ? or it could be done another way !a) write the data to a new file
    b) delete the old file
    c) write the data to a newer file
    d) delete the new file
    e) rename the newer file to the old file name.
    For a hint about still more ways to do this, search for the complete lyrics of One man went to mow, Went to mow a meadow...
    db

  • I need help with a backup file that was deleted and now undeleted from my hard drive

    Last month (May 6, 2011), I was updating my iPod Touch 4G with the new software that came out. I always make a backup of my iPod's data before I update it. While my iPod was updating I left my iPod and computer alone and was doing things around the house with my mom. And when I was done I went in my room to see if it was done and my computer decides that it was going to freeze and crash on me (with my iPod plugged in and stuck on the updating or verifying software mode.) I managed to get my iPod back to working condition again but losing everything on my iPod. I formatted my computer hard drive but I managed to get back the backup I lost. I need help on getting the backup into iTunes so I can get my data back. I am not Jailbroken and I plan not to Jailbreak. I however saved the backup file in a folder other than the Mobilesync folder. I am also running on Windows XP. Someone please help me and thank you in advance!

    I was able to backup my iPod and I tried to restore my iPod again and it goes through the process and everything but it restores the temporary data that I had on there. It didn't restore application data or the current photos and videos that I had saved in Camera Roll before this all had happened. It is almost like it goes back to factory settings but I have some photos that were saved on the other backup that I was temporarily running on. The backup that I am looking to restore is the only backup file in the Mobilesync folder as of right now the others are saved somewhere safe for right now. Why doesn't it restore my application data or my Camera Roll pictures and videos that I saved before my computer crashed last month? Can this problem be fixed?

  • Will EC support setting default file type and Open With from file menu?

    The default file types I can live without, but at least allow for Open With on right click from Windows Explorer.
    I currently have EC set in the Open With programs list, but EC does not comply for any files I opt to open it with (.css, .php, .html etc).
    EC open but not the file I choose.
    Also, even though the above use case is not ideal when if I do attempt an Open With when EC is already open, a new application session starts instead of attempting to open in the currently active app frame. It would be ideal to allow for single app frame, multiple files when Open With is employed.
    Darrell

    Hey Darrell,
    Thanks for the feedback. How Edge Code treats files is definitely something we know isn't ideal and it's something we're looking at fixing soon. There's currently a story on the Brackets backlog that adresses the Open With issue - https://trello.com/c/GhF1Bgf9
    And it based on howit ranks in that priority it looks like we could potentially take that into Edge Code over the next couple of months.
    This is definitely a feature that we think is important before we consider ourselves 1.0 so it's high priority.
    =Ryan
    [email protected]

  • How do I bulk upload documents using PowerShell and extract metadata from file name?

    I have a requirement to upload a bunch of documents into a document library. Based on the content type, the rules of updating the metadata is different...the one giving me trouble is to extract the metadata from the file name. If I have a file name like
    "part1_part2_part3.pdf" how do I extract part1, part2, part3 and tag each document being uploaded into SharePoint, using PowerShell? I have searched and have not been able to find anything to get me started.
    Has anyone done this before? Or is there a blog I can take a look at? Thanks
     

    You will have to write a PS script encompassing this logic.
    Read files from the folder using
    Get-Item cmdlet
    Determine the content type based on the path or filename.
    Split the file name to extract the tag names.
    If the metadata fields in the content type is a managed metadata field, check whether the term exists and set it.
    Updating SharePoint Managed Metadata Columns
    with PowerShell
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to access Autocad2013 drawing and modify directly from c#?

    I want to open autocad 2013 from C# & open drawing file & modify it. how to send autocad command to autocad2013 directly from visual studio.

    Hi Kishor,
    AutoCAD is out of our support range, I think what you need is AutoCAD API for .NET. Please refer to the following link to see AutoCAD .NET Developer’s Guide.
    http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff-e569a0121d1945c08-2024.htm,topicNumber=d0e52566.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Using an External HD with USB 1.1 for Media (Movie files) storage?

    Many thanks for your attention. For a Media Storage (mostly movies) HD, I ordered a Maxtor OneTouch II with Firewire and the company mistakenly sent me one with USB 1.1 instead. I remember reading that for Media Storage, only the Firwire connection w

  • When i send to idvd, how good is the quality?

    when i send my video to idvd, is it full quality then idvd compresses it or what?

  • Constant crashing.... any one shed any light on this?

    Hi So, I'm doing some music and sound design for a movie - the first client screening is later today and I'm not done yet! Aaagh. I'm trying to sync audio to a .avi movie file. I'm running the video from one drive - the audio from another and the sys

  • I Book G4 will not boot up

    I have an i book G4 running 10.3.9. I got a message on screen that said my start-up disk was full. It then froze. I tried to restart, but only got the question mark icon alternating with the blue &white face icon. I have tried starting up from the te

  • Backup Analysis Services Database

    I am having an issue backing up SQL Server Analysis services Databases.  I have seen some threads on ensuring SQLServerAgent service account has write access to the folder containing the backup, be a sysadmin in SQL Server Instance, and be a server a