How to compare and copy the fields from repeating subform to another subform, same structure.

Dear All,
I am using LiveCycle Designer 8.2.
I have the following requirement, and did not figure out the best way to implement it using JavaScript.
The Form has, say, Subform A with Repeating Inner Subform, say it has the Education History of the Staff.
I want to put another Subform B, with similar structure to From A, and create a button/function to copy the field data values from A to B.
Subform A will show the user the fields of education with Read-Only Mode.
Subform B will show the user the same data values with write-enable mode. This subform will allow the user update his Education Records.
The fields are:
0. Staff ID: Text (Key 1) (always read-only and hidden, becuase it is on the main form),
1. Degree: Text,
2. Specialization: Text,
3. Institution: Text,
4. Start Date: Date (Key 2),
5. End Date: Date.
Another function is needed is to compare the same records between form A and Form B.
(Note: The Education record of a Staff has primary key of Staff ID and Start Date. Meaning, the Staff cannot have tow different degrees in starting on the same date.)
The user may change the Institution in form B or change the Degree. I need to highlight, on Subform B, the row which was changed or added by the user. This means I need to do lookup against Subform B using the Key Values from Subform A.
I have already developed the Form, and I have about 5 Subforms to allow updated by Staff: Education, Experience Inside the company, Experience Outside the company, Job Skills, Membership Record, ..etc. One thing I did is that the Field Names I used in Subform A are not the same of the fieldname in Subform B, but the have same suffix, and different prefix. For example, for the Education:
Subform A - Original Values:
1. Degree: OrgDegreet,
2. Specialization: OrgSpecialization,
3. Institution: OrgInistitution,
4. Start Date: OrgDateStart (Key),
5. End Date: OrgDateEnd.
Subform B - Updated Values:
1. Degree: UpdDegreet,
2. Specialization: UpdSpecialization,
3. Institution: UpdInistitution,
4. Start Date: UpdDateStart (Key),
5. End Date: UpdDateEnd.
I understand if the Key field is updated, then it is like it was deleted, and added a new one.
I know how to do that in ASP.NET, but need help in Adobe LiveCycle using JavaScript.
Please help me to write these two functions, as they are very urgent requirement.
Tarek.

In the event Exit of the 1st subforum.invoice you will find the code to assign the value to it's "brother" on page4.
Also, on the add button i added the code to add a record to the page4 subforum.
To make this work you will have to copy/past the code of the exit event to all fields you want to copy and in the xfa.resolvenode("XXXXXXX[].fieldName") command replace fieldname with the actual name of the field you're at.
I didnt't do anything to te remove line button because i don't know how you want it to work, but, if you want to control the p4 subform with the p1 subform, you shouldn't allow for lines to be removed directly in the p4 subform.
Hope this helps.

