How to updateControlValue of lookup custom type field via javascript (JSLink) ?

I found in context - fieldSchema - Choices - array with lookup items, so i created new object with lookupid and lookupvalue and pushed into Choices. But after update control value i found what fieldValue: "1218;#"; while in  context
- fieldSchema - Choices - array my Object [LookupId: 1218; LookupValue: "Dion"]; 
Out of array LookupValue always null. Any idea?

Hi,
The following links would be helpful:
Setting values of SharePoint Lookup field
http://snipplr.com/view/30179/setting-values-of-sharepoint-lookup-field/
Sharepoint 2013. Multivalue lookup field with JavaScript
http://stackoverflow.com/questions/22694749/sharepoint-2013-multivalue-lookup-field-with-javascript
Best Regards,
Dennis Guo
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]
Unfortunatly it is not what i need. 
Let me explain, i trying to make cross site lookup field. So for now i made javaScript file and overrided JSLInk parameter. 
I want to made it clear for sharepoint and followed clientforms.debug.js practice. 
in clientforms.debug.js they used updateControlValue method for update fieldValue. So, i use this method for insert my own lookup object to field value. And main problem - updating field value such as the string  "5233;#HelpMePlz". 
Cuz after method updateControlValue sharepoint not save my own object.LookupValue  (HelpMePlz), sharepoint only save object.LookupId (5233). I
need someone who has already done something similar and can explain the subtleties of working with a client side rendering (JSLink) & lookup field. If any know how to do it write plz here or mail me ([email protected]). its realy important to me,thx.

