Hi how to edit the text content in CSV

Hi,
I need to edit the text content in CSV using java script.
The content goes like this..........
"missing image No"
need to replace "No" by "Yes"
Thanks in advance

> I need to edit the text content in CSV using java script.
Something like this work. I haven't tested it but it pretty close :)
var file = new File("~/somefile.csv");
file.open("r");
file.close();
var str = file.read();
var nstr = str.replace(/\bNo\b/g, 'Yes');
file.open("w");
file.write(nstr);
file.close();
-X

Similar Messages

  • How to Edit the Text in Flash?

    Hi there,
    I want to know that how to change the text on the Flash
    (.Fla)
    I have .Fla and want to edit it with the step by step help.
    Currently, I want to edit the text on the home page.
    http://www.mtkinetics.com/ayc/index.html
    Any help will be highly appreciated.
    Regards
    bushib

    1. click on the text. in the properties panel it will say
    static text, dynamic text or input text.
    2. if it's static text, click on the text tool and click
    inside your text. then edit. if it's not static text, you can do
    the same thing, but the text will be changed by actionscript during
    run-time IF text was originally assigned by actionscript.

  • How to get the text content of an XMLElement

    Hi,
    Here is a XML sample:
    <toto attrib1="titi">tata</toto>
    We want to get the text content "tata".
    Using an XMLElement (from the class "oracle.xml.parser.v2.XMLElement) to manipulate the element "toto", when we use the getNodeValue method, we always retrieve "null".
    So, what is wrong in our procedure and how to resolve this problem?
    Thanks in advance for your help
    Bye

    You need to get the child nodes of the Element and iterate until you find a node of type Node.TEXT_NODE.
    Elements don't have text content, they instead contain text node children.
    Just remember, too, that they can also contain comments, processing instructions, etc., in addition to the text you are looking for:
    <toto><!-- a comment --><?pi?>Tata</toto>

  • How to edit the text displayed in KM Upload link?

    Hi All,
            I want to edit the text displayed in KM Upload link ie "You can upload a file to the repository from your computer. Click "Show Properties" to assign another name or to change the settings".
    I tried searching for the resource bundle from which the above text is displayed but couldnt find it.
    Can anyone help?
    Thanks in advance.
    Regards,
    Pooja.

    Hi Pooja
    You can find the text in <b>ResourceEditControl**.properties</b> file, which is available under   <i>com.sap.km.cm.ui\lib\km.appl.ui.edit_api\com\sapportals\wcm\control\edit</i>..
    The text is represented by the key <b>txtUploadControl</b>..
    Regards,
    Sandip

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • How to edit the text generated by OCR

    Using Arobat Pro 8 I have scanned in a booklet with text in it. The OCR function has made it searchable and Read Out Loud too but how do I edit this text as some pages have errors on them due to graphics on the page interfearing with them. I tried using Document > OCR Text Recognition > Fin all OCR Suspects but nothing comes up!
    Thx
    Kevin

    Since there are "Image Only", "Image and Hidden Text" and "Text" pdfs that can be created by OCRing, you can only edit the PDFs that have visible text.

  • How to edit the text of a certain column in SALV_WD_TABLE  in ESS layout

    hi,expert.
    i want to change the text of the column:appraisee name in ESS worklist.
         Application :HAP_START_PAGE_POWL_UI_ESS
        Web Dynpro Component: SALV_WD_TABLE
        Window Information: TABLE
        View Information: VIEW_TABLE
    how can i achieve it? looking forward for your help.
    yours ping.

    check http://help.sap.com/erp2005_ehp_04/helpdata/EN/48/9968e67f020e27e10000000a421937/frameset.htm
    check notes  1416756, 1408243.
    Run SE80 and select the following:
    PACKAGE                PAOC_HAP_DOCUMENT_WD_UI
    Expand Node            Web Dynpro
    Expand Node            Web Dynpro Applicat.
    Expand Node            HAP_START_PAGE_POWL_UI_ESS    or
                           HAP_START_PAGE_POWL_UI_MSS
    Expand Node            Applic. Configurations
    Select Configuration   HAP_START_PG_POW_ESS_AC       or
                           HAP_START_PG_POW_ESS_AC
    => Test

  • How to edit the text in the attachment list in MM02 through Program

    Hi,
            I want to update the attachment list for the material.
    i.e, MM02 - > Services for object - > attachment list - > "I have 2 items".
    For the the first item, there will be some text is availble. Now my requirement is to update the text.
    For your reference,
    While creating material, the GOS is used to create the items in the attachment list, the code is
      *swc_create_object lv_message 'MESSAGE' lwa_message_key.*
    *** define container to pass the parameter values to the method call**
    *** in next step.**
                    *swc_container lt_message_container.*
    *** Populate container with parameters for method**
                    *swc_set_element lt_message_container 'DOCUMENTTITLE' 'Certification file path'.*
                    *swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.*
                    *swc_set_element lt_message_container 'NO_DIALOG'     'X'.*
                    *swc_set_element lt_message_container 'DOCUMENTNAME'  'MESSAGE'.*
                    *swc_set_element lt_message_container 'DOCUMENTTYPE'   'URL'.*
                    *CLEAR lv_url.*
                    *REFRESH lt_doc_content.*
                    *lv_url = lwa_data1-url.*
                    *CONCATENATE '&KEY&' lv_url INTO lv_url.*
    **---appneding URL contents to the table*
                    *lt_doc_content = lv_url.*
                    *APPEND lt_doc_content.*
                    *swc_set_element lt_message_container 'DocumentContent' lt_doc_content.*
                    *swc_call_method lv_message 'CREATE' lt_message_container.*
    **** Refresh to get the reference of create 'MESSAGE' object for attachment**
                    *swc_refresh_object lv_message.*
    **** Get Key of new object**
                    *swc_get_object_key lv_message lwa_message_key.*
    *** Now we have attachment as a business object instance. We can now**
    *** attach it to our main business object instance.**
                    *CLEAR: lv_is_object_a,*
                           *lv_is_object_b.*
                    *lv_is_object_a-instid = lwa_hdr_data-material.*
                    *lv_is_object_a-typeid = 'BUS1001006'.*
                    *lv_is_object_a-catid  = 'BO'.*
                    *lv_is_object_b-instid = lwa_message_key.*
                    *lv_is_object_b-typeid = 'MESSAGE'.*
                    *lv_is_object_b-catid  = 'BO'.*
                    *CLEAR lv_reltype.*
    ***      IF lwa_data-url IS NOT INITIAL.**
                    *lv_reltype = 'URL'.*
    **---creating URL for the Material.*
                    *TRY.*
                        *CALL METHOD cl_binary_relation=>create_link*
                          *EXPORTING*
                            *is_object_a            = lv_is_object_a*
    ***    IP_LOGSYS_A            =**
                            *is_object_b            = lv_is_object_b*
    ***    IP_LOGSYS_B            =**
                            *ip_reltype             = lv_reltype.*
                      *CATCH cx_obl_parameter_error .*
                      +**CATCH cx_obl_model_e

    Please close this thread.Open new thread in forum [SAP Community Network Forums » ABAP Development » ABAP, General |;

  • How to edit the mail content

    Actually iam Oracle Developer, got some issue related to Java.
    There was some code written in Java for the Email's to be sent to customers.In this code they have used some hardcoded text aswell as database fields.Everytime users want to change the email content, they have request the developer to do so, which is a hectic task.
    Now iam looking is there any possibility either in java or Oracle to resolve this issue,like
    user on himself can change the context and those changes should apply in future aswell.

    user9093700 wrote:
    Actually iam Oracle Developer, got some issue related to Java.
    There was some code written in Java for the Email's to be sent to customers.In this code they have used some hardcoded text aswell as database fields.Everytime users want to change the email content, they have request the developer to do so, which is a hectic task.
    Now iam looking is there any possibility either in java or Oracle to resolve this issue,like
    user on himself can change the context and those changes should apply in future aswell.It took three reads of this thread to be sure that you are not actually an Oracle employee! Of course the program can be modified to make it easier for the user to provide tailoring but the devil is in the detail and you haven't really given any and in any case the question is far too general. Since you posted this in the "New To Java" forum it seem likely you should start with the Java tutorial. Google is your friend.

  • How to edit the text in a trailer 'after' converting to a project?

    After converting my trailer to a project so I can add photographs and further music. I accidently deleted the last frame of the trailer credits.. and now need to add it back in. Your help is much appreciated! Nick

    Try Command-Z or Edit/Undo. (if you deleted the whole title page).
    You can edit text by clicking in the text.

  • How to read the TEXT TABLE (or) .CSV in HSQLDB Standalone using Java

    Hi, I like to use the text tables in our application. And like to use the HSQL Database Engine as Standalone. I created the text tables, those are stored in the disk as ".CSV" files. But i am unable to read that text table (.CSV) when i relogin and gave the CSV file path as URL along with "jdbc:hsqldb:file". So can anybody give me the tips how use the text tables.
    Regards,
    Vinay

    You need to make a URLConnection to the page you want, and get the input stream from that page.
    The contents of the input stream (use a reader to get them) will give you the raw HTML code. Use a parser to get the actual content. I dont know of a parser offhand, but you can search for one.

  • How to view the text/content of a cookie

    In older versions of Safari (some version prior to 5.1.2), when you looked at the cookies being stored via the section of the preferences screen...
    You could view the entire cookie.
    In 5.1.2 you are simply told the site name.
    Is there any way to view the cookes themselves?

    Go to ~/Library/Cookies.
    Open the Cookies.plist file.
    You will need the Property LIst Editor  >  http://www.macupdate.com/app/mac/14363/plistedit-pro
    If you happen to have XCode installed (developer tools) if you double click the Cookies.plist file, the Properrty LIst Editor will open the files for you.

  • How to read the TEXT TABLES (Or) .CSV in HSQLDB using JAVA

    Hi,
    I want to use the HSQLDB instead of mdb in our application. I am using the HSQLDB Engine Standalone mode, and given a file name "TEMP" in URL along with the "jdbc:hsqldb:file:". Then a I created a TEXT TABLE, that table was created as a .CSV file in the Disk. But I am unable to read that CSV, I tried that file in the database URL. But its not working. Can anubody give me the suggestions.
    Thankyou,
    Regards,
    Vinay.

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • How to give previleges to just edit the Text within the Portal ?

    Hi all,
    This is our first Portal project and we don't know how to do this.
    In our portal there are 6 or 7 tabs. The first tab (tab-1) is HOME, where there is corporate news to be posted.
    Usually we do all the content modification using ORCLADMIN user.
    Now we want to give access to one end user to edit the text for the corporate news on tab-1.
    But he must not change other part of the Portal.
    How can we do that ?
    Many thanks for your help.
    xtanto

    For order services, contracts and activities set object CRM_ORD_OP as I said.
    For Ibase use CRM_IBASE but with this one it is not possible to set authorizations only for own ibases. Maybe there is some other object for ibases.
    Also for business partner there is no such authorization object to shown only own partners. You have 2 options. To play with object B_BUPA_GRP but that means you will have to maintain group for each responsible employee. Or you implement logic in badi BADI_CRM_BP_UIU_AUTHORITY.

  • Does anyone know how to simply edit the text in the spine of hard cover, 40 page book in the book mo

    Does anyone know how to simply edit the text in the spine of hard cover, 40 page book in the book module? I can click into any other text window and edit and change attributes but I am locked out of editing text when it comes to the spine of the book. I spoke to Blurb support and they referred me to Adobe. I spent 45 minutes with support here - no one knew. I am still waiting for a call back with an answer... not holding my breath as it's been a few hours now. HELP!!!

    Thanks for your reply John. I have experienced all the fiddly aspects you mentioned - these are attributes and although changing them requires the skill of a surgeon's hand - it's the actual editing of the text I can't seem to access anymore. The box just won't allow me to do anything except change attributes. Does that make sense? And it's only on the spine where I am having this issue. Puzzled! I have even rebooted the program and just now the computer - to no avail. 

Maybe you are looking for

  • What's the best way to move thousands of files?

    I'm working on a script that renames and moves potentially thousands of files at a time. It's meant to process photo timelapses and separate bracketed exposures. The first part of my script works very well. tell application "Finder" to set firstSetCh

  • How get back deleted pictures on iPhoto

    I lost all my pictures by taking my libray picture to my external hard drive and when I wanted to take it back my mac it couldn't any picture, I also tried to follow some instructions on iphoto by pressing some buttons but I still couldn't get back p

  • How to setup Notifications from iCloud in Lion ??

    How do I get Notifications from iCloud into Lion?  There seems to be no option for it. From my iPad (IOS 5) I have selected iCloud for Notifications. Whats the step for Lion ? Thanks for your help!

  • RG 23 A Register

    Hi Gurus After capturing and posting excise invoice, how to see the entries made by the system in the RG 23 A Register? Thanks in Advance Radha Krishna

  • I have two blackberry's that won't load

    I have two blackberry 8520 that won't load the operating system one loads a third then switches off and on,the other loads and writes reload software...I've tried force detection it does not show me any ports I downloaded the software but still nothi