Query field contains backward slash

I am trying to query a field contains backward slash (for example,
"com\aaa\bbb" in database) by using kodo 2.5.2 and msde2k. If I use the
following condtion string, I am not able to get any record back.
Sring condtion = "com\\aaa\\bbb";
String filter = "aProperty == \"" + condition + "\"";
(In the log message, this condition string become "comaaabbb")
I have to use 4 slashes to get record.
Sring condtion = "com\\\\aaa\\\\bbb";
String filter = "aProperty == \"" + condition + "\"";
(In the log message, this conditon string become "com\aaa\bbb")
Any ideas or comments.
Thanks
William

Thanks a lot for the answers.
It seems there are some problems in my sample code. Here is correct one.
(CASE I) - I use double slashes in the condition string in this case and
it doesn't work.
Sring condtion = "com\\aaa\\bbb";
String filter = "aProperty == "" + condition + """;
(In the log message, this condition string become "comaaabbb")
(CASE II) - I use forth slashes in the condition string in this case and
it works.
Sring condtion = "com\\\\aaa\\\\bbb";
String filter = "aProperty == "" + condition + """;
(In the log message, this conditon string become "com\aaa\bbb")
Thanks
William Perng wrote:
I am trying to query a field contains backward slash (for example,
"comaaabbb" in database) by using kodo 2.5.2 and msde2k. If I use the
following condtion string, I am not able to get any record back.
Sring condtion = "com\aaa\bbb";
String filter = "aProperty == "" + condition + """;
(In the log message, this condition string become "comaaabbb")
I have to use 4 slashes to get record.
Sring condtion = "com\aaa\bbb";
String filter = "aProperty == "" + condition + """;
(In the log message, this conditon string become "comaaabbb")
Any ideas or comments.
Thanks
William