Similar Messages

  • Populating Customer Type field via web form

    Hi all,
    There's a field in the CRM called Customer Type. Is it possible to populate this field using a web form?
    Appreciate any advice.

    Ok thanks for letting me know. Do you know if the feature will be coming in the first or last half of the year?

  • How do I output the "Customer Type"

    I am want to hide some content in a secure zone based on the "Customer Type".
    How do I output this CRM field?

    What class is your req variable? If your using a HttpServletRequest, then there is no method req.setContentType("");
    In the HttpServletResponse this is for telling the web browser or receving medium what kind of mime type to expect.
    And what package is the HttpConnection class from?
    I think more precise info is required before this question can be answered.

  • Validate phone type fields by JavaScript

    Hello.
    I'm using JavaScript to validate some fields on Contact entity like the date of birth. Erevything is working very well. To do that we use the name of the object on the source code of the web page for example "ContactEditForm.Date of Birth". But when we try to validate the phone type fields using the same method, the JavaScript doesn't work because all of them have symbols on the name ("ContactEditForm.Fax Phone &#35", "ContactEditForm.Assistant Phone &#35", "ContactEditForm.Cellular Phone &#35"). We need to use these fields, so we can't change them. And we must validate them before the user clicks on save buttom, so we are using JavaScript on the Global Web Applets. How can we reference these exactly fields on JavaScript code to validade them on Global Web Applets? Can anybody help me?
    Thanks in advance.

    Hello Royston,
    This is part of the code that I use to reference the fields of phone number.
    //Try 1: document.getElementById("ContactEditForm.Fax Phone #;").onkeypress = new Function('limpaTelefone(this);');
    //Try 2: document.getElementById("ContactEditForm.Home Phone #").onkeypress = new Function('limpaTelefone(this);');
    Thanks for your help.

  • How to get elements in a multi-value field via javascript?

    The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked...
    <Field>
    <Display class='Javascript'>
    <String>
    function myScript() {
    el=getElement(document.mainform,"variables.variable1");
    el2=getElement(document.mainform,"variables.variable2");
    el.value=el2.value;
    </String>
    </Display>
    </Field>
    <Field name='Script Link'>
    <Display class='Link'>
    <Property name='URL'>
    <String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
    </Property>
    </Display>
    </Field>
    My issue is, if variables.variabl2 is a list / multivalued, i get errors trying to traverse through the "array".
    How can i read and set an a list element via javascript function above? I've tried things like get() , and variables.variable2[0] .
    any help would be appreciated....
    is there an API somewhere i can reference?

    Hi,
    thanks for your reply!
    If I have the parameters in the URL and use the method GET it works all right.
    but I need the method to be POST. I suppose, I have the wrong way identifying the parameter name
    This is from VB
    varTarget = "http://localhost:9090/gm/getData" ' getData is my servlet
    xmlSendStr = "SQLStmt=SELECT TCPD_Cars.* From TCPD_Cars WHERE (((TCPD_Cars.CarIdent)=45));"
        xmlHttp.Open "POST", varTarget, True   'True means asynchronous
        xmlHttp.Send xmlSendStrthis is part of my Servlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter writer  = response.getWriter();
              String SQLStmt = request.getParameter("SQLStmt") ;
            //make the database query and get the returns
            writer.println(GetSQLData(SQLStmt));
            //close the write
            writer.close();                    
         }I would appreciate any suggestions

  • How to change order of custom metadata fields in the properties tab

    Hello all
    i have added some custom properties in a folder on the km content but i can not arrange the properties in any logical order.
    your help please
    Thanks
    Ronen

    Hi Ronen,
    you can
    If you have defined the properties working now, you know this path: System Administration - System Configuration - KM - Configuration - CM - Global Services - Property Structures.
    There you have the property structure DefaultPropertiesStructure using the property group all_groups.
    all_groups consists of system, custom ... etc. in the order the tab strips come up when using details for a resource. Within each group, under group items the property or the property group to be rendered appears (in the order they get rendered). This holds recursively for all groups.
    If you have defined your properties within group "custom", just arrange them in Group Items in the order you like.
    Hope it helps
    Detlev

  • How to set "Image Map" attribute to "Polygon" via javascript in Illustrator CS5

    Ok, so I have this little script I've written that I want to use to go through a bunch of paths in a document and give each path a url for use in an image map. I want each link to be a Polygon because, well, let's face it, "Rectangle" is useless 99% of the time. Obviously, the way you would do this manually would be to open the Attributes panel and set the Image Map attribute to Polygon and type a URL in the URL field. Fine. Easy enough. However, when scripting the process, it seems one can only set the URL (or the uRL [sic] as documented in the javascript reference) of the PathItem. In other words:
    pathItem.uRL = "http://someurlfor.me";
    Unfortunately, this defaults the "Image Map" attribute to "Rectangle" (which we already know is useless 99% of the time.) SO, anyone out there know how to change that attribute to "Polygon?"
    Btw, I'm on Illustrator CS5 and have been using this reference:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    Thanks,
    -Matt

    We found that with the following setting, the problem is almost solved :
    theme.setQueryWindowMultiplier(1);
    theme.enableAutoWholeImage(true);
    We still have a problem : a portion of the base map appears black most of the time, on Blackberry only (Opera Mini) ... like 1/5 of the map ... the right side ... any idea ?
    Thanks,
    JP

  • How do I make a tabbed page show via Javascript or HTML when link clicked?

    I have a page with dynamically created links via PHP. One of these links loads a named page (if not already loaded, via HTML or Javascript). If the page is already in a tab then clicking the link causes the page to reload but the page does not show unless I click on the tab. How can I force the tabbed page to show (already loaded) when the link is clicked? I've tried using the Javascript window.focus() method but it does not solve the problem. This issue does not happen with the Safari browser.
    == This happened ==
    Every time Firefox opened
    == always

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • How to invoke a plug-in menu item via Javascript?

    Hi, I installed a plug-in on my Acrobat Pro v11, it shows a plug-in menu, and there's one menu item in this plug-in menu dropdown. I can manually select that menu item and it does what it's designed to do.
    My question is, how do I use javascript to invoke it, to achieve the same result as when I manually select that menu item?
    I tried using this "app.execMenuItem("name-of-menu-item");" under my click event of a button on the PDF form, but it didn't work.
    What have I done wrong? How to make it work?
    TIA

    Thanks to all those who responded.
    Actually I got it working soon after I posted the question.
    However, I don't know, my trial&error way seems to be a little different from all those documents I read. 
    So, I am not exactly sure if it's the correct way to do this sort of thing or not.
    It certainly is not very end-user friendly IMHO.  
    I will describe what I did below, if you know of a better way, please let me know, thank you.
    First, I put a folder-level script in the Acrobat install folder, the so-called "app" level;
    because when I used the getPath("user", "javascript") call, it returned an error without giving me the user-level path. 
    Anyway, my script (the .js file) looks like this:
    xyz = app.trustedFunction(
                 function() {
                  app.beginPriv();
                  app.execMenuItem("ADBE:myxyz");
                  app.endPriv();
                  return;
    Then, on my form's button-click event, I make a call
      xyz();
    and that got it to invoke the menu item "myxyz" successfully.
    But... I can't say I like my solution:
    1) I don't like the .js file, because I'll have to put it in all my users' Acrobat install folders.
         Extremely inconvenient.
         Is there a way to make it work without using the folder level script???
    2) The script itself, I am not sure if it makes sense or not.
         I can't say I understand all these trustFunction and Security stuff;
          it just so happened that it worked for me, but I don't know why.
          so, maybe there could be a simpler script that can also work?
    3) If I put the "beginPriv()" , "execMenuItem()" and "endPriv()" lines directly in the Button-click event,
          I got an error message in the Acrobat console, something like:  "your security settings does not allow....";
          in fact, I tried many many different ways to write this Button-click script, none of them worked without the folder-level .js file.
          But I hope somebody could come up with a way to make it work without the folder-level script file....
          Is there a way to change the "security settings" without using the .js file?
    4) The execMenuItem is also a headache, sorry about complaining... but... sometimes it just silently exited without doing anything,
          and without returning any error messages... how am I supposed to know what went wrong when it's so quiet?!
           Furthermore, why does it insist on taking the full name of the menu item?  I mean, why do I must put the "ADBE:" part in there?
          there's no other menu item named "myxyz", right?
          I remember Adobe's founders once said that "making our customers' lives easier" was what drove them to work everyday.
          execMenuItem() certainly didn't listen to what they said.

  • Change paper type (A4) via JavaScript

    Hi all,
    I want to change the paper type via Java Script to A4.
    The hierarchy:
    data  -->pageSet -->page1 (A4)
    Is this the right syntax, if I want ot switch the page1 to A4? ...and which "Event" should I use? --->initialize?
    data::initialize - (JavaScript, both) 
    xfa.data.pageSet.page1.medium.stock = "A4";

    Hi
    Are you trying to change the size on the fly for different values for instance.
    Or is this simply ensureing the page is formatted correctly when the document is opened?
    I could not get your code to work
    but this code appears to work OK
    xfa.form.form1.pageSet.pageArea.medium.stock = "A4";
    Hope this helps
    Graham Spaull
    DubDubDubDesigns.co.uk

  • How to create customer specific fields within PC 10.0?

    Hello,
    for previous Process Controls versions 2.5 and 3.0 it was available two how-to guides to create customer specific fields. Nevertheless so far I couldn't find those versions for PC10.0.
    Does anyone have them? Or know if the 3.0 version is also valid for 10.0?
    Regards
    Andre Yuji

    Dear Johannes,
    We have a few administration transactions that you can use on back-end. For example:GRFN_STR_CHANGE -GRFN_STR_CHANGE-Change Process Control
    as well as RE_RHGRENZ4 to  Set a new end date to the objects.
    At last case, you can run the program RHRHDL00 thru SE38 Tcode.Be carefull because this program delete the object from database.
    Regards,
    Karina Atonaidan

  • How to define MDM real data type in ABAP ?

    Hi,
    I want to fetch MDM Repository data using MDM API .
    I am strugling as one field in MDM is of real type .
    Please tell me how I could define Real data type field in ABAP ?
    Thanks.
    Sandesh

    I recently had a Real type added to a repository I'm working on and noticed a dump in the API itself when trying to fetch data from that field. I'm running 5.5 so you may be experiencing a different issue. I haven't resolved the issue yet as it isn't a priority but I will most likely move to a string field and just ensure that the field has its decimal rule respected logically.

  • Custom Date Field not showing up in Pages Inspector

    I created a custom date field in Address Book and now want to merge info from Address Book into a Pages template I created (including this new custom date field). When I go to the Inspector to add the custom date field to the template, it is not listed as a field - only Anniversary and Birthday are listed as "other" fields.
    How do I get the custom date field to show up in the inspector?
    Chris

    Question asked and responded several times.
    The Help is unaware of the true program behaviour.
    In version 3, custom AddressBook fields are not usable in Pages.
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09
    Yvan KOENIG (from FRANCE samedi 8 novembre 2008 18:13:21)

  • UDT dynamic custom type mappings

    I'm using Oracle Data Provider for .NET Release (11.1.0.6.20) in combination with .NET Framework (2.0.50727).
    As there are user defined types in the database schema, ODP.NET was chosen to connect to the Oracle database.
    The DB server contains database schemas having a similar structure and containing UDTs which are referred to from an application.
    Unfortunately, I could not dynamically determine Oracle UDTs and .NET types mappings in runtime.
    With the offered OracleCustomTypeMappingAttribute class, one can identify the name of a user-defined type using the "schema_name.type_name" format only at the level of assembly metadata.
    The application, in its turn, connects to the schema chosen by the user.
    Question: how one can define the custom type mappings during the runtime of an application?

    You can't. You have to create a new schema in each database and recreate your udt's in this new schema.
    You can do
    grant execute on <<udt_type >> to public
    See also here: User Defined Types and ODP.NET

  • Set Customer Type on Comment Post

    We need a way of flagging customers created from comment posts since they usually are not actually customers, especially if no email is given. Is there a way of setting the customer type field of the Customer record from the comment form post?

    I solved the problem.
    The I_STEP to use in this situation is I_STEP=0.

