I need to be able to put a header and footer dynamically in the form at runtime. For example: I have a button on my form, when the button is clicked it places certain text in the header and footer of the page. This has to be done programmatically. thanks in advance....
Solved! Go to Solution.
Click on Master Pages and place the TextFields at top and bottom which will act like Header and Footer respectively..
You can assign values to these controls just like any other Field in the form, by passing the access path. (See the Highlighted section below).
Page1.Subform1.TextField1.rawValue ="Header Text";
Hope this gives an idea..
Here is the corrected form..I placed two buttons when you click them they will ask you to enter Header name and Footer name..
Please verify the code behind these buttons. I am assigning the Header and Footer by
So in your actual form, you need to refer them the same way and pass the value from where you get it from in your code.
For example: Form.MasterPage.Page1.TextField1.rawValue = TextField3.rawValue;
I have a two page form, and one master page. The text is working for the first page, but the second page does not have the text at the top or bottom even though it is using the same master page. Any suggestion why the master page would not be the same for both pages?
Did you assign the Master page to the 2nd page? On the Page 2 object, click on the Pagination palette and on the Place field choose the Master Page you want in the On Page section.