Infopath user interface development

Source: Internet
Author: User
Turn: http://www.cnblogs.com/andrewma/archive/2005/03/08/114980.html

Infopath user interfaces can be divided into three types:
1. custom menu
Select a variety of "structures" (such as repeated sections and duplicate tables), right-click, and select "Custom commands" in the Properties window ", you can select "operation", "command location", and "command name ". This operation is performed in Form definition (. xsf) File In Menu Element nesting Button Element. The name displayed in the menu is Menu Element Caption Confirm the property. For example:
<Xsf: menuarea name = "msotablemenu">
<Xsf: menu caption = "********">
<Xsf: button
Action = "*********"
Xmltoedit = "track_14"
Caption = "*****"
Showif = "always">
</Xsf: button>
...
</Xsf: menu>
</Xsf: menuarea>
Above Code Insert commands in the Table menu,
Note: :
A. Using a sub-menu in a custom menu is a function of A. xsf file, while using it in Design Mode Custom commands This function is not available.
B." Table" The menu optimizes duplicate tables and is most suitable for duplicate tables.

2. Custom toolbar

action = "*********"
xmltoedit = "cd_10"
caption = "******"
showif = "always">

...


infopath uses the button element in the toolbar element in. create an entry in the xsf file. The title of the toolbar name is The caption attribute of the SS = "bterm"> toolbar element is determined, the title of the toolbar button name is determined by the caption attribute of the button element.
note : Click Edit. after an additional toolbar is created for the xsf file, the toolbar is available in the Custom commands dialog box and can be associated with the editing operation.

3. Custom task pane
to create a custom task pane, you must first create. HTML file (displayed in the task pane ). Use the "advanced" tab in the "form options" dialog box on the "Tools" menu to associate the. html file with a form. The "advanced" Tab allows you to use "resource files" to add. html files and any other supported files, such as Cascading Style Sheets.
this operation uses the taskpane element in. create a project in xsf. The caption attribute of the taskpane element is used to store the name of the custom task pane, the href attribute is used for storage. HTML file name.


access the business logic of the form's main script file in the script code in the task pane, you can use the extension attribute of the xdocument Object
******

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.