Maybe you are looking for

  • Getting error while posting GR using IBD from BAPI_GOODSMVT_CREATE

    Hi Experts, While posting GR from IBD using BAPI_GOODSMVT_CREATE with all necessary values like plant,material,mvttype and serial numbers etc... getting error from BAPI return "1  E VLA 315 Item 000010 requires serial numbers; use the inbound deliver

  • OID is up & running but "ldap"  process are not running

    Hi all, Oracle Internet Directory is up & running but LDAP processes ( Not Running ---- Process oidmon Not Running ---- Process oidldapd Not Running ---- Process oidrepld Not Running ---- Process odisrv) are not running. I am trying to configure SSO

  • Tool for Mass deletion Idoc

    Hello everybody, We have a little problem with our ALE....We have generated 2 000 000 idoc by error in our Sender System..all the idoc have the statut 30 (generated)... We're looking for a programm or a transaction to edit or delete these idocs...(we

  • Store BOM with doc-links

    Hi, I am trying to store a BOM with document links attached to the header and positions. When I call the function CSAP_MAT_BOM_READ it gives me the stored doc-links, but using the funtion CSAP_MAT_BOM_MAINTAIN doesn't change/add/delete anything conce

  • ICC profiles - few issues

    Dears, I've been trying to understand color managment issues and there are still some gaps difficult to fill so far. Thanks in advance for a little support in answering following questions (OS: Win7 64bit, Dell Vostro 3560, testing CS6 ext.) : 1.   I