Assignment on Multi-Valued Lookup field

Hi experts,
Is it possible to assign value to a multi-valued lookup field using assignment.
For example, "Products" is the main table. In the products table I have a multi-valued attribute "PLANT". Product table contains a field "PLANT" of type look-up multivalued to the Plants table.
So, is it possible to assign Plant attribute values to PLANT Look-up multivalued field in the main table using assignment??
Is not, then is there any other work around solution to acheive this requirement?
Best Regards,
Shiv

hi,
So, is it possible to assign Plant attribute values to PLANT Look-up multivalued field in the main table using assignment??
No this is not possible, to get the values of the plant attributes you again have to lookup at the plant master data and fetch the values from there in the routine.
regards,
Arvind.

Similar Messages

  • Does Access 2013 Web App support multi-value lookup fields?

    I hope someone can please help me with this as I've not been able to find the answer by searching this site, nor elsewhere on the web. I have Access 2013 open connected to my web app on Sharepoint Skydrive with a table open in 'edit table' mode. When I add
    a new lookup field I don't see any option to make it a multi-value lookup field. Is there no support for that in web apps or am I doing something wrong?
    Cheers, Henk.
    Cheers, Henk.

    This is what I use in the Parent RowSource:
    This in the parent child relationship
    In the row source query from the child, I have a simular expression. By inverting the boolean 'childToggler' I can force the child-form to requery. Because the boolean is in the session table record (which is part of the child form recordsource query as
    well), the boolean will be inverted in both and won't disrupt the relationship.
    Besides the toggler this relationship only contains an ID with preceding zero's, but the expression can contain pretty much everything. 

  • Issues updating/setting multi value lookup columns via powershell

    Hi All,
         I have an issue updating multi values in a lookup field via powershell
    I can update a single value  lookup field as below but can't get to update if its multi value.
    As stated below when I hardcode it. It works.
    No idea what 'm missing. Any help will be appreciated.
    #Hardcoded works below as you can see i'm setting 3 values
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    "$number $word"
    $lookupvalue1 = GetLookUpValues -val $number
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue2 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue3 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue2.LookupId = 2
    $lookupvalue3.LookupId = 6
    $itemValues.Add($lookupvalue)
    $itemValues.Add($lookupvalue2)
    $itemValues.Add($lookupvalue3)
    #$itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    Write-Host "items:" $itemValues
    $CMRSItems.Update()
    # This works when its updating only one value but when it needs to update multivalue it only updates the last one
    #so for example with the lookupvalue above only 6 gets updated below
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    #$number
    "$number $word"
    #send param to GetLoolValues func to return records as SPFieldLookupValue
    $lookupvalue1 = GetLookUpValues -val $number
    #I can view the lookupvalue returned successfully
    #Write-Host $lookupvalue1
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #This LookupId returns 3 values like on the hardcoded one above like so :1,2,6
    $lookupvalue.LookupId = $number
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    #I can view the items returned successfully
    Write-Host "items:" $itemValues
    $CMRSItems.Update()

    The problem I can see with your code is that the below line of code, you are instantiating inside the for loop. This should have been outside the for loop as by keeping it inside the loop you are overriding the value.
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    Please have a look at the below solution and modify your code as per your requirement. What I am trying to achieve in the below code is that I have a listA in which one of the field is being used as a multi-lookup in my listB.
    $lookupCollection = $something.split(";")
    $LookupMasterList=$web.Lists["ListA"]
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $lookupValueCollection = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #Get the Lookup Item from Parent List
    foreach($item in $lookupCollection){
    IF([string]::IsNullOrEmpty($item.trim())) {
    continue;
    $LookupItem = $LookupMasterList.Items | Where-Object { $_.Item("FieldInternalName") -eq $item.trim()}
    if($LookupItem -ne $null)
    $myLookup = New-Object Microsoft.Sharepoint.SPFieldLookupValue($LookupItem.ID,$item.trim())
    $lookupValueCollection.Add($myLookup);
    #Set the Lookup field value
    if([string]::IsNullOrEmpty($lookupValueCollection)){
    continue;
    else{
    $newItem["Lookupfieldinternalname"] = $lookupValueCollection
    The above logic has no hard coding and it fetches the lookup information directly from the master list and generates a collection based on that. You can modify the above code as per your requirement.
    Geetanjali Arora | My blogs |

  • Reporting counts on multi-value lookup columns

    Hi,
    I have a list containing 2 columns - student, and subjects. Subjects is a multi-value lookup column. Students may study multiple subjects. What I'm trying to achieve is a simple pie chart (I don't care if it's done using SharePoint Web Part, Excel or
    SSRS) that displays a breakdown of how many students are studying each subject.
    So if I have 2 list entries:
    Person 1, Science, Maths
    Person 2 , Maths
    Person 3 , Science
    The report/chart would report  2 Science and 3 Maths. What I'm struggling with is that because the data is stored in an un-normalized fashion ('#;') separated it's not possible to do straight charts without coding (C# or VBS). I
    would have assumed that this issue would be widely spread but I've had no luck looking through forums. Does anyone have any experience/;ideas on how to handle this??
    Thanks.
    MDB

    Hi
    From your description, my understanding is that you want to get counted values of a Multi-Value lookup column.
    You can get counted values of a Multi-Value lookup column
    in DVWP using XSLT.
    Refer to the following post:
    https://social.msdn.microsoft.com/Forums/en-US/f9d4cf16-4460-48a7-9514-dee19503b9fc/getting-counted-values-of-a-multivalue-lookup-column-in-dvwp-using-xslt?forum=sharepointdevelopmentprevious
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Multi Value Lookup Save Problem

    Hi, 
    I am trying to save records in Multi value look up table. The problem is that only the last record is getting saved.
    Can anyone please help?
    Regards,
    Sruti

    Hi Deepti,
    Qualified Lookups are always Multivalued and no specific property has to be enabled atleast within MDM to make it Multivalued.
    By selecting The Qualified Lookup table Multivalued,It should allow you to save Multiple NQ values for a given record.
    You can have a look at the below link to know about the Java methods provided to work with MDM:
    http://help.sap.com/javadocs/MDM/SP05/(Java api programs)
    https://help.sap.com/javadocs/MDM/current/index.html  (java api codes)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Assigning object reference values to field symbols

    Okay.......has anyone out there figured out how to assign the reference value of an object (you know the value you see in the debugger for example: .........to a field symbol.
    I know there has to be a way and was wondering if anyone has successfully achieved this. Its easy to assign a memory area to a field symbol if its an itab like this below:
    field-symbols: <fs>.
    data: v_fieldname(20) type c.
    v_fieldname = '(SAPLMEREQ)MARA'.
    assign (v_fieldname) to <fs>.
    This shouldn't be impossible with code like:
    field-symbols: <fs> type ref to object.
    data: v_ref(100) type c.
    v_ref = '{O:666*\FUNCTION-POOL=MEREQ\CLASS=LCL_REQ_ITEM_STATE}'.
    assign (v_ref) to <fs>.
    I just know that the code above doesn't work....
    Any suggestions? And please......no questions about "why" or "what do I want to accomplish?" .....
    Mike

    Hello Michael
    I assume you have not yet seen the following links:
    ABAP OO - MEREQ (Purchase Req) - Protected Attributes
    [Accessing the Inacessible - Local Classes within Global Classes|https://wiki.sdn.sap.com/wiki/display/ABAP/AccessingtheInacessible-LocalClasseswithinGlobalClasses]
    Regards
      Uwe

  • Issues with syndication of multi-valued tuple fields

    I'm trying to create a syndication map (using a schema) for a main table in MDM which includes a multi-multivalued tuple.  The map generates an internal error on execution when I have the tuple fields mapped but executes correctly when I leave them unmapped.  Has anybody else experienced this issue?

    Hi Lori,
    The Tuple syndication in MDM 7.1 works slightly differently than a normal lookup or Qualified mapping.
    While syndicating tuple fields we cannot map the lookup Tuple field  which acts as the linking field in the main table.
    However you can map the tuple member fields and MDM syndicator allows you to map and syndicate them.
    I have tried mapping and viewing the same and it works fine with me.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • How to print only the 2 most recent values in a multi-value table field

    Hi there,
    I have a history table field in my report that may contain anywhere up to 100 values for any one database record... however for each database record, I only want the LAST 2 (ie. 2 most recent) values of this field to be included in the report. I then want to do a value change comparison and produce a percentage change for the field.
    It seems like a simple concept... can anyone assist?
    -Karen

    Hi Jyothi,
    I'm not sure I understand your qeustion.
    For example:
    The table field may contain a list of 4 values:
    (value1) 5000
    (value2) 4000
    (value3) 7000
    (value4) 7500
    I only want the report to include value3 and value4, and then I want it to show the difference between these values (ie. 7500 minus 7000) and then also express a percentage change between these two values). I am not sure what kind of formula to use for this.
    Thanks for your time!
    -Karen

  • Trying to customize a multiple item lookup field using JSLink

    I'm trying to Customize a multiple item lookup field using JSLink, in SP 2013. This illustrates what I want to do:
    I can replace the ";" with <br /> in the Text column, but not the Lookup column. Here is the JSLink code I'm using for the Text column. 
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'Text': { 'View' : '<#=ctx.CurrentItem.Text.toString().replace(";","<br />")#>' }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    How can I display each item on separate lines in the Lookup column?

    You can retrieve the values of the lookup column and reformat their display by replacing the following:
    overrideCtx.Templates.Fields = {
    'Text': { 'View' : '<#=ctx.CurrentItem.Text.toString().replace(";","<br />")#>' }
    with something like this:
    overrideCtx.Templates.Fields = {
    'Lookup': { 'View' : function(ctx) {
    var arr=[];
    var fld=ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    for (i=0; i<fld.length; i++) {
    arr.push(fld[i].lookupValue);
    return arr.join("<br/>");
    Here we are looping through each lookup value contained in the multi value lookup field and adding it to an array. Once complete, we use join to flatten the array and separate each entry with the <br/>. Note...this will show each value on a new line,
    but it will be the string value without the hyperlink.  If you want the actual hyperlink to the item, you can rebuild the hyperlink and add that to the array instead. You can get the item's display form from ctx.CurrentFieldSchema.DispFormUrl and the
    item's id from fld[i].lookupId for rebuilding the hyperlink.

  • Mass updating a multi-valued field- to append the new value

    I have a question on multi-valued fields:
    I have store table with 5 multi-valued fields, say MLB, soccer, college FTBL, college Basketball, etc. 
    A store can have 4 MLBs, 2 soccer teams, and so on. 
    Say, there is a new MLB that came out called Mexico MLB team. 
    A user wanted to add this to 30 stores using a mass update.  But remember the 30 stores can have totally different sets of values in the multi-valued fields.
    How can I add this new value while still preserving the MLB team’s values of each store record?
    Does MDM not support this feature?
    I am using SAP MDM SP6
    An answer would be highly appreciated.
    Thanks
    Savi

    Savi,
    I assume you are defined these fields as multi-value lookup and linked to main table. In general, you can not because it will mess up and overwrite your multi-value entries for all of your 30 store records.
    Here is something in MDM come in handy. It is following the same concept but design your model a little differently. If you model your multi-value fields into qualified lookup table, it will be easier and optimized to handle.
    You can select all 30 records and mass-update with adding the new MLB entry into your Q-lookup table. Once you save, this mass-update action will respect all your diversity of each individual records with the new value added.
    Hope this helps
    If this answers your question, please kindly reward the points.
    Regards
    Dawei

  • Delimiter in Syndication Maps for Multi-Valued Fields

    We are in the process of upgrading to MDM 7.1 from MDM 5.5.  In one of our syndication maps we are syndicating a multi-valued hierarchy field with no particular limit as to how many values the field can hold.  In the old MDM 5.5 Syndication map the xml output delimits this data with ";" (semi-colon) as in the below example.
    <Field>Level 1Level 2Value 1; Level 1Level 2Value 2;Level 1Level2Value 3</Field>
    In MDM 7.1 the values are separated by a "," (comma) like in the example below.
    <Field>Level 1Level 2Value 1, Level 1Level 2Value 2, Level 1Level2Value 3</Field>
    Is there anyway to change the delimiter in MDM 7.1 from a "," (comma) to a ";" (semi-colon) with out splitting the field?
    Thanks!
    Sincerely,
    Courtney

    Hi Brewer,
    Is there anyway to change the delimiter in MDM 7.1 from a "," (comma) to a ";" (semi-colon) with out splitting the field?
    Yes, for e.g in in your syndication map at source item lookup field display as follows
    Country
            |___ Code
            |___ Name
    just map country to destination item instead of using Code or Name, multi vaule will display with ; operator
    In one of our syndication maps we are syndicating a multi-valued hierarchy field with no particular limit as to how many values the field can hold.
    if you want to set length of field you require to set properties at destination item as follows :
    Fixed Column Width : the specific with  destination item
    Max Item Length : Maximum length allowed for the item 
    Hope Above mention point will resolved your problem if not revert back
    Thanks,
    Jignesh Patel

  • Multi value parameter issue.

    We are facing some issue in SSRS report, whilst running SSRS report  it shows as blank in the multi value parameter field when the <all> option is selected(character will be more than 20000). (Report server: MS windows server 2003 and 32 bit(GIRMSA3),
    server: MS windows server 2008 and 64 bit)
    Same is working in the  SSRS Server and Citrix servers both  are 32 bit , MS windows server 2003.
    1. What is the Maximum Number of Values allowed in a SSRS 2008 Text Parameter Dropdown ? Is it configurable  ?
    2. What is the Maximum of Length of Select Values in a Text Parameter Dropdown in SSRS 2005 ? Is it configurable  ?
    Thanks
    Vijay
    Thanks Rai

    Hi  Vijay,
    This is because of the following patch
    “MS11-100 .Net Framework Security Update (KB 2656355)”. Applying this update limits the maximum number of form keys, files and JSON members to 1000 in a request.
    Go to the reporting services installation folder.
    Go to the report server folder and make a backup of the file “Web.config”. Once you have the backup, open the original file in notepad and add the following entry under the Configuration section:
       <appSettings>
                   <add key="aspnet:MaxHttpCollectionKeys" value="30000"/>
       </appSettings>
    Go to the Report Manager folder and again make a backup of the file “Web.config”. Once you have the backup, open the original file in notepad and add the following entry under the appSettings tag:
    < add key="aspnet:MaxHttpCollectionKeys" value="10000"/>
    Once you do the above steps, you should be able to run the report without any issue.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Import into Lookup Hierarchy Multi-Value Field

    My source data contains two fields (Product ID, Product Notes). I need to map the Product Notes into a Hierarchy Lookup Field on main products table.  THe hierarchy table for product notes contains two text fields and both are display fields.  My source data for product notes contains a comma delimited list of values that only apply to one of the display fields of the Hiearchy table.
    Example:
    product1 |  1,5,10
    product2 |  1,3
    product3 |  1,6,13
    How do I map and assign the multiple product notes to each product?

    Hi Sowseel,
    I do not understand your assumptions.
    I have following tables:
    Tablename: Product Notes
    Table Type: Hierarchy
    Display Fields: Note Number, Note Description
    Unique Fields: Note Number
    Key Mapping: No
    Tablename: Products
    Table Type: Main
    Display Fields: Product Number
    Key Mapping: Yes
    The Product Notes table has following example entries already (comma delimitter indicates field seperation):
    1, Description of product note 1
    2, Description of product note 2
    3, Description of product note 3
    Notice there is no really hierarchy. This table type was used to have manual control of the order of the notes.
    My import data is formated as follows:
    Field1 Name = Product Number
    Field2 Name = Product Notes
    Field1 Value = XYZ
    Field2 Value = 2,8,10
    In import manager, the product notes field in my destination pane is shown as a heirarchy.  Selecting the root level shows destination values of the display fields for this lookup table (i.e. Note Number, Note Description).  However, my source data only contains a comma delimitted list of note numbers.  I do not understand how to map the values.

  • Multi Value User Defined field on OIM user form

    Hi Everyone,
    I have a requirement where i need to assign multiple resources to user as per access policy. These resources should be assign by virtue of some role (custom attribute as of now). The specific requirement is that one user may have multiple roles (and hence resources) and all these values should capture in any user defined field. As the requirement contains multiple Roles so we have to create multi-value user defined field for User form to capture all these role values under single attribute. Does OIM provides any such multi-value field OOTB (lookup, drop down--any customize way we can make them multivalue)?

    He's right. Multi Valued attributes on the User Profile are not available in OIM. If you want to do this, and you have a finite number of possible roles, you can create UDFs for each and map a checkbox or something to it if the user has that value. Then base your acccess policies off those.
    -Kevin

  • Javascript client object model : get value of person or group multi value field (need the username)

    How to get value for a Person or Group field which is of multi value?
    Below is my code:
     var _Assigned = "";
                if (appPendItem.get_item("Assigned").length > 0)
                    if (appPendItem.get_item("Assigned").length ==1)
                        _Assigned = appPendItem.get_item('Assigned').get_lookupValue();
                    if (appPendItem.get_item("Assigned").length >1)
                        for (var i = 0; i < appPendItem.get_item("Assigned").length; i++) 
                            _Assigned = _Assigned + appPendItem.get_item("Assigned")[i].get_lookupValue() + ";";
    I am getting error :  Object doesn't support property or method 'get_lookupValue'
    Please suggest how to do this.
    Thanks

    I tired this code, works perfectly for me:
    var itemId = 3;   
    var targetListItem;
    function runCode() {
        var clientContext = new SP.ClientContext(); 
        var targetList = clientContext.get_web().get_lists().getByTitle('XYZ');
        targetListItem = targetList.getItemById(itemId);
        clientContext.load(targetListItem, 'Users');        
        clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded() {
        var users = targetListItem.get_item('Users');
    for(var i = 0; i < users.length; i++) {
      var userValue = users[i];
      console.log(userValue.get_lookupValue());
    function onQueryFailed(sender, args) {
        alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', runCode);
    OutPut:
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

Maybe you are looking for

  • MEGAPC and TV@Master

    Hi, I was wondering... Is it possible somehow to use/add a timer function in the megapc (with tv@ master) so you are able to use it as a recording machine, like a regular VCR or DVD-R? Ideal situation is software that writes wake up times to the powe

  • Handling Special Characters in PI

    Hi,, We have an XML file where in Payload, we are having some spl characters like £ , & , u2018 , u201C < , > we replaced the symbols £ , & , u2018 , u201C with the respective HTML codes using Java Mapping and when trying replace < > , we are facing

  • After keyboard update Aiport is Off

    After I updated to MBP software update 1.1 on every startup my airport is off. When I enable it, it comes off again. Second time it stays on and takes long time to find my wireless network. Very annoying as prior to update I repaired permissions and

  • Set Tolerance Limits for Price Variance when PO-based Purch.Requisition

    We must garanty that Price from Purch.Requisition will be the same at PO. IF some variance occur a error messag must be sent to user and PO could not be saved. I found at customzing under SPRO > Materials Management > Purchasing > Purch.requisition >

  • Trial version of PS5 Extended w/ PS5 standard already installed?

    Greetings - I've recently discovered some photo edting features using smart objects that - if they work as well as demonstrated - would be enough to get me to upgrade from the standard version of CS5 to the Extended version. Problem is that both vers