How to store text in AD attributes of type String(Unicode)

In our company, we store the name of the building in which an employee works in one of the ActiveDirectory attributes named extensionAttribute# where # represents a number form 1-15.  I want to be able to store the names of buildings in the AD
attribute named "buildingName". According to the
buildingName attribute in the MSDN library, the syntax is "String(Unicode)".
When I try something that seems simple to write some text into this attribute such as
Set-QADUser jdoe -ObjectAttributes @{buildingName="My Building Name"}
I get an error that says "Set-QADUser : The requested operation did not satisfy one or more constraints associated with the class of the object."
I have been searching forums and code libraries for a solution to this issue, but I do not understand why I can't store string data into this attribute. I did try the following code snippets to try to convert the string to Unicode (and UTF-8) before I wrote
to the buildingNameAttribute, but I still get the same error.
$text = "My Building Name"
$enc = [System.Text.Encoding]::Unicode
# $enc = [System.Text.Encoding]::UTF8
$encText = $enc.GetBytes($text)
$encText
Set-QADUser jdoe -ObjectAttributes @{buildingName=$encText}
Has anyone else had this issue or know how to overcome it? I can, of course, continue to use the extensionAttribute in which I currently have the data stored, but I really want to free it up and use the "buildingName" attribute.
Gardner Rowe Systems Analyst III UT MD Anderson Cancer Center - Making Cancer History

