Problem in mapping of conditional tag.

Hi Experts,
I have the following problem:
Source tag:
<A>
<FIELD1>DATUM1</FIELD1>
<STATUS> X</STATUS>
</A>
<A>
<FIELD1>DATUM2</FIELD1>
<STATUS> </STATUS>
</A>
<A>
<FIELD1>DATUM3</FIELD1>
<STATUS> </STATUS>
</A>
Target Tag:
<C>
<FIELD1>DATUM1</FIELD1>
</C>
<D>
<FIELD1>DATUM2</FIELD1>
</D>
<D>
<FIELD1>DATUM3</FIELD1>
</D>
So, In Source Tag A, if Status =X =>Target Tag = C
      In Source Tag A, if Status =empty =>Target Tag = D.
My mapping is as following:
Source Tag A->exists AND Status=X => CreateIF=>Tag C
Source Tag A->exists AND Status=empty=> CreateIF=>Tag D.
The problem is that I get in Target only Tag C:
<C>
<FIELD1>DATUM1</FIELD1>
</C>
<C>
<FIELD1>DATUM2</FIELD1>
</C>
<C>
<FIELD1>DATUM3</FIELD1>
</C>.
It looks like it does not check for each tag A.
I have tried with UseOneAsMany but it does not work and read a lot on SDN but nothing helped!
Please, any idea?
Kind Regards,
Danijela

Hi Danijela,
Source tag:
<FIELD1>DATUM1</FIELD1>
<STATUS> X</STATUS>
<FIELD1>DATUM2</FIELD1>
<STATUS> </STATUS>
<FIELD1>DATUM3</FIELD1>
<STATUS> </STATUS>
Target Tag:
<C>
<FIELD1>DATUM1</FIELD1>
</C>
<D>
<FIELD1>DATUM2</FIELD1>
</D>
<D>
<FIELD1>DATUM3</FIELD1>
</D>
Follow these steps -
you have source message type like this
<root>
           <Field>
           </Field>
           <status>
           </status>
</root>
In Graphical mapping , first take Status if with else node function and check for 'X' if yes then create  target node <C></C> . if else then check for empty with if without else node function and create target node <D></D> node.
It will solve the issue. Pls let us know if you need any further support.
Regards,
kishore

