????? ??????? ?????? ??? ?? ??? ???? ?????? ????? ?????? ??? ??????? ?????? ?? InfoPath

?????? ????????? ?????? ?????????
???? ???????: 827008 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ??????? ?????? ??? ?? ??? ????? ????? ???? ?????? ??????? ??? ?? ???? ?????? ????? ????? ????? ????. ????? ??????? ???????? ????? ?? ????? ?? ???? ???????? ??????? ?? ????? Microsoft Office InfoPath 2007 ?? ?? ????? Microsoft Office InfoPath 2003.

???????? ???? ?? ???????? ??? ?? ??????? ?????? ?? ??? ???? ?????? ????? ?? ??????? ?????? ??? ??????? ????? ??? ?????.

????? ????? ???? ???? ??? ?? ???? ?????? ????? ???? ???? ????? ??? ???:

xdXDocument:GetDOM('DataSourceName') / docRoot / Node1 / Node2 = my:myField1

??????? ??????? ?? ???? ?????? ???:
  • DataSourceName???? ??? ??? ???? ??? ???? ???????? ???????.
  • docRoot?? ??? ??????? XML.
  • Node1????? Node2 ????? ???????? ?? XML. Node2 ????? Node1.
  • my:myField1???? ??? ??? ?? ???? ???????? ??????? ??????? ????? ??.
?? ??? ?????? ?????, ????? ????? ??????? ?????? ?????? ?????? Node2 ?? ???? ???????? ??????? ????? my:myField1 ?? ???? ???????? ???????? ?? ????? ????? ???? ????? ??? ????? ????????.

????? ?????? ??????? ???? ???????? ??? ?? ????? ??????? ??????, ????? ??????? ????? xdExtension ??????? ??? ????? ????? http://schemas.microsoft.com/office/infopath/2003/xslt/extension.

????? ????? ????

??? ??? ?????? ????? ????? ????? ???? ???? ?????? ?? ?? ???? ???????.

?????? ??? InfoPath 2003

  1. ??? ????? InfoPath 2003. ????? ????? ???? ?????.
  2. ??? ??? ?????? "???? ????????". ?????? ???? ??? ??????? ???? ??????? ???????:
    1. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myFields ??? ?? ???? ??? ?????.
    2. ?? ???? ?????? ????? ??? ?? ?????? ???? myExpenses. ?? ??????? ???????? "???" ? ??? ??????. ??? ?????? ??????? ?? ???? ??? ?????.
    3. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myExpenses ??? ?? ???? ??? ?????.
    4. ?? ???? ?????? ????? ??? ?? ?????? ???? ExpenseName ??? ?? ???? ??? ?????.
    5. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myExpenses ??? ?? ???? ??? ?????.
    6. ?? ???? ?????? ????? ??? ?? ?????? ???? ExpenseValue. ?? ????? ????? ???????? ??? ???? (double) ?? ???? ??? ?????.
  3. ??? ???????? myExpenses ?? ??? ?????? "???? ????????" ??? ??????? ?? ???? ??? ???? ????.

?????? ??? InfoPath 2007

  1. ??? ????? InfoPath 2007.
  2. ?? ????? ?????? ?? ???? ?????? ?????? ???? ??? ????? "???? ?????".
  3. ?? ????? "???? ?????" ???? ???? ??? ???? ?? ???? ??? ?????.
  4. ?? ??? ?????? "???? ???????" ???? ??? ???? ???????? ?? ?? ?????? ?????? ??? ???????. ?????? ???? ??? ??????? ???? ??????? ???????:
    1. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myFields ??? ?? ???? ??? ?????.
    2. ?? ???? ?????? ????? ??? ?? ?????? ???? myExpenses.
    3. ?? ??? ? ???? ??? ?????.
    4. ???? ??? ????? ?? ???? ??? ?????.
    5. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myExpenses ??? ?? ???? ??? ?????.
    6. ?? ???? ?????? ????? ??? ?? ?????? ???? ExpenseName ??? ?? ???? ??? ?????.
    7. ?? ??? ?????? "???? ?????????" ???? ??? ?????? ?????? ??? myExpenses ??? ?? ???? ??? ?????.
    8. ?? ???? ?????? ????? ??? ?? ?????? ???? ExpenseValue.
    9. ?? ????? ????? ???????? "? ???? ??? ???? (double) ?? ???? ??? ?????.

??????? ?????? ??? ?????? ??? ????? ????

?????? ??? InfoPath 2003

  1. ?? ??????? ?????? ??? ??? ???????? ????? ??? ?? ???? ??? Microsoft Script Editor.
  2. ????? ???? ??????? ??? ???? ????????? ????????:
    function CheckItem()
    {
        return "Airfare";
    }
  3. ??? ???????? ????? ?? ?? ?????? Script Editor.
  4. ??? ??????? ????? ?? ???? ??? ?????? ?????? ??? ???? ???? ????? ExpenseName ??? ?? ???? ??? ????? ???? ????.
  5. ?? ???? ?????? ????? ???? ????, ???? ??? ????? ??????? ??? ?? ???? ??? ????? ????.

    ???? ???? ?????? ????? ????.
  6. ???? ??? ?????.

    ???? ???? ?????? ????? ????.
  7. ?? ???? ?????? ????? ????? ??? ??????? ?? ??????? ???????? ?? ?? ???? ??? ??????? ?? ???? ????:

    ?????? ??: ExpenseName = xdExtension:CheckItem()

    ???? ??? ???? ?? ???? ??? ?????.
  8. ???? ??? ????? ?????? ???? ?????? ????? ????.
  9. ???? ??? ????? ?????? ???? ?????? ????? ???? ????.
  10. ???? ??? ????? ??????. ??????? ??????? ???? ??????? ???????:
    1. ???? ??? ???????? Lodging. ???? ????? 250.
    2. ???? CTRL + ENTER ?????? ?? ????.
    3. ???? ??? ???????? Airfare. ???? ????? 700.

      ?????? ??? ???????? ??? ?? ???? ?????? ?????? ??? ??? ???????? ????? AirfareAirfare ?? ???? ???? ???? ?? ??????? ?? ???? CheckItem.

