Removing quotation marks from channel names

Firstly - I am new to both DIAdem and VB so please forgive my ignorance!
I have a large data set containg many groups with (almost) identical channel names in each group. For reasons not worth going into some of the channel names have quoation marks around them, while others do not.
I am trying to remove the quoation marks to make all channel names consistent throughout the groups, for this I was hoping to loop through the groups renaming channels as appropriate
I think this should work:-
For
 i = 1 to GROUPCOUNT
Call GROUPDEFAULTSET(i)
 CN(""ChannelName"")="ChannelName"
Next
Where ChannelName is the name I am trying to replace, But I get the following error:- Expected ')'
Can anyone point out where I am going wrong?
(Note - I also tried using triple quotation marks ("""ChannelName"""), but I get this error instead - CN(""ChannelName""):=ChannelName Close bracket ")" expected for field index)
For bonus points - how to I get the loop to skip over any groups where the channel I am referencing already doesn't have quotation marks in it, rather than giving me an error that the channel can't be found?
Many thanks in advance for any assistance!
Dan
Solved!
Go to Solution.

Hello Dan,
You are using an old script syntax to manipulate the data. Please find below the current way to replace quotation marks with an underscote:
dim iLoopG, iLoopC, oGroup, oGroupChns, sQM
sQM = chr(34) ' the " character
set oGroup = Data.Root.ChannelGroups
for iLoopG = 1 to oGroup.Count
set oGroupChns = oGroup(iLoopG).Channels
for iLoopC = 1 to oGroupChns.Count
'msgbox oGroupChns(iLoopC).Name
oGroupChns(iLoopC).Name = Replace(oGroupChns(iLoopC).Name, sQM, "_")
next
next
Greetings
Walter

