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;

Similar Messages

  • FIM Rerporting management pack multivalue references

    Hi everybody!
    We have set up a FIM reporting extension on existing FIM and SCSM solution for our client with some of the custom management packs containing multivalue references (saved as a reference type). Some (but not all) object in FIM were many months old and requests
    that set the multivalue attributes were long gone.
    The problem we seem to be facing now is that although the new data is visible in reports, the old multivalue attribute data is not transferred to SCSM database neither to any of the data warehouse databases. I am pretty sure we got the bindings and schema
    correct (as I said, new data is transferred without any problems), but the old data is just not there.
    Best Regards,
    Andraž Žagar

  • Not able to convert string attribute to number and date please help me out

    not able to convert string attribute to number and date attribute. While using string to date conversion it shows result as failure.As I am reading from a text file. please help me out

    Hi,
    You need to provide an example value that's failing and the date formats in the reference data you're using. It's more than likely you don't have the correct format in your ref data.
    regards,
    Nick

  • Bug report: oracle.jbo.ViewCriteriaRow: string attribute value with '

    Setting a ViewCriteriaRow attribute to a string value with an ' (apostrophe) causes an exception. Example:
    ViewCriteriaRow vcr;
    vcr.setAttributeValue ("Nachname", "D'Heur");
    this should match with the Nachname column exactly with D'Heur, but the BC4J-SQL-Generator generates an SQL statement with "Nachname like 'D'Heur'" in the where clause. Using bind variables like "Nachname like :1" would help. Here the sample exception (BC4J in Jdev 9.0.3.4):
    Error Message: JBO-27122: SQL-Fehler bei Vorbereitung der Anweisung. Anweisung: SELECT PsBenutzer.BER_ID, PsBenutzer.ATP_ATP_ID, PsBenutzer.QTP_QTP_ID, PsBenutzer.BDP_BDP_ID, PsBenutzer.LND_LND_ID, PsBenutzer.ANREDE, PsBenutzer.TRENDSHOPID, PsBenutzer.VORNAME, PsBenutzer.NACHNAME, PsBenutzer.BENUTZERKENNUNG, PsBenutzer.PASSWORT, NULL AS PASSWORTWIEDERHOLUNG, PsBenutzer.STATUS, PsBenutzer.INAKTIVBIS, PsBenutzer.GEBURTSDATUM, PsBenutzer.EMAIL, PsBenutzer.MOBIL, PsBenutzer.BEVORZUGTEADRESSE, PsBenutzer.INBRANCHESEIT, PsBenutzer.WUNSCHPRAEMIE, PsBenutzer.HOBBYS, PsBenutzer.SACHBEARBEITERKUERZEL, PsBenutzer.STRASSE, PsBenutzer.PLZ, PsBenutzer.ORT, PsBenutzer.TELEFON, PsBenutzer.FAX, PsBenutzer.UEBERTRAGVERFUEGBAREPUNKTE, PsBenutzer.ERVVERKAUFSEIT, PsAgenturzuordnungen.AZG_ID, PsAgenturzuordnungen.ARE_ARE_ID, PsAgenturzuordnungen.AGT_HAGTNR, PsAgenturzuordnungen.AGT_NAGTNR, PsAgenturzuordnungen.BER_BER_ID, PsAgenturzuordnungen.TELEFON AS TELEFON1, PsAgenturzuordnungen.ROLLENSTATUS, PsAgenturzuordnungen.EMAIL AS EMAIL1, pa_agenturen.ist_teilnehmer(PsAgenturzuordnungen.AGT_HAGTNR,PsAgenturzuordnungen.AGT_NAGTNR) AS IST_TEILNEHMER, PsBenutzer.BINSCHONTRENDJETTER, PsBenutzer.ERFASSUNGSDATUM, PsBenutzer.ERVEXKLUSIV, PsBenutzer.ERVEXKLUSIVBIS, PsBenutzer.MUSSLOGINAENDERN FROM PS_BENUTZER PsBenutzer, PS_AGENTURZUORDNUNGEN PsAgenturzuordnungen WHERE PsBenutzer.BER_ID = PsAgenturzuordnungen.BER_BER_ID AND ( ( (UPPER(PsBenutzer.NACHNAME) LIKE 'D'HEUR') ) )

    Single quotes must be doubled in SQL statements to be legal. I've filed Bug# 3574900 for us to do a better job on fixing up this case in the future, but there's an easy workaround idea for now.
    If you don't want the user to have to know/remember this, you could override the getViewCriteriaClause() method in your ViewObjectImpl class, and "fix up" the view criteria attributes to double-up occurrences of single apostrophe's before returning super.getViewCriteriaClause().
    Here's a quick web log entry on it with some sample code:
    http://radio.weblogs.com/0118231/2004/04/16.html#a276

  • How to display String attribute in a Formatted way ?

    Hi all,
    We are using JDev 10.1.3.1, ADF BC + adf faces.
    In our database, there is a varchar column stored as : "070000001", this is a readonly attribute (updated by stored procedure).
    In jspx, we want to display it as : "07/0000001" .
    How can we do that ? (there is no hints for string attribute ?)
    Thank you for your help,
    xtanto

    you can use a SQL-calculated attribute with an appropriate SQL expression -- using SUBSTR() and string contatentation -- or you can use a java-calculated transient attribute.
    the former will allow the user to query on it. The latter wouldn't.

  • 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 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

  • Comparing table attribute with a string without compromising performance?

    in pl/sql what is the best practice for comparing a varchar2 attribute with a string should be case insensetive, without compromising performance.
    I've read on using an index (upper(tbl_attribute)) and then comparing in the where clause using
    upper(tbl_attribute) = input_value'
    is this the only way?
    is there a directive that could make the process faster?
    how about reading the table into memory then do the compare using upper in memory would that be faster than reading the table each time we run the comaprison condition?
    example:
    select name from tblnames
    where upper(name) = upper('Joe')
    thank you

    I would say the ideal case would be to ensure that all the data that is stored in the column is upper case to begin with. To monitor that you could place a constraint on the table like the following:
    ALTER TABLE TABLE_X ADD CONSTRAINT UPPER_CONS CHECK (COLUMN_X = UPPER(COLUMN_X));If the code can't be modified to always store the data in upper case you could always create a trigger to force the value to be upper case.
    Then your WHERE clause would only have to be like the following:
    COLUMN_X = UPPER('JOE')In my opinion storing the data as it should be would be the best performing because it should allow the CBO to have as many access paths as possible. You could then create a regular index on this column if there was truly a need for even better performance.
    A function-based index as you suggested is another viable option as well.
    HTH!

  • How to compare the value of a specied attribute to a string

    I am looking for an example of how to compare the value of an attribute to a string. (I think)
    I have been trying to:
    if (attrs.get("title")== "Vampire") -- you already know this did not work.
    How can I check to see if the title="Vampire"?
    The code below will get me the title of admin (which should be Vampire)
    import javax.naming.Context;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.Attributes;
    import javax.naming.NamingException;
    import java.util.Hashtable;
    class Giles {                  
    public static void main(String[] args) {
              Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://192.168.1.55:389/o=sunnydale");
         try {                                                                     
         DirContext ctx = new InitialDirContext(env);
         Attributes attrs = ctx.getAttributes("cn=admin");
         System.out.println("Title: " + attrs.get("title").get());
         ctx.close();
         } catch (NamingException e) {                                     
         System.err.println("Problem getting attribute: " + e);
    Thank you!!
    Steve

    I guess, you are looking for searching for attributes of an user object.
    Here is the sample code to list all the attributes of an 'user' objectclass.
    Tell me if it helps or not.
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    public class GetAttributes
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              //Must use either the userPrincipalName or samAccountName,
              //Cannot use the distinguished name
              String adminName = "cn=abcd,cn=Users,dc=ssotest,dc=com";
              String adminPassword = "DEF1234";
              String ldapURL = "ldap://pni3w067:389";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL,ldapURL);
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialLdapContext(env,null);
                   // Create the search controls
                   SearchControls searchCtls = new SearchControls();
                   //Specify the search scope
                   searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   //specify the LDAP search filter
                   String searchFilter = "(&(objectClass=user))";
                   //Specify the Base for the search
                   //cn=policygroup,ou=policyusers,ou=ssoanay,;
                   //String searchBase = "ou=policyusers,ou=ssoanay,dc=ssotest,dc=com";
                   String searchBase = "cn=abcd,cn=users,dc=ssotest,dc=com";
                   //initialize counter to total the results
                   int totalResults = 0;
                   // Search for objects using the filter
                   NamingEnumeration answer = ctx.search(searchBase, searchFilter, searchCtls);
                   //Loop through the search results
                   while (answer.hasMoreElements()) {
                        SearchResult sr = (SearchResult)answer.next();
                        totalResults++;
                        System.out.println("\nName of Object : " + sr.getName());
                        // Print out some of the attributes, catch the exception if the attributes have no values
                        Attributes attrs = sr.getAttributes();
                        //System.out.println("6");
                        if (attrs != null) {
                             try {
                                  /*NamingEnumeration enum = attrs.getIDs();
                                  while(enum.hasMore()) {
                                       System.out.println("IDs:"+enum.next().toString());
                                  NamingEnumeration enum2 = attrs.getAll();
                                  while(enum2.hasMore()) {
                                       System.out.println("Attribute - "+enum2.next().toString());
                             catch (Exception e)     {
                                  System.out.println("Exception:" +e.getMessage());
                        else {
                             System.out.println("attribute is null");
                   System.out.println("Total results: " + totalResults);
                   ctx.close();
              catch (NamingException e) {
                        System.err.println("Problem searching directory: " + e);
         //return 0;
    }

  • Support for  Operators like [Between] in ADF QP for String Attributes

    All,
    In the ADF Query Panel there is no support provided for operators like BETEWEEN, NOT BETWEEN, >= and <= etc for attributes of type String. On the Oracle Database we can execute queries like
    SQL> select ename from emp where ename between 'A' and 'C';
    ENAME
    ALLEN
    BLAKE
    ADAMS
    SQL> select ename from emp where ename <= 'B';
    ENAME
    ALLEN
    ADAMS
    The reason I am asking this question is for fusion we expose KeyFlexfields in an ADF Query Panel. Teams like GL store numeric values as Strings/Varchar2 type in the database and would like to perform operations like BETWEEN on strings. Is there a way this can be accomplished.
    Tom
    Edited by: tbenjami on May 27, 2009 11:12 AM

    Lucas,
    Thanks for the suggestion.
    We will look into it.
    Steven davelaar,
    JHeadstart Team.

  • String attributes - ASCII 65 to 90

    I need a String attribute named key which must contain one or more capital letters with an ASCII vale of 65 to 90. This attribute is a parameter for the constructor.
    Can anyone help?

    To check if a string contains only letters, use:
        // Only letters test
        Pattern p = Pattern.compile( "[a-zA-Z]+" );
        Matcher m = p.matcher( "lettersOnly" );
        boolean b = m.matches();
        if ( b )
          System.out.println( "We have at only letters." );
        else
          System.out.println( "There is something other than letters here." );
        }Then use toUpperCase() to ensure only caps. This assumes, of course, the latin letters, without accents, etc.
    Don't forget, you need to import java.util.regex.Pattern and java.util.regex.Matcher
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • WCF :Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property

    Hi All,
    Currently I am working in a WCF project here when I try to send data from WCF Project 1 to WCF project 2 I am getting the below error.
    The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:subscriber. The InnerException message was 'The use of type 'Integra.Business.ICC.ObjectChangeTracker'
    as a get-only collection is not supported with NetDataContractSerializer.  Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.'.  Please see InnerException
    for more details.
    I don't understand what issue this is since I am new to WCF. Please help me on this thanks in advance.

    You've posted to a forum for Microsoft Project - a project management program.  Please re-post your question to the WCF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
    Sorry - I cannot seem to move your post for you.
    Julie

  • Page Attributes and Application Class Attributes

    Hi, everyone,
    I am quite new to BSP.
    I have a question here:
    what is the difference between page attributes and application class attributes of a bsp application? As they are both global attributes, there seems to be no big difference when we use them.
    thanks a lot.
    Fan

    Hi Fan,
    a BSP application can be made up of many pages.
    A page attribute is visible only in the page it is associated with.
    Attributes of the application class are visible from every page in that application.
    Cheers
    Graham Robbo

  • How to ge the value for attribute for terminal services attribute in Active Directory from userParameters attribute

    I am using dirsync to get  the attributes value that have changed in Active Directory(changelog).
    The following link explains how the dirsync is used to get attribute values :
    'http://blogs.technet.com/b/isrpfeplat/archive/2010/09/20/using-the-dirsync-control.aspx'
    I am changing the attribute Local path under Remote Desktop Services Profile of a user. I have ran a client which uses dirsync to get the changed objects in AD.
    In the client the attribute that is changed is `userParameters` and the value is in encrypted form. 
        CtxCfgPresent                                   P☺CtxCfgPresent???? ☻☺CtxWFProfi
        lePath?↑→☺CtxWFHomeDir?????????????"☻☺CtxWFHomeDirDrive?☺CtxShadow????☺CtxMaxDis
        connectionTime????☺CtxMaxConnectionTime????☺CtxMaxIdleTime???? ☻☺CtxWorkDirector
        y?☺CtxCfgFlags1????"☻☺CtxInitialProgram?
    Is there a way to get  the actual value form the userParameters.

    Hi,
    What about other changed attributes? Are other attributes retrieved by DirSync control turn to be encrypted form?
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Maintaining attributes, data source and attribute list in web UI

    Hi
    Can we maintain attributes, data source and attribute list in web UI level. We can do it  in SAP GUI level but do we have the option of doing it on web  UI level??
    Regards
    Aakshi

    HI
    data sources and Attribute lists need to be maintained in GUI but these can further be used for Segmentation in Web UI using the Graphical Modeler.
    hey main thing is that when we design all the things our out put is reflected in both interface & most important thing is that 90% of our customization done in gui.only web_ui related customization done in web_ui.
    for more details revert me back
    debi prasad

Maybe you are looking for

  • Values having html tags not getting populated while using AJAX in APEX

    Hi, I am using AJAX to populate certain values in a tabular report. I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049) <script language="JavaScript" type="t

  • Isync Mac OS X 10.5.4 issu

    After installing the 10.5.4 combo isync did not longer started. I tried many suggested solutions (e.g. move to desktop and back, empty cache, empty sync services files, reinstall combo, using pacifist to re-install isync from combo) on various forums

  • Hi There, nearly every time I try to load up a page in my browser I get this message: CONTENT ENCODING ERROR.

    I've tried all the tips that have been suggested on here and other websites but nothing seems to fix it. I'm currently running the new windows operating system. Could this have something to do with it? Please help me, it's driving me insane. Kind reg

  • Errors in Firefox

    Hello, I have always developped my application in Internet Eplorer. But recently I was told that the customer wants to use the application in Firefox. When I began testing the application in Firefox I encountered a strange error which didn't occur in

  • Error 1506

    i am recieving an error message that says : "Error 1506: This action is valid for products that are currently installed" and i can't reinstall itunes.... can anyone help me? please! thanks in advance