Similar Messages

  • How to Move or Copy the Tables from One Database to Another Database ?

    HI,
          Can any one help me on this, How i can move or copy the tables from one database to another database in SQL server 2005 by using SQL query. Hope can anyone provide me the useful and valuable response.
    Thanks
    Gopi

    Hello,
    Maybe these links help you out
    http://www.microsoft.com/downloads/en/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
    http://www.suite101.com/content/how-to-copy-a-sql-database-a193532
    Also, you can just detach the database make a copy and move it to the new server.

  • I had a system crash(with Vista).I cannot start up windows on that drive.I have Win 7 on a new drive.I can access the files on the old drive to copy them.I would like to know how to find and copy the bookmarks from Firefox on the old drive and copy to the

    Hi:
    I had a system crash and I cannot start windows (Vista)on it.I have a new drive running Win 7.How do I copy the files from the old drive's files to the new?The Bookmark files that is.
    Thanks.Any help is appreciated.
    Shaun

    This could help.
    http://support.mozilla.com/en-US/kb/Backing+up+your+information
    Basically, you have to copy your profile from the old hdd to the new one.

  • How to include X-IDSSessi​onID in every header and copy the AuthToken from the previous response

    Hello,
    The business process is to login  and logout using Web HTTP/HTML protocol in LR 11.52; while I am trying to login to the website and after several attempts keep getting  error-500. One of the suggestion was to  copy the X_IDXSessionID to each request.  Also applied correlation but keep getting the authentication error in the session.
    My concern:How to include X-IDSSessionID in every header and copy the AuthToken from the previous response into the current request header? 
    I got the X-IDXSessionID and X-Allscripts-AuthToken from the snapshot response and request tab. Thanks.

    are you looping of this input with a for each?
    /yourdata/details[1] should return always the first detail element.
    or before the for each do an assing of this first detail element to "generic_details_var"
    and use this var in every looping iteration (in an assign or as input for xquery)

  • How do I copy the style from one control to another?

    I need to programmatically copy the style from one graph to another. I'm currently using the importstyle and export style functions but I'd like to avoid that since: 1) I'm creating >100 of the same graphs in a scrolling window and execution time is a concern, and 2) it makes it harder to redistribute the application, and 3) you shouldn't have to import/export from disk just to copy a graph style.
    I noticed the copy constructor was disabled so you can't just create a new one from the original. I suppose I could iterate through all the styles and transfer them from the master graph to all the copies but is there an easier way to do that? If not, is there some sample code for that?
    I'm using MStudio 7.0 for C
    ++.
    Thanks,
    -Bob

    One way that you could do this would be to create a helper method that configures your graph rather than configuring it at design-time, then use that helper method to apply the settings to the new graphs that you create. However, this would only work if you wanted all graphs to be configured exactly the same way - this would not work if the settings of your master graph are changing at run-time and you want the new graphs to be configured with the current settings of the master graph.
    Another approach is to query each control for IPersistPropertyBag, create an IPropertyBag, pass the IPropertyBag to the master graph's IPersistPropertyBag:ave, then pass the IPropertyBag to the new graph's IPersistPropertyBag::Load implementation. I'm not aware of any implementations of IPropertyBag that are readily available for use in applications, so the tricky part is creating the IPropertyBag. Below is a very simple implementation of IPropertyBag that should be enough to get the job done for this example. First, add this to your stdafx.h:
    #include <atlbase.h>
    CComModule _Module;
    #include <atlcom.h>
    #include <atlcoll.h>
    Here's the simple IPropertyBag implementation:
    class ATL_NO_VTABLE CSimplePropertyBag :
    public CComObjectRootEx<CComSingleThreadModel>,
    public IPropertyBag
    private:
    CAtlMap<CComBSTR, CComVariant> m_propertyMap;
    public:
    BEGIN_COM_MAP(CSimplePropertyBag)
    COM_INTERFACE_ENTRY(IPropertyBag)
    END_COM_MAP()
    STDMETHODIMP Read(LPCOLESTR pszPropName, VARIANT* pVar, IErrorLog* pErrorLog)
    HRESULT hr = E_FAIL;
    if ((pszPropName == NULL) || (pVar == NULL))
    hr = E_POINTER;
    else
    if (SUCCEEDED(::VariantClear(pVar)))
    CComBSTR key = pszPropName;
    CComVariant value;
    if (!m_propertyMap.Lookup(key, value))
    hr = E_INVALIDARG;
    else
    if (SUCCEEDED(::VariantCopy(pVar, &value)))
    hr = S_OK;
    return hr;
    STDMETHODIMP Write(LPCOLESTR pszPropName, VARIANT* pVar)
    HRESULT hr = E_FAIL;
    if ((pszPropName == NULL) || (pVar == NULL))
    hr = E_POINTER;
    else
    m_propertyMap.SetAt(pszPropName, *pVar);
    hr = S_OK;
    return hr;
    Once you have a way to create an implementation of IPropertyBag, you can use IPropertyBag and IPersistPropertyBag to copy the settings from one control to another like this:
    void CopyGraphStyle(CNiGraph& source, CNiGraph& target)
    LPUNKNOWN pSourceUnknown = source.GetControlUnknown();
    LPUNKNOWN pTargetUnknown = target.GetControlUnknown();
    if ((pSourceUnknown != NULL) && (pTargetUnknown != NULL))
    CComQIPtr<IPersistPropertyBag> pSourcePersist(pSourceUnknown);
    CComQIPtr<IPersistPropertyBag> pTargetPersist(pTargetUnknown);
    if ((pSourcePersist != NULL) && (pTargetPersist != NULL))
    CComObject<CSimplePropertyBag>* pPropertyBag = 0;
    CComObject<CSimplePropertyBag>::CreateInstance(&pPropertyBag);
    if (pPropertyBag != NULL)
    CComQIPtr<IPropertyBag> spPropertyBag(pPropertyBag);
    if (spPropertyBag != NULL)
    if (SUCCEEDED(pSourcePersist->Save(spPropertyBag, FALSE, TRUE)))
    pTargetPersist->Load(spPropertyBag, NULL);
    (Note that "CreateInstan ce" above should be CreateInstance - a space gets added for some unknown reason after I click Submit.)
    Then you can use this CopyGraphStyle method to copy the settings of the master graph to the new graph. Hope this helps.
    - Elton

  • How to Copy the PLD from one database to another

    Dear Members,
       i have designed the  PLD for Purchase Order, i want to copy the particular PLD into another Database.
    i tried to copy the PLD from one database to another through copy express.. i copied the PLD sucessfully. But the problem is,it copies all PLD's from one database to another. i want only the Purchaseorder PLD has to be copied in to another database.any body can help me in this regard.
    With Regards,
    G.shankar Ganesh

    Hi,
    select * into A1 from RDOC where Author !='System'
    select *  into A2  from  RITM   where Doccode  in (select Doccode from A1 )
    select * from A1
    select * from A2
    sp_generate_inserts 'A1'
    sp_generate_inserts 'A2'
    you will get Insert scripts of A1 and A2 tables .After that You 'll  Replace A1 to RDOC and A2 to RITM.
    So that you can RUN this SQL srcipts any where (In any Database)
    but First u have to run sp_generate_inserts  Storeprocedure(from websites) .
    drop table A1,A2

  • How to copy the data from one database to another database without DB link

    Good Day,
    I want to copy the data from one database to another database with out DB link but the structure is same in both.
    Thanks
    Nihar

    You could use SQL*Plus' COPY command
    http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
    Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM

  • Export and Import a page from one application to another within same WKSPCE

    Hello,
    Can anyone help me out in moving a page from one application to another within the space workspace. I tried to export it and then import the page, but I am not able to do that. I think the problem is with the application IDs.
    Plz help me out with this issue.
    Thanks,
    Orton

    Hi Orton,
    moving a page from one application to another within the space workspace
    This U can get it, through copying the page from one application to another application within the same workspace
    In the top of the page, you have "copy" option.
    regards,
    Kavitha

  • HOW to copy Form field from one RTF to another RTF

    Hi Expert
    I have developed 20 reports in BI Publisher which is using xml as data source. So to access the data i have done the xml coding for each form field.
    Now i want to copy the form field from one rtf to another, while doing the copy paste of the form field from one rtf to another it is not copying the xml coding. It is appearing in the new rtf as below
    <?ref:xdo0391?>
    Can you guys suggest me how to achieve the same. Is there any setting need to be changed so that while do the copy paste the form field it will copy the backend code also.
    Thanks in advance.
    Thanks
    Srikant

    make your template set as backward compatabile before you do anything on template. load the xml and then copy the form field. it should work. dont try to open the field without loading xml.

  • Add Row in table and copy the properties from previous row

    Hello,
    i have a table with just one row (and 7 columns). The cells (columns) are
    all of different types, f.e. ring, numeric, string.....On runtime the user
    can add more rows to the table. I'm looking for a function to copy a row
    with all the cell propertis (cell type, format, text style....) and insert
    as a new row. Is there an easy way to do this?
    Thanks
    Norbert

    Thank you Luis,
    thats exactly how i thought it shoul work. I created a table with 7 columns
    and 1 Row and in the UI Editor i configured each column. The first column is
    set to ring, second colum is a set to numeric (default val 0.0000), double,
    with the precision 4 and the text justification set to CENTER CENTER. On
    runtime the user pushes a button that calls the function
    InsertTableRows(panel, PRUEFKREIS_TABLE, -1, 1, VAL_USE_MASTER_CELL_TYPE);
    That there are no default values in the new line is ok following your
    explanation, but when i enter a value in the second column of the new row i
    expect to get it formated with precision 4 and jaustification CENTER CENTER,
    but that doesnt work. If i enter a 2 i expect to get 2.0000 in the center of
    the cell, but i just get 2 in the upper left corner.
    i'm using LabWindows/CVI 2009 Version 9.1.0 (427).
    Any idea what i'm doin wrong ? The table mode is set to column. I also
    removed the ring columns to test if they cause the probplem, but still got
    the same error.
    Norbert
    "LuisG" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    > Norbert, Roberto's method allows you to create your new cells with the
    > cell attributes that you have defined for each column. Once you define
    > these attributes by configuring each column in the UI Editor (Edit
    > Table&gt;&gt;Edit Column&gt;&gt;Edit Default Cell Values), you can ensure
    > that each new cell created under that column inherits those attributes. By
    > attributes, I'm referring to items such as the cell type, or the text
    > style. Sadly, however, you can't inherit the cell values themselves. One
    > thing you could do is to go ahead and create the new cells and then use
    > the functions ClipboardGetTableVals and ClipboardPutTableVals to copy the
    > values from the first row to the new row. However, you will still have a
    > problem with your ring cells, since the entire list of items that each
    > ring cell holds is not considered an attribute (therefore, you can't
    > define it ahead of time in the column) but it also is not copied to the
    > clipboard. Only the current value is copied, I believe. So you'll have to
    > recreate this list for new ring cells each time. I'm sorry that this isn't
    > as easy as it should be... Luis

  • Copying the fields of one bean to another

    Hi,
    I have two different bean classes, but the fields inside them are having the same names. I am using java persistence, each of the beans have there own tables, Because the field names are same, is there any way, i can pass the data from one object to another easily, without going to each field and setting them.
    take this example:
    order {
    fields are
    name;
    no;
    address;
    orderTmp{
    fields are
    name;
    no;
    address;
    Here i want to pass the data in Order object to OrderTmp object easily. I have getters and setters for thoso fields.
    regards,
    krishna

    u can use import org.apache.commons.beanutils.BeanUtils for that..its readily available in common-beanutil.jar of jakarta..
    Shanu M
    ns: mullapudi, is that malayalam?
    Edited by: mshanu on Jan 26, 2008 2:12 AM

  • How to pull and display the document from an external storage medium?

    HI,
    We are having one external storage medium for SAP documents. In our case it is filenet server.
    My concern is .
    How can we pull the doc from the filenet server (external storage medium)?. I am in need, how and what an abap development team needs to be done?.
    Can anyone help in this regard ....to get the best logic and best technique ....!!!
    Note:
    I need to post this in ordinary abap not in webdynpro abap. I will do that. If any one get a chance to look into this and if you know .....please let me know the way.
    Thanks in advance
    Pons.
    Edited by: Ponnuchamy on May 31, 2009 1:30 AM

    in first page for user input :
    <form action="second.jsp" method="post">
    Are you happy?
    <br><input type="radio" name="radio1" value="yes" CHECKED>YES
    <br>
    <input type="radio" name="radio1" value="no">NO
    <input type="submit">
    in second.jsp output :
    Your answer is:
    <%= request.getParameter('radio1') %>
    Is it what you want to display?
    Hope that helps.

  • How come when i copy a color from one page to another, the color looks faded?

    I'm using the same color in a multi-page layout. When i copy a color box from one page to another, the color looks faded on some pages. WHY?! Thanks!

    So i checked the blend spaces - both are CMYK (as this doc will be offset printed). Something really strange is happening! See attach below: the 2 blues (same setup/blend space, color breakdown, etc...) look different! And my client is PICKY! ugh. HELP! Thanks again!

  • How can I copy the SMS from my Nokia 6303 to a Sam...

    Hello everybody!
    I just bought a Samsung Galaxy S4 mini...and I find such a pity to lose all the SMS that I had in my Nokia 6303. The new phone is sim-locked so unfortunately I cannot copy the SMS that way.
    Does anyone know if there is a possibility to move the SMS from one phone to the other?
    Many thanks in advance!
    Cheerio

    Hi, olgadapolga. For the SMS that you do not want to lose, you can create a backup on your PC using this link: http://www.microsoft.com/en-ph/mobile/support/nokia-suite-compatibility/. Note that this link will work regardless of your location. About transferring SMS to another phone, see if there's an option on your Nokia 6303 to create a backup on an SD card. If so, you can proceed with backing up your SMS. Try inserting the SD card in your other phone and check for restoring option. However, if restore is not available there is a possibility that the other phone doesn't support the backed up messages file format. For added assistance, feel free to post it here.

  • How to read and store the documents from other system to own system.

    Hi Experts,
    i need to read the document from other system (Say from other connected R/3 system) and then i need to save it in my system.
                     Please suggest how would i proceed?
    Any helpful suggestion will be rewarded with points.
    thanks
    Snehasish

    Hi Abaper
    I think I havent explained my problem well. Here I am explaining it again..
    I want to pull an  *.excel/ *.csv file through ABAP code.The target file that I want to access in my ABAP code is stored into another PC in the same Local area network under some directory say 'c:\temp\credit.csv'.
    I have the logon information of the target file's  PC.
    Please help me with code if anyone of you having.
    Thanks in advance.
    Rgds,
    Snehasish
    Edited by: Snehasish Das on Apr 29, 2008 2:18 PM
    Edited by: Snehasish Das on Apr 29, 2008 2:33 PM

Maybe you are looking for