-
Yes, you can do this. Attach the following code to the OnAfterChange event of the drop-down list:
XDocument.View.SwitchView( e.Site.text );
To generate the event function, find the node that the drop-down list is bound to in the Data Source task pane, Double-click it, choose Data Validation and Event Handlers, select OnAfterChange, and then ...
-
Hello,
... in my special case I want to switch between different views after selected these views in a drop-down list. I wonder that I have the opportunity to call a rule action type ''switch view'' if I use a command button but I don´t have the same rule action type by using a drop-down list. In my opinion this is a little bit curious... ...
-
As a follow-up for anyone browsing the archives of the forum, this thread resulted in this HowTo:http://infopathdev.com/howto/tutorials/default.aspx?i=80c11a66b08a4572bc2b17f391319a0f
---------------
Matt Faus
InfoPath Dev Texas
-
Matt,
I looked at the tutorial, and that seems to be the answer to my question. Will I have to add a number field to my webservice to generate the autonumber? Next question, to capture the row number will I use the number() function.
Thanks
Marty Mortenson
-
Check out this post for a workaround (I'm not sure if this is what you're looking for, but maybe)
quote:Well, it's not EXACTLY a ''header'', but it looks and performs almost exactly the same. If you just make the top margin of the view you're working in less than default, you can put whatever you want (dynamic/static) at the top of each page ...
-
Hi Karsten and welcome to our forum!
What is your rule attached to? If it is a button, then you can just attached the code to the button and it will be executed when the button is clicked. Otherwise, you might want to look at the OnBeforeChange() and OnAfterChange() events - maybe you can attach your code to one of these events of the control ...
-
I have tried in the past I was not able to, but someone please correct me if I am wrong because I would love to be able to do that too.
I was able to call code to do conditional formatting (search on xdExtension for more information).
-
Hi Andrei and welcome to our forum!
A similiar action is accomplished in this tutorial:http://infopathdev.com/howto/tutorials/default.aspx?i=80c11a66b08a4572bc2b17f391319a0f
(Just skip down to the code and look at the appendChild() function)
Here's an excerpt:
var oRows = ...
-
Hi,
I created a form with two views (View1 and View2).
View1 includes the several fields and repeating table. Users fill out the view1 and submit data to database with using web service.
View2 is using for reading information from database (web service) and present it for user. Plus, if I want to update information in a record that presented by ...
-
Struck by the dreaded extra comma again!!!
Thanks,
Matt