?????? ??? InfoPath 2007

  1. ?? ??????? ?????? ??? ??? ??????? ? ?? ???? ??? Microsoft Script Editor.
  2. ????? ???? ??????? ??? ??????. ????????? ????????
    function CheckItem()
    {
        return "Airfare";
    }
  3. ?? ??????? ???? ???? ??? ???.
  4. ?? ??????? ???? ???? ??? "?????".
  5. ?? ???????? ???? ??? ?????? ?????? ??? ???? ???? ????? ExpenseName ??? ?? ???? ??? ????? ???? ????.
  6. ?? ???? ?????? ????? ???? ????, ???? ??? ????? ??????? ??? ?? ???? ??? ????? ????.

    ???? ???? ?????? ????? ????.
  7. ???? ??? ?????.

    ???? ???? ?????? ????? ????.
  8. ?? ???? ?????? ????? ????? ???? ??? ??????? ??????? ?? ??????? ?? ?? ???? ??? ??????? ?? ??????:
    ?????? ??: ExpenseName = xdExtension:CheckItem()
  9. ???? ??? ???? ?? ???? ??? ?????.
  10. ?????? ???? ?????? ????? ????? ???? ??? "?????".
  11. ?????? ???? ?????? ????? ???? ????, ???? ??? "?????".
  12. ?? ??????? ???? ???? ??? ?????? ?? ???? ??? ?????.
  13. ??????? ??????? ???? ??????? ???????:
    1. ???? ??? ???????? Lodging.
    2. ???? ????? 250.
    3. ?????? ?? ???? ???? CTRL + ENTER.
    4. ???? ??? ???????? Airfare.
    5. ???? ????? 700.

      ?????? ??? ???????? ??? ?? ???? ?????? ?????? ??? ??? ???????? ????? AirfareAirfare ?? ???? ???? ???? ?? ??????? ?? ???? CheckItem.

?????? ??? ?? ???? ?????? ????? ?????? ??? ????? ????

  1. ??????? ???? XML ?? ???? ?? ??? ??????? ?????? ??? XML ?? ??????? ???????:
    <?xml version="1.0"?>
    <ExpenseRequirements>
    	<RequiresReceipt>75.00</RequiresReceipt>
    </ExpenseRequirements>
    ????? ??? ExpenseRequirements.xml.
  2. ?????? ExpenseRequirements.xml ????? ?????? ????? ??????? ????? ?? ???? ??????? ???????:
    1. ?? ??????? ?????? ???? ??? ????? ???? ???????? ???????.

      ???? "????? ???? ????????".
    2. ???? ??? ???????.

      ???? ???? ?????? ???.
    3. ???????? ??? ExpenseRequirements.xml ?? ???? ??? ???.
    4. ???? ??? ?????? ?? ???? ??? "?????" ?????? "????? ????? ???? ????????".
  3. ???? ??? ?????? ?????? ??? ?????? ?????? ?? ??????? ????? ?? ??? ?? ???? ??? ????? ?????? ??????.
  4. ?? ???? ?????? ????? ?????? ?????? ??? ????? ??????? ??? ? ?? ???? ??? ????? ????.

    ???? ???? ?????? ????? ????.
  5. ???? ??? ?????.

    ???? ???? ?????? ????? ????.
  6. ?? ???? ?????? ????? ????? ??? ??????? ?? ??????? ????????. ???? ??? ??????? ?? ???? ????:

    ?????? ??: ExpenseValue > xdXDocument:GetDOM("ExpenseRequirements")/ExpenseRequirements/RequiresReceipt

    ?? ??????? ???????? ??? ??????? ??? ??? ???? ?? ???? ??? ?????.
  7. ???? ??? ????? ?????? ???? ?????? ????? ????.
  8. ???? ??? ????? ?????? ???? ?????? ????? ?????? ??????.
  9. ???? ??? ????? ??????.
  10. ??????? ??????? ???? ??????? ???????:
    1. ???? ??? ???????? ??????. ???? ????? 25.
    2. ???? CTRL + ENTER ?????? ?? ????.
    3. ???? ??? ???????? ????. ???? ????? 80.

      ?????? ??? ????? ???? ?????? ?????? ????? ???? ????? ???? ???????? 75.

???????

???? ???????: 827008 - ????? ??? ??????: 11/????/1428 - ??????: 2.2
????? ???
  • Microsoft Office InfoPath 2007
  • Microsoft Office InfoPath 2003, Service Pack 1 (SP1)
  • Microsoft Office InfoPath 2003
????? ??????: 
kbmt kbhowtomaster KB827008 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????827008

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com