M-N mappings with attributes or batch fetch

There is one very common design case of M-N relationship with attributes.
Difference is that M-N is implemented by another persistent class with bunch
of attributes rather then by internal O/R mapper means.
For example we have
a Member who can be assigned to an OrgUnit (M-N) but assignment should carry
additional info Role, Date of assignment etc.
Member----Position----OrgUnit
In absence of specialized mapping for this case (TopLink, ObjectFrontier and
some other O/R frameworks have it) it is common practise to use two 1-N
Member----Position + OrgUnit----Position
The problem is performance of course - getting all positions for a
particular Member is fast (one SQL statement) but getting OrgUnit for each
fetched position is expensive (SQL call per fetched position if OrgUnit has
not been fetched yet).
It would be good to either define M-N mapping with attributes concept or at
least provide O/R mapper with a hint to do batch load of OrgUnits when
reading Positions for a Member (and vice versa Members when loading
Positions for an OrgUnit) by joining OrgUnit table with Position table and
loading it together

Hi Abhijeet,
i think i should have mentioned this earlier. My Employee node is inside another node.  So, the actual input structure of the WS is this:
InputValues (1...1)
   Employees (0..n)
      FirstName: String
      LastName: String
This scenario works OK in BPM when mapping a 0..n node using deep copy as Jocelyn explained, but I still doesn't work if I want to pass an empty (not null) Employees array.
If I go to the WS Navigator and run this WS with the following parameters, it runs ok (I get an output message saying no employee was selected, which is how it should work):
InputValues -  "Is null" checkbox not activated.
   Employees - "Skip" checkbox not activated
      FirstName - "Skip" checkbox activated
      LastName - "Skip" checkbox activated
However, if instead of activating the checkbox of, say, "FirstName", I enter a "" value, I get an error from the WS saying that's not a vaild first name, which is also how it should work.
In java code, I would just pass an empty InputValues object to the WS, but I'm not sure how to do this in a BPM without it being considered null, and without having to set on of its String-child values to "".
Do you know how to achieve this?

