Filter anomaly with string fields

Is anyone else have an issue with string fields and filtering? What I notice is if I choose a custom string field in the metadata filter bar I'll see the usual list in the column like:
All (2 values)
     50
String 1
       2
No Value
     48
If I choose All or an actual entry (like String 1) the correct images are filtered. However if I choose No Value I don't see 48 images but only the images I would see if I had chosen String 1.  The built in string fields (such as Label) don't behave in this fashion.
Is this a bug or something I can program around?

Thanks Eric. Just use the custom metadata sample plugin from the SDK. It exhibits the same behavior. Everything works fine so long as EVERY image has an entry in the string field. If any are empty the filter shows a No Value line. This doesn't happen for the builtin string fields. They do not show that line in the filter bar.
Choosing the No Value line does not show you the images that actually have no value in the field but some other group of images, some with values and some without.

Similar Messages

  • Need help with string field formula

    Post Author: dshallah
    CA Forum: Formula
    What I am trying to accomplish:
    The report has item numbers and each item number has the
    potential to be associated with up to three u2018binsu2019. So the fields are u2018item
    numberu2019, u2018bin1, u2018bin2u2019 and u2018bin3u2019.
    I tried to write a u2018if thenu2019 statement that would only show
    records that had a value of less than 1 in each u2018binu2019 field. When I try to
    write the statement I get a message that says u2018A string is required hereu2019 and
    it highlights the number 1 in my statement. I have a feeling itu2019s because the u2018binu2019
    fields are string fields and not number fieldsu2026? So I am not sure the proper
    procedure to correct this. Thus help is needed and appreciated.
    Here is what I wrote:
    if {IC_LOC_HIST.BIN_NAME_1} < 1 then
    {IC_LOC_HIST.BIN_NAME_1}
    What is correct way to write a statement that will show me
    the zero values in each column of bin fields?
    Thanks!

    Post Author: bettername
    CA Forum: Formula
    You must have a non-numeric value in there somewhere - up in the top left of the formula editor window, it'll show you the variables you've passed to the formula, which should help track down what's going on.
    You could try and check that the value is a number first by using something like:
    if isnull({IC_LOC_HIST.BIN_NAME_1}) = false and isnumeric({IC_LOC_HIST.BIN_NAME_1}) = false and then "Error - Should be a Number!"
    else
    if isnumeric({IC_LOC_HIST.BIN_NAME_1}) = true and tonumber({IC_LOC_HIST.BIN_NAME_1})<1 then {IC_LOC_HIST.BIN_NAME_1})

  • How to filter records if string field is empty

    I have a report wants show the list who doesn't Email address. It shows parts of the records. So, I try to use Formular and group to solve the problem:  I did create a formula name is Email= Emailfield<>"" . Then I set the group using Formular Email. It shows three group 1. blank, 2. False, 3. True.
    I can't get the list of false and blank whenever using the group selection.
    Is this a bug or I missing something?
    Thanks

    I tried the following, and it works:
    1. Check the box next to File > Report Options > Convert DB Null Values to Default
    2. Delete any existing record selection formula and use the following one:
    length({Employee.EmailAdd1}) = 0
    3. Refresh.
    Let me know the results.
    Cheers,
    Fritz

  • A record selection problem with a string field when UNICODE database

    We used report files made by Crystal Reports 9 which access string fields
    (char / varchar2 type) of NON-UNICODE database tables.
    Now, our new product needs to deal with UNICODE database, therefore,
    we created another database schema changing table definition as below.
    (The table name and column name are not changed.)
        char type -> nchar type
        varchar2 type -> nvarchar2 type
    When we tried to access the above table, and output a report,
    the SQL statement created from the report seemed to be wrong.
    We confirmed the SQL statement using Oracle trace function.
        SELECT (abbr.) WHERE "XXXVIEW"."YYY"='123'.
    We think the above '123' should be N'123' because UNICODE string
    is stored in nchar / nvarchar2 type field.
    Question:
    How can we obtain the correct SQL statement in this case?
    Is there any option setting?
    FYI:
    The environment are as follows.
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16

    With further investigating, we found patterns that worked well.
    Worked well patters:
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16
        Report file made by Crystal Reports 2011
        Crystal Reports XI
    Not worked patters:
        Oracle version: 11.2.0 (same above)
        ODBC version: 11.2.0.1 (same above)
        National character set: AL16UTF16 (same above)
        Report file made by Crystal Reports 2011 (same above)
        Crystal Reports 2008 / 2011
    We think this phenomenon is degraded behavior of Crystal Reports 2008 / 2011.
    But we have to use the not worked patters.
    Anything wrong with us? Pls help.
    -Nobuhiko

  • Structure with a string field as parameter in FM

    Hi,
    I have a requirement wherein based on some id which is the import paramter (table) i have to fetch some text of type string n pass as an export paramater. it has to be a table since for each id there wil a text associated with it.
    For this i have declared a structure with two fields, one client and the other, the text type string.
    While trying to activate my fm, it says that italicsthe structure should be a flat type. You cannot use internal tables. string, references etcitalics
    Please provide a solution.
    Regards,
    herwin.

    Hi Vikranth,
    ya using char or lchar would be one option and the other would be the use of the table type in the the import/export parameters. That worked without giving me that warning message and was able to execute my code properly with the desired output.
    Regards,
    Herwin.
    Edited by: Herwin Wilmet Dsouza on May 11, 2010 12:18 PM

  • Updated to CR 2008 - now have new problem with truncated String fields.

    Hi there
    I'm hoping someone has a simple answer for this one...  notice there's a lot of it on forums but I haven't found an answer.
    Since updating to Crystal 2008 (Crystal 12), we have found that some reports are suddenly truncating string fields at 255 characters, despite the field value being much longer in the database.
    Does anyone know what to do to allow these fields to print in completion?
    Database connection is ODBC RDO.
    regards
    -Karen

    What is the database Oracle, SQL server etc.
    Can you query the database directly with another query tool, eg SQL Server Management Studion or SQL developer/Toad for Oracle.
    You can then run the Crystal query directly and see if its your ODBC connection that is truncating the datafield or Crystal.
    I have memo fields on SQL server with up to 2000 characters and these display in Crystal 2008 without any problem. We use ODBC (RDO) too.
    Ian

  • Alv field with string

    hi,
    I HAVE A TABLE IN WHICH ONE FIELD SAY F1 IS OF TYPE STRING
    I HAVE CREATED AN ALV REPORT IN WHICH THIS FIELD F1 IS editable
    when i press save button it ads the new row in the database
    the Problem lies here is that the output length is viewed only to lenght of 15 infact outlen of fieldcatalog is set to 30
    and i could only ad 30 character at max infact of being a type string
    how can i add data in the table through alv with lenght more than 256 characters

    (1)  How do you build the transparent table with type string field. This type is not allowed in transparent table.
    Do you mean CHAR (til 255) or LCHR type (<a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf">BC - ABAP Dictionary</a>)
    <i><b>STRING</b>: Character string with variable length This type can only be used in types (data
    elements, structures, table types) and domains. It cannot be used in database tables. In ABAP, this type is implemented as a reference to a storage area of variable size.
    <b>CHAR</b>: Character string. Fields of type CHAR may have a maximum length of only 255 in tables. If longer character fields are to be used in tables, you must choose data type LCHR. There are no restrictions on the length of such fields in structures.
    <b>LCHR</b>: Character string of any length, but with a minimum of 256 characters. Fields of this type must be located at the end of transparent tables and must be preceded by a length field of type INT2. If there is an INSERT or UPDATE in ABAP programs, this length field must be filled with the length actually required. A fields of this type cannot be used in the WHERE condition of a SELECT statement.</i>
    (2) Use of long text (in fact that's your need ?) in ALV
    <i>1. Declare the internal and the external length of the field to the ALV Grid Control.
    • For fields with DDIC reference, the ALV Grid Control automatically uses the internal and the external length.
    • For fields without DDIC reference, you must specify the internal length using field INTLEN and the external length using field DD_OUTLEN of the field catalog (see Parameters for Fields Without DDIC Reference).
    2. Specify the conversion exit using field EDIT_MASK of the field catalog (see Formatting Column Contents).
    3. Pass the field catalog with method</i>
    If you really need long text, you may declare an output length of say 80 in the ALV grid, and provide an icon to edit a very-long text (via a popup screen with a container and a use of class cl_gui_textedit for example)
    Regards

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • Impossible to get a String field with GetFieldID !!!!!!

    Hi, I write here my classes and explain my problem :
    ------------------------- Class Lexicon.java ---------------------------
    package SlpTkJava.JavaCode;
    public class Lexicon {
    public native void next(SearchReturn search);
    static {
    System.loadLibrary("slptkjava");
    --------------------------- Class SearchReturn.java --------------------
    package SlpTkJava.JavaCode;
    public class SearchReturn {
    public LexItem access;
    -------------------------- Class LexItem.java --------------------------
    package SlpTkJava.JavaCode;
    public class LexItem {
    public int lemma;
    public String graphy;
    --------------------------- File Lexicon.c -----------------------------
    * Class: SlpTkJava_JavaCode_Lexicon
    * Method: next
    * Signature: (LSlpTkJava/JavaCode/SearchReturn;)V
    JNIEXPORT void JNICALL Java_SlpTkJava_JavaCode_Lexicon_next(JNIEnv *env,
                                       jobject obj,
                                       jobject search){
    jfieldID accessFID, graphyFID, lemmaFID;
    jclass searchReturnCls, lexItemCls;
    jobject access;
    searchReturnCls = (*env)->FindClass(env, "SlpTkJava/JavaCode/SearchReturn");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    accessFID = (*env)->GetFieldID(env, searchReturnCls, "access", "LSlpTkJava/JavaCode/LexItem;");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    access = (*env)->GetObjectField(env, search, accessFID);
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    lexItemCls = (*env)->FindClass(env, "SlpTkJava/JavaCode/LexItem");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    lemmaFID = (*env)->GetFieldID(env, lexItemCls, "lemma", "I");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "LJava/lang/String;");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    When I run this function in a testFile, I get this exception :
    Exception in thread "main" java.lang.NoSuchFieldError: graphy
    at SlpTkJava.JavaCode.Lexicon.next(Native Method)
    at TestLexicon.main(TestLexicon.java:58)
    I can't understand because the system can load the int field from the "access" object and not the String field !
    I can precise that I'm on Solaris.
    Please help me it's urgent !
    Thank you.
    Zigune

    I think your problem is:
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "LJava/lang/String;");
    should be
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "Ljava/lang/String;");
    i.e. java/lang/String - java is lower case.

  • Filter Accounts With Required Personnel Number Field

    Hello, SAP experts.
    I have a task to make a report which will list all the G/L accounts which have required Personnel Number field.
    I know one way to do this:
    First of all, I run SE16N , enter table name T004F, and then I can see all the field status groups.
    My company has a field status variant with 3 field status groups which have mandatory Personnel Number field - Z040, Z073 and Z074
    I can see that all the three groups have the + sign at the 18th place in the Field Selection field. This marks the Personnel Number field.
    Then I go back to the beginning of SE16N, choose the table SKB1, enter those three groups in the Field Status Group multiple selection screen, and hit the Execute button. Now I have the list of the accounts that I was looking for.
    I was wondering if there is simpler way to do this. It would be perfect if I could make a custom report (using SQVI for example) with the algorithm which will do something like this:
    FOR ALL G/L ACCOUNTS
         GET THE ACCOUNT'S FIELD STATUS GROUP
         IF FIELD_SELECTION[18]=='+' THEN
              ADD THE ACCOUNT TO THE LIST;
         END IF;
    END FOR;
    Thank you very much for any help you can provide

    Thanks for your answer, Vikas.
    Of course, I don't insist on using SQVI. I could as well make a custom report using SQ01..03, but I'm not sure how to check if a particular field_selection character is equal to '+'. To be more precise, I would like to know how to translate the pseudo-instruction...
         IF FIELD_SELECTION[18]=='+' THEN
              ADD THE ACCOUNT TO THE LIST;
         END IF;
    ...into "real" ABAP instructions.
    If you or anybody else can help me with that ABAP part, I'd be grateful

  • Combining items with different fields

    I have users that want to built a report that shows all the products in the same table. Problem is certain fields will only be populated for certain products.
    For example, a table with 15 fields, first 5 are constant across both products, 2nd 5 only for product A, 3rd 5 only for product B.
    When you select product A from a drop down they want the table to only show the first 10 fields, when you select product B they want the table to only show the first and last 5. If no product is selected all fields should show.
    Am I right in thinking this could be achieved with the union to combine results?
    Thanks

    Assuming that you have the same total number of columns for each product (in your example product A and B both have 10) then yes, you could use a UNION. The first part of the UNION would include the 5 common fields and the additional 5 that pertain to product A. The second part would have the common ones and also those that belong to B. You could include an extra column into which you'd store a string, either 'productA' or 'productB'. Then could then filter on this extra column to show the product you're interested in.
    But if the number of columns isn't the same for both products that won't work. You could pull all the columns into the analysis and then create a separate table view for each product. You could exclude out whatever columns that don't make sense and then use a view selector to move between the different tables.
    I guess it depends upon how you want to display the data. How many different products are there?
    JB

  • Add a carriage return in a Unbound String Field

    Post Author: Razzle00
    CA Forum: Formula
    Hi,
         How can I add a carriage return to an unbound string field in a crystal report.  I am using the bundled version of CR with MS Visual Studio 2003 & 2005.  My formula needs to look something like this....
    'Heading One:' + CARRIAGE RETURN + trim({tablename.fld_1}) + CARRIAGE RETURN + 'Heading Two:' + CARRIAGE RETURN  + trim({tablename.fld_2})
    this code all needs to be in 1 unbound string field.  Is this possible?
    Thanks,
    Razzle

    Post Author: SKodidine
    CA Forum: Formula
    To add a carriage return, add CHRW(13)
    For example:
    'Heading One:' & chrw(13) & 'sample text';
    will result in:
    Heading One:
    sample text

  • Order By Clause with Empty Field values !

    Hello,
    In Oracle , the order by clause does not return the expected query result, if any of the field value in the order by clause has an empty string.
    Oracle treats the empty string as null value and ORDER BY gives a result with the empty string field values listed at last.
    For example :
    test is a sample table containing "name" field.
    Query: "select name from test order by name"
    In SQL Server/Access
    Result (1)
    NAME
    (blank)
    (blank)
    User1
    User2
    User3
    In Oracle
    Result (2)
    NAME
    User1
    User2
    User3
    (blank)
    (blank)
    I know some of the Work arounds for this as listed below :
    1) To use NVL in Order By Clause.
    i.e., the modified query
    "select name from test order by nvl(name,0)"
    gives the result same as Result (1).
    2) To have single blank space in the field value if it is empty.
    I dont want to use either of these two options b'se it would lead to a mass change in my existing code.
    Is there any way i can do a
    collation order settings in the Oracle databases to get the results as in MS SQL/Access.
    Can Any help me out in Solving this?
    Thanks
    Devi Shankar
    null

    Bharath,
    I am moving this question to the SQL forum.
    Regards,
    Geoff

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Edirectory ldap, what do I put in the DN String field?

    Experts,
    I am trying to configure LDAP authentication. I've done this many, many times against Active Directory. In AD it is usually DOMAIN_NAME\%LDAP_USER%.
    This has been driving me nuts today. We are running eDirectory. I have my server's IP address and port.
    What do I put in the DN String field? I've tried many combinations of TREENAME\%LDAP_USER%, nothing seems to work.
    If it is more complicated than that, where do I look in NDS to figure out what I need to put in the DN String field?
    Thanks!
    Dan

    Dan,
    I'm actually surprised you had success with that on AD as I never did. I recommend you get a little lower level and use DBMS_LDAP. Here's a little sample code to get you started:
       FUNCTION ldap_authenticate (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
          RETURN BOOLEAN
       AS 
          l_dn      VARCHAR2(256) := p_username || '@domain.com';
          l_bind    PLS_INTEGER;
          l_session DBMS_LDAP.SESSION;
       BEGIN
          IF p_username IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20001,'A username must be supplied');
          END IF;
          IF p_password IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20002,'A password must be supplied');
          END IF;
          dbms_ldap.use_exception := TRUE;
          l_session := dbms_ldap.init(
             hostname  =>  'server.domain.com'
           , portnum   =>  389
          l_bind := dbms_ldap.simple_bind_s(
             ld      =>  l_session
           , dn      =>  l_dn
           , passwd  =>  p_password
          l_bind := dbms_ldap.unbind_s(l_session);
          RETURN TRUE;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN FALSE;
    END;Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

Maybe you are looking for

  • I am having a scripting bug.

    I picked this project up from a friend, trying to solve a bug he is having but I can't figure it out. The project is built around scripting which as it turns out, I don't know that well. Whenever you select the slideshow and then hit the menu button,

  • Ipod not recognized by computer, not charging

    I got my second generation 1gig Ipod shuffle yesterday and have been having a few problems with it. When plugged into my computer using the USB cord that came with it, absolutely nothing happens. Nothing happens on the ipod itself (set to off and fir

  • CASH FLOW per PERIOD

    Hi Gurus/Experts, really need your help since i'm stuck in creating Report Painter for Cash Flow. Below is the explanation of my case: My requirement is to make report for Cash Flow periodically (or per month). Already created Report Painter in FSI5

  • Can i buy indian warranty for macbook air which i bought in usa

    i have the latest macbook air 13 inch which i bought from usa.. can i buy indian warranty for it??

  • Serious problem with new c6

    hello i have nokia c6 with latest updates,i bought it ten days ago,i have wifi connecting problem with "invalid server name" error from first day,but two dayz ago i was changing ringtone when loudspeaker and vibration stopped working toghether!wow! I