How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

Last post 09-17-2012 04:42 AM by Chakradhar. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 09-13-2012 04:36 AM

    How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

    Requirement :

     There are two buttons in a form "Basic Data" and "Classification"

    1. If I click "Basic Data", below page will appear and I will select the needed information by selecting the Description(binocular) button and once selected, it will populate the Description and Basic Data Text fields as below from the SQL Server.

    Image1 

    1. Now, when I click on "Classification" page, below page will appear and we will enter the values manually for the characteristics(Type and Conductor as General and ABCDE or anything)

    Image 2

    Note: Value "Textboxes" shown in above screen are generated dynamically by clicking "Insert Item" link.

    1. Once the values are entered, then if you go to basic data page, it should appear with updated information like below  (Type : General and Conductor : ABCDE in the basic data textbox of basic data page).

    Image 3

     

     

     Please let me know, how can we achieve the same.

     

    Thanks in advance

    Chakradhar.

  • 09-13-2012 11:00 PM In reply to

    Re: How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

    Hi,

     Any update on this, i am really got stuck with this one.

    Thanks,

    Chakradhar

  • 09-13-2012 11:19 PM In reply to

    Re: How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

     

    Chakradhar:

    Requirement :

     There are two buttons in a form "Basic Data" and "Classification"

    1. If I click "Basic Data", below page will appear and I will select the needed information by selecting the Description(binocular) button and once selected, it will populate the Description and Basic Data Text fields as below from the SQL Server.

    Image1 

    1. Now, when I click on "Classification" page, below page will appear and we will enter the values manually for the characteristics(Type and Conductor as General and ABCDE or anything)

    Image 2

    Note: Value "Textboxes" shown in above screen are generated dynamically by clicking "Insert Item" link.

    1. Once the values are entered, then if you go to basic data page, it should appear with updated information like below  (Type : General and Conductor : ABCDE in the basic data textbox of basic data page).

    Image 3

     

     

     Please let me know, how can we achieve the same.

     

    Thanks in advance

    Chakradhar.

     

    First, your imges are not seen by others. Probably you copy&pasted them into post and see them in web page linked to file paths on your own machine (accessible only to you locally). You should have inserted images as publicly accessible URLs

    Also, I would advise you to ask one question per post and the question (telling that you tried that and this and...) but not job or project assignment having searched for previous discussions of the problem

    Also, if you have not done  (succeeded with) this before, you probably would better ask WHAT to do instead of HOW

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 09-14-2012 03:14 AM In reply to

    Re: How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

     

    Hi Vanin,

     

    I have uploaded the images to the site, but still the images are not displaying .

     

    Well, Coming to the problem : I have 2 views (A and B) in InfoPath 2010 form

    In View A : I have a textbox

    In View B : I have a repeating table with one - drop down and one - text box

     

    Now, whenever the user enter the information in the repeating table(dropdown and textbox), I need those Information/data to be added to the textbox(line by line), which is present in the view A.

     

    Thanks,

    Chakradhar.

  • 09-14-2012 05:27 AM In reply to

    Re: How to Copy the data from textboxes(dynamically) and merge the copied data to the another textbox

     

    Hi ,

     

    I have attached the sample1.xsn file for better understanding of my requirement.

     

    In the Form, if user enters the values in the repeating table (Product field is Dropdown and Cost in $  field is Textbox ) shown like below

     

    Product

    Cost in $

    Product1

    50

    Product2

    75

    Product3

    80

     

    then the above information should appear in the full detail textbox like shown below

     

    Product : Cost in $

    Product1 : 50

    Product2 : 75

    Product3 : 80

     

    Please let me know, how we can achieve the same..

     

    Thanks in advance,

    Chakradhar.

  • 09-14-2012 12:40 PM In reply to

    How to Copy the values of repeatable table into a text box codeless

    Enclosed please find a sample template demonstrating how to copy a repeating table values merged into a multi-line textbox with a rule

    Having filled your Basic view as shown below

     Basic Form by Геннадий Ванин (Gennady Vanin)

    upon pressing Advanced button, the Advanced view (filled with a rule) shows:

    Advanced View by Геннадий Ванин (Gennady Vanin) 

     

    The rule "Copy repeatable table values to textbox" was added to Advanced button click even handler

    Copy repeatable table values to textbox Rule by by Геннадий Ванин (Gennady Vanin)

     

    Note that XPath of rule was created by simply clicking on Infopath GUI, codelessly:

    •  eval(eval(group2; 'concat(my:Products, ";", my:field2, @crlf)'); "..")
      which later appears as
      eval(eval(group2; 'concat(my:Products, ";", my:field2, xdXDocument:GetDOM("characters")/characters/@crlf)'); "..")

    You could edit it in order to merge values in different format

    I used "double eval" explained in

    Inserting line break @crlf into a text box is explained in:

    •  Inserting line breaks into text using Rules
      i.e. using secondary/receive data connection/source to characters.xml file
      <?xml version="1.0" encoding="UTF-8"?>
      <characters
          cr="&#xD;"
          lf="&#xA;"
          crlf="&#xD;&#xA;"
      />

     Also, I enabled multi-line in text-box properties

    Text Box properties - Display tab - check Multi-line by Gennady Vanin (Геннадий Ванин .jpg 

     

     

     

     

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 09-16-2012 07:02 AM In reply to

    Re: How to Copy the values of repeatable table into a text box codeless

    Gennady Vanin (Геннадий Ванин, Новосибирск):
        crlf="&#xD;&#xA;"
     

    Since there were posts with doubts whether this new line insertion into textbox method works in browser, I checked that it works


    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 09-17-2012 04:42 AM In reply to

    Re: How to Copy the values of repeatable table into a text box codeless

    HI Vanin,

    This is exactly what i was looking after, Thanks very much for the same.

    Chakradhar.

Page 1 of 1 (8 items)
Copyright © 2003-2012 Qdabra Software. All rights reserved.
View our Terms of Use.