Table number xrefs disappear when roundtripping the XML doc back to FM

I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
-- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
-- In the Structure View of the same XML doc, I see the following:
- The CROSSREF element text says WHITESPACE.
- Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
- The Idref attribute is disconnected from the CROSSREF element.
- The "table" element is disconnected from its container element (TableAnchor).
Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
The XML-converted doc source text reads:
If you're using WebDrive, you will want to use the options shown
in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
[TableAnchor]
[table tabstyle = "Expressroom2" cols = "2"
colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
frame = "all"]
[title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
WebDrive control panel options?]WebDrive login values[/title]
[tgroup cols = "2" colsep = "1" rowsep = "1"]
[colspec colnum = "1" colname = "1" colwidth = "2.198in"]
[/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
[/colspec][thead]
[row rowsep = "1"]
[entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
[entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
[/row]
[/thead]
But when I open the same XML-converted doc back in FM, I get the following:
"If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
[I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
-- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
-- In the Structure View of the same XML doc, I see the following:
- The CROSSREF element text says WHITESPACE.
- Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
- The Idref attribute is disconnected from the CROSSREF element.
- The "table" element is disconnected from its container element (TableAnchor).
Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
The XML-converted doc source text reads:
If you're using WebDrive, you will want to use the options shown
in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
[TableAnchor]
[table tabstyle = "Expressroom2" cols = "2"
colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
frame = "all"]
[title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
WebDrive control panel options?]WebDrive login values[/title]
[tgroup cols = "2" colsep = "1" rowsep = "1"]
[colspec colnum = "1" colname = "1" colwidth = "2.198in"]
[/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
[/colspec][thead]
[row rowsep = "1"]
[entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
[entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
[/row]
[/thead]
But when I open the same XML-converted doc back in FM, I get the following:
"If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
[I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

Similar Messages

  • Error when parsing the XML document

    hi all.
    i have the next problem.
    the sender sistem send to XI an XML. some tags send a '#' caracter.
    Sender Service send:
    Torre B1 - B#Unimev
    when Im traying to test XML inbound, XI show the next error:
    Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x14(:main:, row:1, col:992))
    XML:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ZDEBMAS6>
    -   <IDOC BEGIN="1">
    -      <EDI_DC40 SEGMENT="1">
             <TABNAM>EDI_DC40</TABNAM>
             <MANDT>300</MANDT>
             <DOCNUM>0000000000339708</DOCNUM>
             <DOCREL>640</DOCREL>
             <STATUS>30</STATUS>
             <DIRECT>1</DIRECT>
             <OUTMOD>2</OUTMOD>
           </EDI_DC40>
    -      <E1KNA1M SEGMENT="1">
              <MSGFN>009</MSGFN>
              <REGIO>07</REGIO>
              <STCD1>20147972750</STCD1>
              <FITYP>01</FITYP>
              <STCDT>80</STCDT>
              <STCD3>0</STCD3>
    -         <Z1KNA1M SEGMENT="1">
                 <MSGFN>009</MSGFN>
                  <KUNNR>0001000563</KUNNR>
                  <ZZSOCRCV>3100</ZZSOCRCV>
                  <ZZGBDAT>00000000</ZZGBDAT>
              <b> <ZZAD_STREET_CO>Torre B1 - B Unimev</ZZAD_STREET_CO></b>
                  <ZZAD_ROOMNUM_CO>PB</ZZAD_ROOMNUM_CO>
                  <ZZAD_FLOOR_CO>E</ZZAD_FLOOR_CO>
                  <ZZAD_PSTCD1_CO>M5521AAR</ZZAD_PSTCD1_CO>
                  <ZZAD_CITY1_CO>Mendoza</ZZAD_CITY1_CO>
                  <ZZAD_REGIO_CO>07</ZZAD_REGIO_CO>
               </Z1KNA1M>
               <Z1ADRCM SEGMENT="1">
                  <MSGFN>009</MSGFN>
                  <KUNNR>0001000563</KUNNR>
               <b><STREET>Torre B1 - B Unimev</STREET></b>
                  <FLOOR>PB</FLOOR>
                  <HOUSE_NUM2>E</HOUSE_NUM2>
                  <CITY1>Mendoza</CITY1>
                  <POST_CODE1>5521</POST_CODE1>
                  <COUNTRY>AR</COUNTRY>
                  <REGION>07</REGION>
                  <LANGU>S</LANGU>
              </Z1ADRCM>
          </E1KNA1M>
        </IDOC>
    </ZDEBMAS6>
    Message was edited by: Rodrigo Pertierra
    Message was edited by: Rodrigo Pertierra

    Hi Rodrigo,
    Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC.
    Try changing the Transfer mode to Binary instead of Text.
    Also go through these links:-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Invalid char in XML from inbound IDoc
    Hope this provides a solution.
    Regards.
    Praveen

  • In Firefox 3.6.10 I was able to go forward and backwards between pages without the page defaulting to the top of the page. Is there any way to prevent the page from automatically moving to the top when using the forwards and back buttons in Firefox Four?

    I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?

    Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.

  • I am having problems transefering contacts to my I pod when syncing the message comes back with contact in use by I pod please close and try again, please could you let me know how to close contacts on the  pod or is there a setting that is wrong etc,

    I am having problems transfering contacts to my I pod when syncing the message comes back with contacts in use by I pod please close and try again, please could you let me know how to close contacts on the  pod or is there a setting that is wrong etc, i have restored the device. if i go to contact via settings the screen comes on for about 2 seconds and then goes off - Help

    Single click on the Home button. Then double click on the Home button. In the recently used row, touch and hold the Contact app till they start to wiggle and then tap the minus sing by the contacts app.
    Also make sure the Contact program on your computer is closed.

  • ADF Table - Command buttons disappear when no rows returned for table

    We have a command button that navigates to a create screen, when the table returns no rows the button disappears. We need to have this displayed always and within the ADF table. The code looks like:
    <f:facet name="selection">
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </af:tableSelectOne>
    </f:facet>

    try placing the command button within the "actions" facet of the table. It will place it above the actual rows of the table. You could also use the "header" facet.
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <f:facet name="actions">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </f:facet>
    </af:tableSelectOne>

  • Is there a set maximum number of item s in the xml feed?

    Is there a limit to the maximum number of <item>s allowed in the .xml feed for publishing on iTunes?
    That is, does there come a point where old items have to be deleted before new ones can be added?
    PC   Windows XP  

    I would imagine most people submitting such a large number of jobs are using something more robust like Qube:
    http://www.pipelinefx.com/products/qube-film.php
    Qmaster is very buggy and would need a complete rewrite before it could be qualified for use in such an environment.

  • CS4 + CS5 Brush CURSOR outline disappear when increase the brush size

    Hi
    In Photoshop CS4 and CS5, the outline of the brush cursor starts to disappear when you increase the brush size.
    It's OK under 65px in diameter and it's start to disappear over 66px. In 438px the outline is a single dot and over 439px the cursor outline is completely gone!
    I read that it's caused by the old drivers for the video card. I'm using GeForce 8800GT and I updated the driver with the latest version form the nVidia web site. The problem is still here!
    HELP?

    I'm seeing a bit of a pattern of multiple people reporting problems with nVidia 8800 cards.  I'm thinking nVidia isn't testing new drivers against this particular model very intensively.  See my comments on video cards and drivers in this thread:
    http://forums.adobe.com/thread/682582
    -Noel

  • IMovie disappears when Adding the overlap transition?

    Hello all
    haveing a bit of a problem when adding the Overlap Transition:(:(
    So far all the others work fine its just the overlap, any Ideas?
    Ive checked for updates but none avalible. next step will be uninstalling the imove and reinstalling it.
    Thanks

    sounds like you may have corrupted video clips (i know you said pictures but imovie turns the pictures into small video files when you import them) try pulling out the pictures that are giving you this issue. after that close imovie. reopen imovie and reimport the pictures back into the project and try to add the same transition.
    I ran into the same issue running a project off a external hard disk. Ended up the 2 pictures i was trying to add the transition between somehow became corrupt. Deleteing them. Closing out imovie and reopening and reimporting the images all over into imovie resolved this issue for me. Hope it works for you as well
    Cheers.

  • Adobe LiveCycle loses its mind when generating the XML source

    Could somebody tell me what is causing Adobe LiveCyle to lose its mind and generate hundreds of lines that are merely repeats of this:
    <?templateDesigner StyleID aped0?>
    Here's an example of what it looks like for one field on a form.  The tag is border. 
    <border presence="hidden">
    The line is repeated 250 times !! 
    Is this a LiveCycle bug or did I do something screwy to cause this? 
    Could I just delete the duplicate lines from the XML?
      <field minH="8.2042mm" minW="33.02mm" name="CPN" x="99.1101mm" y="8.2042mm">
    <ui>
    <textEdit>
    <border presence="hidden">
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?></border>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Arial" weight="bold"/>
    <margin bottomInset="0.254mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/>
    <para vAlign="middle"/>
    <caption placement="top" reserve="2.54mm">
    <font baselineShift="0pt" size="5.8pt" typeface="Arial"/>
    <para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/>
    <value>
    <text>4. COMPLAINT NO</text>
    </value>
    </caption>
    <border>
    <edge presence="hidden"/>
    <corner presence="hidden"/>
    <edge/>
    <edge/>
    <edge presence="hidden"/>
    <corner/>
    <corner/>
    <corner presence="hidden"/>
    </border>
    <event activity="enter">
    <script contentType="application/x-javascript">if (testscripts.enterFld(this)) {
    var back="parent.Ten98";
    var next="parent.IncidentNature";
    jscripts.setTab(this,next,back);
    jscripts.boxEdges(this);
    }</script>
    </event>
    <event activity="exit">
    <script contentType="application/x-javascript">if (testscripts.exitFld(this)) {
    this.rawValue = IncidentNumber.formatIncNum(this.rawValue);
    MNPD.Form130.MNPDTrackingNumber.rawValue = TrackingNumber.createTrackingNumber("AFR-FORM130",
    MNPD.ND_Host.rawValue,
    MNPD.ND_atsEmployeeNumber.rawValue,
    this.rawValue);
    console.println(MNPD.Form130.MNPDTrackingNumber.rawValue);
    xfa.resolveNode("MNPD.#pageSet[0].PageArea1.CPN").rawValue = this.rawValue;
    var r = testscripts.validateFld(this);
    jscripts.unboxEdges(this);
    testscripts.stepFld(this,r);
    }</script>
    </event>
    <event activity="change">
    <script contentType="application/x-javascript">xfa.resolveNode("MNPD.#pageSet[0].PageArea1.CPN"). rawValue = this.rawValue;</script>
    </event>
    <bind match="none"/>
    </field>

    That was a bug in ES and was fixed in SP2..
    http://blogs.adobe.com/ADEP/2009/03/post.html
    Either you can manually delete those statements or upgrade your Designer with SP2.
    Thanks
    Srini

  • " VL 476: Item 'Official Doc. Number' is not copied from the reference doc"

    Hi Guys,
    When I am doing the Accrual Reversal in F.81 I am getting the following error
    " VL 476: Item 'Official Doc. Number' is not copied from the reference document ".
    I have maintained the number ranges also. I am not able to understand why the system is issuing this error.
    Pls suggest.
    Thanks
    Srikanth

    Hi Guys,
    Can anyone please help on this error.
    Thanks
    Srikanth

  • Repository event handler doesn't work when inserting an xml-doc via ftp

    Hi,
    I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
    Everything works fine if I type the following code in SQL Plus:
    Declare
    v_return BOOLEAN;
    Begin
    v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
    end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
    What's the reason for this strange behavior and how can I solve it?
    For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Thank you very much for your help!!!
    Repository Event Handler code extract:_
    create or replace
    PACKAGE BODY schemalocation AS
    PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
    XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
    var XMLType;
    l_return BOOLEAN;
    l_xmldoc dbms_xmldom.DOMDocument;
    l_docelem dbms_xmldom.DOMElement;
    l_attr dbms_xmldom.DOMAttr;
    c1 clob;
    node     dbms_xmldom.DOMNode;
    txid varchar2(100);
    dDoc DBMS_XMLDOM.DOMDocument;
    nlNodeList DBMS_XMLDOM.DOMNodeList;
    BEGIN
    XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
    dbms_lob.createTemporary(c1,TRUE);
    var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
    l_xmldoc := dbms_xmldom.newDOMDocument(var);
    l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
    ------ add schemaLocation attribute
    l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
    DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
    l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
    DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
    ------- get the value of the TxId-tag
    dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
    nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
    node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
    txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
    l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
    END;

    Marco,
    Here's an example of the problem :
    create or replace package handle_events
    as
      procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
    end;
    create or replace package body handle_events
    is
    procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
    is
      XDBResourceObj dbms_xdbresource.XDBResource;
      doc XMLType;
      res boolean;
    begin
      XDBResourceObj := dbms_xevent.getResource(p_event);
      doc := dbms_xdbresource.getContentXML(XDBResourceObj);
      select insertchildxml(
        doc
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
      res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
    end;
    end;
    declare
    res boolean;
    begin
    res := dbms_xdb.CreateFolder('/public');
    res := dbms_xdb.CreateFolder('/public/tmp');
    res := dbms_xdb.CreateFolder('/public/xml');
    end;
    declare
    res            boolean;
    resconfig      xmltype;
    my_schema      varchar2(30) := 'DEV';
    resconfig_path varchar2(300) := '/public/ResConfig.xml';
    resource_path  varchar2(300) := '/public/tmp';
    begin
      resconfig  := xmltype(
    '<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
      <event-listeners set-invoker="true">
        <listener>
          <description>My event handler</description>
          <schema>'||my_schema||'</schema>
          <source>HANDLE_EVENTS</source>
          <language>PL/SQL</language>
          <events>
            <Pre-Create/>
          </events>
          <pre-condition>
            <existsNode>
              <XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
              <namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
            </existsNode>
          </pre-condition>
        </listener>
      </event-listeners>
      <defaultChildConfig>
        <configuration>
          <path>'||resconfig_path||'</path>
        </configuration>
      </defaultChildConfig>
    </ResConfig>'
      res := dbms_xdb.CreateResource(resconfig_path, resconfig);
      dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
    end;
    /Giving the following input XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
    SQL> declare
      2    res boolean;
      3  begin
      4    res := dbms_xdb.CreateResource('/public/tmp/test.xml',
      5               xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>With the same document loaded via FTP, we get :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00283: document encoding is UTF-16-based but default input encoding is not
    Error at line 1
    no rows selectedand the content looks like :
    < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 8 " ? >
    < r o o t   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
      select insertchildxml(
        xmltype(doc.getclobval())
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
    ...We then get the expected result after FTP transfer :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>The workaround also works for the DOM version presented above.
    Any ideas?

  • Why does the table I make disappear when it goes over a page?

    Whenever I make a table that is a bit too large for one page, the content just disapears under the second page, leaving only the bar down the side visable. I've made a header row, and ticked 'start with header row', but it is immune to all efforts to continue on the second page. I have had to resort to literally making a new table on the second page. What am I missing?

    fruhulda wrote:
    We should be more specific, Jerrold. My answer is for Pages 09 and earlier and Jerrolds is for Pages 5.x
    Fruhulda,
    You're right, of course. Version 5 has been around long enough now that I believe it's a good guess that questions, where the version isn't specified concern the latest version, even if the poster hasn't updated their profile.
    Jerry

  • Trip Number gets disappeared after clicking the UWL work item

    Hi All,
    When i click on work item in UWL to make a decision on it, a pop up gets opened trip form(there is error on trip formu201D Error while initiating travel form") . When i close this popup & return to UWL , trip number of that item gets disappeared.
    Similarly when i launch UWL , some trip numbers do not appeared.
    Please help.
    Regards,
    Amit S

    Hi Piyush,
    Thanks for replying.
    I already tried it. it is not useful . following is XML file for tsk TS20000118. I think there is problem inside code.since i am not able to locate Action & view in Content folder. Please see the bold texts.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType name="uwl.task.webflow.decision.TS20000118" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.tra.view.RequestApprovalView" defaultAction="com.sap.pct.erp.mss.tra.action.DisplayRequestForm" executionMode="default">
          <ItemTypeCriteria externalType="TS20000118" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
              <Attribute name="TripNumber" type="string" displayName="Trip Number"/>
              <Attribute name="EmployeeNumber" type="string" displayName="Employee Number"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action name="com.sap.pct.erp.mss.tra.action.DisplayRequestForm" groupAction="" handler="SAPAppLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="toolbar=no,menubar=no">
              <Properties>
                <Property name="SAPIntegrator" value="ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_travel_expenses/com.sap.pct.erp.ess.tripform"/>
                <Property name="sap.xss.tra.TripComponent" value="R"/>
                <Property name="sap.xss.tra.PersNo" value="${item.EmployeeNumber}"/>
                <Property name="display_order_priority" value="10"/>
                <Property name="sap.xss.tra.TripNo" value="${item.TripNumber}"/>
              </Properties>
              <Descriptions default="com.sap.pct.erp.mss.tra.action.DisplayRequestForm"/>
            </Action>
          </Actions>
        </ItemType>
      </ItemTypes>
      <Views>
        <View name="com.sap.pct.erp.mss.tra.view.PlanApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS01000124" columnOrder="TripNumber, statusIcon, subject, priority, creatorId, createdDate, dueDate, processor, forwardedDate, attachmentCount, detailIcon, APPROVE, REJECT, SENDBACK" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="com.sap.pct.erp.mss.tra.PlanApproval">
          <DisplayAttributes>
            <DisplayAttribute name="REJECT" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.RejectPlan" referenceBundle="com.sap.pct.erp.mss.tra.Reject" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="SENDBACK" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.SendBackPlan" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="APPROVE" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.ApprovePlan" referenceBundle="com.sap.pct.erp.mss.tra.Approve" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="TripNumber" type="string" width="" sortable="yes" format="default" referenceBundle="com.sap.pct.erp.mss.tra.TripNumber" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
          </DisplayAttributes>
          <Actions>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.ApprovePlan" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Approve" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="decisionKey" value="0001"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.SendBackPlan" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0002"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.RejectPlan" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Reject" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0003"/>
              </Properties>
            </Action>
            <Action reference="submitUserDecisions"/>
            <Action reference="com.sap.pct.erp.mss.gotoWorkcenter"/>
            <Action reference="refresh"/>
            <Action reference="defaultGlobalWizard"/>
            <Action reference="addToNavigation"/>
            <Action reference="removeFromNavigation"/>
          </Actions>
        </View>
        <View name="com.sap.pct.erp.mss.tra.view.RequestApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS20000118" columnOrder="TripNumber, statusIcon, subject, priority, creatorId, createdDate, dueDate, processor, forwardedDate, attachmentCount, detailIcon, APPROVE, REJECT, SENDBACK" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="com.sap.pct.erp.mss.tra.RequestApproval">
          <DisplayAttributes>
            <DisplayAttribute name="REJECT" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.RejectRequest" referenceBundle="com.sap.pct.erp.mss.tra.Reject" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="SENDBACK" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.SendBackRequest" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="APPROVE" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.ApproveRequest" referenceBundle="com.sap.pct.erp.mss.tra.Approve" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="TripNumber" type="string" width="" sortable="yes" format="default" referenceBundle="com.sap.pct.erp.mss.tra.TripNumber" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
          </DisplayAttributes>
          <Actions>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.ApproveRequest" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Approve" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="decisionKey" value="0001"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.SendBackRequest" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0002"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.RejectRequest" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Reject" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0003"/>
              </Properties>
            </Action>
            <Action reference="submitUserDecisions"/>
            <Action reference="com.sap.pct.erp.mss.gotoWorkcenter"/>
            <Action reference="refresh"/>
            <Action reference="defaultGlobalWizard"/>
            <Action reference="addToNavigation"/>
            <Action reference="removeFromNavigation"/>
          </Actions>
        </View>
        <View name="com.sap.pct.erp.mss.tra.view.TravelApproverWOC" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS20000131, uwl.task.webflow.decision.TS01000124, uwl.task.webflow.decision.TS20000118, uwl.task.webflow.decision.TS20000135" columnOrder="TripNumber, statusIcon, subject, dueDate, priority, creatorId, createdDate, processor, forwardedDate, attachmentCount, detailIcon" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="top" referenceBundle="com.sap.pct.erp.mss.tra.Travel">
          <DisplayAttributes>
            <DisplayAttribute name="TripNumber" type="string" width="" sortable="yes" format="default" referenceBundle="com.sap.pct.erp.mss.tra.TripNumber" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
          </DisplayAttributes>
          <Actions>
            <Action reference="refresh"/>
            <Action reference="defaultGlobalWizard"/>
            <Action reference="addToNavigation"/>
            <Action reference="removeFromNavigation"/>
            <Action name="viewDetail" groupAction="" handler="uwlExcludeAction" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Descriptions default="viewDetail"/>
            </Action>
            <Action reference="com.sap.pct.erp.mss.gotoWorkcenter"/>
          </Actions>
        </View>
        <View name="com.sap.pct.erp.mss.tra.view.TripApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS20000131" columnOrder="TripNumber, statusIcon, subject, priority, creatorId, createdDate, dueDate, processor, forwardedDate, attachmentCount, detailIcon, APPROVE, REJECT, SENDBACK" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="com.sap.pct.erp.mss.tra.TripApproval">
          <DisplayAttributes>
            <DisplayAttribute name="REJECT" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.RejectTrip" referenceBundle="com.sap.pct.erp.mss.tra.Reject" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="SENDBACK" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.SendBackTrip" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="APPROVE" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.ApproveTrip" referenceBundle="com.sap.pct.erp.mss.tra.Approve" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="TripNumber" type="string" width="" sortable="yes" format="default" referenceBundle="com.sap.pct.erp.mss.tra.TripNumber" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
          </DisplayAttributes>
          <Actions>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.ApproveTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Approve" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="decisionKey" value="0001"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.SendBackTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0002"/>
              </Properties>
            </Action>
            <Action name="com.sap.pct.erp.mss.tra.action.approver.RejectTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Reject" returnToDetailViewAllowed="no" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true"/>
                <Property name="decisionKey" value="0003"/>
              </Properties>
            </Action>
            <Action reference="submitUserDecisions"/>
            <Action reference="com.sap.pct.erp.mss.gotoWorkcenter"/>
            <Action reference="refresh"/>
            <Action reference="defaultGlobalWizard"/>
            <Action reference="addToNavigation"/>
      Regards,
    Amit

  • Cannot open the pdf when using the xml publisher to generate rtf report

    Hello Everyone,
    I followed the below link to generate a pdf using xml publisher in OAF.
    http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    When i try to save the pdf and open it, i get the below error:
    Adobe Reader could not open the pdf because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded).
    Below is the code in CO.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am= (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    // System.out.println(outputStream.toString());//Testing the output by printing the contents in the outputstream.
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    // System.out.println("language is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage());
    // System.out.println("country is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().geCountry());
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    // APP_NAME,
    "PER",
    // TEMPLATE_CODE,
    "Emp_Template",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "English",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    "United States",
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    response.setContentType("application/pdf");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(false);
    Any suggestions on this would be great!
    Thanks
    Kumar

    Below is the code. Can you change so that that the output can be seen in HTML? I checked the language, country etc and they are fine.
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am= (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=PrintPage.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    // xmlNode.print(outputStream);
    // System.out.println(outputStream.toString());//Testing the output by printing the contents in the outputstream.
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    // System.out.println("language is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage());
    // System.out.println("country is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().geCountry());
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    // APP_NAME,
    "PER",
    // TEMPLATE_CODE,
    "Emp_Template",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "en",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    "US",
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Thanks

  • Table Navigation Bar disappears when blocksize equals maxValue

    (Env: JDev 903, uix 217)
    Why decides the uix TableBean to NOT render my navigation bar when blockSize equals maxValue? In JDev902 this worked differently (navBar indeed appeared when blockSize equalled maxValue).
    With the navBar not showing, the user is only able to see how many records the table contains by actually manually counting them of the screen.
    To clarify:
    Scenario: blockSize < maxValue
    1) user queries 20 records
    2) blockSize = 8, maxValue=20
    3) table shows 8 records, with navbar "1-8 of 20"
    4) user is happy
    Scenario: blockSize = maxValue
    1) user queries 20 records
    2) blockSize = 20 (for example set by a user pref), maxValue=20
    3) table shows 20 records, but NO navbar
    4) user is not happy

    Thanks for your reply.
    I can see their point.
    Unfortunately your suggestion to set maxValue to -1/null does not really render the desired result: I am getting a navNar with an enabled "next <n>" button, where <n> equals the blockSize. However there are no <n> next records (as I am already showing them on the screen).
    In my perfect world I would get a navbar with both the "previous" and "next" buttons disabled, and a poplist with one entry: "1-<n> of <n>".
    Might I suggest to add a "toggle NavBar on/of switch" to the Table bean in the next uix release? Does that make sense?
    Thanks,
    Martijn

Maybe you are looking for