Derived Column : for Lookup type column with 'Allow Multiple Selection' : True in sharepoint list

Hello,
I have one column where field type is Lookup but 'Allow Multiple Selection' is true in SharePoint List.
So, in this scenario data from the SharePoint list is being exported as below.
1;#Red;#3;#Blue;#4;#Black;#5;#Green
Now resultant text exported to SQL Table should be :
1,3,4,5
OR
Red,Blue,Black,Green
Either way it is fine. How can we get this using Derived Column and Data Conversion?
I am able to do this for single occurrence using below expression.
(DT_STR,100,1252)(SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1)))
Please suggest.
Thank you,
Mittal.

Your best bet would be to do this in sql using a string parsing udf as below
http://visakhm.blogspot.com/2010/02/parsing-delimited-string.html
You can make it into procedure and call it from oledb command task.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Programmatically: Support content types in the gallery and for content types associated with a document library

    Hi there,
    Help appreciated in programmatically 'Supporting content types in the gallery and for content types associated with a document library'.
    Any resources/references or source is greatly appreciated.
    Regards,

    Hi,
    Would you mind providing more details about your requirement? Cause I'm not quite clear about what you really need.
    What’s more, there are seems two questions in your post. If you have several questions to ask, I suggest you post them into every single thread to make them easier to be discussed
    in the forum.
    Best regards
    Patrick Liang
    TechNet Community Support

  • HT1918 Trying to edit my payment info.  I keep getting the message that my number is not valid for the type of card I have selected.  I have a VISA card.  I have typed in the number 4 times, but same message pops up.

    Trying to edit my payment info.  I keep getting the message that my number is not valid for the type of card I have selected.  I have a VISA card.  I have typed in the number 4 times, but same message pops up.
    Thoughts?

    You are probably entering your Visa's security code incorrectly.  Here's how to find it:
    http://support.apple.com/kb/HT3541

  • Choices - Checkboxes (allow multiple selections) Links

    Is there a way to make the below possible:
    This is with respect to Sharepoint 2010 list functionality
    I have a list with 7 choices 
    The type of choices is: Checkboxes (allow multiple selections)
    Is it possible to have links as the various choices as compared to plain text?
    Is there any other alternative to have links with multiple selection option which works like choices option in a list?
    Thanks,
    Abhilasha Thackur

    Hi,
    According to your post, my understanding is that you wanted to have links as the various choices as compared to plain text.
    There is no out of the box way to accomplish this with SharePoint.
    By design in SharePoint, the options in the Choice filed look like Single line of text type.
    To achieve what you want, you need to custom filed Type programmatically.
    More information:
    Walkthrough: Creating a Custom Field Type
    Creating Custom SharePoint 2010 Field Types
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Allow multiple selections in 2nd box of cf_TwoSelectsRelated

    Greetings. I'm very new to ColdFusion, so I apologize if this
    seems like a no-brainer.
    I've successfully used cf_TwoSelectsRelated to add related
    selects to a form. I'm able to have a user select a school, and
    have the second select box retrieve only the teachers that are from
    that school. Now I'd like to allow multiple teachers to be selected
    from the second list (to register for a workshop) and have them all
    be inserted in my registration table as individual records.
    I think I can figure out the second part of my task (insert
    them as individual records) based on
    Dan
    Bracuk's answer to a query back in February. However, for the
    first part (allow multiple selections in the second select list)
    I'm not sure whether to:
    a) try to edit the cf_TwoSelectsRelated custom tag (I think I
    would need to know some JavaScript for that? yipe!)
    or
    b) do something to my existing code to allow the second
    select to have multiple selections (but doesn't cf_select just
    require that you specify in the attributes "multiple="true"? which
    means I will probably need to edit the cf_TwoSelectsRelated custom
    tag (back to *yipe*!)
    Can anyone point me in the right direction? I've attached
    cf_TwoSelectsRelated. Please let me know if you need me to supply
    my code.
    Thanks very much in advance.
    Marianne

    Dear Dan,
    Thanks for this! Well, I went ahead and kept trying to figure
    it out while I waited - I found and took a look at
    cf_ThreeSelectsRelated and the third select box did indeed have a
    "multiple" attribute - so I borrowed it and edited the
    cf_TwoSelectsRelated (as attached - just added one line to the
    attributes list and added one cfif to the cfoutput for the 2nd
    select box), called it in the attributes of the
    cf_TwoSelectsRelated tag call in my "add attendees" page - and it
    seems to work great! No messing about with scary javascript needed.
    *whew*
    Now I just have to edit the code to allow it to insert each
    set of id's as an individual record... but I think I can handle
    that :)
    Hopefully this will help someone who's wondering if this will
    work. I couldn't find any reference to it anywhere!

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to create a parameter to allow multiple selection

    Hi,
    I am developing report in Oracle EBusiness suite. I use concurrent program to develop the report. My question is how to create a parameter to allow multiple selection for such kind of report?
    thanks
    Lei

    I dont think, we have multiple selection in the parameters of Concurrent Program :).

  • Is possible to take the Infopath form with two repeat section in one SharePoint list

    Is possible to take the Infopath form  with two repeat section in one Sharepoint list 
    Take two repeat section and put them one bellow to other one in a SP list.
    The motive is that the first repeat section is based in account own by the requestor and the second repeat section is when the requestor is doing backup time for some one else where need to log the amount of time that spend in the peer account.
    I have basic logic in the form when requestor said Are you doing backup for some else? and press YES it is be able to use the second repeat section.
     Le me know how much pain full is going tobe or not..
    –Q1: Is possible to do this ?  With codeless or not
    –Q2:What steps I need to do to accomplish this?  feasible or not
    the following picture give a better idea of what I am looking to accomplish:
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Error On Selection Cardinality doesnot allow multiple selection

    Hi All,
    Every one... Am new to SAP am learning WebDynpro Java..
    Now am working on Multiple selection on a table But it is giving Error
    Like:
    Failed to Process reques. Please Contact Your System Administrator.
    Root Case is :
    com.sap.tc.webdynpro.progmodel.ContextException Node (....) Selection Cardinality doesnot allow multiple selection ....
    Please Help Me..

    Hi Ramesh,
    please check the property of the node which you are using.
    check the Cardinality  property, for multi select it must be 0.n or 1 . n.
    Hope thiw will help
    Regards
    Narendra

  • How to handle multiple selection in the Spark List control with checkbox as itemrenderer?

    Hi All,
    I am using checkbox as an ItemRenderer in spark list.
    I have a query.
    how to handle multiple selection in the Spark List control with checkbox as itemrenderer?
    how to retrieve the selected item label?
    Thank you in advance.

    Hi there, I'll tweak your code a little bit to something like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical">
        <mx:Script>
            <![CDATA[
                 import mx.events.ListEvent;
                 import mx.controls.CheckBox;
               [Bindable]
               private var mySelectedIndexes:ArrayCollection=new ArrayCollection();
                private function onChange(e:ListEvent):void
                   if(CheckBox(e.itemRenderer).selected){
                             mySelectedIndexes.addItem(e.rowIndex);
                   }else{
                                  mySelectedIndexes.removeItemAt(mySelectedIndexes.getItemIndex(e.rowIndex));     
                   chkList.selectedIndices=mySelectedIndexes.toArray();
            ]]>
        </mx:Script>
    <mx:ArrayCollection id="collection">
            <mx:Object label="Test A"/>
            <mx:Object label="Test B"/>
            <mx:Object label="Test C"/>
            <mx:Object label="Test D"/>
            <mx:Object label="Test E"/>
            <mx:Object label="Test F"/>
            <mx:Object label="Test G"/>
        </mx:ArrayCollection>
    <mx:List id="chkList" dataProvider="{collection}" itemRenderer="mx.controls.CheckBox"  itemClick="onChange(event);" allowMultipleSelection="true"/>
    </mx:Application>

  • How to allow multiple selection of nodes in a JTree

    How to allow multiple selection of nodes in a JTree ?
    Thanks
    S.Satish

    By default when you create new instance og JTree the selection model is multiple selection. And if you want to change it you use next:
    tee.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    or
    tree.getSelectionModel().setSelectionMode(TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
    or
    tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    Hope will help!

  • Problem in using OCIBindByName  for date type column

    Hi,
    Can you please guide me about my following problem?
    I am trying to fetch the data from system table "FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$" in Oracle Express edition 10.2.0.3 database, using the OCI library on Windows with C++
    This table has a TIMESTAMP column of date type.
    I've the following query as below:
    select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') order by TIME_STAMP asc;
    For this, first I am preparing the query as below:
    select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > :PKVAL order by TIME_STAMP asc;
    Before calling OCIExecute(), I am setting the PKVAL buffer to following value:
    "to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') "
    & calling the OCIBindByName function with data type as SQLT_DATE.
    But when the OCIExecute is called, my program crashes with access violation
    Can you please guide me what is the correct way to pass the date value in query to OCI? How do we bind the date values?
    Thanks in advance for your time and help.
    Best Regards.

    I had a similar problem. TO_DATE doesn't appear to function w/ BindByName or BindByPos.
    You are going to have to bite the bullet and use an actual date.
    Here's an example (I am using two dates in my query):
    int main (int argc, char **argv, char **envp)
    static text invalidQuery = (text )"SELECT f1.my_val, COUNT(f1.my_val) invalid_count, (SELECT COUNT(*) FROM my_db_table f2 WHERE f2.my_val = f1.my_val AND f2.foo_dt = :1 ) total_count FROM my_db_table f1 WHERE f1.foo_dt = :1 AND ( (f1.vld_bar_sw IS NULL OR f1.vld_bar_sw = 'N') OR (f1.vld_foo_sw IS NULL OR f1.vld_foo_sw = 'N') ) group by my_val order by my_val asc";
    OCIDate boundDateVal;
    sb2 inputYear;
    ub1 inputMonth;
    ub1 inputDay;
    char inputYearStr [] = "0000";
    char inputMonthStr [] = "00";
    char inputDayStr [] = "00";
    /* I get and validate the date as input, but you can set it however you'd like */
    inputYear = (sb2) (atoi (inputYearStr));
    inputMonth = (ub1) (atoi(inputMonthStr));
    inputDay = (ub1) (atoi(inputDayStr));
    /* Allocating Date*/
    OCIDateSetDate ( &boundDateVal, inputYear, inputMonth, inputDay );
    OCIDateSetTime( &boundDateVal, 0, 0, 0);
    returnVal = OCIBindByPos(invalidStmt, &firstInputBindHPtr, myErrorHandle, (ub4) 1,
    (dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
    SQLT_ODT, /*dty OCIDate*/
    (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
    if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
    displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 1 ");
    cleanup();
    exit(1);
    }//if
    returnVal = OCIBindByPos(invalidStmt, &secInputBindHPtr, myErrorHandle, (ub4) 2,
    //(dvoid *) &InputArguments.contactDate, (sword) sizeof(InputArguments.contactDate),
    (dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
    SQLT_ODT, /*dty OCIDate*/
    (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
    if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
    displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 2 ");
    cleanup();
    exit(1);
    }//if
    }//main
    ** I have had issues w/ OTN not correctly translating certain characters, so hopefully the above example is readable or you can figure out which characters may be missing.

  • Derivation Strategy for billing types - Post activation in KE4W

    Dear Friends,
    I recently activated KE4W for billing types S2, Credit Notes & Debit notes.
    This is for restricting the COGS flow to CO for these billing types.
    Now when i am releasing the sales document to accounting - Its asking to maintain derivation strategy.... KEDR for all the billing types.
    From my previous implementations i have never maintained KEDR for billing types... as it is suppose to be on a standard derivation strategy.
    How can i go about resolving this.
    Do i at all need to maintain KEDR for billing types.. or is this error because of something else..
    Thanks in advance
    Vikrant Sood.

    HI,
    normally KE4W (reset CO-PA value fields) does not require any KEDR-steps.
    I suggest to make a test derivation within KEDR to identify the step(s) where the message occurs.
    Maybe also T-Code KECM is helpful (Overview of derivation, characteristic derivation) to see if the billing type is used as a key field,...
    Best regards, Christian

  • Help with Allowing Multiple values Function

    I am wondering if someone can help me with what I am doing wrong?
    Basically I am trying to set up 4 parameters.
    The first two say, if a 1 is selected then I want to pull back the full data set, if a 0 is selected then it should pull the department that is put in a parameter after that.
    The same goes for a provider, if a 1 is selected then pull all providers, if a zero then select the providers that have been entered in the parameter below that.
    I am using "Allow Multiple Values" for both the dept and provider if the 0 is selected for either.
    Here is what I have been trying to use along with 4 parameters:
    whilereadingrecords;
    numbervar i;
    numbervar j :=ubound({?Provider});
    ( (1 = {?AllDepartments})
    OR
    (for i := 1 to j do(
    ({Command.DEPARTMENT_ID} in {?Department}) ))
    and
    ( (1 = {?AllProviders})
    OR
    (for i := 1 to j do(
    ({Command.PROV_ID} in Trim ({?Provider}<i>) )))))
    Thanks you, any help would be appreciated.

    Thanks for the advice Ian, I am trying to implement your code change with the following (this is just the first Department part)
    IN SELECT
    (IF {?AllDepartments} <> 0 THEN {Command.DEPARTMENT_ID} = {?Department} ELSE TRUE)
    but I keep getting the following error:
    "The remaining text does not appear to be part of the formula"
    any thoughts?

  • Syntax Error with JSON.Parse method to parse SharePoint List Items

    Hi All,
    I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control.
    For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in array to pass it to the Grid Control.
    While using the JSON.Parse(resporseText) method, Iam consistenly getting an Syntax Error!
    Could anyone help me with this ?
    Please find the SOAP Envelope I received from SP List as below:
    "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
    xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
    xmlns:rs='urn:schemas-microsoft-com:rowset'
    xmlns:z='#RowsetSchema'>
    <rs:data ItemCount="2">
    <z:row ows_OBNumber='112211.000000000' ows_Project_x0020_Name='Project 1' ows_MetaInfo='11;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 1' ows_ID='11' ows_UniqueId='11;#{FBBCBCF9-666D-42F9-92D7-67188C51BC9B}' ows_owshiddenversion='1' ows_FSObjType='11;#0' ows_Created='2015-01-12 10:25:06' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:25:06' ows_FileRef='11;#sites/Lists/Projects/11_.000' />
    <z:row ows_OBNumber='1122343.00000000' ows_Project_x0020_Name='Project 2 ' ows_MetaInfo='12;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 2' ows_ID='12' ows_UniqueId='12;#{0D772B76-68E4-4769-B6FF-6A269F9C7ABD}' ows_owshiddenversion='1' ows_FSObjType='12;#0' ows_Created='2015-01-12 10:33:48' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:33:48' ows_FileRef='12;#sites/Lists/Projects/12_.000' />
    </rs:data>
    </listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>"
    Any help on this will be greatly appreciated.
    Thanks In Advance.!

    Hi,
    According to your description, there is an issue when parsing result from the data retrieved using SPServices.
    By default, SPServices returns data as XML format, however, the JSON.parse() method “Throws a SyntaxError exception if the string to parse is not valid JSON”:
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
    To extract the data needed from the response, you can either take the demo below for as a reference:
    http://spservices.codeplex.com/wikipage?title=GetListItems
    Or use the jQuery.parseXML() function:
    http://api.jquery.com/jquery.parsexml/
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • External Hard Drive/Time Machine Questions

    The hard drive on my four-year-old-plus MacBook Pro is apparently failing, and I can't afford a new MacBook Pro yet. So I bought an external hard drive, hoping to clone my hard drive and run my computer off the external hard drive if the main drive c

  • How can I install ML in a second mac with out pay

    i have two macs ind I want to install ML in the second mac how can i do i have to pay again

  • Open Search Results in New Tab

    Hi, Is it possible to make the search bar open a new tab with the search results when I make a search?

  • Crash after just installing Mavericks. Error Report Analysis please

    Hi, I needed more hdd space so I did I fresh install onto a Crucial M500 240GB. I followed these steps and made a bootable mavericks 10.9.2 installer on an external usb drive. I had Lion previously and never had any crashes like this. Sometimes I'd l

  • Multiple xpjs drawing from same set of folders?

    Is it possible to use a set of common folders in multiple help projects? That is, have html files stored in one set of folders (that are already configured to support a complex TOC structure) and have several xpjs access them? No individual html file