Value in repeating table

Good day, colleagues. I have InfoPath form the "Waybill car." In a separate cell indicates the initial meter reading at the time of receiving shift. In repeating table set field: Route (text), Mileage (in this field is the final meter reading at
the place of arrival, km) distance. During the shift the number of routes can be from 5 to 20. Need to adjust the form to automatically calculate the range (distance) for each route in a separate field.
Example:
Initial indications: 310 km.
Repeating Table: Route:
Object 1 Mileage: 315 Distance, km: 5.
Object2 Mileage: 323 Distance, km 8 ....
How can I insert in the "distance" from the previous field "Mileage"?

Hi  ,
According to your description, my understanding is that you want to get the field “distance” value based on the previous field "Mileage"  in the repeating table of InfoPath.
For achieving your demand, you need to create the fields “Initial indications (km)”  with Number type, “Mileage (km)” with Number type in the repeating table ,”
Distance (km)” with Number type in the repeating table.
Then you can create a rule as below on the Mileage (km) field:
Condition: Mileage (km) is not blank
Action: Set a field’s value : Distance (km) = Mileage (km) - Initial indications (km)
Thanks,
Eric
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]
Eric Tao
TechNet Community Support

Similar Messages

  • How to add a running value from external field in a repeating table of SharePoint list

    I'me creating an infopath form that will display a SharePoint list. I want to add a link control in a repeating table using the value of the first column per row but I'm getting an issue. the link control displays only the first row. thanks in advance.

    Hi,
    I found a similar thread posted by you here:
    http://social.technet.microsoft.com/Forums/en-US/e1fa36c1-cb5c-456d-ba40-2f26301913d2/how-to-loop-through-each-row-in-a-repeating-table-using-sharepoint-workflows?forum=sharepointgeneralprevious
    I suppose both the threads are reuqesting the method to get values from repeating table via workflow, so we can focus on the issue on the other case. If there is more requestment here, let me know.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How can we change value of a field in the Repeating Table using SharePoint Workflow 2013.

    Hi
    I have an InfoPath form published on a SharePoint Library. The form contains a Repeating table and after submit a workflow runs. In this workflow I want to change some values of the fields within Repeating table.
    How can I do this?
    Thanks.

    Hi,
    I found a similar thread posted by you here:
    http://social.technet.microsoft.com/Forums/en-US/e1fa36c1-cb5c-456d-ba40-2f26301913d2/how-to-loop-through-each-row-in-a-repeating-table-using-sharepoint-workflows?forum=sharepointgeneralprevious
    I suppose both the threads are reuqesting the method to get values from repeating table via workflow, so we can focus on the issue on the other case. If there is more requestment here, let me know.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Loop not working for check of duplicate values in a repeating table

    I have a form that is used for marking down problem items, describing the problems and assigning a value to the specified item. In some cases the problems belong to the same class. When they do, the value associated with the problem should only be marked once. If another problem in the same class is documented the value should not be recorded the second time. I have a variable that is called based on a switch statement in the exit event of the field that records the problem item number. The script in the variable is then supposed to check for duplicate values in the table. If no other problem item in that class is selected, then the problem value should be assigned a number. If another item from the same class has already been entered, then the problem value should just be left blank. I will paste the script for the variable below as well as the switch statement. When I used to call the variable based upon the change event for the problem item, the script work. At that time, the switch statement was related to a drop-down menu. We decided to get rid of the drop-down and just have the used type the item number. But to do so, I had to move the switch statement to the exit event for the field. when I did this, the script in the variable no longer worked properly. Here is the switch statment followed by the script in the variable:
    this.rawValue = this.rawValue.toLowerCase();
    var bEnableTextField = true;
    var i = "Inspection Criteria: ";
    var r = "Required Corrections: ";
    switch (this.rawValue)
      case "1a": // 1a- First debit option
        CorrectionsText.CorrectionLang = r+"Correction description for 1st debit";
        ViolCorrSection.ViolationsText.DebitVal = "C";
        ViolCorrSection.Reference.RefLanguage = i+"1st debit reference";
    break;
      case "1b": // 1b- Second debit option
        CorrectionsText.CorrectionLang = r+"Correction description for 2nd debit";
        ViolCorrSection.Reference.RefLanguage = i+"2nd debit reference";
        myScript.group1();
    break; //the script continues for various item numbers...
    ________________ variable script ________________________
    function group1()
    //Used in checking duplication of violations
    var oFields = xfa.resolveNodes("form1.MAINBODYSUB.ViolationsTableSubform.ViolationsTable.ViolCorrSectio n[*].ViolationsText.ItemNo"); // looks to resolve the repeating rows
    var nNodesLength = oFields.length; //assigns the number of rows to a variable
    var currentRow = xfa.resolveNode("form1.MAINBODYSUB.ViolationsTableSubform.ViolationsTable.ViolCorrSection ").index;
    var currentDebit = xfa.resolveNode("form1.MAINBODYSUB.ViolationsTableSubform.ViolationsTable.ViolCorrSection [" + currentRow + "].ViolationsText.DebitVal");
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) // this loops through Item Numbers looking for duplicate violations
    //console.println("nNodeCount: " + nNodeCount);
    var nFld = xfa.resolveNode("form1.MAINBODYSUB.ViolationsTableSubform.ViolationsTable.ViolCorrSection [" + nNodeCount + "]");
    //console.println("nFld.ViolationsText.ItemNo: " + nFld.ViolationsText.ItemNo.rawValue);
         if (nFld.ViolationsText.ItemNo.rawValue == "1a" || nFld.ViolationsText.ItemNo.rawValue == "1b" || nFld.ViolationsText.ItemNo.rawValue == "1c" || nFld.ViolationsText.ItemNo.rawValue == "1d") // looks for other 1s
              currentDebit.rawValue = "";
              nNodeCount = nNodesLength;  // stop loop
         else
            currentDebit.rawValue = "5";
    So, if you enter 1b the first time, you should get a value of 5 appearing in the debit value field. If you enter 1c next, because it belongs to the same group of class of problem items, there should be no value assigned. What happens now is that the values for 1b and 1c don't appear at all because the form thinks that the first 1b entry already existed.
    Any ideas? I have a stripped down version of the form that I can email to someone for reference if that would help. Thanks
    P.S. I am working with LiveCycle Designer ES 8.2.1....

    Hi,
    I can have a look at your form, but can you host it somewhere like Acrobat.com or google docs and add a link to it here.
    Regards
    Bruce

  • Excluding a column causes non-repeating values in 2nd table view

    I have an analysis (11.1.1.5) that has these columns: Month, Country, State, City, Sales, Country Sales, Share of Country. Country Sales is a level-based measure that returns sales at the Country level. Country, State, and City are a hierarchy as you might expect.
    When I display the initial Table view for this analysis, the Country Sales column shows a value on every row.
    When I create a 2nd Table view and exclude the City column from that view, the Country Sales column now only shows a value for the first State within each Country. In other words, each value of Country Sales is shown only once, and is NOT repeated on each subsequent row for that country.
    Any ideas if this is a bug, or if it was intentionally designed this way for some reason? Is there a way to force the values to repeat? (Green Bar / Repeat doesn't do it.)

    Thank you for the responses, guys. Still no luck.
    I moved the Country Sales column as Deepak suggested, both in the criteria and in the view. That didn't change the results. I also started fresh with a new analysis, and placed the columns in the suggested positions from the start. Still no change.
    New information: I tried excluding State and leaving City in the table view. Got the same goofy results - Country Sales did not repeat.
    More new information: I added a Brand Revenue measure to the Sample Sales subject area. Brand Revenue is defined as '1 - Revenue' at the Product Brand level. Created a similar view, and it worked fine.
    I'll investigate what the differences might be between Sample Sales and my repository. Hard to imagine what it might be. My repository is very simple and straightforward.

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Using the Current Function in a repeating table with cascading drop-downs

    I have a Repeating Table where a customer can choose the values for three cascading drop-downs. I then want the member to start a new entry with the same cascading drop-downs but with different results based on their most current input not
    based on all their input throughout the form.  I also do not want the current input to affect previous inputs replacing what was already entered.  
    Please assist.
    -Ben
     

    Hi,
    Based on your description, you don't want to meet the following issues:
    The first row returns back all the data from the list up to the value selected.
    Any new item added, replaces the value in the other items.
    Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
    http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
    Besides, here is a similar post, you can use as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Infopath submit button only works for the first row in a repeating table‏

    Hi, I have a InfoPath Email submit button issue I could not figure out. I have a master/detail repeating table in my form, and one of fields is "EmailAddress" which shows customer's email address. I created a submit button and put the "EmailAddress"
    field to "TO" object. When I tested it, the submit button only would return the first row of emailaddress from the repeating table, but not the rest of it..
    What I want is when I highlighted a customer, and click the submit button, the current customer's email address would show up in "TO" list. I did some research and saw some suggestions about using current() function. So I put current() in the front,
    like this:
    current()/dfs:dataFields/d:vw_HZLeadLists/@EmailAddress
    Still not working..Just return the first record of emailaddress from master repeating table... Does anyone know what's going on here? Thanks a lot!

    Hello,
    Use double eval to get all rows values. See my reply for more information in below thread:
    eval(eval(EmailAddress, 'concat(ToField, ";")'), "..")
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/cc22aeb7-351f-45a7-8a4c-94132c3e0db2/eval-semicolon-function-issue?forum=sharepointcustomizationprevious
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • To insert N number of values in a table for backup

    Hello experts,
    I need to insert N number of values in a table using
    SQL or PL/SQL. Please help me to do this.
    i have tried this. but not working
    CREATE PROCEDURE P1
    AS
    -- start loop & repeat N times
    INSERT INTO [T1]
        ([Value])
    VALES
        (:value)
    INSERT INTO [T2]
        ([valueID])
    VALUES
        (:IDENTITY)
    -- END LOOP
    END;

    >almost i got the answer.
    Then is it not time to close the thread as mark it Answered ?
    Or, your "almost" requires more ...!
    Regards
    Girish Sharma

  • Master/Detail? Repeating Tables - Combine data from 2 repeating tables to one cell in sharepoint

    Hi there, new to infopath.  I have 2 sections in my form which are hidden and display based on the department selected.  So Department A versus Department B, a section opens for details pertaining to that Department.  So in each
    section I have similar information requirements, similar but not exactly the same.  Now I was able to create hidden fields that will concat the values from both sections in the instances of similar data (i.e. Name, Department location, etc, so if Department
    A fills in Name on their section, then someone else submits the same form for Department B I still have one column of metadata in SP to displace the Name regardless of department or section they filled data into). However now I am stuck, I have repeating
    tables in both sections and I want to concate the entries to output to the sharepoint list for that cell.  However everything I have tried so far only concats the 1st value in the repeating table.  Is there a way to take ALL of the data from
    two repeating tables and merge them into one column/cell in sharepoint (metadata for the one form entry)???  I want to avoid having to create a excessive "views" of a list in order to accomodate the needs for BOTH departments.  I hope
    this is clear.  Thanks for your help!
    from msn forum

    Hi Meera,
        I apologise for delay. Anyways you can goto the
    following link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36f08758-0a01-0010-c291-c03004aeb1af
    for details.
    Hope this will clear you. However, you further require
    any more information then please feel free to mail.
    Note:
    ty_t_sender, cl_abap_char_utilities DEFINITION LOAD
    all these are present in alsmex function group if you
    place your function module in this function group then
    you'll be able to access these things. Further, like
    if you have security options and can't place your code
    in this function group then create your own function
    group in your own package and copy the contents from
    alsmex function group.
        Hope that answer your questions.
    Regards,
    Mirza Ifthekhar Baig.

  • How to update values in the table control at  Cat2 transaction,

    Hi,
    i am working on cat2 transaction, here
    i am using the exit_saplcats_006 and updating values at catsdb table, but i want to display this values at the table control in the cat2 transaction.
       can any one provide me solution for this same.
    Regards

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • Generate the Dynamic Repeating Table using Infopath

    Hi,
    I have created the repeating table, which is having values like below.
    Once i click on Add to basket,It should  add only current row in table format.
    Please help me possible way to achieve this. Thanks in advance.

    Hi,
    Something needs to clarify, is the "Basket" a SharePoint list or it's format table ?
    If the "Basket" is a list, then you can create custom rule to the format table like the detailed article below:
    Submitting to a SharePoint List
    How to submit data from repeatable table in infopath form to a sharepoint list?
    If the "Basket" is a format table, then please provide the format table screen shot.
    Thanks
    Best Regards
    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]

  • Repeating Table filtered by a dropdown list in Infopath 2013?

    I have 2 lists.
    The second list has a lookup column from the first list. 
    I have a dropdown list that is bound to list 1.
    I want the repeating table to be filtered by the selection of the first list. I've seen some tutorials in earlier versions that do this but I cannot see how this is done in 2013.

    Hi,
    If you would filter repeating table from another field’s value in InfoPath form, you could add the list as secondary data source to the form and filed as main data source. Then a formatting rule will help you filter the data you want to display.
    Here are the references for convenience:
    http://www.infopathdev.com/forums/t/25425.aspx
    http://www.formsonfire.com/formotus/filtering-on-a-secondary-data-source-in-infopath/
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Populate repeating table based on task list - Need the experts out there!!!!

    Ok I will try to explain this as best as I can.
    What I have:
    task list (out of the box, with 1 calculated field)
    form library (customized using infopath)
    ....and a headache ;)
    So What ive done so far is I put in a hyperlink in the infopath form to the task lists newitem form "click here for new task" . I have the title of this newitem form prepopulated based on the form library item. For example, if you open up a form
    from the form library Titled: Test Entry, and has an ID of 5. The newform title of the task list will read "Test Entry | 5 ". So its title | ID. I then have a calculated column to take the right 3 characters of the title, so it prints out the ID.
    So pretty much I have a title and ID that match the form library...
    now the hard part.
    Say I have 10 tasks in the tast list related to ID # 5 from the form library.
    Is there a way to create a repeating table or other solution to show these 10 tasks within the form library form? I was thinking a button to query for data from a secondary source (task list) filter where ID = current Item ID. then have it set a fields value???
    Anyideas???

    Hi,
    Here's an idea. When you are creating the task, populate a ReferenceID field in the task list with the item ID of the form library list. In this form, create secondary data connection to the task list and include the fields that you want to show. Drag the
    group on the form, it will create repeated section with controls. Create a formatting rule on the section, condition where ID!=ReferenceID, Hide this section.
    This will display the repeating data from the Task list where ReferenceID is = ID and hide all others.
    Another variation would be to Filter the Data Connection itself and add the condition in the filter (ID=ReferenceID). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Send email by code using button in a repeating table

    Hi
    I have got a repeating table with textboxA, 1 people group textbox and a button. What I want is, when the button is clicked, an email should go out to the person's account selected in the people/group textbox with the contents of the textboxA value.
    How do I do that in infopath, I  tried the below code just to see if the email was going out, but I was getting a permission error. 
    MailMessage MailMsg = new MailMessage();
    MailMsg.Body = "This is a test message and currently logged in user is " + System.Environment.UserName;
    MessageBox.Show("This is a test message and currently logged in user is " + System.Environment.UserName);
    //CTRL65_5_Clicked.Enabled = false;
    MailMsg.From = new MailAddress("[email protected]");
    MailMsg.To.Add("[email protected]");
    MailMsg.Subject = "InfoPath Test Message";
    SmtpClient server = new SmtpClient("test.smtp.com");
    server.Send(MailMsg);

    Hello,
    First make your form as full trust from form options and verify if you get any permission issue or not.
    Go to "File", then "Form Option", click on "Security Level" und clear the checkbox next to "Automatically determine security level" and instead select "Full Trust".
    Later you need to follow below link to send email to selected user of person picker field.
    http://blogs.msdn.com/b/infopath/archive/2006/04/05/569338.aspx?PageIndex=4
    Let us know your result
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • How to enhance open Item data source from R/3 ??

    Hello All, I am trying to enhance the business content extractor for open items in R/3 . The data source is 0FC_OP_01. i know this is coming from the table DFKKOP. I need to add sub GL ffield rom another  table from DFKKOPK . Please advise the step b

  • Fax sending error, line busy?

    Hy all! I have some problem with the fax sending from the PC. I setted up the fax recieving and it work perfectly without any problem, but when I try to send a fax to someone through the "Windows fax and scan"  it writes, the line is busy, trying aga

  • Oracle 9i install crashes due to JRE failure

    Hi there, I am trying to install Oracle 9i on a Linux system of my own brew: - Rock Linux 1.4.0 - Kernel 2.4.17 - GlibC 2.2.5 When I start the installation it barfs out with a SIGSEGV (see below). The problem is caused by the JRE that is unpacked int

  • How to get blazeds to talk to oracle help!

    I have decided to experiment with blazeds and see if I can get it working everything was going fine  i follow several tutorials and i was able to get everything running just fine on my pc. Then i decided to extract records from local oracle database

  • How to create send mutliple notifications

    Hi, I created a workflow for one of our module. My task is to create a workflow for all running projects. Each project contains different jobs and tasks. Each job owned by different Partners/Supervisors and all jobs may be executing dffferent locatio