Similar Messages

  • How to remove quotations marks  from csv file

    Hi
    My input file is a .csv file which contains each value in quotation marks
    ex: - "123456778","jakob","grade10"
    Also each record in the input file contains 333 values .
    i am reading these records and using stringtokenizer to fetch value by value for that record .
    i want to remove the quotation marks before i put the values back into an output file with .txt extension .
    those output files will be bcped later into sybase db.
    Should the quotation marks be removed in the java code or is their anyother way to remove the quotation marks from the output file while bcping them .
    Thank You

    njb7ty wrote:
    I also suggest if possible, you use tab delimited cvs files rather than comma delimited cvs files.That would be TSV, LOL...
    If there are commas inside your data elements, you will not be able to tell if they are part of the data or are delimiters. Tab delimited files avoid this.What if your data contain tabs? Although there's no CSV specification, the common standard practice is to use two double quotes to escape a quote.

  • Remove quotation marks from a keyword

    Hi, need a help on this....
    I build a whole tree for my keywords and in some of them, I used more them one word in the same keyword, separated by comma.
    eg:  whale, whales
    The problem is when I do that, it creates a quotation mark and the other softwares dont understand it as 2 words and can not slipt it.
    Is there any way I can get rid of the quotation marks?
    Thanks in advance for any help.

    So it looks as if it can't be done the way you want it to work.
    There is a work around but requires a little more work.
    Insert the keywords as you are doing at the present.
    Then run a script on the selected documents to sort the keywords removing the quotes.
    Here is a script that will do just this...
    #target bridge  
    if( BridgeTalk.appName == "bridge" ) { 
    var menu = MenuElement.find ('updateKeywords');
    if (menu == null){
    updateKeywords = MenuElement.create( "command", "Update Keywords", "-at the end of tools",  "updateKeywords" );
    updateKeywords.onSelect = function () {
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var sels = app.document.selections;
    for(var a in sels){
    var xmpf = new XMPFile(sels[a].spec.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
    var xmp = xmpf.getXMP();
    var keys = getArrayItems(XMPConst.NS_DC,'subject').replace(/[";]/g,',');
    keys = keys.split(',');
    xmp.deleteProperty(XMPConst.NS_DC,'subject');
            for(var s in keys){
            xmp.appendArrayItem(XMPConst.NS_DC, "subject", keys[s], 0,XMPConst.PROP_IS_ARRAY);
    if (xmpf.canPutXMP(xmp)) {
            xmpf.putXMP(xmp);
             xmpf.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    function getArrayItems(ns, prop){
    var arrItem=[];
    var items = xmp.countArrayItems(ns, prop);
       for(var i = 1;i <= items;i++){
         arrItem.push(xmp.getArrayItem(ns, prop, i));
    return arrItem.toString();
    To install..
    Copy and paste the script into ExtendScript Toolkit
    This gets installed with Photoshop and can be found:-
    PC: C:\Program Files\Adobe\Adobe Utilities
    MAC: <hard drive>/Applications/Utilities/Adobe Utilities
    Start Bridge
    PC: Edit - Preferences - Startup Scripts
    Mac: Adobe Bridge menu - Preferences - Startup Scripts
    At the bottom click the "Reveal Button" this will open the folder where the script should be saved.
    Close and restart Bridge.
    Accept the new script.
    To use:-
    Select the documents to update
    Tools - "Update Keywords"

  • How to remove esclamation mark from itunes

    how to remove esclamation mark from itunes???

    See these...
    -> One computer using multiple iTunes Store authorizations
    -> About iTunes Store authorization and deauthorization

  • SSMS 2012:XQuery-doing "Retriving Job Candidates with the query Method" in AdventuresWorks 2012. Unclosed quotation mark after string '//*:Name.First?

    Hi all,
    From Page 354 of the the Book "Pro T-SQL 2008 Programmer's Guide" written by Michael Coles (published by apress), I copied the following code (Listing 12-9 Retrieving Job Candidates with the query Method):
    --Coles12_9.sql // saved in C:/Documemnts/SQL Server Management Studio
    -- Coles Listing 12-9 Retrieving Job Candidates with the query Method
    -- Doing XQuery and the xml Data Type in AdvantureWorks
    -- 17 March 2015 1105 AM
    USE AdventureWorks;
    GO
    SELECT Resume.query
    N'//*:Name.First,
    //*:Name.Middle,
    //*:Name.Last,
    //*:Edu.Level
    FROM HumanResources.JobCandidate;
    I executed this set of Listing 12-9 code in my SQL Server 2012 Management Studio and I got the following error messages:
    Msg 105, Level 15, State 1, Line 4
    Unclosed quotation mark after the character string '//*:Name.First,
    //*:Name.Middle,
    //*:Name.Last,
    //*:Edu.Level
    FROM HumanResources.JobCandidate;
    Msg 102, Level 15, State 1, Line 4
    Incorrect syntax near '//*:Name.First,
    //*:Name.Middle,
    //*:Name.Last,
    //*:Edu.Level
    FROM HumanResources.JobCandidate;
    I am not able to figure out why I got the error messages.  Please kindly help and advise me how to correct this set of sql codes.
    Thanks in advance,
    Scott Chang

    Hi Scott,
    I don't have that book at hand, but your problem is the "Unclosed quotationmark after the character string",as the error message shows. You have to enclose the 'XQUERY' string quotation in the
    query().
    SELECT jobcandidateid, Resume.query
    N'//*:resume,
    //*:Name.Middle,
    //*:Name.Last,
    //*:Edu.Level' --enclose the quotation here
    FROM HumanResources.JobCandidate;
    For XQUERY learning, here is a good
    link.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • DTW using .txt file adds quotation marks around BP Name

    I am importing new Business Partners using .txt file because of comma's in BP names.  When I import the BP names, quotation marks are added.  How do I get rid of the quotation marks?

    Gordon, thanks for the suggestion, it is helpful.  However, in this case, there were no quotation marks in the Legacy System, and when I imported using .csv files, I had no problems.
    When I switched to .txt, DTW added them somehow.
    Thanks,
    Avraham

  • Remove edit button from channels & URL textbox

    Can anyone please tell me how I remove the edit buttons from channels on the portal desktop?
    Also in the bookmarks channel how can I remove the URL textbox?
    Thank you for any help anyone can give me.

    Set the channel's 'isEditable' property to false
    Edit the template found in the BookmarkProvider directory

  • (JPA) quotation marks around column names

    Hello,
    we use postgres in our project.
    But the table and column names are not in lowercase, (the first character is upper).
    Is there a way that the jpa puts quotation marks around the table and column names in the queries, because postgres converts them all to lowercase if there are no quotation marks.
    And then we get the error that the relation does not exist.
    thanks!
    Dirk

    You can quote database identifier by explicitly placing quotes around them. For example as follows
    @Table(name="\"TableName\"")

  • Remove LF characters from file names

    I have a folder full of files with filenames that contain LF character (ASCII code 10).  I want to use Automator's "Replace Text" funcion to remove these non printing characters from file names.  Is there a way to do it?
    If automator is not able to do this task, I will take a bash script or applescript solution as well...

    Take a look at: http://stackoverflow.com/questions/4417588/sed-command-to-fix-filenames-in-a-dir ectory
    (I changed  tr -d "\r\n" to tr -d "\n", but try both)
    for f in ~/Desktop/*
    do
        new="$(printf %s "$f" | tr -d "\n")"
        if [ "$f" != "$new" ]; then
            mv "$f" "$new"
        fi
    done

  • Remove quotation mark

    I am using LSMW to upload material. Text file are tab delimited with material code and description. If description contains comma, uploaded data has quotation marks enclosed. That is [description, one] become ["description, one"].
    Can I remove the quotation marks in LSMW project?

    As an additional follow up to this question I have tried everything you have suggested and I still can't seem to replace the quotation marks. I know I'm getting the quotation marks because my data has a coma in it, so for example it is Gagnon,Annette and it will show up at "Gagnon,Annette". To make matters worse I'm really really new in this world and I also have an if statement in this wonderful converting attempt. This was my final attempt of about 20 different ones I found online...
    if not CUSTOMER-NAME1 is initial.
      XD02-NAME1 = CUSTOMER-NAME1.
    endif.
    REPLACE ALL OCCURENCES OF '"' in CUSTOMER-NAME1 with ` `.
    CONDENSE CUSTOMER-NAME1.
    Any suggestions? What am I missing?
    Thank you so much!
    Annette
    Nevermind... somehow asking for help made it work.... thanks anyways!
    Edited by: Annette Gagnon on Aug 9, 2010 11:23 PM
    Edited by: Annette Gagnon on Aug 9, 2010 11:45 PM

  • I need to remove "air." from package name. I'm get a Layout xml error when repackaging android app..

    So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
    Basically I'm going through this guide..
    http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
    I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
    But after going along with the above guide, with no issues when i get to the step that says
    "Run the following command to create the resource file for the updated AndroidManifest.xml:"
    I run this..
        "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
    But I keep getting the same error regarding the xml files in res/layout
        ./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
        ./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
    The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
    If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
    I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
    So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
    I run something like this:
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
    This makes a new file "AndroidManifest.xml.bk" and i can edit that.
    So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
    I tried this thinking i could do the same thing...
        java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
    Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
        java.lang.ArrayIndexOutOfBoundsException: 67
                  at android.content.res.StringBlock.getShort(StringBlock.java:231)
                  at android.content.res.StringBlock.getString(StringBlock.java:91)
                  at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
                  at test.AXMLPrinter.main(AXMLPrinter.java:56)
    So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
    EDIT:::
    Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
    It reads:
    "Error.
    Final conclusion:
    In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
    Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
    Give way to share a batch decompile xml file:
    First, create a *. Txt file
    Stresses inside the content authoring
    for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
    Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
    Decompilation results can be generated by executing the bat file multiple xml files."
    - http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
    Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
    I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.

    Hello~
         I also tried to remove "air." package name in air application. And i encounter the same problem.
         I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
         However, what you can do is copying the structure of res folder. And go to your air sdk file path -  adobeair-sdk-folder/lib/android/lib/resources/
         Replace those file exists in your res folder. And copy "values" folder to your res folder.
         Hope this solve your problem~

  • Remove crop marks from AI CS2 doc?

    Hi,
    I resized my document from a 8.5 x 11 to a 11 x 14 and then scaled the business card on it up 280% to fit in the new document size in Adobe Illustrator CS2. Everything is working fine except that my existing crop marks for the business card stayed the same size as the business card 3.5 x 2 so how do I remove these? I don't need them anymore.
    I will be having this printed so do I need to insert print marks or anything like that?
    Thanks in advance,
    ashmic19

    It worked! Thanks so much ScottW. I have no idea what it did but it worked. Thanks again!
    ashmic19

  • Best method to subtly remove scuff marks from white floor in a pic?

    I shot a model in a studio using a white backdrop. The backdrop under her feet is all scuffed up with marks. These marks are in a shadowed area, so I cannot just clone stamp clean areas from the background, since that is lighter and without shadow. Nor do I want to remove the shadow of the subject.
    These scuff marks ruin the shot, so I am really hoping there's a solution to this.
    My Photoshop skills are best described as advanced beginner.
    Thanks!

    Clone Stamp Tool, Healing Brush Tool, maybe also the Brush Tool (on a Layer with a noise Pattern Overlay to match the noise/"grain" of the image), … and as much time as it takes.
    You could also try Content Aware Fill etc.
    If you want to discuss editing approaches to a particular image not posting (the relevant section of) said image may make the discussion difficult.

  • Remove bleed marks from a PDF with creation tool unknown.

    I have a PDF that was given to me for use on our wensite.  This PDF contains bleed marks that I want to remove, is it possible to remove these using Acrobat 9 without cropping the pages?

    Perhaps with the redaction tool.
    Be well...

  • Remove water marks from sepia photo

    I have Elements 7.
    I wonder if anyone can direct me to the best way of dealing with a large sepia photo. About 25% of the photo has been spoiled by being in a damp area and under glass. This has turned large areas of the photo from shades of brown to mottled grey over the original brown tones. I have been trying for some while to find the best way of improving this with the healing brush and cloning but because some parts of the photo are significantly spoilt, it is difficult and inticate work. I don't mind that at all but I would hate to think that there was a quicker and easier way?
    I'd be grateful for any advice
    Thank you

    That's a tough one. I tried various things to remove the stain but no decent results. Might I offer this alternative:
    1. Copied the Background layer.
    2. I thought color was a bit too olive in tone so I converted to sepia for an antique look. To do this I made a Hue/Saturation change. In the H/S dialog window checked the Colorize box, set Hue to 30 and Saturation to 25.
    3. Made a Brightness/Contrast change to increase the Brightness a bit.
    4. Created a portrait-like background to cover some of the stains around the subject. To do this, set the Foreground/Background colors to light and medium shades of brown, added a blank layer at the top, and applied the Render > Clouds filter. Then applied a Gaussian Blur to soften the cloud effect a bit.
    5. Added a layer mask to the cloud layer and painted with black & white to create background around the subject.
    6. Did some cloning to fill out the knee and arm.
    7. Painted with brown over some of the stain still showing next to the arm.
    8. Linked the background and subject layers.
    9.  With the Elliptical Marquee, drew out an oval centering the subject, inverted and deleted the selection.. This created the oval on transparent background.
    10. Since the 2 layers are linked I used the Move tool to center the portrait/background on the canvas.
    11. Added a Solid Color adjustment later and set to brown for the "matte".

Maybe you are looking for

  • I can't search any videos on YouTube/Download any app from the App Store

    Hi, I am using movistar 3G network (Spain), full signal. Everything works fine, Stock app, Weather app, Mail, Safari... but I can't search for any videos on YouTube and can't download any app from the App Store. I can see videos on YouTube app but on

  • Email and SMS alert issues

    My phone is the Blackberry Curve 8530 1. I have two e-mail accounts set up on my phone. One the one, the red * alert symbol always shows up on that email account's folder, but for the other one the red * alert symbol for new messages shows up on the

  • How to make two PCs (one local, one remote) control the same running vi at the same time?

    Hi Labviewers, I have a vi running, and two PCs are monitoring it, one is local and another one is remote. I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control

  • Kindlyyy helppppp

    m yproblem is that i hav autonumber field user_id in my oracle table; wen i insert sequence seq.nextval from oracle ide it workz fine...bt now i hav user profil nd i hav to make entries thru java code...nd wen i use pt=con.prepareStatement("insert in

  • Member Selection Button Fails in Excel

    Has anybody run into a situation where the Member Selection button does not work in Excel 2007? When someone tries to use the button Excel simply freezes forcing the users to re-boot the computer. This is happening on a handful of Corporate users mak