How to display control values from one or more views to a single view ? - InfoPath Dev
in

InfoPath Dev

How to display control values from one or more views to a single view ?

Last post 10-02-2010 01:53 PM by maherafzal. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 09-30-2010 10:42 PM

    How to display control values from one or more views to a single view ?

    Hi All,

     I have three views in my infopath form template.

    1. View 1 (textbox, dropdownlist, repeating table)

    2. View 2 (Textbox, Dropdownlist)

    3. View 3 (Empty)

    Now I want that whenever I switch to View 3, this view shows me all cotrols with values (Or simple values of controls) which are filled in View 1, and View 2.

    Suppose (I made following selection / input at view 1 , and 2):

    View1: Textbox text is = "My Infopath 1", and in View 2 : Textbox value is = "My Infopath 2", and Dropdownllist selected values is = "Value3".

    Now I want to see all these three values at View 3

    Any Label = "My Infopath1"

    Any Label = "My Infopath 2" 

    Any Label = "Value 3"

    Looking forward for you guyz nice cooperation.

  • 10-01-2010 06:31 AM In reply to

    Re: How to display control values from one or more views to a single view ?

    You will need to add ALL controls to the third view. Then hide or show them via conditional formatting, i.e. Hide if the field is blank.

    Good luck!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 10-01-2010 09:32 AM In reply to

    Re: How to display control values from one or more views to a single view ?

    The attached form uses some XSL tricks to dynamically display the name and value of any non-blank field in the form.  Even if you add new nodes to the data source, it will take those into account.  It can't show the fields' labels, but it will show their names.  Is this sufficient for what you need?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-01-2010 10:20 AM In reply to

    Re: How to display control values from one or more views to a single view ?

     Thanks Jimmy.

    This is exactly what I wants. Its work same.

    I am new to Infopath, I seen a "Preserve Code Block" in Summary view.

    Can you please elaborate what is "Preserve Code Block", how to work with it? and how you achieve this functionality.

     

    Thanks

  • 10-02-2010 03:23 AM In reply to

    Re: How to display control values from one or more views to a single view ?

     I got it how to Preserve Code block works.

    Can you tell me how can I restrict "Attachment" control information to appear in summary.

    Or I only want to show attached file name, currently it shows contents of file.

     Thanks

  • 10-02-2010 05:13 AM In reply to

    Re: How to display control values from one or more views to a single view ?

    I can't think of an easy way to specifically restrict attachments, but if you modify the part that looks like:

    not(node()[not(self::text())]) and not(self::text() or local-name() = '') and . != '' and (count(. | ../@xml:lang) != count(../@xml:lang))

    to add

    and string-length(.) < 250 

    at the end. This should filter out practically any attachment.  Use a number bigger than 250 if you think there will be fields with more than 250 characters.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-02-2010 05:35 AM In reply to

    Re: How to display control values from one or more views to a single view ?

     <xsl:if test="not(node()[not(self::text())]) and not(self::text() or local-name() = '') and . != ''&#xA; and (count(. | ../@xml:lang) != count(../@xml:lang)) and string-length(.) < 250">

     After i add  and string-length(.) < 250, it gives error at < sign  Expecting '>'

  • 10-02-2010 06:29 AM In reply to

    Re: How to display control values from one or more views to a single view ?

     Sorry.  Use &lt; instead of <.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-02-2010 01:53 PM In reply to

    Re: How to display control values from one or more views to a single view ?

     I almost done my project, but when I try to publish it to SharePoint I got following error message " Preserve code blocks are not supported in web browser forms. To fix this problem, remove the code"  :(

    I am in trouble, any luck or alternate solution with this error message.

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