Similar Messages

  • Performance problem with attribute dimensions - please help!

    Hi everybody,
    I run OBIEE reports on top of EssBase 9.3 ASO cube.
    My cube has 8 regular dimensions and 10 attribute dimensions.
    I am running a query based on:
    - 3 dimensions (TIME, BATCH, MODEL),
    - 2 attributes of BATCH ( SHIFT, SHIFT_STATUS )
    - and one measure.
    The query runs 3 minutes (!) and returns 190 rows.
    If I remove the attributes, the query runs 4 seconds for the same number of result rows.
    My MDX:
    With
    set [TIME6] as 'Filter([TIME].Generations(6).members,
    ([TIME].currentmember.MEMBER_ALIAS = "2009/01" OR [TIME].currentmember.MEMBER_Name = "2009/01"))'
    set [TIME7] as 'Generate([TIME6], Descendants([TIME].currentmember, [TIME].Generations(7), leaves))'
    set [BATCHES] as '[DIM_BATCH_HEADERS].Generations(5).members'
    set [SHIFT2] as '[SHIFT].Generations(2).members'
    set [SHIFT_STATUS2] as '[SHIFT_STATUS].Generations(2).members'
    set [MODEL2] as 'Filter([MODEL].Generations(2).members, ([MODEL].currentmember.MEMBER_ALIAS = "SNF_PCK" OR [MODEL].currentmember.MEMBER_Name = "SNF_PCK"))'
    select
    {[Accounts].[PROD_ACTUAL_QTY_KG]
    } on columns,
    NON EMPTY
    {crossjoin ({[TIME7]},
    crossjoin ({[BATCHES]},
    crossjoin ({[SHIFT2]},
    crossjoin ({[SHIFT_STATUS2]},{[MODEL2]}))))}
    properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [COP_MAAD.Cop_Maad]
    Thank you in advance,
    Alex
    Edited by: AM_1 on Feb 26, 2009 6:35 AM
    Edited by: AM_1 on Feb 26, 2009 7:03 AM

    Hi Glenn,
    I though that the reason might be the crossjoin with a very large set. The main dimension in this query has ~40000 members.
    Is there in EssBase MDX some analog for NONEMPTYCROSSJOIN() function that exists in MSAS?
    As these two attributes belong to the dimension that is used in the query, for every member of the dimension, there is one and only one member of each attribute. Therefore I though that Essbase should "know" how to behave.
    Thanks for an idea. I will try to increase the space for aggregation - hope this will help...
    Best Regards,
    Alex

  • What does AM do with Attribute Assertions

    Hi,
    I am sending Auth statement and atribute statement assertion to AM. AM is accepting the Auth assertion and creating the session, but I am not sure what it does it with Attribute assertion? I want to pass these attributes to next AM. How can I do this. I am looking to fetch these attribues in attributemapper class implementation but not sure how to fetch them from original assertion so that I can pass it on..Does AM store it in SSO Token or what. How can I get those original attribute here.
    Thanks
    Deepak

    Got the solution...AM sets these attributes in SSOToken..You can get those by using getProperty() method..make sure that subject of AuthStatement and attribute statement are same otherwise the attribute will not get stored in SSO Token...I modified subject of attribute statement ..so that it matches with that of auth statement nad later in attribute mapper class fetched those attributes form SSO Token and added it to list..so that these attributes can get transferred to next AM.
    Thanks
    Deepak

  • Batch fetch optimization for lazy collections

    Hi,
    I feel like this question must have been asked by somebody already but couldn't find any answers in the forum.
    We're trying to evaluate migrating from Hibernate to KODO JDO. One feature we use extensively from Hibernate is the "batch fetch optimization for lazy collections".
    For instance, there's a class User with collection "Set<String> permissions". In the DB, there're tables USER(id, name, etc) and USER_PERMISSIONS(user_id, permission) with one-to-many relationship b/w them.
    Suppose the code is the following:
    query = ....;
    List<User> users = (List<User>) query.execute();
    for (User user : users) {
    println("User: " + user.getName());
    println("Permissions: " + user.getPermissions());
    I've setup EagerFetchMode to parallel. For field "permissions" I had to specify default-fetch-group="true" b/c I wanted this to happen lazily. When I look through the logs, I see that permissions SQL query is executed for each user.
    With Hibernate we were to setup mapping the way that permissions are not fetched at first, but when they are requested for the first user (user.getPermissions()) they are automatically selected for several users in one query using SQL IN clause (similar to the parallel mode).
    Is this possible to recreate the same in KODO JDO? (JPA?) If it is, this would greatly simplify migration. Please notice, that we can't use explicit fetch groups for this, b/c we don't know ahead which collection can be navigated (in the real life User class have many relationships).
    thanks in advance,
    Dimitry

    Kodo doesn't have a direct analog for that behavior. The typical way to solve that problem is to keep the field out of the default fetch group, and then explicitly include the desired field in the current fetch group at runtime. In pure JDO, you can do this by creating a separate fetch group that includes the relationship field, and designating that the query should use that fetch group:
    <pre>
    query = ...;
    query.getFetchPlan().addGroup("relationshipGroup");
    List<User> users = (List<User>) query.execute();
    </pre>
    Kodo has JDO extensions that allow you to do this a bit more easily:
    <pre>
    query = ...;
    ((kodo.jdo.KodoFetchPlan) query.getFetchPlan()).addField("com.example.User.permissions");
    List<User> users = (List<User>) query.execute();
    </pre>
    Finally, you can do this with Kodo's JPA extensions like so:
    <pre>
    import org.apache.openjpa.persistence.OpenJPAQuery;
    query = (OpenJPAQuery) ...;
    query.getFetchPlan().addField("com.example.User.permissions");
    List<User> users = (List<User>) query.getResultList();
    </pre>
    Note that in all cases, you could also make this change to the current PersistenceManager / EntityManager's fetch plan instead, to make the change happen for the duration of the use of that manager. In that environment, the change would need to happen before the query was created.
    (And no, I have no idea why the edit box has a 'pre' button but does not seem to do anything with the resulting tags.)
    -Patrick

  • Attributes of Batch

    Can u please explain the <b>usage of attributes in batch management</b> with an example

    Hi Ramana,
    Attributes are nothing but characteristics defined for those batches. We can create characteristics based on Expiry date, or colour of material, quality of material etc. This helps up to do batch determination. We can pick up material that are nearer to expire from storage location based on the batch determination. Similarly we can pick up material based on whatever characters that we define. Hope this helps.
    regards
    Anand.C

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • Issue with working on a webservice that has  xml elements with attributes

    This is  a branchout of Thread: Some more complex sample of invokin WS needed_
    We are working on a project that involves a outbound SALT Web service call that includes complex elements with attributes..We are looking for options of how to use FML API's to pass these attribute values from the application code.
    We opened a ticket with oracle where we were suggested to frame the entire xml and pass the xml using the FML32 of the complex element. But when we framed the xml for Service and put the entire XML which includes the attributes using the FML ID of Service.
    Please find a sample Schema and XML similar to the one we are working on...its associated code
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="Service" type="Service_Type" nillable="true">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="Service_Type">
              <xs:sequence>
                   <xs:element name="DateTime" type="xs:dateTime" nillable="true">
                   </xs:element>
                   <xs:element name="UUID" nillable="true">
                   </xs:element>
                   <xs:element name="Status" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded">
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="Version" type="xs:string" use="required">
              </xs:attribute>
              <xs:attribute name="Name" type="xs:string" use="required">
              </xs:attribute>
         </xs:complexType>
    </xs:schema>
    The sample XML is :
    ___<?xml version="1.0" encoding="UTF-8"?>___
    ___<!--Sample XML file generated by XMLSpy v2010 rel. 2 (http://www.altova.com)-->___
    ___<Service Name="TestService" Version="1.1" xsi:noNamespaceSchemaLocation="Untitled6.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">___
    ___     <DateTime>2001-12-17T09:30:47Z</DateTime>___
    ___     <UUID>text</UUID>___
    ___</Service>___
    wsdlcvt generated the mif file with Service as a FML32 type and all its child elements as "mbstring". We tried to leave as it is and we also tried to replace all the child elements and just had a mif entry for "Service" as a mbstring neither produced a different output...Tried to dump using Ferror32 which did not dump any..._
    The sample C/C++ code as per suggestions were to do the following...
    _1) Have a string with the entire XML for Service_
    xmldata="<Service Name=\"TestService"\ Version="1.1\"_ xsi:noNamespaceSchemaLocation=\"Untitled6.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">_
    _     <DateTime>2001-12-17T09:30:47Z</DateTime>_
    _     <UUID>text</UUID>_
    _</Service>";_
    _2) Use Fmbpack32 to create a mbstring data_
    _memcpy(reqmbptr, (char*)xmldata.data(),xmldata.length());_
    _len=xmldata.length();_
    _Fmbpack32(mbcodeName,reqmbptr,len, packdata,(FLDLEN32 *)&packedlen,0);_
    userlog("Size of packedlen is %d",packedlen);
    3) Add the packed data to the output buffer
    Fadd32(fmlbuffer,Service, packdata,packedlen );
    But we do not see the Service tag populated in the GWWS outbound request.Everything else makes it....any help on how to move ahead would be appreciated...

    It seems you switch to the 10gR3 GA and now the whole XML data is mapped to FLD_MBSTRING.
    I will forward my sample to you by mail, but this sample is not offical sample, it is just QA test case. You can refere it and check what's the difference.
    Please let me know your mail address.
    Regards,
    Xu he

  • XML Schema Collection (SQL Server 2012): Complex Schema Collection with Attribute - Should xs or xsd be used in the coding?

    Hi all,
    I just got a copy of the book "Pro SQL Server 2008 XML" written by Michael Coles (published by Apress) and try to learn the XML Schema Collection in my SQL Server 2012 Management Studio (SSMS2012). I studied Chapter 4 XML Collection of the book
    and executed the following code of Listing 4-8 Complex Schema with Attribute:
    -- Pro SQL Server 2008 XML by Michael Coles (Apress)
    -- Listing04-08.sql Complex XML Schema with Attribute
    -- shcColes04-08.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress
    -- 6 April 2015 8:00 PM
    CREATE XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_attribute
    AS
    N'<?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="item">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" />
    <xs:element name="color" />
    <xs:group ref="id-price" />
    <xs:group ref="size-group" />
    </xs:sequence>
    <xs:attribute name="id" />
    <xs:attribute name="number" />
    </xs:complexType>
    </xs:element>
    <xs:group name="id-price">
    <xs:choice>
    <xs:element name="list-price" />
    <xs:element name="standard-cost" />
    </xs:choice>
    </xs:group>
    <xs:group name="size-group">
    <xs:sequence>
    <xs:element name="size" />
    <xs:element name="unit-of-measure" />
    </xs:sequence>
    </xs:group>
    </xs:schema>';
    GO
    DECLARE @x XML (dbo.ComplexTestSchemaCollection_attribute);
    SET @x = N'<?xml version="1.0"?>
    <item id="749" number="BK-R93R-62">
    <name>Road-150 Red, 62</name>
    <color>Red</color>
    <list-price>3578.27</list-price>
    <size>62</size>
    <unit-of-measure>CM</unit-of-measure>
    </item>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_attribute;
    It worked nicely. But, I just found out the coding that was downloaded from the website of Apress and I just executed was different from the coding of Listing 4-8 listed in the book: all the <xs: ....> and </xs: ..> in my SSMS2012 are
    listed as <xsd:...> and </xsd:...> respectively in the book!!??  The same thing happens in the Listing 4-3 Simple XML Schema, Listing 4-5 XML Schema and Valid XML Document with Comple Type Definition, Listion 4-6 XML Schema and XML
    Document Document with Complex Type Using <sequence> and <choice>, and Listing 4-7 Complex XML Schema and XML Document with Model Group Definition (I executed last week) too.  I wonder: should xs or xsd be used in the XML
    Schema Collection of SSMS2012?  Please kindly help,  clarify this matter and explain the diffirence of using xs and xsd for me.
    Thanks in advance,
    Scott Chang   

    Hi Scott,
    Using xs or xsd depends on how you declare the namespace prefix.
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="item">
    I've posted a very good link in your last question, just in case you might have missed it, please see the below link.
    Understanding XML Namespaces
    In an XML document we use a namespace prefix to qualify the local names of both elements and attributes . A prefix is really just an abbreviation for the namespace identifier (URI), which is typically quite long. The prefix is first mapped to a namespace
    identifier through a namespace declaration. The syntax for a namespace declaration is:
    xmlns:<prefix>='<namespace identifier>'
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Creation of new table with attributes of another ??

    how can i create a new table which has the same attributes as another ? Please note that the records/tuples in the already existing table shouldn't be copied into the new table.
    Illustration:
    Table Employee_Details with attributes/fields Name and IDno is present.
    A new table Supervisor should have the same attributes/fields Name and IDno.
    But the data in Employee_Details table shouldn't be copied into this table (Supervisor).
    Can anyone write a query in SQL that does the same i.e. use the attributes of another table during the creation of a new one?
    Also can anyone explain why the following query is erroneous ?
    sql> create table supervisor as (desc employee_details);
    Thanks for your help!

    create table new_table as select * from old_table
    where 0=1;This statement doesn't create the new_table in the same tablespace than old_table... to take for example only the tablespace, but that's right for storage clause too.
    Assuming TITI is my old table, and TOTO my new table :
    SQL> show user
    USER is "H89UCBAC"
    SQL> select default_tablespace from dba_users where username='H89UCBAC';
    DEFAULT_TABLESPACE
    PSDEFAULT
    SQL> create table titi(coltiti number) tablespace tools;
    Table created.
    SQL> create table toto as select * from titi;
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1* select table_name,tablespace_name from dba_tables where table_name in ('TITI','TOTO')
    SQL> /
    TABLE_NAME                     TABLESPACE_NAME
    TOTO                           PSDEFAULT
    TITI                           TOOLS
    SQL>   1* select replace(dbms_metadata.get_ddl('TABLE','TITI'),'TITI','TOTO') from dual
    SQL> /
    REPLACE(DBMS_METADATA.GET_DDL('TABLE','TITI'),'TITI','TOTO')
      CREATE TABLE "H89UCBAC"."TOTO"
       (    "COLTOTO" NUMBER
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "TOOLS"
    SQL> drop table toto;
    Table dropped.
    SQL> CREATE TABLE "H89UCBAC"."TOTO"
      2   (    "COLTOTO" NUMBER
      3   ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      4  STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
      5  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      6  TABLESPACE "TOOLS"
      7  /
    Table created.
    SQL> select table_name,tablespace_name from dba_tables where table_name in ('TITI','TOTO');
    TABLE_NAME                     TABLESPACE_NAME
    TITI                           TOOLS
    TOTO                           TOOLS
    SQL> HTH,
    Nicolas.
    Message was edited by:
    N. Gasparotto

  • XSLT bug with attributes+in memory DOM

    Hello,
    I know there was a thread about this one some time ago but i
    don't know the current state of this matter, so :
    The XSLT processor has problems with attributes when the DOM was
    build dynamically (attributes are returned as being empty). When
    i save the same DOM, reload it and then do the transform
    attributes are properly transformed.
    The Version 2.0.0.1 of the Java parser states to have solved a
    problem when accessing attributes (bug #920536) but this seems to
    be an other one (i tried 2.0.0.0 and 2.0.0.1 and both had this
    problem).
    Bye Heiko.
    null

    We were unable to reproduce the problem you illustrated. We got
    the output:
    <HTML>
    <BODY>
    the value is : 1
    </BODY>
    </HTML>
    irrespective of whether the lines were commented out. Can you
    describe your environment - JRE/JDK, OS. etc?
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    You wrote:
    : Hello,
    : the following program illustrates what i mean :
    : package testing;
    : import oracle.xml.parser.v2.*;
    : import org.w3c.dom.*;
    : import java.io.*;
    : public class XMLTest {
    : public static final void main(String [] args) throws
    : Exception {
    : XMLDocument doc=new XMLDocument();
    : doc.setVersion("1.0");
    : doc.setStandalone("yes");
    : Node root=doc.createElement("ROOT");
    : Node att=doc.createAttribute("value");
    : att.setNodeValue("1");
    : root.getAttributes().setNamedItem(att);
    : doc.appendChild(root);
    : doc.print(new FileOutputStream("c:\\test.xml"));
    : DOMParser parser=new DOMParser();
    : parser.parse(new FileInputStream("c:\\test.xml"));
    : doc=parser.getDocument();
    : XSLStylesheet xsl=new XSLStylesheet(new
    : FileInputStream("c:\\test.xsl"), null);
    : XMLDocument out=new XMLDocument();
    : out.appendChild(new XSLProcessor().processXSL(xsl,
    doc));
    : out.print(System.out);
    : with the stylesheet test.xsl as follows :
    : <?xml version="1.0"?>
    : <xsl:stylesheet
    : xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
    : xmlns="http://www.w3.org/Profiles/xhtml1-transitional"
    : default-space="strip"
    : indent-result="yes"
    : >
    : <xsl:template match="ROOT">
    : <HTML>
    : <BODY>
    : the value is : <xsl:value-of select="@value"/>
    : </BODY>
    : </HTML>
    : </xsl:template>
    : </xsl:stylesheet>
    : if you run the program as given the result is :
    : the value is:
    : but when you uncomment the lines storing & retrieving the
    : document the result is as i would expect it :
    : the value is: 1
    : Bye Heiko.
    null

  • How does BR get current date, user, and associate member with Attribute Dim

    I need use Business rules or Calc script to implement following functions:
    1. Get current date and the name of user who is running the BR and save the information to cube.
    I don't find any functions to get current date and users.
    Also, since text and date is store in relational database and essbase cube only stores the index, it looks that the value can't be changed or stored by using "==" directly, is there any function to change value of members with Text or Date types in BR/Calc script?
    2. End users select attribute value (via smart list) of products or projects(Sparse dimensions) in data form, run BR to update the association of these members with attribute dimension.
    I don't find any functions to change the attribute association in BR/Calc, is there any CDF (Custom Defined Function) that can do it?
    Thanks!

    Hi,
    For the date functionality, check out the post below.
    Re: Days behaviour between two dates
    As for the username, there is a little tricky way that requires an unused or a new dimension along with a smart list of user names. It's also possible to capture the user name from the cookies and pass it on to the form. The latter is possible through validatedata.js however requires hefty coding here and there.
    As for the attributes, it's not possible to update metadata through business rule. So no luck in there.
    Cheers,
    Alp

  • Adobe Reader v10.4.4 support for PDF with attributes

    Hi there,
    I recently downloaded Adobe Reader v10.4.4 for my iPhone. I was just wondering if it supports PDFs with attributes?
    To test I created two PDFs using GIS application called MapInfo Professional:
    1. PDF without attributes - this one was able to open succesfully
    2. PDF with attributes - this one could not open and threw an error "Not a valid PDF document"
    Any help appreciated.
    Thanks,
    Dave

    Hi Steve,
    Thanks for your speedy reply. Yes, I forgot to mention, these PDFs can open up in my desktop version of Adobe Reader (v8) for Windows.
    PDF with attributes means that there is records (attribute data) contained in the PDF which is being saved into the PDF when it was created using the GIS application. For example if looking at postal area: PDF map, ID number, place name, population, area (sq m) values etc.
    The specific tool/function which allows these attribute values to be exposed is called the 'Object Data' tool (under Tools > Object Data in the desktop version)
    (I have attached a screenshot showing these attributes in the desktop version so you may get a better understanding hopefully! Pls see link below)
    http://i296.photobucket.com/albums/mm199/dkny1315/ScreenHunter_44Feb151332_zpsd515b1af.gif
    If you need any further info or details, please let me know
    Thanks,
    Dave

  • User event for array of waveforms with attribute

    I have been transferring data in a Producer/Consumer architecture via User Events.  The data consisted of an array of waveforms. When I added an attribute to the waveforms the code breaks with two errors about Create User Event: User event data type is unnamed or has elements with no names or duplicate names, and Contains unwired or bad terminal.
    From reading the help on user events it is not clear that arrays are even allowed: "user event data type is a cluster of elements or an individual element whose data type and label define the data type and name of the user event."
    From experimentation it seems that arrays of numerics and arrays of wavefroms without attributes work. A single waveform with an attribute can also be used. But an array of the same waveform with attribute leads to a broken run arrow. It also appears that I can put the array of waveforms with attributes inside a cluster and then create the user event.
    Is this a bug, an undocumented corner case, or some "feature" that I do not understand?
    Searching for User Event for Array of Waveforms generates some interesting, but mostly irrelevant results.
    Lynn

    tst wrote:
    Another option would be typecasting, but it looks like you can't typecast a waveform. Variant to Data or Coerce to Type might also work, but I haven't tried.
    I have also done the Flatten To String and Unflatten From String to send data around.  It would be preferable to not need to do that though.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • HOW TO cache user clicks on links with attributes such as "_blank" ?

    HOW TO cache user clicks on links with attributes such as "_blank" in Adobe AIR with JS or MXML or AS3 for creating new costume browser window (AIR) ?

    >This feature is indeed new to 8.5.
    Can you explain a bit more on what is possible in version 8.5? How easy it is to attach events to different sections of the 3D model? How easy it is to handle such events? I assume the events will fire even if the user rotates the 3D model via the camera control, right? Any limitations on the 3D model or what types of events are supported? If you have LV documentation describing this feature then that would be *very* helpful!
    Thanks for your reply
    MZ2

  • How to write XML with attributes to a table in Oracle?

    I tried to find solutions over the internet. Some of the stuff I looked at:https://forums.oracle.com/thread/2182669 http://www.club-oracle.com/forums/how-to-insert-data-from-xml-to-table-t2845/
    In all these cases, the solution considers XML structure with only nodes and child nodes but not attributes. In fact, one of the solutions suggests transforming the XML into a canonical form with only nodes w/o attributes.
    This is a sample of xml structure I am working with:
    Sample XML
    <rep type="P" title="P List"> <as> <a id="3" /> <a id="4" /> </as> </rep>
    I am working with oracle client 11.2 and SQL developer
    My question is: how to write XML data into a table with attributes also as column values, beside the nodes?

    My question is: how to write XML data into a table with attributes also as column values, beside the nodes
    The question you should be asking is : "how do I access attributes in the XPath language?"
    and the answer to that is easily found in any XPath tutorial you may find over the Internet, it is not related to Oracle in particular.
    Short answer : you use an "attribute::" axis before the attribute name, or more commonly a "@", e.g. @type, @id etc.
    Using the method described in the first link, something like this will extract the root attributes :
    SELECT x.*
    FROM XMLTable(
           '/rep'
           passing <xmltype variable/column goes here>
           columns type  varchar2(1)  path '@type'
                 , title varchar2(30) path '@title'
    ) x ;
    For deeper levels, use additional XMLTable calls as described in the mentioned post.

Maybe you are looking for

  • Tableview in BSP

    I would like to display some info in htmlb table view. cud anyone help me ?

  • The website won't save my contacts photos?

    Hi, Got my new Vivaz the other day. I began uploading photos to contacts details in my profile/account on the Sony Ericsson website to sync onto my phone. I only had time to do the first half of my phonebook, the photos saved successfully and synced

  • DBMS_lob Parameters/Arguments

    Hello all! Can anyone point me to the correct documentation that contains a list of parameters/arguments for DBMS_lob calls? I have the developers guide that deals with LOBs, but haven't found a list of arguments yet. In particular, I am looking for

  • ASA5512-x basic set up

    Hi guy, I just bought ASA 5512-SSD120-K9. with this next generation this ASA firewall, I don understand mux, and don't know what to do next. I have read alot of documents relate to ASA CX, it said it has AVC,WSE, and IPS come with. But in the quotati

  • Non supported JVC Camcorder BRDVM70

    I am trying to upload a videotape from this model of digital camcorder to my OS X system MAC. I note that the model is no longer supported. What do I do?