Another mapping question

Hi,
I need help on mapping. I have a target field vbeln (with SAP delivery number), with this delivery number I need to get all delivery items. How can I get them?
Points will be rewarded.
Cheers.

HI Wong,
The usage of If-Else statements are possible, but if you have multiple line items then probably you need to use Advanced UDFs to recover all the line Items from the queue.
In UDF use below logic,
Cache parameter -- Queue
Header -- VBELN ---> A
LineITEM - VBELN ---> B
LineItem-details --> C
//Write your code
for(int i = 0; i<B.length; i++)
if(A[0]==B<i>)
result.addValue(C<i>);
Use above UDF for all line Item fields
Thanks
swarup

Similar Messages

  • Another newb question: multiple virtual servers

    Hi, I have yet another ignorant question. I have several unrelated web projects that I am working on, and I would like to be able to set up a virtual server for each one for testing purposes, such as: http://project1, http://project2, http://project3. Can someone tell me if this is doable, and if there are any tutorials/resources on this for someone who has 0 experience running a web serer? Sorry for being so ignorant!

    Yes, it is doable.
    You can setup virtual server either by IP or by name.
    If you have one IP, and want to set them up by name (ex. http://project1, http://project2, http://project3) you can do so easily with this type of configuration:
    <virtual-server>
        <name>mydomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.mydomain.com</host>
        <document-root>/www/domain</document-root>
      </virtual-server>
      <virtual-server>
        <name>myotherdomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.myotherdomain.com</host>
        <document-root>/www/myotherdomain</document-root>
      </virtual-server>
    ....The important part here is that
    a) all virtual servers share the same HTTP listener
    b) which virtual server serves the request depends on the $HOST request header send by the client. Sun Web Server does the matching for you. It will match $HOST vs. the virtual server's host attribute. Depending on which site you connect to the right virtual server will be used.
    c) if the $HOST request header does not match any of the virtual servers, then the default virtual server defined in the HTTP listener will be used.
    To create a virtual server, use the Admin GUI, access the configuration, and then add new virtual server. Or use the following CLI command.
    wadm> create-virtual-server --config=myconfig --http-listener-name=http-listener-1 --document-root=/www/docs/myserver.com --host-pattern=myserver.com --log-file=../logs/myserver.com-error_logs myserverHost pattern will be used for matching. Some of this elements might be optional.
    Hope that helps. And keep the questions coming :D
    Edit: Also check the documentation
    Using Virtual Servers in SJS Web Server 7.0

  • CRMXIF_REL_SAVE_M01 - Mapping Question

    Hello All,
    I have a mapping question, hope some one can answer my question. Please see the link first and the see my question
    http://www.flickr.com/photos/8764045@N06/4265246260/sizes/o/
    I'm mapping the CRM IDOC to the JDBC Call. I have small problem here. All the target fields are Mandatory 1..1 .
    I will explain with an example:
    I have field from source E102BUS_EI_STRUC_TEL_DATA/COUNTRY mapped to target field.
    I used Map With Default so that even if the values are not there frm the source the target field will be mapped with blank.
    But the problem is the parent node for E102BUS_EI_STRUC_TEL_DATA is E102BUS_EI_BUPA_TELEPHONE is 0.999999 , so sometimes that segment is not coming. In this case Map with Default won't work. Map with Default willl work only if the Parent node is present.
    If you ask me to do Exists node function on E102BUS_EI_BUPA_TELEPHONE and then apply Map with Default, then even this won't work.
    Apologize if I confused you guys. Please let me know if you need more clarification.
    Thanks!
    Raj.

    Hi Raj,
    Try to do a mapping like this
    E102BUS_EI_STRUC_TEL_DATA(context E102S_EI_BUPA_TELEPHONE_CON)--mapwithdefault-->then
    E102BUS_EI_BUPA_TELEPHONE-->exists------------------------------------------------------------------>if---->splitbyValue
    let us say this output (the output of splitbyvalue) as 'VALUE'
    VALUE-----------------------------------------------> then
    VALUE|-->count--->greater----------------------->if----->targetField                            
          Constant(0)---->              Constant(blank)-->else
    Regards
    Suraj

  • Another simple questions

    Hello friends:
    Another simple question: I need to learn things about Oracle on my desktop.
    My machine runs Windows 98. Oracle has some desktop product of its Database Line?
    For example: Oracle Personal?
    And Oracle Lite? What's the main difference between Oracle Personal and
    Oracle Lite?
    Thank You
    Gracias
    Ing. Pablo Romero
    CORDOBA ARGENTINA

    1. I didn't know the answer to your first question, but I googled it and it says the item is the in-call audio boost.
    http://forums.crackberry.com/f71/flag-icon-47659/
    2. isn't this setting determined by the carrier? So it's not a setting in the phone, but when you call in to your voicemail you can change your options?

  • A top difficulty mapping question

    Hello
    dose anyone can give solution for this mapping question?
    soruce :
    <header>header</header>
    <item>
         <A>a1</A>
         <B>b1</B>
         <C>c1</C>
    </item>
    <item>
         <A>a2</A>
         <B>b2</B>
         <C>c2</C>
    </item>
    <item>
         <A>a3</A>
         <B>b3</B>
         <C>c3</C>
    </item>
    target:
    <header>header</header>
    <item>
         <A>a1,a2,a3  .....</A>
         <B>b1,b2,b3  .....</B>
         <C>c1,c2,c3  .....</C>
    </item>
    The numbers of item is not fixed,it is unbounded.
    so the target line length is not fixed at design time
    welcome any hits,
    Thanks !!
    BR,
    Jeffrey

    Hi,
    Use cache parameter as Context.
    public void add_element(String[] a,ResultList result,Container container)
      //write your code here
    String c = "";
    int i;
    for(i= 0 ; i < a.length; i++)
             c = c + a<i> ;
             if(i != (a.length-1))
                  c = c + ",";
    result.addValue(c);
    A(src)-->removecontext->UDF--->A(tgt)
    B(src)--->removecontext->UDF--->B(tgt)
    C(src)--->removecontext->UDF--->C(tgt)

  • Another XI Mapping Question

    In drag and drop (simple) mapping, one source results in 3 target messages that are all the same. What is the problem?

    Hi Tariq,
       In target look the type of field while you design in DT. so you can see the Error.
    Regd's
    Hari

  • Another Google Maps question

    When planning a route using google maps on my iphone it only lets me input the start and end points, is there any way of creating a route via multiple points?
    Cheers, Toby

    You can plan a route using google maps on a computer, with multi points, and sent it via the email link which is top of map to your phone.
    From the email on the phone , click on the link it should open up google app with the route.
    Also you get a list of directions in the email.
    Google map app is not that great, same for google maps in safari on the iphone.
    mapquest is no good for people in the uk

  • Mapping - Questions

    Hi,
       I have few basic questions regarding mappings.
       1)  I think we can do everything by using Graphical Mapping. Then what is the purpose for Java, XSLT and ABAP mapping? Please give me an example for this...
       2) Which mapping will give better performance? Is there any comparison document available in SDN?
      Appreciate your help!
    Thanks,
    Vivek

    hi,
    Mapping Techniques
    XI provides 3 standard ways of interface mapping between source and target.
    Graphical mapping
    Java Mapping
    XSLT Mapping
    Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are
    ABAP mapping
    XSLT mapping with ABAP Extensions
    Graphical Mapping
    Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception - User defined functions). But sometimes with graphical mapping it is difficult to produce required output. For example ... text/html output, namespace change, sorting or grouping of records etc.
    ABAP Mapping
    A person comfortable with Object Oriented ABAP can go for ABAP mapping instead.
    Java Mapping
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
    XSLT Mapping
    One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.
    check these links too..
    Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/b78d406b305537e10000000a1550b0/frameset.htm
    For Java Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    For XSLT Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    Error handling in XSLT Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/8a/7672f7d7e444439fd7024f806221a4/frameset.htm
    You can also refer some How to guides:
    XI New Mapping Features article,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%203.0%20new%20mapping%20features%20article.evn
    Generic XSLT Mapping and Sample Code,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%20code%20samples/generic%20xslt%20mapping%20and%20sample%20code.pdf
    How to use ABAP-MApping in XI3.0,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    Thanks,
    Vijaya.

  • Mapping question using @OneToOne @PrimaryKeyJoinColumn

    I am trying to create a simple web application to maintain a ContractAssignment table.
    Created an EJB from this table with @Id of contractNumber.
    public class ContractAssignment .....
    @Id
    @Column(name = "CONTRACT_NUMBER",
    nullable = false,updatable=false)
    private String contractNumber;
    @OneToOne @PrimaryKeyJoinColumn
    private Contract contractInfo;
    I need contract info that exists in multiple tables so I created a view called Contract.
    Created an EJB for this view with @Id of contractNumber.
    public class Contract ......
    @Id
    @Column(name="CONTRACT_NUMBER", nullable = false,updatable=false)
    private String contractNumber;
    I will only be maintaining the ContractAssignment EJB.
    The Contract EJB will NOT be maintained by this app.
    It will only be used to obtain valid contract numbers that can be used in ContractAssignment maintenance.
    It will also be used to display contract information when maintaining the ContractAssignment.
    Is this the right way to map the relationship?
    Another question. I've created a search page to look up ContractAssignments.
    For some reason, the SQL generated is joining the table to itself.
    Not sure if this is because of incorrect mapping (described above).
    SQL that was generated:
    SELECT t0.CONTRACT_NUMBER, t0.DESCRIPTION, t0.CONTRACT_START_DATE, t0.IMS_STATUS
    FROM CONTRACT_ASSIGNMENT t0,
    CONTRACT_ASSIGNMENT t1
    WHERE (CONTRACT_NUMBER = ?)
         bind => [1234]
    from the following OQL:
    select o from ContractUserAssignment o where ocontractNumber like :contractNumber
    What is causing the incorrect join?
    Thank you for any help.

    All - Thanks much.. Here is my requirement that is no solved by regular mapping
    <Root>
    <Recordset>
      <Ordheader>
        <ord>
        <ord_type>
      </Ordheader>
       <Ord_line>
         <ord>
         <Linnum>
       </Ord_line>
      </Recordset>
    <Recordset>
      <Ordheader>
        <ord>
        <ord_type>
      </Ordheader>
       <Ord_line>
         <ord>
         <Linnum>
       </Ord_line>
    </Recordset>
    <Root>
    As you see above, each recordset has order transaction. One Root message can contain multiple of these. So, when I map to the IDOC, I want to filter out any ord_type <> XX.
    If I use regular graphical map, it only looks at first recordset and accepts all or rejects all.
    I need to use UDF. In the UDF, what comes in as input ? Resultset is output -correct ? Now how do I usse graphical mapping with UDF to generate the correct target info

  • Another IISPROXY question (multiple SAP systems)

    Hi!
    We've got a challenge. We have SAP EP (6.0 SP12), visible from outside
    (via  MS ISA server publishing). Also we have several SAP systems (BW,
    ERP2004, Solution Manager), that we want to make available from web.
    We installed IIS proxy module on portal server machine. It's working.
    I even maneged to publish some test reports and WebGUI of BW server.
    But when I try to publish in a simmilar way other system, I fall into
    problem.
    When you call '/sap/bw/' for example, SAP system after authentication
    converts it to something like '/sap(lsdkSDF435ssdgf)/bw'. As far as I
    understand between "(" and ")" there is some hash of password or something.
    The problem is, that it's true and the same for all SAP systems.
    So if I put in iisproxy.xml following strings:
    <mapping name="bw">
    <source>
         <protocol>http</protocol>
         <prefix>/sap/bw/</prefix>
    </source>
    <source>
         <protocol>http</protocol>
         <prefix>/sap/bw</prefix>
    </source>
    <source>
         <protocol>http</protocol>
         <prefix>/sap/public/bc/its/mimes/</prefix>
    </source>
    <source>
         <protocol>http</protocol>
         <prefix>/sap(</prefix>
    </source>
    <target>
            <protocol>http</protocol>
         <host>bw-server.ourdomain.local</host>
         <port>8000</port>
    </target>
    <compress-types>text/html, text/plain</compress-types>
    </mapping>
    it's working for BW server. We able to see reports and webGUI.
    If I try to add following strings for ERP2004 server:
    <mapping name="erp">
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/bc/gui/sap/</prefix>
              <new-prefix>/sap/bc/gui/sap/</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/bc/gui/sap</prefix>
              <new-prefix>/sap/bc/gui/sap</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/bw/BEx</prefix>
              <new-prefix>/sap/bw/BEx</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/bw/BEx/</prefix>
              <new-prefix>/sap/bw/BEx/</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/public/bc/its/mimes/</prefix>
              <new-prefix>/sap/public/bc/its/mimes/</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/public/bc/ur/Design2002/</prefix>
              <new-prefix>/sap/public/bc/ur/Design2002/</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/erp/sap/bc/public/systemlogin/</prefix>
              <new-prefix>/sap/bc/public/systemlogin/</new-prefix>
         </source>
         <source>
              <protocol>http</protocol>
              <prefix>/sap(</prefix>
         </source>
         <target>
              <protocol>http</protocol>
              <host>erp2004-server.ourdomain.local</host>
              <port>8000</port>
         </target>
    <compress-types>text/html, text/plain</compress-types>
    </mapping>
    and try to open webGUI, it redirects to BW server.
    A think that's because double '/sap(' prefixes.
    How can we avoid that?
    Same situation for SolMan.
    In portal's 'System Landscape' setup is:
    BW system
      ITS
        ITS description: CLIxxxSID
        ITS host name: portal-server.ourdomain.ru (this name in accessible from internet, it's a host where portal and IISPROXY are installed)
        ITS path: /sap/bc/gui/sap/its/webgui
    ERP2004 system
      ITS
        ITS description: CLIxxxSID
        ITS host name: portal-server.ourdomain.ru
        ITS path: /erp/sap/bc/gui/sap/its/ (I added /erp/ trying to distinguish request to ERP2004 server), without it it's also not working)
    In intranet (if we do not use IISPROXY) everything is working. Of course with other system definitions in System Landscape.
    Do I need to provide more details? Or my question is clear?
    Thanks in advance for help and support!
    Regards,
    DK
    P.S. Actually I opened an OSS message on this topic (with "high" priority), but no SAP activities since September, 6th :o(

    Hi Jayesh!
    Seems it's not working :o( And worst thing, that I do not know why :o(
    What i've done.
    1) Created an alias '/erp/sap/', that points to '/default_host/sap/bc/gui/sap/its/webgui'.
    2) In System Landscape edited system definition (of an ERP2004 system), so that ITS path is now '/erp/sap/' and ITS host 'ourportal.ourdomain.ru'.
    3) Created an 'SAP transaction iView' that should launch SU01 transaction in ERP2004 system.
    Now when I try to open it from page, portal tries to connect me to our BW server.
    Seems that alias are working in some other way :o(
    Here's what I can see in IISPROXY log:
    11:57:29 Filter J2EE --> GET /erp/sap/
    11:57:29   7616 Proxy    GET http://erp2004.ourdomain.ru:8000/erp/sap/
    11:57:29   7616 Proxy    HTTP/1.1 200 OK | queued for 0.000 sec, processed in 0.078 sec.
    11:57:29   7616 Proxy    | GET http://erp2004.ourdomain.ru:8000/erp/sap/ | HTTP/1.1 200 OK | 0.000 | 0.078
    11:59:41 Filter J2EE --> GET /sap(dslkknvDSAFSADVFDSVaslkdv)/bc/gui/sap/its/webgui?okcode=/nSU01&DisconnectOnClose=0&sap-client=200&sap-language=en&sap-accessibility=
    11:59:41   6952 Proxy    GET http://bw.ourdomain.local:8000/sap(dslkknvDSAFSADVFDSVaslkdv)/bc/gui/sap/its/webgui
    So it's still tries to open '/sap(dslkknvDSAFSADVFDSVaslkdv)/bc/gui/sap/its/webgui' instead of /erp/sap(
    dslkknvDSAFSADVFDSVaslkdv)/
    Thanks for help and support!
    Regards,
    DK

  • Many-to-many mapping question

    Hi,
    I'm working with two classes Car and Customer. The Car class has a Vector of Customers and the Customer class has a Vector of Car. Both are related by a many to many mapping.
    I have noticed that I have to set one of the vector to read only to avoid the error message "More than one writable many-to-many mapping can not use the same relation table" in the mapping workbench.
    I can understand that but is there a way to work around, I mean to be able to add a car to a customer and add a customer to a car with the both vectors?
    Is there something to do with the cache?
    I use Vector for the collection or Map class, have I to do otherwise?

    Hello Vladislav, I understand your first question in this thread, but I'm not sure I follow the rest, so let me respond to your first post:
    "I have noticed that I have to set one of the vector to read only to avoid the error message "More than one writable many-to-many mapping can not use the same relation table" in the mapping workbench.
    I can understand that but is there a way to work around, I mean to be able to add a car to a customer and add a customer to a car with the both vectors?"
    The issue here is that with a Many to Many mapping the mapping is responsible for writing to the association table. So, you have a "CAR_CUST" association table. Imagine you add a Car "101" to a customer "501" and the requisite customer "501" to that car "101" in your object model. Then the association table should only be updated once, with an entry of "101, 501". But since the M-M is mapped in both directions, you need to tell TopLink which of these to consider as the "master" when updating the database.
    If you didn't make one of the M-M mappings "read only", then TopLink would insert "101, 501" twice in the association table, and then at a later date you would see that the customer 501 had two 101 cars!
    We do have a feature that allows for TopLink to maintain bidirectional relationships such that if you add or remove a target from one relationship, TopLink will automatically add/remove it from the opposite direction. In my opinion this is lazy programming! A good Java developer should insist on keeping his model up to date on his own. This feature was added because it's part of the EJB spec, not necessarily because it's a good idea ;)
    - Don
    Is there something to do with the cache?
    I use Vector for the collection or Map class, have I to do otherwise?

  • Mapping question

    Hello,
    I have a rather simple question regarding a mapping.
    Lets say my input message is as following:
    <mes1>
       <seg1>
          <name1>Peter</name1>
          <street1>HighCrt</street1>
       </seg1>
       <seg2>
          <name2>Vlad</name2>
          <sub2>Trickst</sub2>
       </seg2>
       <seg2>
          <name2>Rinaldo</name2>
          <sub2>fiave</sub2>
       </seg2>
    </mes1>
    My output should be:
    <out>
       <put>
          <name>Peter</name>
          <name>Vlad</name>
          <name>Rinaldo</name>
       </put>
    </out>
    So my output field "name" should created in case I have a "name1" field in the source message and additionally it should be created for every "seg2" element that is present in the source message and it should be filled with the value of "name2".
    How can I in the mapping trigger that the "name" element of the output message will be generated for each of the two described elements of the source message?
    Best Regards,
    Peter

    Hi,
    Could be possible using user defined function.
    Create a user defined Function with  cache = context
    public void createNodeName(String[] a,String[] b,ResultList result,Container container){
    if ( a.length > 0 )
      result.addValue ( a[0] ) ;
    for ( int i = 0; i < b.length; i++ )
         result.addValue ( b<i> );
    in Mapping use
    1. name1 as first argument
    2. name2 with removeContext as second argument

  • ABAP Mapping Questions

    Hi,
    I am trying to get my head around ABAP mappings and have a few questions.
    In the below code sample which I find in every example and blog it talks about specific steps -
    *initialize iXML, * create iXML factory object, * create streamfactory object, * create input stream object, * initialize the input xml document, * parse the input xml document
    In these steps the code is always exactly the same so my question is are these just standard steps that are implemented every single time an abap mapping is used and hence only standard lines that never have to be changed or will they be different depending on the mapping.
    I am trying to work out where I will begin my coding.
    So would somebody be so kind as to give me a brief explanation of the above mentioned steps.
    Thank you
    METHOD if_mapping~execute.
    * initialize iXML
      TYPE-POOLS: ixml.
      CLASS cl_ixml DEFINITION LOAD.
    * create iXML factory object
      DATA: ixmlfactory TYPE REF TO if_ixml.
      ixmlfactory = cl_ixml=>create( ).
    * create streamfactory object
      DATA: streamfactory TYPE REF TO
      if_ixml_stream_factory.
      streamfactory = ixmlfactory->create_stream_factory( ).
    * create input stream object
      DATA: istream TYPE REF TO if_ixml_istream.
      istream = streamfactory->create_istream_xstring( source ).
    * initialize the input xml document
      DATA: idocument TYPE REF TO if_ixml_document.
      idocument = ixmlfactory->create_document( ).
    * parse the input xml document
      DATA: iparser TYPE REF TO if_ixml_parser.
      iparser = ixmlfactory->create_parser(
      stream_factory = streamfactory
      istream = istream
      document = idocument ).
      iparser->parse( ).

    Hi,
         The above lines you mentioned deal with initialization of the iXML parser for parsing through the XML payload, so they would remain the same for all mapping where you are parsing the input payload.
    The coding for you specific mapping will begin after this, something like :
    * Implements the DOM generating interface to the parser
      iparser->parse( ).
      emp_node_collection = idocument->get_elements_by_tag_name_ns( name = 'Order' ).
      emp_node_length = emp_node_collection->get_length( ).
      emp_node_iterator = emp_node_collection->create_iterator( ).
    where you start reading the xml node values.
    Hope this helps.
    Regards

  • 856 xslt Mapping question ...

    I was asked in the jdev forum to post this here as well :)
    Ramesh,
    I hate to keep bugging everyone but i have another question.
    I am trying to transform data into an X-12 856 document (outbound). I have most of the looping and everything working. My only issue is how do you handle the parent child relationships in the HL01/02 ? Since xpath does not let you increment a variable how can you keep the count of the HL loops let alone tell the HL02 (parent's HL01) We are using a SOPI scenario and the items need to be subordinate to the appopriate pack level.
    I really appreciate all the time and awnsers you have given me so far :)
    Thank you in advance,
    Jaden

    Hi,
    There is a way to handle x=x+1 in XSLT....here it is..assume u want to sum all the elements of an arraylist in an XML...create a temporary variable(TransCountSumVar) and do a foreach and group them in one more variable (Transactions_Count2)
    <xsl:variable name="TransCountSumVar">
                  <xsl:for-each select="/ns1:TotalDate/ns1:price">
                                   <Transactions_Count2>
                      <xsl:value-of select="number(ns1:price)"/>
                                  </Transactions_Count2>
                  </xsl:for-each>
    </xsl:variable>now get the sum of those in Transactions_Count2 as follows
    <xsl:variable name="TComp" select="sum(exsl:node-set($TransCountSumVar)/Transactions_Count2)"/>where Tcomp is another variable with holds the final sum and be sure to the the namespace xmlns:exsl="http://exslt.org/common" in XSL at name space declarations.

  • One to one mapping question -- can I just map a lookup field for queries?

    I have a table with a state code. I'd like to have a "virtual lookup" on the java class to a region table. I.e., this java class "studies" has a state code. I can map a one-to-one to the descriptor class that has the ref table, but I'd like to have a property in the java class pre-mapped to the "region" field in this lookup so for querying i can just use:
    ReadAllQuery q = new ReadAllQuery();
    q.setReferenceClass(study.class);
    q.setSelectionCriteria(new ExpressionBuilder().get("Region").equal(Region));
    to get all the studies for a particular region.
    am I going about this wrong? or do I have to get the reference table descriptor fromt he one to one map and do something different?

    well,on the way home last nite, I realized I'd had a complete brain fart. I've done this before. I just set up a 1-1 map between descriptors and then built the query like this:
    q.setSelectionCriteria(new ExpressionBuilder().get("refFPO").get("FPO_NO").equal(FPO));
    You can get the pointer to the "refFPO" which is the the descriptor mapped 1-1, then appended the column you wish to get.
    I still went ahead and amended my class to include a read-only, non-toplink mapped attribute "FPO" which just gets the reference variable pointing to "refFPO.getFPO_NO();
    I answered my own question just in case anyone wondered ....

Maybe you are looking for

  • Why do permissions always need repair?

    Whenever I go to disk utility and ask it to verify my computer's permissions, it always identifies a series of files where permissions need repair.  Why is this?

  • Profit/Cost center best practice

    Hi, I'm looking for some best practice document on how to setup properly profit/cost centers for a manufacturing company. I'm thinking at a very simple manufacturing company which purchases some raw materials and manufactures and sells some finished

  • Set default or control calendar order for overlapping events

    I use my calendar extensively and have many events scheduled at the same time; however, ical does not display these in a consistent way, which would be very helpful. Here's what I mean I would like to have each calendar stacked on top of the others (

  • Keep music playing in the browser while switching to a new tab.

    If I'm streaming music off a website in the browser using Pandora or some other service I cannot keep the music playing if I want to make a new tab and browse another site. The music will continue playing if I keep the browser in the background but I

  • Smaller previews after adjustments

    Im using a Nikon D80, and shoot in RAW. Apparently the D80 RAW's include preview JPEGs, because when I'm in full screen and use Quick preview and then use z to zoom 100% in I see an image slightly larger then my screen (1920*1200). Which is very nice