Similar Messages

  • Problem in mapping with optional tag

    Hi all,
    I have to map the following messages:
    Source:
    <POITEM> (occurrence 0...unbounded)
       <TipoRecord></TipoRecord>
       <PO_ITEM></PO_ITEM>
       <DELETE_IND></DELETE_IND>
    </POITEM>
    <POITEM>
       <TipoRecord></TipoRecord>
       <PO_ITEM></PO_ITEM>
       <DELETE_IND></DELETE_IND>
    </POITEM>
    Target:
    <POITEM_B> (occurrence 0 1)
        <item>  (occurrence 0...unbounded)
           <TipoRecord></TipoRecord>
           <PO_ITEM></PO_ITEM>
           <DELETE_IND></DELETE_IND>
        </item>
         <item>
            <TipoRecord></TipoRecord>
            <PO_ITEM></PO_ITEM>
            <DELETE_IND></DELETE_IND>
         </item>
    </POITEM_B>
    To do this mapping I have mapped "POITEM" of the source message with "item" of the target one and in that way the cardinality is ok.
    Since POITEM_B is optional, even if there are in the source message <POITEM> elements, the tag <POITEM_B> is not created (nor its children).
    So I mapped <POITEM> to <POITEM_B>:
    the result is ok only for the first <POITEM> element; the second <POITEM> element generates the tag <POITEM_B> without any tag <item> below!
    I have tried in several ways (like changing context, and others), but the only way I have found to get all the correct <item> tags below <POITEM>, is to map <POITEM_B> with a Constant!!!
    Someone can suggest me a better solution?
    ThankS!
    Luciana

    Hi Luciana,
    when I understand you correct you just want to create the <POITEM_B> and <item> nodes of the target structure if <POITEM> exists. If not, you don't want to create <POITEM_B> and all nodes below, correct?
    If so, please try the following:
    <POITEM> --> NodeFunction Exists --> NodeFunction collapseContexts  --> NodeFunction createIf --> <POITEM_B>
    --> This should generate exactly one <POITEM_B> if 1..n <POITEM> elements exist.
    <POITEM> --> <item>
    --> This should generate the same number <item> nodes you've <POITEM> nodes
    Best regards
    Lars

  • Problem in Conditional tag

    Dear friends,
    I am using conditional tag feature on one of my topics in robohelp and the topic is getting excluded from the output. However, the numbering in TOC doesn't change. For example,I have the following sections in my help file:
    1.1 A
    1.2 B
    1.3 C
    If I apply CT on 1.2 it is excluded from the output but the TOC appears as follows:
    1.1 A
    1.3 C
    1.2 is removed but the numbering is still the same.
    Can anyone help me in solving this problem. The numbering should also get modified in the TOC like:
    1.1 A
    1.2 C

    Is the document going to be updated regularly and you are going to repeatedly import it into a new project? If it is, then maybe linking would be a better option.
    You wouldn't necessarily have to have two documents. Create two documents, one with the numbered headings and one without.
    When you want to update Rh, you use Word's style organiser to apply the un-numbered headings. Then you switch back.
    Of course, you need to check with product management that not having numbering in online help is OK. Better still, challenge why do you need that legal type numbering at all. Sometimes it is because developers like that style of numbering too but they are not the users of the help and documents.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Map Styles to Tags Problem

    For the first time ever I am having problems running the Map Styles to Tags commmand in InDesign CS3. The program takes some time to d the command but then an empty dialog pops up and the tagging has not happened. Any ideas in taking the text step to debug this problem?
    InCopy CS3 on a PowerMac DualG5/Mac OS X 10.5.8. Extra plug-ins include the K4 workflow system, Universal Type Server plug-in, Notes Manager, Overset Manager. I have attempted to do this operation via InCopy on this article and encountered the same problem.

    I finally figured out this problem. The main article (InCopy document) was very, very long. Once I removed all change tracking in InCopy and turned off change tracking (which involved some changes in K4 administration) everything worked perfectly.

  • Graphical Mapping Problem : Create Segments by conditions

    Hi,
    i have a problem while mapping an incoming invoice to IDoc Invoic02. I had to create some Segments (E1EDP02) on basis of identifiers in the incoming message. I hope the following example i created will help to understand my exact problem:
    EXAMPLE MESSAGE:
    <invoice>
    <document>
    <position>
       <line>
         <posnum> 1 </posnum>
         <IMD>
         <ident> Name </ident>
         <val>   Maxx </val>
         </IMD>
         <IMD>
         <ident> Age </ident>
         <val>   19 </val>
         </IMD>
         <IMD>
         <ident> Gender </ident>
         <val>   Male </val>
         </IMD>
       </line>
    </position>
    <position>
       <line>
         <posnum> 2 </posnum>
         <IMD>
         <ident> Name </ident>
         <val>   Tina </val>
         </IMD>
         <IMD>
         <ident> Age </ident>
         <val>   28 </val>
         </IMD>
         <IMD>
         <ident> Gender </ident>
         <val>   Female </val>
         </IMD>
       </line>
    </position>
    </document>
    </invoice>
    THE RESULT I WANT:
    <invoic02>
    <E1EDP01>
    <SEGMENT> </SEGMENT>
    <POSEX> 1 </POSEX>
      <E1EDP02>
           <SEGMENT> </SEGMENT>
         <QUALF> 021 </QUALF>
         <BELNR> 19 </BELNR> // THIS should be the Age
      </E1EDP02>
      <E1EDP19>
      </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <SEGMENT> </SEGMENT>
      <POSEX> 2 </POSEX>
      <E1EDP02>
         <SEGMENT> </SEGMENT>
         <QUALF> 021 </QUALF>
         <BELNR> 28 </BELNR> // THIS should be the Age
      </E1EDP02>
      <E1EDP19>
      </E1EDP19>
    </E1EDP01>
    </invoic02>
    I tried to different ways to get the above result but i failed
    My first try:
    ident      -------|--- equalsS ------ createIf ---- E1EDP02
    Constant[000] --------- SEGMENT
    Constant[Age]--|
    ident      -------|--- equalsS ------ ifWithoutElse ---- QUALF
    Constant[Age]--|             |          
                           |
                        Constant[021]
    ident      -------|--- equalsS ------ ifWithoutElse ---- BELNR
    Constant[Age]--|             |          
                           |
                           val
    Result:
    The E1EDP02 Element will not created reliable. Sometimes it is there sometimes not dunno why ? Any Idea ?
    My second try:
    IMD -------------- E1EDP02
    Constant[000] --------- SEGMENT
    ident      -------|--- equalsS ------ ifWithoutElse ---- QUALF
    Constant[Age]--|             |          
                           |
                        Constant[021]
    ident      -------|--- equalsS ------ ifWithoutElse ---- BELNR
    Constant[Age]--|             |          
                           |
                           val
    Result:
    Now every E1EDP01 Element has two E1EDP02 Elements. One correct one and an empty one with only a segment element. Is there a way to delete this empty elements ?
    Any ideas to create a working mapping ?
    Thanks

    @Liang Ji 
    When i do this i have only the first E1EDP01 Element
    @Tarang Shah
    Which function i had to use for this ?
    Thank you

  • Text Inset in Container File Loses Conditional Tag

    Hi,
    (Framemaker 8.0p277,unstructured)
    I have a number of books that make use of text inset and conditional text.  Some text insets contain conditional text in their source. Then, after the inset is put into the container file, the inset may be further conditionalized. This illustrates the situation:
    --- Text Inset ---
    This inset was created for end users.
    When using function X, blah blah blah
    -----End Inset----
    The red text indicates an InternalDocComment condition. This inset is then placed into the container file where it has another condition applied, PrintOnly for example. PrintOnly is in blue.
    The writer is able to set all this up fine. After placing the inset into the container, she selects the inset and applies PrintOnly.  The text inset appears in blue and the InternalDocComment as visible shows the maroon of two mixed colors. The writer saves the file, continues working on the files, then later in the week, the writer opens the container file. The blue color indicator is gone from the inset. When the writer selects the inset and chooses Apply Conditional Text, the Conditional Text dialog shows the current selection is Conditional (radio button) but no tags appear in the In portion of the dialog.
    I've tried using spacer paragraphs in and around the text inset to see if we can get the conditional tag to "stick" but nothing is working.
    Has anyone run into this before?
    TIA,
    Mary

    I use a lot of conditional text and insets but within a structured document. I have noticed that FrameMaker does not always do what one thinks it does. For example, copy a piece of unconditional text and paste it in the middle of conditional text and the pasted text remains unconditional. Each time you open the document, FrameMaker updates the text insets. In your case, it is updating a text inset that is on the whole unconditional. So, my guess is that it bringing it in as unconditional, much like the copy and paste example above. You might test this by creating a small document with the inset and over conditioning, saving it in the mif format, opening the mif file, and looking at how the conditioning is applied. Then save the Frame file, open it, save as mif, and repeat the above. If the containing file conditions DO hold up, then try removing the conditioning within the containing file and reapplying it; this may help to clear out some bad conditioning.
    I vaguely recall trying to conditionalize a text inset within the containing document and had problems. I cannot remember what exactly the problems were. My solution was to do the conditioning within the inset file itself. So, if the text inset is always to be conditionalized in the containing document, then do the conditioning within the document itself.

  • Problem with Lookout 6.5 tag sharing

    This is a WHOPPER, although a weird one...
    I have one grad student grabing shared variables from my Lookout server processes for inclusion in his LabVIEW implementation.
    After I upgraded the server's Lookout to 6.5, he reported problems reading values from one of the four processes running on my server.
    1.  Oddly enough, he had no problem displaying the tags in Max or in Activex Hypertrend within his LabVIEW executable, but he could not map the variables to his shared variables and thus he could not display them or include them in his Citadel.
    2.  Using Tag Monitor, all the values from the "troubled" process on my Lookout server, come up as "access denied".
    3.  Using Tag Monitor on the Lookout server (while all four processes were running in Lookout), I had the same results...."access denied".
    4.  All Lookout clients (both 6.5 and 6.2) have no problems accessing the troubled process tags both by expression and Lookout Hypertrend.
    The troubled process, has the last alphabetical process name and the last alphabetical file name.  All four processes are loaded using the startup settings in Lookout.ini.  Lookout runs as a service on WIndows 2008 x86 Hyper-V virtual machine.
    Because the processes are all production, I have not yet been able to mess with process names and loading order to possibly elaborate on the symptom.
    It is "maybe" and issue that Lookout 6.5 can't properly share out (via shared variable engine) variables from more than 3 processes at a time???
    Please advise ASAP.
    Ed

    The access denied error is more like a security issue. In Lookout Object Explorer, right click on process, and select Configure Network Security. If I give Everyone "No Access", or I just remove any permissions, I will get the access denied error in Tag Monitor.
    Actually Lookout has no limitation on the number of exported processes or tags. All the tags in each process are the tags in Logos Server. The LabVIEW access these tags by Logos protocol. If Lookout set the security, and the LabVIEW doesn't have enough access level, it will get access denied error. For example, lookout gives no access to the process.
    You can configure the Network Security for process, as well as any objects. By default, Everyone has Read&Write permission.
    Ryan Shi
    National Instruments

  • Conditional tags in RH9

    Can we add conditional tags to Image Maps? I right-clicked the image map but I dont get any option related to conditional tags. Thanks!

    Hello again
    Last night I tested and it does appear that you can apply tags to each of the regions. But not really using the RoboHelp GUI. What I did was to apply a tag to a word just above the image. Then I switched to HTML code view. I then copied the tag code that RoboHelp inserts just before the tagged information and I pasted it just before the map region area definition. Once you get that done, you copy the terminating tag code and paste that just after the map region definition.
    I then tested by generating the project and seeing if the area was removed. It was!
    One thing I did not extensively test was to see how the RoboHelp Design View will hold up. Sometimes it rather snarkily removes changes we make in HTML view.
    But you might give this a try!
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Tables and conditional tags

    I am having trouble displaying a table after I apply
    conditional tags. The error does not occur until after I apply tags
    to hide rows. It does not occur if I'm hiding just text within a
    cell. I am not applying the tags to the table, just content and
    then just a row of cells.
    I have tested this and if I'm tagging only the content within
    the cell the table maintains the width of the cell and table.
    However, when I apply tags to hide a whole row, the table and cells
    shrink to 1/4 of the size.
    I am using RH7. I have used tags in previous versions and
    have not run across this problem before.
    Does anyone have any idea why applying tags to hide a row is
    creating this issue?
    Cindy

    It seems like the conditional tags in tables does not work
    for me via WYSIWYG. When I selected the row, regardless of whether
    it was highlighting the cell from top left to lower right or from
    selecting the whole row from hovering on the left til the arrow
    appeared, the row tag (<TR>) was not not being picked up,
    only the cells (<TD>) therefore, only each individual cell
    was getting the conditional tag versus the whole row.
    So when the output was selected, the table didn't know what
    to do because it looked like it was condensing the row to
    0...meaning it saw a row with no columns. It got confused because
    it looked like I wanted the columns to be hidden in one view, but
    not the row.
    To solve this problem (at least in RH7) so that the table
    would not shrink to 1/4 of the stated width, I removed all the
    conditional tags, then in HTML applied the x-condition: Tag; to the
    row (<TR>), not to the cells (<TD>). The row is the
    only part of the code that has the conditional tag, the cells do
    not have the tag.
    Although tedious because my tables are long, it has worked
    perfectly on 3 of the tables I have done this to so far.
    Not sure why the WYISWYG view is not grabbing the rows, but
    at least I have a work around that I can live with.

  • Problem with maps on e72

    Hi everyone
    I've got a problem with maps on my E72.
    I've seen advert that Nokia is going to let everyone use maps for free on selected models.
    I was going to buy Sat Nav for whole Europe as I travel a lot and I was going to change my old N95. I thought I could do both in one new phone. Checked all the available models and chose E72. It said it;s got GPS and you don't need to use your network and spend fortune on internet connection. Got it from eBay for £270.
    I installed Ovi Maps from internet and the first thing that surprised me was it had 'only' 7-8MB.
    I thought that something was wrong, maps for 72 countries couldn't be 8MB big.
    After some time I managed to set my e72 up. Put my Maps on and...
    It takes loads of time to find GPS connection, but the worst thing is if I type lets say Paris it doesn't find anything. Map has wholes, like suddenly the roads end and there's nothing there.
    My question is what am I doing wrong? Do I need to download something more? I didn't have any maps on my phone when I bought it. Where can I find them?
    If someone could help I'd appreciate it.
    Thanks a lot.

    I forgot to mention that when I choose a destination it keeps saying Calculating route all the time. I waited about 15 minutesand it didn't calculate anything.

  • Problem with maps in Mavericks on iMac

    I have a problem with my Maps on Mavericks.
    I can open it just fine, no crash or whatever but the map itself just won't load, whatever mode it is on. Here is the screenshot of my Maps:
    As you can see, it just stays blank all the time.
    I'm  also running Parallels 9 and don't know if that has something to do with problem.

    Spent days trying various fixes, but this is the one that did it for me. Thanks!
    livetowin
    Re: Problem with maps in Mavericks on iMac 
    Dec 8, 2013 7:14 PM (in response to robin1943)
    Try this
    Since my date and time were incorrect and imessage was not working as well, I tried this
    1. Go to system preferences and click date and time
    2. Select date and time tab
    3. Uncheck "set date and time automatically" and manually enter the correct time
    4. Go to time zone tab and uncheck the box there too
    5. Go back to date and time tab and now check the box "set date and time automatically"
    6. Then check the box in time zone as well
    Now open maps and see if it works!

  • Error message when trying to delete a conditional tag.

    When attempting to delete a conditional tag, the following error occurred and then the program closed down:
    0x00ca1940/ 0x00000000
    Anyone come across this error. In addition, I have had similar errors occurred when resizing graphic frames. Once the error occurs, the program shuts down.

    Paul,
    It might help if you let us know which version and build of FM that
    this happened in.
    Was the tag still in use throughout the document when you tried to
    delete the condition? Did you get any prompts about deleting the
    condition?

  • INDESIGN GLITCH: Creating an XML file from Indesign Layout - Issue "Using more than one line of GREP" & "Map Styles to Tags"

    I currently create XML from InDesign CC by Mapping Style to Tags.
    - The Paragraph Styles are manually apply to text. These styles include multiple lines of GREP to automatically apply character styles.
    - I map some of the paragraph and character styles to prebuilt tags that have the same name "Map Styles to Tags".
    I have found through trouble-shooting that InDesign is unable to "Map Styles to Tags" for more than one line of GREP. I therefore have to chose which line of GREP to automatically tag and which lines to manually tag.
    Please can anyone help, I need to automatically map tags to at least two character styles in one paragraph via GREP.
    Thanks,

    OK. The best I can suggest is running a Find/Change like this:
    Which will actually apply the character style to the italics (and I would do the bold as well just to make certain). Then run the Map Styles to Tags again, using the Apply by Name. Which will tag the italics.
    I don't know why ID can map to the bold and not the italic character style. It either should do them both (as in this instance) or none at all as the character styles are not actually applied by the grep, just the styling from the character styles.
    Mike

  • Problem in mapping while using Do not Use SOAP Envelope

    Hi All,
    This is wrt my thread 'Removing and adding SOAP Envelope'
    I am currently working on SOAP-XI-Proxy Scenario.
    For some un avoiadable reason, I had to use the option 'DO not use SOAP Envelope' .So the SOAP Envelope came withen the payload and in the pipeline, I can see the payload prefixed by '<?xml version="1.0" ?>' .
    Now my payload looks like
    <?xml version="1.0" ?> ( no more the encoding="utf-8" notation is there)
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <Complaint_Request xmlns="urn:******createserviceticket">
      <CaseNo>12345</CaseNo>
      <CustomerNo>12345</CustomerNo>
      </Complaint_Request>
      </soapenv:Body>
      </soapenv:Envelope>
    To accomodate the change, I also changed my request structure as
      <Complaint_Request> (My new message Type)
        <Envelope>
         <Body>
           <Complaint_Request> (My previous message Type)
            <caseNo>
            <CustomerNo>
    But I am facing problem in mapping the values to the target structure (which is a flat structure),
    as the payload doesnot start with ' ns1: ' notation any more . Even XSLT mapping is not working.
    When I am pasting the payload in the Testing Mapping Editor, the Source Node are correctly
    formed, but all come in RED . But as the root node , ie 'ns0' is not there, the value
    from child nodes are not getting mapped to the target fields.
    Regards,
    Subhendu

    Hi Joel,
    SAP says, when we use the option 'DO Not Use SOAP Envelope', the payload also contains the SOAP
    Envelope. So it is obvious that the payload wont start with 'ns0' notation.
    So I am searching for a solution, when we use that option.
    Regards,
    Subhendu

  • Problem in mapping remoteobject on server side

    Hello all
    I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP.
    Here's my code....
    private function getAuthors(event:Event):void
         serviceRO = new RemoteObject();
         serviceRO.endpoint = "http://localhost/sampleproj/public/";
         serviceRO.destination = "zend";
         serviceRO.source = "MyService";
         serviceRO.addEventListener(FaultEvent.FAULT, faultListener);
         serviceRO.getData.addEventListener(ResultEvent.RESULT, resultListener);
    Now, here's the server side directory structure that works for me....
    webroot
    + sampleproj
    ++ public
    +++ index.php (index file for the webapp)
    +++ MyService.php (this is the service class)
    +++ VOAuthor.php (this is the Value Object class)
    Since the index file, and the service file and value object are all in same directory, it works.
    This is what DOESN'T work....
    webroot
    + sampleproj
    ++ services
    +++ MyService.php (this is the service class)
    ++ vos
    +++ VOAuthor.php (this is the Value Object class)
    ++ public
    +++ index.php (index file for the webapp)
    The error that I get is:
    Channel.Connect.Failed error
    Here's little of something that's going on in index.php
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    require_once ( realpath(dirname(__FILE__) . '/../services/MyService.php') );
    $server = new Zend_Amf_Server();
    $server->setClass("MyService"); // adding the class to AMF server
    $server->setClassMap("VOAuthor", "VOAuthor"); // mapping the ActionScript VO to PHP VO
    echo($server->handle());
    ?>
    My guess is that in ActionScript code I have to do something with RemoteObject's endpoint.
    Can anybody please help me out with this?
    Thanks and Regards
    ShiVik

    The problem turned out to be in the php code.
    Here's how I changed it
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    $server = new Zend_Amf_Server();
    // the following methods provide the lazy loading of services and value objects
    $server->addDirectory( realpath(dirname(__FILE__) . "/../services/") );
    $server->addDirectory( realpath(dirname(__FILE__) . "/../vos/") );
    echo($server->handle());
    ?>
    Earlier I wasn't taking into account the change of directories for service and value object files.
    Thanks and Regards
    ShiVik

Maybe you are looking for