How to Prevent duplicates on Combination of Lookup columns in sharepoint 2010 using infopath 2010 form.

Hi All,
I have list with some Lookup columns like  City, Pin, and Text Column Name. All these are required columns.
Now I want to prevent duplicates while submitting InfoPath form if a Combination of  City,Pin & Name. (like a Composite primary in Database is used.)
Can some one help me on how to achieve this using InfoPath  2010 Rules, writing  rule in Xpath.
Thanks in Advance.

1. Add a secondary data connection to the list where the form will be submitted.
2. Prior to submit via rules, set the query fields in the above connection: City, Pin & Name with values entered in the form. Query the data source and check if the result has values.
3. Show error messages accordingly if exists else continue with Submit.
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

Similar Messages

  • How to prevent duplicate web pages from loading

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/930219]]</blockquote>
    how to prevent duplicate web pages from loading

    <s>Hi berternie, can you describe this in more detail?
    Are you saying the identical page loads in two different tabs? When does that happen -- when you click a link? or when you use a bookmark?
    Or do you have multiple tabs open every time you see your home page (i.e., when you start up, open a new window, or click the home icon)?</s>
    I see, you have more info in this thread: https://support.mozilla.org/en-US/questions/930219

  • How can i turn off all the mails that i recive when use any program form my iPad?

    How can i turn off all the mails that i recive when use any program form my iPad?

    Everytime i use the my ID recive an e Mail to inform me.

  • How to prevent duplicate records

    Hello all,
    This is just a general query. How do we prevent duplicate records at data target level(ODS/InfoCube).
    Thanks
    S N

    Hi,
    for ODS you can either specify in settings option "unique records" (only first combination of keys is saved, second one throws error message) or you can define "overwrite" for update rules to ODS (last occurrence of record is saved).
    For InfoCubes I think there isn't such setting and there is no possibility of overwriting existing records. So you have to load first to an ODS object to ensure unique records and update from ODS to InfoCube.
    Best regards,
    Björn

  • How to prevent duplicates in your contacts

    When syncing two iphones via icloud with your computer how do I prevent duplicate contacts between both phones, icloud and yahoo?

    I have 11 people designated under faces.
    Do you see the 11 People when using the "Faces" view from the source list in the Library Inspector or from the "Faces" button in the toolbar?
    If you are using the Faces button from the toolbar, you may have been excluding faces stacks you already created. Then, when you enter search strings, Aperture will suggest names from your contacts and you may create the same stack again.
    Also, if the search field is not empty, you may already have more "Faces" stacks than you are actually seeing.
    As you certainly know, you can always unite "Faces" stacks by dragging a stack onto the other to merge them. The merged stack will use the name of the stack you dragged to.
    Regards
    Léonie

  • How to prevent duplicate web pages loading

    when clicking on a link, two duplicate web pages load, how to prevent this

    This started when you installed Firefox 13? Which version did you have before -- Firefox 12 or Firefox 3.6?
    Does this occur on all sites or only on particular sites?
    Do you have a very sensitive mouse or touchpad that might be double-clicking the link?

  • How to prevent duplicate submission?

    Hello!
    I have a page for gathering some data:
    private function saveHander():void {
        // Gathering data into database.
    <mx:TextInput id="name" />
    <mx:TextInput id="age" />
    <s:Button id="Submit" label="Submit" click="saveHandler();" />
    When focus on submit button,I click at the button and press the space bar at the same time,saveHander function execute two times.
    How can I prevent duplicate submission? thanks!

    Assuming this is a form you are attempting to save, good UX practice is to disable the form once you begin local form validation (submit button clicked) prior to forming your data packet for save.
    Doing so will prevent the anomaly you are experiencing.
    In other cases where the above practice is not practical, you can setFocus to another component (off the submit button) because as long as the focus remains on the button, depressing the space bar will trigger the mouse event for the button. Research ADA compliance if you want more details.
    HTH. 

  • How to prevent duplicate entry in Details block

    Dear All
    I am using Forms 10g.
    I have a detail block.
    There is a column called Ip_Address.
    There i want to prevent duplicate entry .
    How can i do this ?

    hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
    EMP(DETAIL)
    the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
    I have done' Kevin D Clarke’s calculated item ' both in master and detail block
    its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
    can anyone guide me why its not working

  • How to prevent duplicate vendor reference no on SAP B1 v8.8?

    Helo experts,
    I have SAP B1 v.8.8 and they system is allowing me to enter the same Vendor Reference for different POs but same BP.
    Is there a way to prevent duplicaton?
    I read in other post that there was an option in Admin'-System Initialisation-Document settings......to block duplication, but that does not show on my screen.
    Do you have any ideas or suggestions?
    Thank you

    Hello Gordon,
    Thanks for the link but I had already read those posts.
    I understand there is a way to prevent duplicate to enter vendor reference numbers.
    However, my question would be if the version that I am using would have the option to block release when When duplicated Vendor Reference No occurs as I cannot find it.
    Please advise,
    Thanks

  • How to prevent duplicate submit

    I am looking for a solution to prevent duplicate submit on the click of submit button or browser refresh. In Struts its quite easy to implement using toekn feature.
    Is there some feature in JSF which I can use to prevent duplicate submit?
    Please share your thought.

    Redirect after POST.

  • How to prevent Duplicate AP Invoices ??

    hi Experts
    End user Raised Po for 1000 quantities but good receipt Po comes one time 100,2nd time 200 ,3time 300 and so on...in between invoice raised for 100 ,2time 200 ... against GRPO..in between End user miss understand or communication some Duplicate bills are raised...
    how i restrict duplicate postings??
    note:(im using sap b1 2007 pl 17)
      Thanks & Regards
         AKR

    Hi
    Try this Stored Procedure in Test Environment.
    if (@object_type = '20' or @object_type = '18')
         and (@transaction_type= 'A' or @transaction_type= 'U')
    begin
         declare @venno as varchar(100)   
         if @object_type = '20'
         begin
              select @venno = NumAtCard
              from opdn
              where docentry =@list_of_cols_val_tab_del
              if 1 != (select count(docentry) from opdn with(nolock) where NumAtCard = @venno)
              begin
                   select @error = 1
                   select @error_message = 'Duplicate vendor ref no in PO Receipts. ! '
              end
         end
         else
         if @object_type = '18'
         begin
              select @venno = NumAtCard
              from opch
              where docentry =@list_of_cols_val_tab_del
              if 1 != (select count(docentry) from opch with(nolock) where NumAtCard = @venno)
              begin
                   select @error = 2
                   select @error_message = 'Duplicate vendor ref no in AP Invoices. ! '
              end
         end
    end
    With Regards
    Balaji Sampath

  • How to create a view based on Lookup Column?

    Hi All,
    I am working as a SharePoint developer 2013.
    When i tried to create a view based on look up column it is not showing lookup column.
    How to fix this problem?
    Please help me out here.
    Thanks & Regards,
    Santhoshi

    can you elaborate the issue? Do you mean you cannot view the column name in the filter section when creating a new view for the list or the column is not getting displayed in the view created?
    --Cheers

  • How to change the background color for lookup column options in sharepoint 2007

    Hi,
    I have a custom List with 10 fields,and in the edit form we want to display only 6 fields,
    So I have customized it with sharepoint designer 2007 ,designed a new custom edit form(Insert->ShaerPoint Controls->Custom List Form)
    We are using IE8 Browser,and the site has JQuery 1.8 loaded .
    The lookup columns is getting rendered as textbox and dropdown arrow image,instead of select html element.
    When we click on arrow image,its displaying the values magically,So I am unable to highlight the options with text "ABC" in yellow background color
    basically in the input textbox its storing all the lookup values as "ID|value "in choices attribute (I saw this in browser dev tools)
    I tried to set the textbox color everytime it loses focus using blur,however its always returning the previous value instead of current selected value.
    Is there any way we can achieve this,Any solutions/thoughts
    Thanks everyone..

    hi i bet you need to amend your jquery script to get onclick values and put it with like append HTML if you want to use Jquery.
    Also did you know you could use javascript in calculated column with type number?
    Check:
    http://sharepointwijzer.nl/sharepoint-blog/tech/icc-html-calculated-column-sharepoint-view
    Imposible is nothing

  • Setting default value for lookup column in Sharepoint 2013 via powershell

    Hi,
    when I try to use the 2010 version of setting a default value to a lookup column ( colum.defaultvalue="1;#Open"), this is not longer supported in SharePoint 2013. The defaultvalue is always the alphabetically sorted first entry in the source
    list.
    How can I change this?
    Thanks for any help.
     Lutz

    Hi Lutz,
    You can set the default value of a look-up column. The code is very simple, just need to take care of the code below.
    $w = Get-SPWeb http://web
    $l = $w.Lists["MyDocumentLibrary"]
    $lf = $l.Fields["lookupColumn"]
    $i = $l.Items[0] #List item to update
    $lf.ParseAndSetValue($i,"1;#lookupvalue") #1;#lookupvalue refers to the ID of the lookup item and the value of the lookup item.
    $i.Update()
    As another example, if I wanted to update all the items in my document library that had the lookup value
    Pending, with the lookup value Complete;
    $w = Get-SPWeb http://myweb
    $l = $w.Lists["MyDocumentLibrary"]
    $lf = $l.Fields["lookupColumn"]
    foreach($i in $l.Items)
    if($i["lookupColumn"] -eq "1;#Pending")
    $lf.ParseAndSetValue($i,"2;#Complete")
    $i.Update()
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Lookup column in sharepoint list column in visual studio

    Hi i have a list with two columns as student id and student name. in second list am
    taking one column as lookup and am giving reference to student name. but while inserting record in second list when am selecting student name and clicked save ,in second list i have to save student id not student name. (just like dropdown in asp.net data text
    field and data value field.) how can i achive this in sharepoint using lookup column and am creating the second list in visual studio.

    you need to create a  look up column on Name field in second list and a second look up column on the same field.
    then hide and show your fields in edit and display form based on your requirements .
    <Field
    ID="{886AF390-F68A-4B8A-9EC4-12108A11CC99}"
    Name="StudentName"
    DisplayName="StudentName"
    Type="Lookup"
    List="Lists/Students"
    ShowField="StudentName"
    PrependId="TRUE"
    Group="test">
    </Field>
    <Field
    ID="{599F97C5-564C-4DE5-BE4D-3A49DDC87FB5}"
    FieldRef="{886AF390-F68A-4B8A-9EC4-12108A11CC99}"
    Name="StudentId"
    DisplayName="StudentName:Trainer StudentId"
    Type="Lookup"
    Required="FALSE"
    ShowField="StudentId"
    List="Lists/Students"
    Group="test">
    </Field>

Maybe you are looking for