Eliminate an Expected value type: end-of-string in rules

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
 
S

S.Y.M. Wong-A-Ton

Other than your XML not being well-formed, I couldn't find anything wrong
with the expression; it works fine on my end.

Check whether there isn't any other text or expressions before the
xdXDocument:GetDOM. I see a period (.) before the --> in your error
statement. If this is also present in the formula box in your form, remove it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top