Similar Messages

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Field containing a list of sizes or a table ?

    Iain was kind enough to advise on using a table instead of a field containing a list of 6 comma separated items.
    I did this, but can I throw a new slant on why I'd prefer to use a field ?
    JEWELLERY WEB PAGE
    select * from merchandise where merchandise.category = "Jewellery"
    PRODUCT DETAIL PAGE
    When a user clicks on any items from above page, the hyperlink sends the unique merchandise_ID in the link, to a product detail page using a new query:
    select * from merchandise where merchandise.merchandise_ID = URL.merch_ID'
    This jewellery comes in various sizes. These sizes were in a comma separated list in a field called 'sizes' in the merchandise table. I'd been advised to move them to a table instead. If I moved the sizes to a separate table I'd have to add a LEFT JOIN to include the sizes table or run a separate query on the sizes table (where sizes.merchandise_ID = URL.merch_ID) - which is a performance hit.
    All I need to do with the sizes is produce a drop down list the user can choose from - so isn't it better I just put the sizes in a single field, separated by commas ? Then use Coldfusions inbuilt functions to parse the list into a drop-down box ?

    A thought experiment that might convince you.
    Lets compare these two data schemas.
    CSV
    Item
    Size
    Shirt
    Small,Medium,Large
    Coat
    Medium,Small,Large
    Pants
    Small,Large,Medium
    Shoes
    Large,Small,Medium
    NORMALIZED
    Size Table
    Key
    Size
    1
    Small
    2
    Medium
    3
    Large
    Item - Size Join Table
    ItemKey
    SizeKey
    1
    1
    1
    2
    1
    3
    2
    1
    2
    2
    2
    3
    3
    1
    3
    2
    3
    3
    4
    1
    4
    2
    4
    3
    Item Table
    Key
    Item
    1
    Shirt
    2
    Coat
    3
    Pants
    4
    Shoes
    Now imagine these two systems extended to multiple thousands of items.
    Then imaging that some marketing type decided that "Large" was an ugly description for that size so they want to change it to "Husky"  and|or they want to change the "Small" size to "Petite".
    In the Normalized version you make one or two updated to the size table.  I don't even want to try and describe the ugly update you have to try and create that involves looping and string manipulations to try and update all the records in the CSV version.

  • Sort on field containing Hebrew description in PowerView connected to MultiDimentional Model

    Hi,
    We are connected to MultiDimentional via Power View in SharePoint 2013.
    The Local Identifier Code is 1037 (Hebrew).
    The problem is that every time you check a field containing description in Hebrew
    the query is stuck, cause there is an automatic Order by clause on fetched fields
    in the query generated by the PowerView. For ex:
    EVALUATE
      FILTER(
        KEEPFILTERS(
          SUMMARIZE(
            VALUES('DW DIM CUSTOMERS'),
            'DW DIM CUSTOMERS'[BRANCH CD.Key0],
            'DW DIM CUSTOMERS'[BRANCH CD]
        NOT(ISBLANK('DW DIM CUSTOMERS'[BRANCH CD.Key0]))
    ORDER BY
      'DW DIM CUSTOMERS'[BRANCH CD], 'DW DIM CUSTOMERS'[BRANCH CD.Key0]
    If the order by on 'DW DIM CUSTOMERS'[BRANCH CD] (the desc of the branch)
    removed (manually in SSMS) the query runs without any performance issues.
    How this could be fixed?
    TY

    Hi Dimitri,
    According to your description, did you want to improve MDX query performance?
    In SQL Server, we can consider following conditions to improve SSAS query performance:
    Use calculated members with Scope assignments instead of using IIF.
    Remove empty tuples from MDX result.
    Optimize cube and measure group design, etc.
    Reference:
    http://technet.microsoft.com/en-gb/library/cc966527.aspx
    As per my understanding, there is no limit to the number of columns in the ORDER BY clause; however, the total size of the columns specified in an ORDER BY clause cannot exceed 8,060 bytes. It may be cause the similar issue.
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • WIS 00015 error- Multiple Query Filters contain a prompt with same name

    Hi
            I am working BOXIR2 environment. I created two prompts at Universe level- one of Date field and one on agency name field.
    syntax for the prompts is
    customerInfo.RSRCE_NAME =  @Prompt('Enter value(s) for AgencyName ','A' , , ,)
    datetable.STARDATE =datetable.STARDATE.STARTDATE =  @Prompt(' 'Enter value(s) for StartDate:','D' , , ,)
    When I include even one of  the prompts in the report I am getting an error WIS 00015 Multiple Query Filters contain a prompt with the same text, but the prompts use a different operand type.
    If I try to change text of one of the prompts in Universe selection statement, then I see the prompt two times in the report.
    Please let me know how to overcome this issue.

    Ok, I've simplified the case.
    Here is the real case :
    Object filter =
    Based on object =
    .[LEVEL01]
    Object filter =
    Based on object =
    .[LEVEL01]
    In WBI query result I take these objects :
    .[LEVEL01]
    .[LEVEL01]
    .[4IUX93YJGXQEHGLX0T0GPNA9Y]
    In query filters, my 2 filters with same text :
    1.
    I run the query.
    Answer to question 'Single Year Period ?' = Period 06 2010
    ==> MDX error
    A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
    And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
    Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
    SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
    Thanks for your help.
    G.OM.

  • Query field as a URL link

    Is it possible to write a query on a data structure where a field contains a URL that you can click and open a new window?  The data structrue could contain thousands of such links.
    Ian.

    Thanks for that.  For anyone else reading this, here is a link to a worked example:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/1bbb16a735634bb606e1492fe56977/content.htm

  • System and Query field disable in Data Manager for Netweaver BI

    Dear All.
    i have installed Xcelsius Engage Server 2008, when i try to add connection for SAP Netweaver BI from the Data Manager the dialog appears correctly but in Defination TAB only the Name field is enable both System and Query field is disable.
    without that how can i configure the connection please let me know how to fix this issue.
    Kind regards,

    Hi,
    You give the name of the connection and then click on "Browse".  It will then prompt you to connect to the desired system.  Log in and then select the appropriate query you want to build a dashboard on.
    Hope this helps.
    Regards,
    RashmiG

  • Select from table where field contains the first 3 character

    The value of the field contains leading zeros like 0000000123, 0000001123, 0000011123.
    Now we need to check the table for entries that contains the first three characters excluding the zeros.
    If we are looking for '123' then we should be retrieving 0000000123 and not 0000001123 or 0000011123.
    Is there a way to get that value in SQL statement with only the exact result?
    Thanks.

    P156550 wrote:>
    > We've tried to use LIKE in our SQL statements and filtered it but there are a bunch of data and we want to get the exact row to improve the performance.
    Hello Adjhan,
    Yes, you need not use LIKE.
    You can use CONVERSION EXIT. I see that the length of your data is CHAR10.
    So try to use the code i have suggested & revert back if any doubts.
    @Soumyaprakash:
    If read the original post carefully, the OP has said:
    If we are looking for '123' then we should be retrieving 0000000123 and not 0000001123 or 0000011123.
    So LIKE does not come into the picture.
    Good Luck,
    Suhas

  • Why is it that, in HTML documents, other browsers treat both forward and backward slashes the same whether used in local or Internet file names, whereas Firefox only treats them the same in local (PC) names but differently in Internet file names?

    I've tested this using several versions of Firefox (from 3.6 to 10.?) under both Windows XP and Windows 7.
    Using either a backward slash (\) or a forward slash (/) in an <A HREF="..\home.htm"> link works fine when testing the document locally; but after installing it online the backward slash is no longer recognized as a file separator.
    While the mistake was mine, the inconsistent treatment of the two slashes made it impossible to catch the problem until it was installed, resulting in a badly mangled website. Competing browsers (such as Internet Explorer and Google Chrome) don't have this problem.

    see http://bbs.archlinux.org/viewtopic.php?id=9107 to use a different cipher and improve speed. might help.
    btw are you sure the stuttering is due to pure CPU and not (disk) IO, or a combination of both? look at wait times in top. maybe tweaking your schedulers might help.
    also you can take a look at AFP (netatalk package) as an alternative. who knows, might help you.
    by the way, did you try webdav?

  • CR on BW Query : Query fields not displayed properly

    Hi Experts,
    I am using Crystal reports 2008 with SAP Integration Kit for BO Enterprise XI 3.0
    I want to create a CR based on SAP BI 7.0 Query. But I add BI query as a datasource from SAP BW Query, it doesn't bring in all the fields correctly.
    All the Characteristics are displayed as D~ [0sold-to]~ K or D~ [0Material] ~K
    All KFs are displayed as M~ [Measures].[D4NXLFXS1ULO50FAO05ZCM9DN] ~ M or M ~ [Measures].[D4NXLFXS1ULO50FAO05ZCM9DN] ~ U
    Please help me how to see the proper description of Char or KF?
    Thanks,
    Smruti
    Edited by: Smruti Pattani on Dec 11, 2008 8:12 PM

    Hi,
    I built a Crystal Report on BI query using SAP BW MDX Query.I have Crystal Reports 2008 and BO Integration kit for sap XI 3.1. I am able to bring in all the query fields into report but when i try to see preview, system fails to retrieve data and it gives me error
    Database Connector Error: "BAPI Error # :0"
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Please help me how to resolve this issue.
    Thanks,
    Smruti

  • Marketing Calender Query field is not populating

    Hi Experts,
    I'm using CRM5.0 and EP7.0 .
    I've a problem with marketing calener. I've added it to portal but I'm not getting data from the backend in the query field(Show label). I'm getting all the views in view field but not the query field. I got some idea that the backend role to be assigned to portal roles in 'Assign portal role to single role' but it is not working.I think I'm missing some steps or entering incorrect values. Please send me detail steps of what I've to do in ''Assign portal role to single role' .
    Thanks in advance
    Koustav

    Hello ,
    Create requirement class and Requirement type relevalnt for your order type.
    Path to create this is:
    SPRO-> Proect systems->Material->Control of Sales-Order-Related Production->Check Requirements Classes
    Check Requirements type also.
    Create stretegy in view V_T461S.
    assign req class &type to stgy.
    then assign this req class and type in material master
    create Project or WBS elemt in transaction CJ20N.
    then follow the same process steps to create sales order that WBS elemt pop will come.
    regards,
    Nisha
    @award pts is helpful.

  • How to set a field as mandatory when another field contains specific values

    Hi SAP Experts,
    Is it possible to set the Plant Specific Material Status field as mandatory when the DChain-spec. status field contains a specific set of values? Thanks.
    Regards,
    Kim Yong

    Hi Kim,
        I think you can achieve this using the validation tab in the field.Add a new rule for validation select the condition as test and in the value you have use formula according to your senario.Select the 'Stop execution'.This will make the field mandatory.
    I hope this helps...
    Naga

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Query fields initialised  on page load

    Hi,
    I have a query region with autoCustomizationCriteria on my page. How do I set initial values for some query fields?
    Thanks

    Get a handle to the bean corresponding to the query field and call the method to set the default value. Setter method will differ based on the query field like textinput or choicelist etc. Refer to javadoc of corresponding baen for default value setter method.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to check whether a field contains at least one numeric value

    how to check whether a field contains at least one numeric value..

    Hi,
    I hope that this code will works.
    constants:
       c_digit_grp        TYPE char11         VALUE '0123456789',        " Digit group
    * Data Declaration
    data :
      str   type string.
    * if you want check entire string and pass entire string
    if  str CA c_digit_grp.
    * write your logic ---this block will execute atleast one numeric value exists in the string
    Endif.
    Regards
    Bhupal Reddy

Maybe you are looking for