cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem.....content dependent on response

Former Member
0 Kudos
58

Hi,

I've got a mapping as follows

Part_ID (context = report) \

Datarow (context = report) - UseOneAsMany --> Check_Part_ID (my UDF) ---> IF THEN Datarow -


> Recordset

Datarow (context =page) /

A request for a report is sent and if a report is found

 
<REPORT>
   <REPORT_HEADER>
      <HEADROW num="1">
         *<Part_ID>PT_500024</Part_ID>*
      </HEADROW>
   </REPORT_HEADER>
<REPORT_BODY>
<PAGE>
   *<DATAROW num="1">*
      <TRADE_DATE>17/01/2008</TRADE_DATE>
   *</DATAROW>*

This maps fine. The problem is that when no report is found the reponse is


<REPORT>
   <REPORT_HEADER>
      <HEADROW num="1">
         <REPORT_NAME>Report</REPORT_NAME>
      </HEADROW>
   </REPORT_HEADER>
<REPORT_BODY>
    *<NoDataFound/>*
</REPORT_BODY>
</REPORT>

My mapping throws an error as Datarow and Part_ID don't exist in this response. Is there anyway I can solve this by using the <NoDataFound> tag in the second response

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Flamien,

I have cum across this problem before. After a lot of heaving and ho-ing i was finally satisfied with my out-cum.

if you use the Trade_date in the useOneAsMany this should solve your problem. you need to use a field that is always there, otherwise you will get the error you mentioned

Answers (0)