How to link two lists and do calculations using infopath 2010

Hi Everyone. I am stuck in a bad situation and need your help to solve this problem i am facing.
I have two lists named Master and Slave.here i am maintaining the costs for each new project which i will be handling.in the master list i will only enter the project name and the total budget allowed for that perticular project.  in my slave list
i am having quite a few entries like project name, amount required, balance and approval status.
Now, for each project i will be entering multiple line items in my slave list as per cost of each line item. based on the amount required field of my slave list the calculation has to be done like
[BALANCE]  =  [Master List BUDGET value adjuscent to the relevant PROJECT NAME]-[slace list AMOUNT REQUIRED] .once the approval has been done the [BUDGET] value of the Master Page Should automatically get reduced based on the
[AMOUNT REQUIRED] value of the slave list.
i tried to google this out but i couldn't find any useful link. i want to achieve this only by using the INFOPATH 2010.

It is not possible to achieve this through only InfoPath. The reason is because the form in which you submit the slave list will not change the master list.
If you can be sure that once you approve items here that it won't be removed, then you could do a workflow after approval that takes your current budget number and then reduces it by the approved amount. If it does change, you could always do adjustment
items in the slave list for negative amounts.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Similar Messages

  • How to join two lists and display the results in datasheet view.?

    hello,
    i have two lists that i would like to join, i know a method that has been described  in the link below
    http://www.codeproject.com/Articles/194252/How-to-Link-Two-Lists-and-Create-a-Combined-Ciew-i
    however, here the data view is only limited to 30 rows and my resultant list is huge. I would like to know if there is a possibility to view the resultant list in a data sheet view ?

    I don't believe you can use the OOTB Datasheet view when joining lists. However, you should be able to increase your limit from 30 items to as many as you need (that doesn't trip the threshold set in Central Admin).
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to add two list in one frame using REUSE_ALV_LIST_DISPLAY

    Hi,
    I want to display two list in single output by calling FM 'REUSE_ALV_LIST_DISPLAY' twice.
    I saw one topic posted by Arunava Das as 'ALV Problem' but didn't get the steps to do that.
    Here is his way of doing that "What I have done is gone for the append ALV approach wher I have added the END_OF_LIST Event for the Fisrt reprt and in the Corresponding FORM Routine I have added another made another cALL to the REUSE_ALV_LIST DISPLAY FM with the other table."
    I would be grateful if someone can help me out.

    Hi Ashish,
    The way you have tried i.e. calling the second list in the END_OF_LIST event of first list and like wise that is the correct way of doing it.
    Using this way you can display multiple lists. In the event END_OF_LIST by using a global variable G_COUNTER. the value of which you increment for each list and based on that counter you call different lists in the END_OF_LIST event.
    case G_COUNTER.
      when 1. perform call_first_list.
      when 2. perform call_second_list.
      when 3. perform call_third_list.
    endcase.
    Hope this answers your query
    regards,
    Satyadev Dutta

  • How to execute SQL Query in Code behind Using infopath 2010?

    Hi,
    I've repeatable on infopath form, and want bind it throuth code behind from SQL table. My question is that how to execute SQL Query in code behind from infopath as well as how would get Query result to bind repeatable control?
    Thanks In Advance
    Shoeb Ahmad

    Hello,
    You first need to add new SQL DB connection then you need execute connection from code behind.
    See below link to create new connection
    http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx:
    http://www.bizsupportonline.net/infopath2010/connect-infopath-2010-sql-server-2008-table.htm
    Then use below code to execute this connection:
    AdoQueryConnection conn = (AdoQueryConnection)(this.DataConnections["Data connection name"]);
    string origCommand = Select * from tablename;
    conn.Command = origCommand;
    conn.Execute();
    Finally bind your table:
    http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
    http://stevemannspath.blogspot.in/2010/09/infopath-20072010-populate-repeating.html
    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

  • I have a infopath form and i want to publish this form using powershell script(No central admin usage) and i am using Infopath 2010.

    How to publish infopath form using powershell script in infopath 2010?
    Is any approach for such solution.

    Hi,
    Try below command:
    Uninstall the existing solution (based on the from file name):
    Uninstall-SPInfoPathFormTemplate -Identity Exampleform.xsn
    Install the new solution (based on the from file name):
    Install-SPInfoPathFormTemplate -Path C:\Form.xsn
    Disable feature on site collection level
    Disable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site http://SPSite
    Enable feature on site collection level
    Enable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site "http://SPSite"
    See this blogs for your ref:
    http://rgielen.blogspot.in/2010/11/deploy-infopath-2010-forms-with.html
    http://mysharepointwork.blogspot.in/2010/09/deploy-infopath-forms-with-powershell.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to link two combo boxes? (urgent)

    Hello,
    I am wondering how to link two combo boxes in Acrobat Pro 9. Basically, I need to link a building with a list of rooms. There are 3 building choices in my first combo box. For the sake of example, Building A, Building B and Building C. When one of the buildings is selected, I want a 2nd combo box to display the rooms that are located in that building. So by selecting building A, you would then be able to choose a room from the list of available rooms in the second drop box. The buildings cannot share a list of rooms because they have the same room numbers. Is anyone able to help?
    - Travis

    You can also use ajax. When the first combo box element is selected, it will call the ajax function and that ajax function will bring the data from the database and place it in second combo box.

  • Linking two lists to create a Data Source but cannot add web part to page in SharePoint designer

    All;
    I created a new data source by linking two lists which created a linked Data Source. I now want to access that linked data source via insertion of a Data Source control on a web part page.
    What I find is, both DATA SOURCE and DATA VIEW are inactive and unselectable.
    Is there any way to get this functionality going?
    Thx
    Larry Pexter

    Hi Larry,
    Since it is a coding UI, we need to put cursor into appropriate place so we can insert data view web part, i.e. the coding which represents the web part in to the whole coding part.
    As I tested in my envrionment, if you put cursor between <ZoneTemplate> and </ZoneTemplate>, I cannot get the DATA view, even before </ZoneTemplate>. Please put it exactly before <ZoneTemplate>.
    If you have modify the coding, please click save and test the issue again.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    You likely have iCloud turned on in at least Safari. If you don't want Safari to sync between these devices turn one of them off. System Preferences - iCloud - Safari (uncheck the box)

  • HT5622 How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    Create a new Apple ID for the second phone. If you are setting the phones up as new phone enter the ID you want to use on each phone.
    If both phones are already signed in to one Apple ID then use the settings app to change Apple IDs on one phone.
    Settings > iTunes and App Store > tap on the Apple ID > sign out > sign in with alternate Apple ID.
    Note that if you have downloaded apps with the original Apple ID on the phone with the new Apple ID, those apps will still be associated with the old Apple ID and will require the old ID and password in order to update them.

  • How to link Icloud calendar and contacts with windows 8

    How to link Icloud Calendar and contacts with windows8

    Hi ATarakdjian,
    If you are having issues configuring iCloud Calendar on your Windows 8 machine, you may find the following article helpful:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Cheers,
    - Brenden

  • How to link two rows together? Weights should be tied to returns!!

    Hello CB experts! I have a question. It may be simple or it may not; not sure. So, I’m looking for some guidance here. I have historical return on my sheet named ‘Symbols’. In my ‘Returns’ sheet, I have Shares, Return, Volatility, and Weights, along with a Covariance Matrix and a Correlation Matrix on the sheet. I put an Efficient Frontier curve in there and the top performing components of the Dow. I also, have a sheet named ‘Returns-CB’; this is where my CB analysis is. So, from E6:AH6 and E8:AH8, I have defined CB assumptions (they are pretty much all the same). Anyway, my question is this: how do I link the items in row 6 to the items in row 8? If I have 12% return and 30% return for stock AA and stock BA, I should NOT have 0% weight; I want to invest in these stocks. Similarly, if I have a weight of 15% for stock CAT, I should NOT have 0% return. This doesn’t make any sense. Can someone please tell me how to link the returns and weights. It works perfectly fine in the ‘Returns’ sheet; I used MS Solver to get this working. I was trying to do something similar in the ‘Returns-CB’ sheet.
    You can download the file from here:
    http://www.mediafire.com/view/?5lk0gtcd261cy3c
    Thanks everyone!!

    I know this has something to do with constraints. For instance, Cell C8 must = 100%. Cells E8:AH8 will change, depending on the weights of the stocks (this is contingent on risk; defined assumptions and parameters of the distribution curves). Likewise, Cells E6:AH6 must change, depending on the potential future returns of the stocks (this is also contingent on the risk). It seems like, if I define an assumption, it wipes out any formula that I have in the cell. So, I'm not sure how to 'link' the E6:AH6 range and the E8:AH8 range. Does anyone here have any ideas on this?

  • How to link another forms and reports in one main forms?

    hai all,
    how to link another forms and reports in one main forms?
    i am creating Custom forms Main_menu
    in that i am puting on button and
    pl/sql code for when-button-pressed
    BEGIN
    Open_form('GROUP_MSTR_ENTRY');
    END;
    i am getting:
    ERROR:frm-40010: cannot read form GROUP_MSTR_ENTRY
    also i am un able change the text colour in form.
    how to link reports in forms?
    any help?
    before open i have to link all form i need?
    thanks in advance
    rcs
    ------

    even after changing to The forms_path variable and
    put the executable(GROUP_MSTR_ENTRY.fmx
    F:\oracle\ora90\FORMS60\server\FACCT\MAIN_MENU\GROUP_MSTR_ENTRY.FMX
    not working
    also i am un able change the text colour in form. how?
    how i can find?
    $ORACLE_HOME/forms/server/default.env
    my files are
    9i oracle database
    SQL*Plus: Release 9.0.1.0.1 - Production on Fri Dec 19 11:37:07 2008
    E:\oracle\ora90\bin\oemapp.batt
    forms6i
    F:\oracle\ora901\bin\
    since 9i is later than forms 6i i am unable to put in the same directory
    ------------

  • My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    You'll get better performance if you use a Firewire hard drive (especially if you buy a 7200 RPM drive). Firewire's IO speed is significantly faster than USB 2.  USB 2 has a theoretical max speed of 480 Mbps except that it has extremely high over-head.   The fastest speeds you can typically get are about 300 Mbps.   Firewire, on the other hand, has very little overhead.  The fastest speeds you can get are very nearly 800 Mbps.  You will typically be constrained by the maximum read/write speed of the drive, not the speed of the I/O on the Firewire bus.  Now if you had one of those nice shiny new Macs with the Thunderbolt I/O and a Thunderbolt drive (Light Peak) ... I think they alter space and time so that your data arrives before you know you want it. 
    Also... unless you want to buy a solid state drive (very expensive), try to keep your hard drives from becoming much more than about 60% full if you want great performance.  A nearly "full" hard drive is, on average, only about half as fast as the same hard drive when nearly empty.
    USB 2 will work perfectly fine... just not as fast.
    Also... it's much safer to move the entire Aperture library than to "relocate masters".  Your images must be managed.  You can Aperture manage them, or you can manage them.  But someone has to manage them.  If you "relocate" them so that they are no longer stored inside the Aperture library then you'll need to work out a system of how you decide to organize things and it's critically important that you don't start moving files around or deleting things without Aperture's knowledge.  If you do, you'll break the links to your masters and start having problems with missing masters.  If you have Aperture manage the library then you don't need to worry about any of that stuff.... it's safer.
    Do make backups (use the Aperture Vault or use some other backup program, but make sure you back up your work if you care about it.)  There are only two kinds of hard drives in the world:  (1) those that have failed and (2) those that are going to fail.  There are no exceptions to this rule.  Hard drives are cheap.  Backup software is built into Aperture and into your Mac.

  • How to Append two  word documents into single  using   java

    How to Append two word documents into single using java
    we tried this but it's not append the one word document to other
    source code:public class AppendTwoWordFiles {
         public static void main(String []arg)throws IOException
              FileInputStream fi=null;
              FileOutputStream fo=null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                   File f1=new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2=new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2,true);
                   byte b[]=new byte[2];
                   while((fi.read(b))!=-1);
              fo.write(b);
    System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally{
              fi.close();
              fo.close();
    plz reply me quickly ,,,what can i follow

    Use this code ..
    and give the path of the both file like this.....
    source file ---- C:/workspace/Practice/src/com/moksha/ws/test/practice.text
    destination file ---- C:/workspace/City/src/com/moksha/ws/test/practice1.text
    import java.io.*;
    public class AppendTwoWordFiles {
         public static void main(String[] arg) throws IOException {
              FileInputStream fi = null;
              FileOutputStream fo = null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br = new BufferedReader(new InputStreamReader(
                             System.in));
                   File f1 = new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2 = new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2, true);
                   byte b[] = new byte[2];
                   int len = 0;
                   while ((len = fi.read(b)) > 0) {
                        fo.write(b, 0, len);
                   System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   fi.close();
                   fo.close();
    }

  • How to create a partner and header record using CRM_ORDER_MAINTAIN?

    Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
    I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
    Thanks..
    Jen

    Hi Jen!
    I use this FM and it works perfectly.
    Use this to create a partner:
      gs_partner-ref_handle    = '0000000001'.
      gs_partner-ref_kind      = 'A'.
      gs_partner-ref_partner_handle = '0001'.
      gs_partner-partner_fct   = '00000001'.
      gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
      gs_partner-display_type  = 'BP'.
      gs_partner-no_type       = 'BP'.
      gs_partner-kind_of_entry = 'C'.
    *  ls_partner_l-ref_handle    = '1'.
      gs_partner-ref_guid      = '00000000000000000000000000000000'.
      APPEND gs_partner  TO gT_partner .
      ls_input_field-ref_kind  = 'A'.
      ls_input_field-logical_key   = '0001'.
      ls_input_field-objectname  = 'PARTNER'.
      ls_input_field-ref_handle  = '0000000001'.
      ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'NO_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_FCT'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_NO'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field  INTO TABLE  gt_input_fields.
      clear ls_input_field-field_names[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
    *    it_schedlin_i   = gt_schedlin_i_com
        it_partner      = gt_partner
    *    it_sales        = gt_sales
    *      it_orgman       = gt_orgman
    *      it_appointment  = gt_appointment
    *      it_ordprp_i     = gt_ordprp_i
    *   it_product_i    = gt_product_i
    *      it_activity_i   = gt_activity_i
    *      it_pridoc       = gt_pridoc_com
      CHANGING
        ct_orderadm_h   = gt_orderadm_h
    *   ct_orderadm_i   = gt_orderadm_i
        ct_input_fields = gt_input_fields.
    *      ct_doc_flow     = gt_doc_flow
    *      cv_log_handle   = gv_log_handle.
    Hope it helps u,
    Regards,
    Mon.

Maybe you are looking for

  • Creative Zen Vision M 60GB no longer recognised on Vi

    Im running vista home premium and have had no problems with Zen Vision M 60gb until now. When connected to my PC, the player lights up but does not begin charging as normal. In addition, my PC will not recognise the player, only saying I can 'safely

  • When is Muse going to make it possible to create responsive websites?

    Im just really curious if the Muse team are considering to make it possible to create responsible websites in a near future? There is a high demand for it. And its becoming an industry standard these days.

  • SD Field

    Hi All, in SD reporting we got one issue, which is below mentaioned objects 0NOQUOT_REJ-Number of rejected quotation items 0NETVALQUOT-Order value from quotation we need what is the R/3 fields names and tables for above objects Regards, Malli

  • Replicated Partition - Dynamic Calc member

    I am trying to do a replicated partition where the source has 5 dimensions (Time, Account, Country, Product and Scenario) and the target has 4 dimensions (Time, Account, Country and Scenario). I am trying to map "Product" to "void" because it's not n

  • PSE 12 renames my imported photo folders?

    Hi, I'm new to Photoshop and elements.  I downloaded a trial version of PSE 12 to my mac, and imported my photo folders.  It looks like PSE has renemed all my folder with strings of letters and characters.  How can I retrieve my original folder names