From your link:
buildingName attribute
The name of the building where an organization or organizational unit is based.
IOW, it is an attribute of organization or organizational unit class of object not a user object, so you can't set it for a user.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • How to filter by attributes with type Strings

    The documentation is not really detailed about setting attributes with type Strings. I assume I've to type each string value in a new line in the set attributes dialog box. This works fine and my XML looks like this<br /><br /><para CMS = "prodA prodB"><br /><br />having set the two string values "prodA" and "prodB".<br /><br />But how to filter these attributes? The filter CMS="prodA" shows my paragraph correctly, but CMS="prodB" does not show this paragraph as it should. Filters seem to match only the first of the set of string values.<br /><br />I would like to show this paragraph in two document versions for these two products prodA and prodB.<br /><br />Framemaker 8.0.3<br /><br />Tilman

    Tilman,
    this is something that AFAIK is not supported by FrameMaker's own attribute based filtering.
    But, without changing your documents, if you install the *free* ABCM (Attribute-based condition management) plug-in from weststreet consulting, you will succeed. Be sure to read the tutorial!
    http://weststreetconsulting.com/
    - Michael

  • Error in table binding (Select an attribute of type string)

    Dear All,
    I'm doing the <i>TUT_FLIGHTLIST</i>example of the webdynpro. Now i'm struck at the step of Table Binding. <b>System says that error for UI element...select an attribute of type string.</b>. Please suggest.
    Thanks,
    Anup.

    Hi,
    May be you trying to bind TextView UIElement in table to a contextAttribute of type other than "String".
    Please change the UIElement type.
    Regards, Anilkumar

  • How to push Texts along with attributes to MDM

    Hi All! There are lot of information how to push data to MDM via OHD. But all of that is regarding Attributes(and it works fine). Anybody knows how to push Texts data along with attributes?

    Hi,
    Refer https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01e4269-f744-2b10-929b-fa7b49aac540
    Hope it helps.
    Thanks,
    Minaz

  • How to translate text elements in forms from type : pdf

    does anybody know how to translate text elements
    in  pdf  from english to other languages.
    i tried the tran. se63 and filled in the desired language,
    but there was no effect on the output ,
    thanks,
    ami

    call this funcation. crate_text.
    CALL FUNCTION 'CREATE_TEXT'
             EXPORTING
               FID               =
               FLANGUAGE         =
               FNAME             =
               FOBJECT           =
             SAVE_DIRECT       = 'X'
             FFORMAT           = '*'
             TABLES
               FLINES            =
           EXCEPTIONS
             NO_INIT           = 1
             NO_SAVE           = 2
             OTHERS            = 3
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.

  • How can we place a enter char in type String for Smartform

    I'm facing a problem in smartform. I'm using "Read_Text" functional module to read the text. The problem is text contains multiple lines like for example
    Shipping Lines,
    Marks,
    Lahore , Pakistan.
    i want to show it in smart forms as it is showing above. How can i do that.
    Regards,
    Masoom Ali

    I'm facing a problem in smartform. I'm using "Read_Text" functional module to read the text. The problem is text contains multiple lines like for example
    Shipping Lines,
    Marks,
    Lahore , Pakistan.
    i want to show it in smart forms as it is showing above. How can i do that.
    Hi,
    Declare no. of variables based on the lines you are going to get.suppose if you think that 10 lines of text you will get using READ_TEXT, then create variables for 10 lines.
    After the READ_TEXT statement Loop at TDLINE and populate each line into a variable using CASE statement based on SY-TABIX and display all variables one by one in a TEXT ELEMENT of smartform.
    data : var1,var2,var3...... type string.
    loop at tdline into tline.
    case sy-tabix.
    when '1'.
    var1 = tline.
    when '2'.
    var2 = tline.
    end loop.
    Regards,
    Radha Krishna

  • How to store text field data from web dynpro application in pcd ?

    Hi Forum,
    I am new to web Dynpro.
    I want to store user specific data (a text field value) from a wd application in PCD and access it every time the user runs the application.How can I achieve this?
    Thanks,
    Mickey.

    Hi
    I created the "read" and "update" methods in my application service. How can I call them? I created and implemented the methods just like here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/340fc0ea-0c01-0010-74bf-965b11031e77
    Operations:
    - readMyEntityService:
    - updateMyEntityService
    Implementation:
    retValue = getMyEntityService().read(key);
    getMyEntityService().update(dS0);
    In Web Dynpro there is this update method with the code above (in my original post).
    How can I call the update-method????????
    Kind regards
    Bettina

  • How to store text file in MySql database

    Hello Sir/Madam,
    I want to store and retreive text file in mysql database ,Please give some ideas and send me code examples.

    We keep ideas and examples of this issue here:
    http://www.google.com/search?q=mysql+jdbc+clob

  • How to query involving Multi-Value Attributes objects

    Hello.
         I have one question regarding coherence. We are looking for best and the fastest way to query multi-value attribute of objects. In Coherence User guide there is example, that shows, how can this be made with java.lang.String object:
         Set searchTerms = new HashSet();
         searchTerms.add("java");
         searchTerms.add("clustering");
         searchTerms.add("books");
         // The cache contains instances of a class "Document" which has a method
         // "getWords" which returns a Collection<String> containing the set of
         // words that appear in the document.
         Filter filter = new ContainsAllFilter("getWords", searchTerms);
         Set entrySet = cache.entrySet(filter);
         // iterate through the search results
         But I would like to know, how can this be made with some other object type. For example I could have object MyCoherenceObject with attribute HashSet<Identifier> idHashSet that would represent Person object that has composite key comprised of name and lastname. Identifier object would contain two attributes of type String: name & value.
         So basically I could have two identifiers in list:
         public MyCoherenceObject {
         public HashSet idHashSet = new HashSet();
         public MyCoherenceObject() {
         Identifier id1 = new Identifier("name", "John");
         Identifier id2 = new Identifier("surname", Smith");
         idHashSet.add(id1);
         idHashSet.add(id2);
         public HashSet getIdentifiers() {
         return idHashSet;
         This object would later be inserted in coherence cache. When query over coherence cache would be performed I would like all objects where multi-value parameter with name="name" equal "John" and parameter with name="lastname" equal "Smith". My code would look something like this:
         Set searchTerms = new HashSet();
         searchTerms.add("John");
         searchTerms.add("Smith");
         // The cache contains instances of a class "Document" which has a method
         // "getWords" which returns a Collection<String> containing the set of
         // words that appear in the document.
         Filter filter = new ContainsAllFilter("getIdentifiers", searchTerms);
         Set entrySet = cache.entrySet(filter);
         // iterate through the search results
         How can this be done. Basically I don't know how to search in multi-value attribute if one value represents arbitrary object and how to tell coherence which getter fuction must be used for comparison. In my case getValue() must be used and not getName().
         Second problem:
         Coherence must not return Person object with name="Smith" and lastname="John". Here upper filter would be satisified, but problem is that I am looking for person with lastname "Smith" and name "John".
         Domain description:
         I will have different objects of same type in coherence cache with different multi-value attribute list length. For example some objects will have only one identifier object in list (e.g. Phone "phoneNumber") some two (e.g. Person "name", "lastname") and other objects will have maybe three identifier objects (e.g. City "country", "area", "state").
         If there is faster way to do this in Coherence (I saw examples with getters that contain attributes for example), please give me some directions.
         Thank you very much for your help.

    When filtering based on the getIdentifiers, you should add Identifier instances into the searchTerms collection, and it will satisfy all your expectations. If you add simple Strings into that searchTerms collection, then none of your queries will return anything, because the String will never equal() the Identifier instances.
         You can also add an index on the getIdentifiers() method. However, the Identifier class should properly implement the equals() and hashCode() methods, and in order to be able to use an ordered index (you don't need that for the current requirements you listed), it should also implement Comparable.
         BR,
         Robert

  • Valid attribute-class types for af:regionDef ?

    The only example or documentation I can find related to attributes of a regionDef are in /tagdoc/core/regionDef.html where there is an example which uses attributes of type String. Is it possible to use other classes? Any special syntax required in the EL expressions which use them? In another thread the following was suggested:
    <af:commandButton text="Save"
    action="#{sessionScope[regionAttrs.pageBeanName].save}"/>
    where pageBeanName is an attribute of type String.
    Unfortunately the page beans are mixed amoung the session and request scopes. Is there a way to pass in the scope or the actual pageBean? Alternatively I guess I could bind the action to a method with exception handling code so each scope could be checked in turn until the page bean was located but that seems a little heavy handed.

    To answer my own question ;-)
    Yes you can use other class types. Specifically I figured out how to use a Bean and more genericly a Java Interface (to which I passed the Bean). For example:
    <faces-config>
    <component-type>oracle.adfdemo.region.clientPageFooter</component-type>
        <component-class>
          oracle.adf.view.faces.component.UIXRegion
        </component-class>
        <component-extension>
          <region-jsp-ui-def>/regions/clientPageFooter.jspx</region-jsp-ui-def>
        </component-extension>
        <attribute>
          <attribute-name>pageBean</attribute-name>
          <attribute-class>demoOne.ClientPageFooter</attribute-class>
          <attribute-extension>
            <required>true</required>
          </attribute-extension>
        </attribute>
      </component>
    </faces-config>
    package demoOne;
    public interface ClientPageFooter
      public String save();
      public String reset();
    public class ClientDetailPage implements ClientPageFooter
      public String save()
        return "returnToClientList";
      public String reset()
        return null;
      <af:regionDef var="regionAttrs" >
                  <af:commandButton text="Reset"
                                    action="#{regionAttrs.pageBean.reset}"/>
                  <af:commandButton text="Save"
                                    action="#{regionAttrs.pageBean.save}"/>
                  <af:commandButton text="Cancel" action="returnToClientList"/>
      </af:regionDef>
              <af:region regionType="oracle.adfdemo.region.clientPageFooter"
                       id="clientPageFooter">
                <f:attribute name="pageBean" value="#{ClientDetailPage}"/>
              </af:region>Hope that helps someone :-)

  • Dereference multivalued reference attribute to multivalued string attribute

    How can I Dereference multivalued reference attribute to multivalued string attribute. I want to flow this multivalued string attribute to AD. 

    I was able to develop the activity but it is going into infinite loop while inserting. Below is the code. Can you please guide where I am going wrong. Also as of now I have developed it only for inserting. I am using emuerateresourceactivity and added
    code activity using code.
    using System;
    using System.ComponentModel;
    using System.ComponentModel.Design;
    using System.Collections;
    using System.Linq;
    using System.Workflow.ComponentModel.Compiler;
    using System.Workflow.ComponentModel.Serialization;
    using System.Workflow.ComponentModel;
    using System.Workflow.ComponentModel.Design;
    using System.Workflow.Runtime;
    using System.Workflow.Activities;
    using System.Workflow.Activities.Rules;
    using Microsoft.ResourceManagement.WebServices;
    using System.Collections.Generic;
    using Microsoft.ResourceManagement.Workflow.Activities;
    using Microsoft.ResourceManagement.WebServices.WSResourceManagement;
    namespace DereferenceActivityLibrary
    public partial class DereferenceActivity : SequenceActivity
    List<UniqueIdentifier> storeList;
    SequentialWorkflow parentWorkflow = null;
    int loopCount = 0;
    Guid targetGUID;
    const string FIMAdminGUID = "7fb2b853-24f0-4498-9534-4e10589723c4";
    List<string> storeName = new List<string>();
    string xpathFilter = "";
    string resourceType = "JambaStore";
    public DereferenceActivity()
    InitializeComponent();
    private void initializeReadResource_ExecuteCode(object sender, EventArgs e)
    if (!SequentialWorkflow.TryGetContainingWorkflow(this, out parentWorkflow))
    throw new InvalidOperationException("Unable to resove parent workflow");
    readResourceActivity.ActorId = new Guid(FIMAdminGUID);
    readResourceActivity.ResourceId = parentWorkflow.TargetId;
    targetGUID = parentWorkflow.TargetId;
    readResourceActivity.SelectionAttributes = new string[] { "StoreListReference" };
    private void initializeEnumerateResource_ExecuteCode(object sender, EventArgs e)
    string filterDEL = "]";
    if (null == readResourceActivity.Resource)
    throw new InvalidOperationException("Unable to determine the current request");
    ResourceType resource = readResourceActivity.Resource;
    storeList = resource["StoreListReference"] as List<UniqueIdentifier>;
    for (loopCount = 0; loopCount < storeList.Count; loopCount++)
    if (loopCount == 0)
    xpathFilter += "/" + resourceType + "[(ObjectID='" + storeList[loopCount].GetGuid() + "')";
    else
    xpathFilter += " or (ObjectID='" + storeList[loopCount].GetGuid() + "')";
    xpathFilter = xpathFilter + filterDEL;
    enumerateResourcesActivity.ActorId = new Guid(FIMAdminGUID);
    enumerateResourcesActivity.XPathFilter = xpathFilter;
    private void readStoresNameActivity_ExecuteCode(object sender, EventArgs e)
    ResourceType jambaStore = EnumerateResourcesActivity.GetCurrentIterationItem((CodeActivity)sender) as ResourceType;
    storeName.Add(jambaStore["DisplayName"].ToString());
    private void initializeUpdateResourceActivity_ExecuteCode(object sender, EventArgs e)
    List<UpdateRequestParameter> updateRequestParameters = new List<UpdateRequestParameter>();
    string targetAttribute = "Store";
    foreach (string store in storeName)
    updateRequestParameters.Add(new UpdateRequestParameter(targetAttribute, UpdateMode.Insert, store));
    this.updateResourceActivity_ActorId1 = new Guid(FIMAdminGUID);
    this.updateResourceActivity_ResourceId1 = targetGUID;
    this.updateResourceActivity_ApplyAuthorizationPolicy1 = false;
    this.updateResourceActivity_UpdateParameters1 = updateRequestParameters.ToArray<UpdateRequestParameter>();
    public static DependencyProperty updateResourceActivity_ActorId1Property = DependencyProperty.Register("updateResourceActivity_ActorId1", typeof(System.Guid), typeof(DereferenceActivityLibrary.DereferenceActivity));
    [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
    [BrowsableAttribute(true)]
    [CategoryAttribute("Parameters")]
    public Guid updateResourceActivity_ActorId1
    get
    return ((System.Guid)(base.GetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ActorId1Property)));
    set
    base.SetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ActorId1Property, value);
    public static DependencyProperty updateResourceActivity_ApplyAuthorizationPolicy1Property = DependencyProperty.Register("updateResourceActivity_ApplyAuthorizationPolicy1", typeof(System.Boolean), typeof(DereferenceActivityLibrary.DereferenceActivity));
    [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
    [BrowsableAttribute(true)]
    [CategoryAttribute("Parameters")]
    public Boolean updateResourceActivity_ApplyAuthorizationPolicy1
    get
    return ((bool)(base.GetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ApplyAuthorizationPolicy1Property)));
    set
    base.SetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ApplyAuthorizationPolicy1Property, value);
    public static DependencyProperty updateResourceActivity_ResourceId1Property = DependencyProperty.Register("updateResourceActivity_ResourceId1", typeof(System.Guid), typeof(DereferenceActivityLibrary.DereferenceActivity));
    [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
    [BrowsableAttribute(true)]
    [CategoryAttribute("Parameters")]
    public Guid updateResourceActivity_ResourceId1
    get
    return ((System.Guid)(base.GetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ResourceId1Property)));
    set
    base.SetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_ResourceId1Property, value);
    public static DependencyProperty updateResourceActivity_UpdateParameters1Property = DependencyProperty.Register("updateResourceActivity_UpdateParameters1", typeof(Microsoft.ResourceManagement.WebServices.WSResourceManagement.UpdateRequestParameter[]), typeof(DereferenceActivityLibrary.DereferenceActivity));
    [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
    [BrowsableAttribute(true)]
    [CategoryAttribute("Parameters")]
    public UpdateRequestParameter[] updateResourceActivity_UpdateParameters1
    get
    return ((Microsoft.ResourceManagement.WebServices.WSResourceManagement.UpdateRequestParameter[])(base.GetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_UpdateParameters1Property)));
    set
    base.SetValue(DereferenceActivityLibrary.DereferenceActivity.updateResourceActivity_UpdateParameters1Property, value);
    using System;
    using System.ComponentModel;
    using System.ComponentModel.Design;
    using System.Collections;
    using System.Reflection;
    using System.Workflow.ComponentModel.Compiler;
    using System.Workflow.ComponentModel.Serialization;
    using System.Workflow.ComponentModel;
    using System.Workflow.ComponentModel.Design;
    using System.Workflow.Runtime;
    using System.Workflow.Activities;
    using System.Workflow.Activities.Rules;
    namespace DereferenceActivityLibrary
    public partial class DereferenceActivity
    #region Activity Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    [System.Diagnostics.DebuggerNonUserCode]
    [System.CodeDom.Compiler.GeneratedCode("", "")]
    private void InitializeComponent()
    this.CanModifyActivities = true;
    System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
    System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
    System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
    System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
    this.readStoresNameActivity = new System.Workflow.Activities.CodeActivity();
    this.updateResourceActivity = new Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity();
    this.initializeUpdateResourceActivity = new System.Workflow.Activities.CodeActivity();
    this.enumerateResourcesActivity = new Microsoft.ResourceManagement.Workflow.Activities.EnumerateResourcesActivity();
    this.initializeEnumerateResource = new System.Workflow.Activities.CodeActivity();
    this.readResourceActivity = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
    this.initializeReadResource = new System.Workflow.Activities.CodeActivity();
    this.currentRequestActivity = new Microsoft.ResourceManagement.Workflow.Activities.CurrentRequestActivity();
    // readStoresNameActivity
    this.readStoresNameActivity.Name = "readStoresNameActivity";
    this.readStoresNameActivity.ExecuteCode += new System.EventHandler(this.readStoresNameActivity_ExecuteCode);
    // updateResourceActivity
    activitybind1.Name = "DereferenceActivity";
    activitybind1.Path = "updateResourceActivity_ActorId1";
    activitybind2.Name = "DereferenceActivity";
    activitybind2.Path = "updateResourceActivity_ApplyAuthorizationPolicy1";
    this.updateResourceActivity.Name = "updateResourceActivity";
    activitybind3.Name = "DereferenceActivity";
    activitybind3.Path = "updateResourceActivity_ResourceId1";
    activitybind4.Name = "DereferenceActivity";
    activitybind4.Path = "updateResourceActivity_UpdateParameters1";
    this.updateResourceActivity.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
    this.updateResourceActivity.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity.ApplyAuthorizationPolicyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
    this.updateResourceActivity.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
    this.updateResourceActivity.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity.UpdateParametersProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
    // initializeUpdateResourceActivity
    this.initializeUpdateResourceActivity.Name = "initializeUpdateResourceActivity";
    this.initializeUpdateResourceActivity.ExecuteCode += new System.EventHandler(this.initializeUpdateResourceActivity_ExecuteCode);
    // enumerateResourcesActivity
    this.enumerateResourcesActivity.Activities.Add(this.readStoresNameActivity);
    this.enumerateResourcesActivity.ActorId = new System.Guid("00000000-0000-0000-0000-000000000000");
    this.enumerateResourcesActivity.Name = "enumerateResourcesActivity";
    this.enumerateResourcesActivity.PageSize = 100;
    this.enumerateResourcesActivity.Selection = null;
    this.enumerateResourcesActivity.SortingAttributes = null;
    this.enumerateResourcesActivity.TotalResultsCount = 0;
    this.enumerateResourcesActivity.XPathFilter = null;
    // initializeEnumerateResource
    this.initializeEnumerateResource.Name = "initializeEnumerateResource";
    this.initializeEnumerateResource.ExecuteCode += new System.EventHandler(this.initializeEnumerateResource_ExecuteCode);
    // readResourceActivity
    this.readResourceActivity.ActorId = new System.Guid("00000000-0000-0000-0000-000000000000");
    this.readResourceActivity.Name = "readResourceActivity";
    this.readResourceActivity.Resource = null;
    this.readResourceActivity.ResourceId = new System.Guid("00000000-0000-0000-0000-000000000000");
    this.readResourceActivity.SelectionAttributes = null;
    // initializeReadResource
    this.initializeReadResource.Name = "initializeReadResource";
    this.initializeReadResource.ExecuteCode += new System.EventHandler(this.initializeReadResource_ExecuteCode);
    // currentRequestActivity
    this.currentRequestActivity.CurrentRequest = null;
    this.currentRequestActivity.Name = "currentRequestActivity";
    // DereferenceActivity
    this.Activities.Add(this.currentRequestActivity);
    this.Activities.Add(this.initializeReadResource);
    this.Activities.Add(this.readResourceActivity);
    this.Activities.Add(this.initializeEnumerateResource);
    this.Activities.Add(this.enumerateResourcesActivity);
    this.Activities.Add(this.initializeUpdateResourceActivity);
    this.Activities.Add(this.updateResourceActivity);
    this.Name = "DereferenceActivity";
    this.CanModifyActivities = false;
    #endregion
    private CodeActivity readStoresNameActivity;
    private Microsoft.ResourceManagement.Workflow.Activities.UpdateResourceActivity updateResourceActivity;
    private CodeActivity initializeEnumerateResource;
    private Microsoft.ResourceManagement.Workflow.Activities.EnumerateResourcesActivity enumerateResourcesActivity;
    private CodeActivity initializeReadResource;
    private Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity readResourceActivity;
    private CodeActivity initializeUpdateResourceActivity;
    private Microsoft.ResourceManagement.Workflow.Activities.CurrentRequestActivity currentRequestActivity;

  • How do I get enumeration description from simple type?

    Hello!
    I want to display the value of a simple type in a table and display the description in a tool tip for the cell, how do I do that?
    I'm using Web dynpro for java 7.0 ehp1.
    I'm using an enumeration with 5 possible values with corresponding descriptions.
    If I use a (read only) dropdownByKey the description is shown in the drop down, but I only want to show it as a tooltip since it takes up some screen space.
    I would like to use a textview, is there a simple way to get the description as a tooltip? I thought about doing a calculated attribute that gets the description but I'm not sure about how to do it or if its the easiest way.
    Thank you for any help!

    Hi Richard,
    for getting the description of the simple type attribute ( Ex.X) create a context attribute of type string (Ex. Y) and bind it to the tooltip property of table cell editor.
    Set the read only and calculated property of the attribute Y to true.
    Put this code in the automatic generated method for calculated attribute :-
    String value1 = nodeElement.getX;
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("X");
    ISimpleValueSet valueset = attInfo.getModifiableSimpleType().getSVServices().getValues();
    if(valueset.containsKey(value1)){
    String value2 = valueset.getText(value1);
    wdContext.node<NodeName>.setY(value2);
    By this way you can set the description of the simple type as tooltip but by using dropdown by key and index you cannot  show the valueof the simple type in the UI.
    So another way is bind the simple type attribute to a inputfield uielement in the table column.  Your simple type enumeration data will come as a F4 help in the UI and after selection you will be able to see value in inputt field and description as a tooltip.
    Regards
    Ravindra

  • How to store a text file in a hash table in C#?

    I am fairly new to c#. I am creating a console application project for practice. I am supposed to create a program that reads a text file (it's a poem), store it in a hash table, have two different sorts, and unhash the table. I managed to get the poem read
    by using streamwriter, but now I am not sure how to store it in a hash table. 
    I'm not sure if I am doing this hash table correct, but I made my hash table like this to store the text file: 
          Hashtable hashtable = new Hashtable();
                hashtable[1] = (@"C:\\Documents\\Datastructures\\Input\\Poem");

    Hi,
    Hashtable in C# represents a collection of key/value pairs which maps keys to value. Any non-null object can be used as a key but a value can. We can retrieve  items from hashTable to provide the key . Both keys and values are Objects.
    Here is a sample about Hashtable,
    Hashtable weeks = new Hashtable();
    weeks.Add("1", "SunDay");
    weeks.Add("2", "MonDay");
    weeks.Add("3", "TueDay");
    weeks.Add("4", "WedDay");
    weeks.Add("5", "ThuDay");
    weeks.Add("6", "FriDay");
    weeks.Add("7", "SatDay");
    //Display a single Item
    MessageBox.Show(weeks["5"].ToString());
    //Search an Item
    if (weeks.ContainsValue("TueDay"))
    MessageBox.Show("Find");
    else
    MessageBox.Show("Not find");
    //remove an Item
    weeks.Remove("3");
    //Display all key value pairs
    foreach (DictionaryEntry day in weeks)
    MessageBox.Show(day.Key + " - " + day.Value);
    >>I managed to get the poem read by using streamwriter, but now I am not sure how to store it in a hash table
    Hashtable hashtable = new Hashtable();
    hashtable[1] = (@"C:\\Documents\\Datastructures\\Input\\Poem");
    But follow your scenario above, you just store a string path to hashtable not a file.
    About saving data to a file, you can use the following code.
    // Write the string to a file.
    System.IO.StreamWriter file = new System.IO.StreamWriter("c:\\test.txt");
    file.WriteLine(lines);
    file.Close();
    Best wishes!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to store data in the text line by line?

    when i write the data into *.txt, the data I wrote before is deleted.
    how can wrote the data into the txt following the existing data?
    how to write data line by line? many thanks!
    my code is like:
    private String text = "i am yanbo du, i am a boy.";
    public BufferWriteMultiKey( ) {         
         try {
              StringTokenizer st = new StringTokenizer(text, " ,.");
              File fil =new File("f.txt");
         //FileWriter fw = new FileWriter(fil);
         //BufferedWriter bw= new BufferedWriter(fw);
         DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(fil)));
    while(st.hasMoreTokens())
    String s = st.nextToken();
         //bw.newLine();
         out.writeChars(s);
    out.writeChars("\n");
    out.close();

    use a random access file and append text at the end.
    read the file in line by line using a BufferedReader and store each line in a List of Strings, of course.
    %

  • How long does Apple store text messages?  I need old messages from July-Sept 2011

    How long does apple store text messages.  I need old text messages from July - September 2011.  These messages were NOT deleted from phone.  I can only go back as far as July 1, 2012.  Please help, this is important!!!

    Thank you!!!
    What I concluded is that the phone information (with text message content) that we have came from the police department...when they conducted interviews, they asked for their phones and obtained the content, pictures, etc. that way. We also have logs from AT&T with information starting a few months prior to the incident; this information, however, is solely limited to who sent, who received, when, type of data, etc - NO content. I'm assuming that those are the logs that can be subpoenaed after the alloted amount of time, say, 10 days.
    Does that sound correct?

Maybe you are looking for

  • "The updater does not have a firmware image"

    My initial problem was that I suddenly could not copy purchased music from iTunes to my iPod. I tried the suggestion of downloading the iPod Updater. The Updater did indicate that my iPod software, 2.2, "needs update". Upon attempting to install the

  • Combo box in form manager

    Hi! I've made a form in Designer 8 with combo box, tested it (everything was ok) and than upload it to form manger. And here the problem beggins. When I'm writting something in combo boxes field it looks like there wasn't any or sometimes I can write

  • Do I have to send a receipt to creat

    if something goes wrong with my zen or do i just send it back in the box. cause i bought mine online and they didnt send it with a receipt. please any body respond.

  • Duplicate IDOC created for basic type PEXR2002

    Hi, We are using PEXR2002 idoc for some document postings in FI. For a segment EIEDP02, when trying to write a BELNR field value which exceeds its size of CHAR 35. Its creating a duplicate segment with same key value. Because of this, the idoc not ge

  • Best way to license Apps in the UK Enterprise

    I am hoping to rollout several iPads for our employees but want to know the best way to volume license this in the UK. I know there is an arrangement for the US but I am at a loss at finding information for the UK market. Can anyone advise on the bes