How to handle Lookup Field in Add / Edit Forms

I have a list of properties and a photo library where each image has a 'property' column that defines which property it pertains to.
I've customized the DefaultDisplayForm and added a web part to show the images from Photo library related to the selected property.  This works because I've "connections" so that filtering takes place (the property list "Provides
Row" to the Photos Web part which obtains 'Filtered Value from' the selected property
While this works fine, I am not sure how to extend this so that
1) Modify the DefaultEditForm so that user can drag / drop additional photos to the Photos List View web part, and have the lookup field be populated automatically.
 2) Modify the DefaultAddForm to allow user to drag / drop photos for a new property (using drag drop) and have the lookup field be populated automatically.
 3) Modify the DefaultDisplayForm to disallow the user from adding photos using drag / drop (i.e.l to force them to use the Default Edit Form to do this).
I would imagine I need to add some JavaScript snipped that sets the value of the lookup field in each photo being uploaded to the Property selected in the other webpart but I am not sure where I should do that ? 
Any guidance appreciated.,

Hi,
As there is no such OOTB feature can meet your requirement, it will need some customization with the REST API and JavaScript to implement the effect of drag and drop and the
auto-populated functionality.
Here is a demo about how to use the HTML file upload control to perform the picture uploading with “drag and drop”:
http://www.html5rocks.com/en/tutorials/file/dndfiles/
Another demo about how to upload file using REST API:
http://anthony-verschraegen.blogspot.com/2013/12/sharepoint-2013-js-upload-file-to.html
SharePoint 2013 REST API:
http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj164022.aspx
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • '$P_CRM' is undefined Error while opening Lookup field in Bulk edit form in CRM 2013

    Hi All,
    I am getting this strange error in MS CRM 2013
    When I do bulk edit for any entity , I select 2-3 records and click on Edit , the Bulk edit form opens
    then whenever I clicks on any field which is lookup type It does not open , after debugging with F12 developer tool
    I am getting this error.    "'$P_CRM' is undefined"
    I have MS CRM 2013 on premise , Service Pack 1 Update Rollup 1 installed and using IE 11.
    Any Idea
    Regards,
    Vilas
    Vilas Magar http://microsoftcrmworld.blogspot.com/

    Few questions that might help us to identify issue:
    1. Have you enabled Social Insight  ? If yes can you try bulk edit on entity which don't have social insight enabled and confirm if it repro there?
    For more information on how to enable Social Insight :
    http://technet.microsoft.com/en-us/library/dn659847.aspx
    2. When you close bulk edit form are you getting script error dialog? If yes can you share that error log reports?

  • How to create Lookup field in user form in OIM 11g - Urgent

    Hi Experts,
    How to create Lookup field in User Form - OIM 11g.
    Pls. provide your support on priority.
    Regards
    Karan

    Thanks all for your suggestion.
    Our requirement, is we need to have a user defined field similar to how its there in "Organisation".
    For example we need to create an user defined field like "Service Holding" which holds different services say like Service 1, Service 2, Service 3 etc.
    Under each service there are multiple roles....
    Eg:
    Service 1 - Role 1, Role 2, Role 3
    Service 2 - Role 4, Role 5
    Service 3 - Role 6, Role 7, Role 8
    Is there a way to store multi-valued attribute in OIM UDF? If so, pls. guide us
    If its not possible we would need to create a Lookup field (something similar to Organization or Manager). User clicks on the button (lens button), which should invoke an API wherein he can select specific Roles and save in User. Eg. like Service 1 - Role 1#Service 2 # Role 5 and store in the backend database.
    Is this possible. Pls. guide.
    Regards,
    Karan

  • How to handle currency fields in BDC

    Hi All,
        Please tell me how to handle currency fields in BDC.... If possible give me some sample code...
    Thanks in advance,
    points will be given,
    praveena.

    Declared it at the Global definitions.
    in global data tab and currency/quant fields.
    Initialize some value there itself.
    Just before the text node create one program lines node,
    and that,In the import and export parameters of it give total_amount.
    refer to the following link:
    http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
    Currency Fields
    Reward if useful.

  • How to change the Field Symbol, so Adobe Forms takes it as a Table?

    Hi guys,
    I created an Field Symbol, in a Interface which I use for Adobe Forms. The type of the Field Symbol is STANDARD TABLE, and this field symbol I fill with data from another program.
    But the problem is that in adobe forms, this Field Symbol is taken as TEXT FIELD and not as Table... and this shows me a Dump because it can't convert Internal Table to type C (the dump is like that).
    What I need, is how to change the Field Symbol, so Adobe Forms takes it as a Table?
    I looked at Adobe Form, and found this:
    The Type Category of the Field Symbol is DICTIONARY TYPE and I think I need to change it to Internal Table as shown in the right picture.
    Does someone have any idea?

    Hello Taly,
    To what i understand your requirement, you need to pass data from Field symbol to internal table in Adobe form.
    You have done it correct partially. I have replicated your scenario and steps are below -
    1) Create a Z structure
    2) Create Z Table Type
    3) Create Adobe Interface with Table & Field Symbol. Also do coding as shown to assign the internal table populated in driver program to filed symbol.
    4) Design Form as -
    5) Code driver as -
    *& Report  ZR_AF_FS_1
    REPORT  zr_af_fs_1.
    DATA: fm_name           TYPE rs38l_fnam,
           fp_docparams      TYPE sfpdocparams,
           fp_outputparams   TYPE sfpoutputparams,
           it_kna1           TYPE ztt_fs_1.
    * Sets the output parameters and opens the spool job
    CALL FUNCTION 'FP_JOB_OPEN'                   "& Form Processing: Call Form
       CHANGING
         ie_outputparams = fp_outputparams
       EXCEPTIONS
         cancel          = 1
         usage_error     = 2
         system_error    = 3
         internal_error  = 4
         OTHERS          = 5.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    *&---- Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'           "& Form Processing Generation
       EXPORTING
         i_name     = 'ZAF_FS_1'
       IMPORTING
         e_funcname = fm_name.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *-- Fetch the Data and store it in the Internal Table
    SELECT kunnr name1 name2 adrnr FROM kna1 INTO TABLE it_kna1 UP TO 15 ROWS.
    * Language and country setting (here US as an example)
    fp_docparams-langu   = 'E'.
    fp_docparams-country = 'US'.
    *&--- Call the generated function module
    CALL FUNCTION fm_name
       EXPORTING
         /1bcdwb/docparams        = fp_docparams
          it_data                   = it_kna1
    *    IMPORTING
    *     /1BCDWB/FORMOUTPUT       =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error           = 3.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *&---- Close the spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    *    IMPORTING
    *     E_RESULT             =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error        = 3
         OTHERS               = 4.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    6) Output -
    BR.

  • How to handle Custom field added in BP : Role Bill Account

    Hi Friends,
    I am working on an interface which creates Bill Account role for a BP but the problem is there are about 15 Custom fields added to standard BP transaction in BA role.
    As I am using BAPI_BUPA_FS_CREATE_FROM_DATA2 for creating the BP and
    BAPI_BUPA_CENTRAL_CHANGE for changing the BP role Bill Account?
    Can anyone tell me how to handle those custom fields in the existing BAPIs or there is some other way of doing it?
    Thanks in advance,
    Pradeep
    Note : Helpful answers will be rewarded.

    Hi,
    I have seen these BAPIs but are they used with normal BAPIs for BP creation and change.
    For example : I create the BP using BAPI_BUPA_FS_CREATE_FROM_DATA2 and for the Custom fields I should use these BAPIs as suggested by you alongwith the create BAPI.
    And will it work for Changing the BP also.
    Kindly clarify.
    Regards,
    Pradeep

  • How to handle Mandatory field in a FORM

    Hi,
    Version - Forms Builder (9.0.4.2.0)
    I just want to know the best practice to handle mandatory field in a FORM.
    Because if we put required property to 'yes' then can we input message there without writing validation in WHEN-VALIDATE-ITEM trigger.
    In one of form I have; cursor couldn't move without entering that form. (even we set to Required property to No) How do this happen.
    rgds
    shabar

    Hello,
    If you want to replace the Forms standard message, you can write an item/block/form level When-Validate-Item, then remove the mandatory property from the item.
    If you let the property to YES, you can write a block-level ON-ERROR trigger to change the message:
    declare
         lv_errcod NUMBER := ERROR_CODE;
    Begin
         if lv_errcod = '40202' Then
              Message('You absotutly HAVE to enter this field');
         else
              Message('err:' || lv_errcod );
         end if ;
    end;Francois

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • How to make a field in non Editable mode

    Hi All:
    Now i created one form through wizard method this consists of following details
    Table name:T1
    Fields:No,Name
    here my requirement is how to make this "No" field in non editable mode after the insertion of the first record.

    You can make it a display item, you can disable the item, or you can set the update property to No. See the set_item_property in the Help documentation.

  • How to made Qty field as non editable in MIRO

    Hi SAP Gurus,
    While Post a Goods Receipt (MIRO) for Receive the Material from Job
    Worker, the Qty of Raw Material which needs to Issue or consume from
    Stock will propose as per PO BOM. The Qty field of Raw Material is in
    Editable Mode. Business wants that Qty Field to be Non-editable and not
    to allow user to Change the Proposed Qty. As per PO BOM and based on
    Material Received from Job Worker, Raw Material has to Issue or Consume
    from Stock. If any Under Consumption or Over Consumption will be
    adjusted thru MB04.
    Pls let me know is there any setting to make Raw Material Qty field as
    non editable.
    Thanks & Regards
    Sathish
    Ph:9940518715

    Hi,
    There is no field selection in MIRO.
    USE SHD0 and create a screen variant
    Thanks & regards,
    Kiran

  • How to Filter Lookup Field Values by Current User in Caml Query

    sharadpatil

    Hi,
    If you want to use JavaScript, we can use SPServices to achieve it.
    /* Get Current username */
    var userName = $().SPServices.SPGetCurrentUser({ fieldName: "Title" });
    /* Get Sites assigned to current user */
    var query = "<Query><Where><contains><FieldRef Name='UserName' /><Value Type='User'>" +
    userName + "</Value></contains></Where></Query>";
    More information is here:
    SharePoint – Filter Lookup Field Values by Current User
    http://ljayaprakash.wordpress.com/2012/06/01/filter-lookup-field-values-by-current-user/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • SPD Workflow 2010 how to update Lookup field to none

    Hi,
    I need to use SPD Workflow 2010 to update a Lookup field in different list to none. Can there be any possible approach to follow?
    Thanks,
    Kunal

    Hi Kunal,
    As I tested, you could use the action in workflow as below:
    listAtitle is a lookup column in my test, just manually input number zero in "To this value".
    Regards,
    Rebecca Tu
    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]

  • How to hide lookup field which is having 20+ items using jquery?

    Hi All,
    I am able to hide the lookup field which is having less than 20 items using jquery, but unable to do it when it goes beyond 20 items.
    My code is for <20 is: $("select[title = 'Column-lookup']").closest("tr").hide();
    Thank You.
    Ramanjjilu Naidu

    Below code is working for me in all browser even with 24 lookup item
    <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.min.js"></script><script type="text/javascript">
    $(document).ready(function(){
    $('select[title="Column-lookup"]').closest("tr").hide();
    </script>​​​​​​ ​​​​​​<br/>​<br/>
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • SharePoint 2013 July 2014 CU - People Picker fields empty in Edit forms

    After applying the July 2014 CU for SharePoint server, I discovered that Person or Group (People Picker) fields are not populated with server values in list item Edit forms.  However, the field values can be viewed in list views
    and in Display forms.  I examined the client side code and determined that field data is not being returned from the server for Edit forms. 
    In a test environment, I uninstalled SharePoint 2013, reinstalled SP 2013 with SP1 and the issue went away.  I then applied the May 2014, June 2014, and July 2014 CUs.  The issue did not exist after applying the May and June CUs.  It
    did exist after applying the July 2014 CU.

    There is a workaround for this issue.  It's a little convoluted, but hey, it's SharePoint.  First, you must have a list that has at least one entry in it.
     To begin with, you must first
    have a list with at least one item in the list.
    Next you edit the item with a role that has at least Design privilege, but don't save your changes.
    Instead you Edit the page so you can then edit that web part.  You can edit the page by clicking on the cog icon and selecting Edit Page
    Edit the web part itself
    Under “Miscellaneous” section on the just exposed web part window, select "Server Render (Server Render)" in the drop down labeled “CSR Render Mode
    Click on “Apply” button within the web part
    Save
    I was told also the Sept CU would fix the issue but it is under review and to wait until the first of October.  Incidentally we found that if you put the entire list into Quick Edit mode, the issue does
    not appear.
    I hope this helps someone.

  • How to enable a field on the person form?

    Hello,
    I am working in UK Legislation and I need to enable a greyed out field on the person screen. It's the "Disabled" field (to capture the disability of an employee).
    This might sound an easy thing to do but I couldn't find any function or profile option that controls this. I couldn't find any metalink note on this. Could any one tell me how to do this or let me know of any metalink note on this?
    Many Thanks,
    Baloo

    Both answers were helpful. Thanks a lot.
    In the interest of other users I am pasting the answer below:
    The Disability Discrimination Act 1995 (DDA) is the main piece of legislation which makes it unlawful to discriminate against a disabled person in their terms of employment, promotion opportunities, by dismissing them or by subjecting them to any other detriment. This act had been further amended, cumulating in the Disability Discrimination Act 2005 which is related to disability generally and extends outside the area of employment although some provisions will relate to employees.
    Parts of the Act came into force in December 2005, other parts relating for example to transportation are applicable from December 2006. The above provisions replaced the concept of Registered Disabled Persons and
    employment quotas which had been in existence since after the second world war.
    In releasing the enhanced Disabilities functionality, it was intended to facilitate the maintenance of disability records through the Disability form and not the Disabled field on the person form.

Maybe you are looking for

  • Trouble trying to reinstall Tiger on black Macbook

    Hi: I bought a new 13 inch white macbook - version 2,1. I also purchased a black 13 inch macbook that was used - version 1,1. The black mac didn't come with install discs. I wanted to give the used computer a clean install so I thought I would simply

  • Multple Actions on single Qualified table??

    Hi Experts, I have a QT with 1 Non qualifier and 2 qualifiers.. My requirement is Main table CC Code (Unique key) CC Contact info (LK QUAL) Qual Table Type (Non Qualifier) Telephone (Qualifier) Fax (Qualifier) Value in Type Field is General In data m

  • TS1368 Itunes can't save the phone backup to my computer does any one know why thanks

    itunes can't save the iphone backup to my computer does anyone know why thanks

  • Hands on requirement for java certification

    which java certifications do exactly have an hands on requirement? because if i look here http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=320 it says i just need to take the exam to become certified. other certifications hav

  • Anti-alias

    hi, I use Preview to check pictures of insects (focus, etc...) and it's very hard to evaluate picture sharpness as long as an anti-alias algorithm is always activated : the picture is very sharp and half a second later is all "dithered". Is there a p