Data-Driven Actions For Network Forms
Systems and/or methods are described that enable a data-driven action associated with altering a data instance of a network form without altering and/or having access to the data instance. These systems and/or methods, in one embodiment, render a result of a data-driven action for a network form without transforming the network form's data instance. In another embodiment, the systems and/or methods map a data-driven action to a view-centric logical representation of the electronic form.
Latest Microsoft Patents:
- SEQUENCE LABELING TASK EXTRACTION FROM INKED CONTENT
- AUTO-GENERATED COLLABORATIVE COMPONENTS FOR COLLABORATION OBJECT
- RULES FOR INTRA-PICTURE PREDICTION MODES WHEN WAVEFRONT PARALLEL PROCESSING IS ENABLED
- SYSTEMS AND METHODS OF GENERATING NEW CONTENT FOR A PRESENTATION BEING PREPARED IN A PRESENTATION APPLICATION
- INFRARED-RESPONSIVE SENSOR ELEMENT
This application is a divisional of and claims priority under 35 U.S.C. §121 to U.S. patent application Ser. No. 11/095,254 filed Mar. 30, 2005, the disclosure of which is incorporated by reference herein in its entirety.
BACKGROUNDElectronic forms are commonly used to collect information. Electronic forms may be used locally or over a communication network, such as an intranet or the Internet. For electronic forms used locally, a user's computer locally accesses view information and data information about an electronic form. With this view information, the user's computer may enable the user to view and enter data into the electronic form. With this data information, the user's computer may enable data actions for the electronic form, like validating data entered into a field, adding data from multiple fields and populating the result into another field, and the like.
For electronic forms used with a network, a user's computer communicates with a network computer to enable use of the electronic form. In so doing, often the user's network browser receives view information but not data information from the network computer. This view information may be used by the user's network browser to permit the user to view and enter information into the electronic form.
To enable data actions for the electronic form, the user's network browser often needs to communicate with the network computer for each data action. A user may, for instance, enter a price for a product in one data-entry field of a network form and a quantity of these products into another data-entry field. A data action may calculate a total price by multiplying the product's price by its quantity. To present this total price in the form, often the user's network browser sends the price and the quantity to the network computer and waits for the network computer to calculate the total, create new view information for the entire form but now including this total, and send it to the network browser. The network browser may then present the total to the user based on this new view information.
Communicating with the network computer, however, may slow the user's network browser enough to negatively affect the user's editing experience. In some cases, the network computer may take an appreciable amount of time to receive the request from the browser, perform the data action, and send new view information to the browser. Also, communicating with the network computer may be slow because of the network or how the browser communicates with it (e.g., with a dial-up modem), thereby potentially affecting a user's editing experience.
In addition, having the network computer perform data actions expends some of the network computer's resources. Expending these resources may slow or inhibit the network computer's ability to service other users.
Accordingly, this invention arose out of concerns associated with performing data actions for network forms.
SUMMARYSystems and/or methods (“tools”) are described that enable a data-driven action associated with altering a data instance of a network form without altering and/or having access to the data instance.
The same numbers are used throughout the disclosure and figures to reference like components and features.
DETAILED DESCRIPTION OverviewThe following disclosure describes one or more tools enabling a data-driven action associated with altering a data instance of a network form without altering and/or having access to the data instance. In one embodiment, a tool performs a data-driven action without local access to a network form's data instance and without communicating non-locally to access the data instance, such as by a roundtrip with a network computer having the data instance.
In another embodiment, a tool renders a result of a data-driven action for a network form without transforming the network form's data instance. The tool may do so without necessitating access to and/or an alteration of the data instance. This may permit a user to edit a control in a network form and view the results of a data-driven action driven by the user's edit without requiring that the tool access or alter the network form's data instance. This may permit a user to edit the form and view the result of the action driven by that edit without waiting for a roundtrip to a network computer having the data instance. Not having to perform a roundtrip may improve a user's editing experience by making it smoother, faster, and/or more seamless. Not having to perform a roundtrip to view an action's result may also reduce the resources needed by the network computer servicing the network form.
In still another embodiment, a tool builds a relation mapping a data-driven action to an electronic form's view template. The tool may do so by transforming an action's data-centric map of an electronic form's data instance to a view-centric map of the electronic form's view template. This view-centric map may be used, for example, to enable a tool to perform the data-driven action without needing access to the network form's data instance.
Exemplary Operating EnvironmentBefore describing the tools in detail, the following discussion of an exemplary operating environment is provided to assist the reader in understanding where and how the tools may be employed. The description provided below constitutes but one example and is not intended to limit application of the tools to any one particular operating environment.
The communication network enables communication between the computer and the network computer and may comprise one or more of an intranet, like a company's internal network, the Internet, and the like.
The network computer is shown comprising computer-readable media 118. This computer-readable media comprises a network form 120 comprising a data instance 122, a schema 124 governing the network form, and data-centric data-driven actions 126. The network form's data instance is a particular data instance of the network form; thus, if the structure or data of the network form is changed (such as by a user entering information into a view of the network form), the network form's data instance is altered at some point in time to reflect the change. The data-centric data-driven actions are actions driven by data changes in the data instance and are mapped to the data instance.
The network computer's computer-readable media is also shown comprising view information 128, a view template 130, view-centric actions 132, an actor application 134, and initial data 136. The view information, view template, view-centric actions, actor application, and initial data may be combined or separate.
The view information is information sufficient for the network browser to display an editable view of the network form. This view information may also be sufficient for the network browser and/or the actor application to display an alteration to the editable view resulting from execution of an action. In one embodiment, the view information comprises HyperText Machine Language (HTML) resulting from a transformation declared in XML Stylesheet Language Transformation (XSLT) of an eXtensible Markup Language (XML) embodiment of the data instance. This HTML is usable by the network browser to display the network form. Also in this embodiment, the network form's schema comprises XML Schema (XSD). This schema may comprise data-centric actions to validate the network form.
The view template comprises a view-centric logical representation of the network form. The view template's structure is, in one embodiment, one in which view information may be mapped sufficient for the actor application and/or the browser to build a view of the network form. The view template's structure may also, in another embodiment, be one in which actions are related sufficient for the actor application to perform actions in response to a user's interaction with a portion of the view template.
The view-centric actions comprise data-driven actions, which may be identified with or mapped to a position or node in the view template.
The actor application, in conjunction with or separate from the network browser, is capable of performing data-driven actions without altering and/or accessing the network form's data instance 122.
The initial data comprises stored data, such as default data. Default data may comprise, for example, values for simple fields (like date, currency, and name fields), and a number of repetitions for lists, tables, and rows. Other stored data may comprise data previously entered into the network form, such as when a form is altered, submitted, and later re-opened for viewing or further editing.
Various embodiments of these elements, and particularly an exemplary process for creating view-centric data-driven actions, are set forth in greater detail below. After describing this process, exemplary tools enabling these and other actions are described.
Data-Driven ActionsMany data-driven actions for electronic forms are related to a form's data instance, such as by being mapped to the form's data instance. But this relation may require accessing the data instance, which may be undesirable for electronic forms accessed over a network.
An exemplary process 200 for creating a view-centric data-driven action is shown in
To illustrate the process 200 a purchase order 300 showing an example of network form 120 is set forth in
The schema governing the data instance of the network form may be represented as:
The data instance governed by this schema may be represented as:
And, the view template for this form may be represented as:
Returning to
Continuing the illustrated embodiment, assume that the data instance has two data-centric data-driven actions. These actions may be represented as:
and
The first action is structured to multiply the data in the data instance's quantity node by the data in the data instance's unit price node. The second action is structured to sum all of the data in the data instance's total nodes that are child nodes to the orders node.
The navigation paths may be extracted from these data-centric data-driven actions, which in this case are XPath expressions. The tools extract the following XPaths:
/root/orders/order/total
and
/root/total
As shown, these XPaths map to the data instance. The first maps to the two total nodes that are children to the “orders” node (rendered as the total fields 312a and 312b in
At block 204, the tool builds a view template path corresponding to the navigation path. The tool may correlate the navigation path to the view template to transform the navigation path into the view template path. The tool may also compare the portion of the data instance mapped by the navigation path to the structure of the view template. If the tool finds a node of the view template that corresponds to the mapped portion of the data instance, the tool may build a view template path mapping this node.
Continuing the illustrated embodiment, the tool determines which view template node corresponds to the data instance node mapped by the navigation path. The view template may be represented as:
The tool determines that the data instance node mapped by the navigation path of: “/root/orders/order/total”, which is:
corresponds in the view template to:
V1/R1/T4
Similarly, the tool determines that the data instance node for the second data-driven action corresponds to:
V1/T3
Alternatively, the tool transforms the navigation path by determining the node of the view template corresponding to the schema node mapped by the navigation path. In some cases the structure of the schema governing the electronic form is more easily or accurately parsed, thereby making the tool's determination easier or more accurate. As shown above, correlating the schema node of “/root/orders/order/total” may be correlated to:
to find “V1/R1/T4” of the view template.
In some cases, no view template node corresponds with the data instance node mapped by the navigation path. One such case is where a data instance node to which an action is mapped is not capable of affecting the form's view. If a node of a data instance (or schema) has a related action that alters data in a node that is not viewable, for instance, then that action may not have a corresponding node in the view template.
If the tool determines that the mapped-to portion of the data instance does not have a corresponding node in the view template, the tool does not proceed. If it determines otherwise, it proceeds to block 206. In the illustrated embodiment, both of the data-centric data-driven actions are capable of affecting the view and have a corresponding node in the view template. The tool builds view template paths to these corresponding nodes.
At block 206, the tool replaces the navigation path mapping the data-driven action to the data instance with a view template path mapping the data-driven action to the view template.
Continuing the illustrated embodiment, the navigation paths for the data-driven actions are:
/root/orders/order/total
and
/root/total
The tools replace these navigation paths with view template paths. Thus, the data-centric data-driven actions are transformed to view-centric data-driven actions, such as:
and
target=“V1/T3” expression=“sum ( . . . /R1/T4)”
At block 208, the tool may, in some embodiments, annotate the view template with the data-driven action. The view template paths indicate a node or nodes of the view template to which an action is mapped. The tool may annotate these nodes to indicate that the action may be triggered by a change to these nodes. The view template may also be annotated with the action itself, thereby combining the action and the view template.
Continuing the illustrated embodiment, the tools annotate the view template with the view-centric actions:
This annotated view template indicates that data for the node “V1/R1/T2” (shown with the quantity field 308a) and “V1/R1/T3” (shown with the quantity field 310b) may be multiplied and the result placed in the “V1/R1/T4” node (shown with the total field 312a). The view template also indicates the same for each iteration of these nodes (e.g., fields 308b, 310b, and 312b).
The view template also indicates that data for each of nodes “V1/R1/T4” (shown as total fields 312a and 312b) may be summed and the result placed in another node, that of “V1/T3” (shown with grand total field 314).
Performing a Data-Driven Action For a Network FormAs part of an exemplary process 400 shown in
At block 402, network browser 112 receives a user's choice to edit a network form. Assume, by way of example, that the user is browsing forms available over a network and selects to edit purchase order 300 of
At block 404, the network browser receives information sufficient to enable computer 102 to display and receive edits to the network form. This information may comprise computer-readable media from network computer 106 of
In one embodiment, the actor application builds an editable view of the form by mapping pieces of the view information to the view template. These pieces are viewable pieces, such as HTML, which the actor application may concatenate into an overall view of the form. These view pieces may comprise, for instance, renderable HTML for data-entry fields, buttons, and other controls.
At block 406, the computer renders the network form chosen by the user. In the illustrated embodiment, the actor application renders the purchase order of
At block 408, the network browser receives an edit to a control of the network form. The user may edit the form by entering data into a field, selecting a button, and the like.
Continuing the illustrated embodiment, the network browser receives data entered into name field 302. This data is pushed into the view, shown in
At block 410, the actor application determines if an action is associated with the edit. In one embodiment, the actor application analyzes actions to determine if any are associated with (e.g., map to) the node edited by the user. In another embodiment, the actor application navigates the view template to find actions associated with the edit (if there are any). If there are no data-driven actions associated with the edit, the actor application returns to block 408 to receive additional edits from the user. If there are data-driven actions, the actor application proceeds to block 412 (or skips to block 414).
Continuing the illustrated embodiment, the actor application navigates the view template annotated with actions (shown above) to determine if any action is associated with “V1/T1” node (the “name node”), rendered as the name field 302 in
The user next enters a quantity into the quantity field 308a, received at block 408, and shown in
Continuing the illustrated embodiment, the actor application navigates the view template to determine if an action is associated with the received edit. The annotated view template may be represented as:
The actor application navigates this view template and determines that the following data-driven action is associated with the user's edit to the quantity node:
At block 412, the actor application determines whether or not performing the associated action will affect the view. Alternatively, the actor application may skip block 412 to block 414.
The actor application may determine if the action will affect the view by navigating the view template to determine which nodes of the view template may be changed by performing the action.
In the ongoing embodiment, the actor application determines that the data-driven action associated with the quantity node multiplies data in the “V1/R1/T2” node by the data in the “V1/R1/T3” node, and places this result in the target node “V1/R1/T4”. Thus, the data “17” in quantity field 308a is multiplied by no data (zero) in the unit price field 310a, the result of which (“0”) is to be placed in the total field 312a. In this case, the result of performing the action does not change the view. The total field 312a already has a zero. In this case the actor application may forgo performing the action associated with this quantity node and/or other actions, such as updating data for the form (i.e., do not perform block 416) and rendering the results of performing this action (i.e., do not perform block 418). If the actor application forgoes performing the action and/or these other actions, it returns to block 408.
Returning to block 408, the network browser receives another edit, this time entry of a unit price to the unit price field 310a. The price is shown in
The actor application then determines at block 410 that the action is associated with the edit. Continuing the illustrated embodiment, the actor application navigates the view template annotated with actions (shown above) and determines that an action is associated with “V1/R1/T3” node (the “price” node).
Navigating the view template given above, the actor application determines that the following data-driven action is associated with the user's edit to the price node:
The actor application then determines that the action will affect the view. It does so by navigating the view template to determine which nodes of the view template may be changed by performing the action.
In the ongoing embodiment, the actor application determines that the data-driven action associated with the quantity node multiplies data in the “V1/R1/T2” node by the data in the “V1/R1/T3” node, and places this result in the target node “V1/R1/T4”. Thus, the data “17” shown in quantity field 308a is multiplied by “299.99” shown in unit price field 310a, the result of which may be different that the zero currently rendered in the total field 312a.
At block 414 the actor application performs the action without accessing and/or altering the form's data instance. In this exemplary process, the actor application uses the view template rather than a data instance, thereby freeing the actor application from having to access or alter the form's data instance. The actor application may perform the data-driven action, in some cases, without any non-local communication, thereby potentially improving the user's editing experience. In one embodiment, the actor application performs the action by executing an expression and locating a node of the view template into which the result may be rendered.
In the ongoing embodiment, the actor application multiplies the data entered into the quantity field, “17”, by the data entered into the unit price field “299.99”, for a result of “5099.83”.
At block 416, the actor application updates the data for the form. This data for the form may be locally stored, which may permit fewer roundtrips to the network computer. In the ongoing embodiment, the actor application updates the zero for the first total node (rendered as the total field 312a) with the result “5099.83”. The actor application may proceed directly to block 418 to render this result in the view, but may also first determine if this data change triggers any other actions. If so, the actor application may perform all of the triggered actions (some actions may trigger another action, which triggers another action, and so forth) before rendering the different actions' results.
Similarly to block 408, 410, 412, and 414, the actor application may proceed to receive data (e.g., a result from a performed action), determine in the node into which the data is received is associated with an action, determine if that action may affect the view, and perform the action. Thus, the actor application in the ongoing embodiment receives the result of the action performed above to the total node. The actor application may then determine whether or not the node to which this “edit” is made (e.g., a result automatically received from performance of the action) has another action associated with it. If so, it may then determine whether or not performing that other action will affect the view, and if so, may then perform the other action.
In the ongoing embodiment, the actor application determines that the result for the total node has another associated action. This action may be represented as:
Thus, the total node (“V1/R1/T4”) has an associated data-driven action. This action sums the data of the total node and all other total nodes. The result of this summation is then targeted for the “V1/T3” total node (rendered as the grand total field 314).
The actor application next determines that performing this summation action may affect the view. The actor application performs this action, summing the data of the first and second total nodes, which are “5099.83” and “0”, for a result of “5099.83”.
The actor application may record this data entered into and resulting from actions, such as in a locally stored hierarchically structured data tree or event log 114. The data tree, with the data and results of the ongoing embodiment, may be represented as:
At block 418 the actor application and/or network browser renders the result of the data-driven action(s) performed without transforming the form's data instance. The actor application may also, in another embodiment, render changes to the view without accessing or altering the data instance.
The actor application may keep track of which controls in the view need to be updated by marking nodes associated with these controls, and then rendering each of these nodes for new data once all of the actions have been performed (but with results being rendered).
Alternatively, the actor application may re-render all of the form, though this may take additional time or resources compared with selective re-rendering.
To selectively re-render parts of the view, the actor application may determine which of the pieces of information from view information 128 of
As shown in
In some cases, however, a data-driven action may require communication across a network, such as to access a data instance for the form or a database having data needed to perform an action (e.g., validation of entered data against data in a database). In these cases, the actor application may access the network, thereby forgoing many of the blocks of process 400.
The actor application and/or network browser may record the user's edits and/or the results of performing various actions. This record of edits and/or results may be sent to network computer 106, such as when sending it will not appreciably hinder a user's editing experience, or on submittal by the user.
The network computer, responsive to receiving this event log, alters the data instance of the network form. It may do so infrequently, thereby potentially reducing the resources needed to service the network form.
For the ongoing illustration, the actor application records the user's edits to the view into event log 114 and communicates this event log to the network computer. The network computer updates data instance 122 with information from the event log. The data instance represented above at the beginning of the description relating to
Systems and/or methods are described that enable a data-driven action associated with altering a data instance of a network form without altering and/or having access to the data instance. Although the invention has been described in language specific to structural features and/or methodological steps, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or steps described. Rather, the specific features and steps are disclosed as preferred forms of implementing the claimed invention.
Claims
1. One or more computer-readable media having computer-readable instructions therein that, when executed by a network computing device, cause the network computing device to perform acts comprising:
- obtaining a first relation for a data-driven action that maps the data-driven action to a data instance of a network form maintained by the network computing device;
- acquiring a second relation to map the data-driven action to a view-centric logical representation of the electronic form;
- sending the view-centric logical representation of the network form to a client device to enable the client device to render a result of the data-driven action
2. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by the network computing device, cause the network computing device to perform acts comprising generating the view-centric logical representation based on the first relation and the second relation.
3. One or more computer-readable media as recited in claim 2, wherein the view-centric logical representation is configured to enable the client device to render a result of the data-driven action without accessing or altering the network form's data instance that is maintained by the network computing device.
4. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by the network computing device, cause the network computing device to perform acts comprising:
- receiving an event log that records the result of the data-driven action, the event log received by the network computing device from the client device subsequent to rendering of the result of the data-driven action by the client device; and
- updating the network form's data instance to reflect changes based on the result of data-driven action recorded in the event log.
5. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by a network computing device, cause the network computing device to perform acts comprising:
- receiving the result of a data-driven action that is rendered at the client device using the view-centric logical representation of the network form; and
- modifying the network form's data instance to reflect the result of the data-driven action that is rendered at the client device using the view-centric logical representation.
6. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by the network computing device, cause the network computing device to perform acts comprising causing replacement of the first relation with the second relation to generate the view centric logical representation of the network form.
7. One or more computer-readable media as recited in claim 1, wherein the first relation comprises an eXtensible Markup Language (XML) path language (XPath) navigation path mapping the data-driven action to a node of the network form's data instance.
8. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by the network computing device, cause the network computing device to perform acts comprising annotating the view-centric logical representation of the network form with the data-driven action based on the second relation.
9. One or more computer-readable media as recited in claim 1, further having computer-readable instructions therein that, when executed by the network computing device, cause the network computing device to perform acts comprising extracting the first relation from the data-driven action.
10. A method comprising using a network computing device configured to serve electronic forms to a client device to perform acts including:
- obtaining a first relation for a data-driven action that maps the data-driven action to an electronic form's data instance;
- identifying a second relation to replace the first relation in a view-centric logical representation of the electronic form thereby mapping the data-driven action to the view-centric logical representation;
- causing communication of the view-centric logical representation of the electronic form to a client device, the client device configured to enable the data-driven action locally using the view centric logical representation in lieu of accessing the data instance over a network.
11. A method as recited in claim 10, wherein access to the electronic form's data instance is controlled by the network computing device.
12. A method as recited in claim 10, wherein the network computing device is configured to replace the first relation with the second relation to generate the view-centric logical representation.
13. A method as recited in claim 10, wherein the network computing device is configured to cause communication of data describing the second relation to the client device in conjunction with the view-centric logical representation to enable mapping of the data driven action to the view-centric logical representation by the client device.
14. A method as recited in claim 10, further comprising:
- receiving an event log that records a result of the data-driven action, the event log received by the network computing device from the client device subsequent to rendering of the result of the data-driven action by the client device; and
- updating the electronic form's data instance to reflect changes based on the result of data-driven action recorded in the event log.
15. A method as recited in claim 10, further comprising:
- receiving a result of a data-driven action that is rendered at the client device using the view-centric logical representation of the electronic form; and
- modifying the electronic form's data instance to reflect the result of the data-driven action that is rendered a the client device using the view-centric logical representation.
16. A network computing device comprising:
- one or more processors; and
- memory storing instructions that, when executed by the one or more processors, cause the network computing device to perform acts including: obtaining a view-centric logical representation of an electronic form having a data instance that is controlled under the influence of the network computing; ascertaining a navigation path expression for a data-driven action that maps the data-driven action to the data instance of the electronic form; causing replacement of the navigation path expression in the view-centric logical representation of the electronic form with a transformed path configured to map the data-driven action to the view-centric logical representation; sending the view-centric logical representation of the electronic form having the transformed path to a client device, the client device configured to perform the data-driven action using the view-centric logical representation in lieu of accessing the data instance over a network.
17. A network computing device as recited in claim 16, further comprising instructions stored in the memory that, when executed by the one or more processors, cause the network computing device to perform acts including:
- updating the data instance to reflect a result of the data-driven action responsive to a communication of the result from the client device at a time subsequent to rendering of the result of the data driven action at the client device.
18. A network computing device as recited in claim 16, further comprising instructions stored in the memory that, when executed by the one or more processors, cause the network computing device to perform acts including:
- receiving a data log from the client device that describes multiple data-driven actions performed at the client device using the view-centric logical representation in lieu of accessing the data instance over a network; and
- updating the data instance based on the received data log to reflect results of the multiple data-driven actions.
19. A network computing device as recited in claim 16, wherein the transformed path maps the data-driven action to a node of the view-centric logical representation into which the result of the data-driven action is rendered.
20. A network computing device as recited in claim 16, further comprising instructions stored in the memory that, when executed by the one or more processors, cause the network computing device to perform acts including:
- annotating a node of the view-centric logical representation of the electronic form to indicate that a change to the node triggers the data-driven action.
Type: Application
Filed: Jan 27, 2010
Publication Date: May 20, 2010
Applicant: Microsoft Corporation (Redmond, WA)
Inventors: Amol S. Kelkar (Redmond, WA), Danny van Velzen (Redmond, WA), David Airapetyan (Kirkland, WA), Jonathan E. Rivers-Moore (Bellevue, WA), Ranjan Aggarwal (Redmond, WA)
Application Number: 12/694,836
International Classification: G06F 17/21 (20060101);