D
DBOYD
I have an xml document with several fields.
I am using a drop down combo box to display SCREEN.TITLES from an XML data
source . After the user has selected a screen title I want the form to
populate the text boxes on the form based on the ID field
I have define rules THE ACTION = set a field FIELDS:= SCREEN.TITLE
VALUES= SCREEN.TITLES depressed ok then checked the Edit XPATH advanced
now I want to append with xdXDocument:GetDOM("PUAD
3")/PUAD.HELP.SCREEN.USAGE/SCREEN.TITLE[../ID = current()]
sample of the XML
<ROOT>
<PUAD.HELP.SCREEN.USAGE>
<ID>SOP.PVI.SCREENS*R INACTIVE</ID>
<SCREEN.FILE>SOP.PVI.SCREENS</SCREEN.FILE>
<SCREEN.FILE.NAME>R INACTIVE</SCREEN.FILE.NAME>
<SCREEN.TITLE>(AUTOMATIC) National Board Serial Number Entry</SCREEN.TITLE>
<XABREV>SOP1941</XABREV>
<FIELD-MV>
<VOC.FILE.NAME>NATBRD.SN.ENTRY</VOC.FILE.NAME>
</FIELD-MV>
</PUAD.HELP.SCREEN.USAGE>
<PUAD.HELP.SCREEN.USAGE>
<ID>SOP.PVI.SCREENS*NATBRD.SN.ENTRY</ID>
<SCREEN.FILE>SOP.PVI.SCREENS</SCREEN.FILE>
<SCREEN.FILE.NAME>NATBRD.SN.ENTRY</SCREEN.FILE.NAME>
<SCREEN.TITLE>(AUTOMATIC) National Board Serial Number Entry</SCREEN.TITLE>
<XABREV>SOP1941</XABREV>
<FIELD-MV>
<VOC.FILE.NAME>NATBRD.SN.ENTRY</VOC.FILE.NAME>
<SCREEN.TITLE.MV>(AUTOMATIC) National Board Serial Number
Entry</SCREEN.TITLE.MV>
<PROMPT.NO>1</PROMPT.NO>
<PROMPT.TEXT>Enter (W)orkOrder OR (S)alesOrder</PROMPT.TEXT>
<FILE.NAME>NATBRD.SN.ENTRY.FILE</FILE.NAME>
What do I do to eliminate the error ? I am programmer but a newbie to
InfoPath
so please provide as much detail as possible it would be very much
appreciated.
What does the actual value name error mean ?
I keep receiving this error
Expected value type: end-of-string
Actual value: name
..-->xdXDocument:GetDOM<--("PUAD
3")/ROOT/PUAD.HELP.SCREEN.USAGE/SCREEN.TITLE[../ID = current()]
THANKS
I am using a drop down combo box to display SCREEN.TITLES from an XML data
source . After the user has selected a screen title I want the form to
populate the text boxes on the form based on the ID field
I have define rules THE ACTION = set a field FIELDS:= SCREEN.TITLE
VALUES= SCREEN.TITLES depressed ok then checked the Edit XPATH advanced
now I want to append with xdXDocument:GetDOM("PUAD
3")/PUAD.HELP.SCREEN.USAGE/SCREEN.TITLE[../ID = current()]
sample of the XML
<ROOT>
<PUAD.HELP.SCREEN.USAGE>
<ID>SOP.PVI.SCREENS*R INACTIVE</ID>
<SCREEN.FILE>SOP.PVI.SCREENS</SCREEN.FILE>
<SCREEN.FILE.NAME>R INACTIVE</SCREEN.FILE.NAME>
<SCREEN.TITLE>(AUTOMATIC) National Board Serial Number Entry</SCREEN.TITLE>
<XABREV>SOP1941</XABREV>
<FIELD-MV>
<VOC.FILE.NAME>NATBRD.SN.ENTRY</VOC.FILE.NAME>
</FIELD-MV>
</PUAD.HELP.SCREEN.USAGE>
<PUAD.HELP.SCREEN.USAGE>
<ID>SOP.PVI.SCREENS*NATBRD.SN.ENTRY</ID>
<SCREEN.FILE>SOP.PVI.SCREENS</SCREEN.FILE>
<SCREEN.FILE.NAME>NATBRD.SN.ENTRY</SCREEN.FILE.NAME>
<SCREEN.TITLE>(AUTOMATIC) National Board Serial Number Entry</SCREEN.TITLE>
<XABREV>SOP1941</XABREV>
<FIELD-MV>
<VOC.FILE.NAME>NATBRD.SN.ENTRY</VOC.FILE.NAME>
<SCREEN.TITLE.MV>(AUTOMATIC) National Board Serial Number
Entry</SCREEN.TITLE.MV>
<PROMPT.NO>1</PROMPT.NO>
<PROMPT.TEXT>Enter (W)orkOrder OR (S)alesOrder</PROMPT.TEXT>
<FILE.NAME>NATBRD.SN.ENTRY.FILE</FILE.NAME>
What do I do to eliminate the error ? I am programmer but a newbie to
InfoPath
so please provide as much detail as possible it would be very much
appreciated.
What does the actual value name error mean ?
I keep receiving this error
Expected value type: end-of-string
Actual value: name
..-->xdXDocument:GetDOM<--("PUAD
3")/ROOT/PUAD.HELP.SCREEN.USAGE/SCREEN.TITLE[../ID = current()]
THANKS