InfoPath's user interface development (TaskbarToolbarTask Window)

xiaoxiao2021-03-05  26

InfoPath's user interface can be simply divided into three types:

1. Custom menu Select a variety of "structures" (such as repetition festivals, repeat tables, etc.), click Right-click, select "Custom Command" in the Properties window, you can select "Operation", "Where" and "command name". This operation passes

Form definition (.xsf) file

Menu element nested

Button elements are implemented. Menu display name

Menu elements

CAPTION attribute is determined. Such as:

Action = "*********"

XmlToEdit = "TRACK_14"

CAPTION = "*****"

Showif = "always">

. . .

The above code is inserted into the command in the Table menu.

note:

A. Using the submenu in the custom menu is a feature of the .xsf file, and use in the design mode

Custom commands are not available to this feature.

b, "

The table "menu optimizes the repeat table and is best for repetition tables.

2, custom toolbar

Action = "********"

XmlToEdit = "CD_10"

CAPTION = "*****"

Showif = "always">

...

InfoPath

Toolbar elements

Button element creates an entry in the .xsf file, the title of the toolbar name appears

Toolbar elements

Caption property is determined, the title of the toolbar button appears

Button elements

CAPTION attribute is determined.

Note: After the additional toolbar is created by editing the .xsf file, these toolbars are

The Custom Command dialog is available and the editing operation can be associated with these toolbars.

3, custom task pane

To create a custom task pane, you must first create a .html file (displayed in the task pane). Use the "Advanced" tab in the "Tools" menu to associate the .html file with a form with a form. The Advanced tab allows you to add a .html file and any other supported files, such as cascading style sheets.

This operation is used

The TaskPane element creates a project in .xsf,

Taskpane elements

The CAPTION property is used to store the name of the custom task pane, and

The HREF property is used to store the .html file name.

Access the business logic function of the main script file of the form of the form in the script code of the task pane, you can use

XDocument object

Extension property

转载请注明原文地址:https://www.9cbs.com/read-38824.html

New Post(0)