none
Setting an attribute in the portal to an empty string RRS feed

  • Question

  • Hi,

    Is it possible to set an attribute value to an empty string (say a space character?)

    I need to set an attribute to have some text value, but I prefer to put in just an empty space or an empty string (not null). I've tried setting   and I've also tried setting " " on this attribute (via a function evaluator), but it takes those as string literals (e.g. " " gets set to " ")

    any way to set a space character?

    Thanks

    Wednesday, September 10, 2014 12:30 PM

Answers

  • I believe that the FIM Service always does trims on string, so you may be out of luck.

    What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.

    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

    • Marked as answer by kmittal82 Wednesday, September 17, 2014 2:46 PM
    Tuesday, September 16, 2014 8:44 PM

All replies

  • Yes , it is possible ....don't give any literal to put space. Just press the space bar simply it will put space in your text
    • Proposed as answer by shprna Friday, September 12, 2014 10:46 AM
    • Unproposed as answer by kmittal82 Monday, September 15, 2014 11:01 AM
    Friday, September 12, 2014 10:35 AM
  • I tried that but it keeps it as an empty string (i.e. no space)
    Monday, September 15, 2014 11:01 AM
  • I believe that the FIM Service always does trims on string, so you may be out of luck.

    What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.

    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

    • Marked as answer by kmittal82 Wednesday, September 17, 2014 2:46 PM
    Tuesday, September 16, 2014 8:44 PM
  • Its a long story, but I created something which for some reason only works when there is some value in a custom attribute. I went back to the drawing board and fixed that issue, but I thought I'll ask this for academic reasons. 

    I agree a space is not an empty string, its a string with 1 space character in it :)

    Wednesday, September 17, 2014 2:46 PM