Joining datasets in template

Hi all,
I have a requirement of joining two data sets in a template.
I have to create a table in template with the combined xml output of 2 queries.
I need to join one column(say 'idnumber' ) in one data set to the column('sidnumber') in another dataset and so that idname should appear in one of the fields in the template after joining.
can any one throw light on this issue asap please

I have a requirement this way:
I have xml as shown below:
<DATA>
<SQL>
<SQL_ROW>
<c1>99384</c1>
<c2>QWEHJ</c2>
<c3>737272</c3>
<c4>-2342345</c4>
</SQl_ROW>
<SQL_ROW>
<c1>34535</c1>
<c2>dfgsdf</c2>
<c3>737272</c3>
<c4>-2342345</c4>
</SQl_ROW>
<SQL_ROW>
<c1>99384</c1>
<c2>QWEHJ</c2>
<c3>737272</c3>
<c4>-2342345</c4>
</SQl_ROW>
<SQL>
<fc_map>
<fc_map_row>
<f1>34535</f1>
<f2>ABCD</f2>
</fc_map_row>
<fc_map_row>
<f1>34534</f1>
<f2>DFDF</f2>
</fc_map_row>
<fc_map_row>
<f1>4524</f1>
<f2>FSSDSFDFWE</f2>
</fc_map_row>
</fc_map>
</DATA>
I have to put a condition for a field to match the f1,c1 columns
I need to join the columns f1 and c1 such that the field in the rtf gives the name after joining. its is in such a way that, the customer id lies in one data set and customer name lies in other dataset and we need to join the two datasets by customerid and hence the name of the customer is displayed in the report.

Similar Messages

  • Issues with using Outer join in Data Template

    Hi all,
    this is my data in two tables .
    Table Ronny1
    colA colB
    1 u
    2 v
    3 x
    Table Ronny2
    colC colD
    1 q
    2 r
    This is my data template
    <dataTemplate name="MGF" dataSourceRef="Source1">
         <dataQuery>
              <sqlStatement name="Q1" dataSourceRef="Source1">
                   <![CDATA[select C, D  from Ronny2]]>
              </sqlStatement>
              <sqlStatement name="Q2" dataSourceRef="Source2">
                   <![CDATA[select A , B from lokesh1 where A = :C]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G1" source="Q1">
                   <group name="G2" source="Q2">
                        <element name="A" value="A"/>
                        <element name="B" value="B"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Now this would give me result as
    A B
    1 u
    2 v
    however my requirement is this
    A B
    1 u
    2 v
    3 x
    that is, i want to display all the rows of table Ronny1 and matching rows from table Ronny2. I tried modifiying my second sql as
    <![CDATA[select A , B from lokesh1 where A = :C (+)]]> ( using a outer join)
    but this does give me correct data and comes back with the cartesion product.
    Can anyone please answer this for me that how can we use the outer join in data templaes.
    Thanks
    Ronny

    hey vetsrini,
    sorry for the confusion here,
    actually i want to display all the rows from table Ronny1 and i am also pulling in the matching rows from table Ronny2 and my data structure looks as ( pulling in column D from table Ronny2)
    <dataStructure>
    <group name="G1" source="Q1">
    <group name="G2" source="Q2">
    <element name="A" value="A"/>
    <element name="B" value="B"/>
    <element name="D" value="D"/>
    </group>
    </group>
    </dataStructure>
    and this is what i want the output to be
    A B D
    1 u q
    2 v r
    3 x
    Hence the row where A <> C the data in the D column will be null, same as in the case of outer join.
    any suggestions
    Thx
    Ronny

  • Performance - direct joins vs joining datasets

    Which is better way to build query and which would give better performance
    select * from A, B
    where A.id=B.id
    or select * from
    (select * from A), (select * from B)
    join on A.id =B.id
    Essentially, join directly on tables or get results and join the datasets. This might too simplistic a example above

    Hi,
    927740 wrote:
    Which is better way to build query and which would give better performance
    select * from A, B
    where A.id=B.idThat's the best way to do it.
    or select * from
    (select * from A), (select * from B)
    join on A.id =B.idThis won't work. Table A is only in scope in the first (unnamed) in-line view, and B is only in scope in the second (unnamed) in-line view, so neither can be refererenced in the main query. You would need to give table aliases to the in-line views if you need to reference a column name (like id) that exists in both.
    Essentially, join directly on tables or get results and join the datasets. This might too simplistic a example aboveJoin the tables directly when you have a choice.
    There's no point in using
    FROM    (SELECT * FROM a)rather than just
    FROM    aIf there is a difference in performance, the simpler way will probably be faster, but the optimizer will probably use the same plan either way. The more complicate way will just confuse whoever has to debug and maintain the code.

  • Unable to create query for new dataset

    Something weird has happened to our BI Publisher application in production. It was working fine, we could create reports and datasets and templates just fine.
    Now all of a sudden when we create a new report and a new dataset the Data Set screen is no longer displaying. When we edit existing reports the Data Set screen does not display either.
    Has anyone experienced this problem. We are running 10.1.3.2 in production. Our test instance was just upgraded to the 10.1.3.4 ear file on our old 10.1.3.1 Oracle Application Server.
    We just now noticed it because we were going to upgrade the old 10.1.3.2 ear with the 10.1.3.4 ear like we did in test. Now we are worried that about upgrading production.

    FYI... the screen come up for list of values but not for paramenters

  • String Search Query in any columns in any table in a database

    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    Any help is much appreciated
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM

    Hi,
    CrackerJack wrote:
    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view In all_<b>cons</b>_columns, "cons" stands for "constraints". That view only includes columns that have a constraint on them. 
    Use all_<b>tab</b>_columns if you're interested in all columns in all tables.
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";You may have noticed that this site noramlly compresses whitespace.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    When referencing a table in a differenct schema, you must qualify the table name with the owner (unless there happens to be a synonym).  For example, if you are connected as some user other than scott, and you want to use the emp table that is in the scott schema; then you can't just say "SELECT ... FROM emp;", because that would look for the emp table in yur own schema.  You have to say "SELECT ... FROM <b>scott.</b>emp;" instead.  If the table is in your own schema, then the scema name is optional.  The OWNER column in all_tab_columns gives the schema name.
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problemSorry, I don't know what causes that error.
    If I use the data dictionary view cols (as in {message:id=3325696} which you cited), it runs correctly.
    If use what I though was the equivalent data dictionary view, user_tab_columns, or if I use all_tab_columns or other data dictionary views, then I get those errors.  I'm using Oracle 10.2.0.1.0.
    Edited by: Frank Kulash on Sep 3, 2012 10:45 PM
    John Spencer noticed the same problem 5 years ago.  See {message:id=1969268}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error after creating Element level join between two different dataset in11G

    Hi Experts,
    My report is having data from two different datsets, I created two datasets and joined them with Element Level join. I am getting below error.
    "The following tags were not closed: DATA_DS. Error processing resource 'http://localhost:9704/xmlpserver/servlet/xdo'. "
    But independent datasets are executing with out any errors.
    Please let me know, If any one have inputs to resolve this.
    Thanks in advance..

    Hi,
    Can you please explain the resolution in more details. I'm also having the same issue in BI Publisher report when trying to join two data sets with Element Level Link. I have checked that all my columns have alias names.
    Thanks,
    Piya.
    Edited by: 947289 on Jul 18, 2012 5:56 AM

  • Data template error while viewing DataSet

    Hi,
    I am trying to view DataSet{DS2}.
    The dataset is of type "Data template" {DT1}
    Pl. find below data template xml pasted in the text field
    <dataTemplate name="DT1" description="Application Details" dataSourceRef="dev100">
         <parameters>
              <parameter name="p_apl_id" dataType="number"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[
       SELECT apl_id, apl_first_name, apl_last_name from applicants
                         where apl_id < nvl(:p_apl_id,apl_id)
      ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_APP" source="Q1">
                   <element name="apl_id" value="apl_id"/>
                   <element name="apl_first_name" value="apl_first_name"/>
                   <element name="apl_last_name" value="apl_last_name"/>
              </group>
         </dataStructure>
    </dataTemplate>
    The error I am getting while viewing dataset is as below. Appreciate quick response.
    [110906_042135613][][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Expected name instead of .
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205)
    at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1001)
    at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1639)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1170)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
    at oracle.apps.xdo.dataengine.DataTemplateParser.<init>(DataTemplateParser.java:142)
    at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:504)
    at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:182)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataProcessor(AdvancedQueryBoundValue11.java:109)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(AdvancedQueryBoundValue11.java:79)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:335)
    at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
    at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:251)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:46)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:52)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    [110906_042258194][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:326)
    at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:261)
    at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:511)
    at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:182)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataProcessor(AdvancedQueryBoundValue11.java:109)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(AdvancedQueryBoundValue11.java:79)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:335)
    at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
    at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:251)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:46)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:52)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    [110906_042258198][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
    at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
    at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(DataTemplateParser.java:1449)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:298)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:264)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:229)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:336)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataProcessor(AdvancedQueryBoundValue11.java:126)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(AdvancedQueryBoundValue11.java:79)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:335)
    at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
    at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:251)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:46)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:52)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Regards,
    Nishi
    Message was edited by:
    user542026

    Hi Tim,
    Thanks for your quick response.
    I copied the text on XML publisher server. {http://server:15101/xmlpserver/servlet/report}
    Navigated to Report > DataModel > Data Template {text area}
    Regards,
    Nishi

  • Table joins, templates, null-checks, layer confusion and localization

    Hello everyone, this is my first post on this network.
    I am designing a website that does several things, one of which is to display latest news items on the home page.
    The news items are stored in the database as a table with a basic structure: id, poster_id, postDate, subject, body
    where id is the primary key, poster_id is a foreign key to the users table, postDate is the date at which posted and the rest is obvious.
    I want to display these items with a basic template:
    subject by author at postDate
    body
    <hr />
    When a user changes his/her username, the updated username will be shown on the news listing. This is the reason why I'm using a foreign key.
    I've defined poster_id such that it can be set as NULL, meaning it was not created by a registered user, but a guest. Don't ask me why I'd want a guest to post a news item :P
    When it comes to getting the news posts from the database and resolving the poster_id to a username i just use a join. However, when poster_id is NULL i obviously don't get a username for that post but a NULL. The word "Guest" has to come in when the poster_id is null. So in my template you'd think i could just put a null check as I can't do it in sql (as far as i know anyway).
    Now, I'm using localization on the site and the word "Guest" is different depending on the locale. So you'd think i could just use a null check and a locale->get('guest_username') and that will return the word "Guest" in the right language.
    If I want to view news on different pages, and more importantly, in different forms such as just author: subject, I come across a problem. I want to avoid having to repeat that null check code on every template that views news posts. Complicating things, I want anywhere that display a username to do the null check and return the locale'd guest username if it is a null.
    Where do I put this null check? The locale object is part of the model layer, because other model objects use it.
    Is this the presentation or the model layer's responsibility? I am relatively new to this design patterns thing, but I'm getting there :) I've thought about using wrapping classes but I'm just not sure at this point and I need smart people's opinion :)
    I hope I was able to explain my problem properly and I thank anyone in advance for taking the time to read and give their insight on such a problem. Thank you :)

    antirealm wrote:
    Hello everyone, this is my first post on this network.
    I am designing a website that does several things, one of which is to display latest news items on the home page.
    The news items are stored in the database as a table with a basic structure: id, poster_id, postDate, subject, body
    where id is the primary key, poster_id is a foreign key to the users table, postDate is the date at which posted and the rest is obvious.
    I want to display these items with a basic template:
    subject by author at postDate
    body
    <hr />
    When a user changes his/her username, the updated username will be shown on the news listing. This is the reason why I'm using a foreign key.
    I've defined poster_id such that it can be set as NULL, meaning it was not created by a registered user, but a guest. Don't ask me why I'd want a guest to post a news item :PI think this is a fundamental mistake. A better design, IMO, would be to have an explicit GUEST or anonymous poster ID, but not null.
    When it comes to getting the news posts from the database and resolving the poster_id to a username i just use a join. However, when poster_id is NULL i obviously don't get a username for that post but a NULL. The word "Guest" has to come in when the poster_id is null. So in my template you'd think i could just put a null check as I can't do it in sql (as far as i know anyway).See above.
    Now, I'm using localization on the site and the word "Guest" is different depending on the locale. So you'd think i could just use a null check and a locale->get('guest_username') and that will return the word "Guest" in the right language.Localization should be a UI issue. It should be all sorted out by the time you get to the persistence layer.
    If I want to view news on different pages, and more importantly, in different forms such as just author: subject, I come across a problem. I want to avoid having to repeat that null check code on every template that views news posts. Complicating things, I want anywhere that display a username to do the null check and return the locale'd guest username if it is a null.If it's hard to do, it's worth re-thinking. Don't use null when there are sensible non-null alternatives.
    Where do I put this null check? The locale object is part of the model layer, because other model objects use it.
    Is this the presentation or the model layer's responsibility? I am relatively new to this design patterns thing, but I'm getting there :) I've thought about using wrapping classes but I'm just not sure at this point and I need smart people's opinion :)L10N and I18N issues should be the responsibility of the presentation layer, IMO.
    %

  • Using geocode in a map based on a view where two datasets are joined

    Hi,
    I'd like to create a map based on a view in which two datasets are joined, where one of the datasets has a geocode column.
    Unfortunately this is not working... It seems that a custom view where two datasets are joined together where one of them has a geocode column makes the geocode column invisible for the map component.
    The following cases do work but we like to combine them so that we can combine different datasets in Studio without using the Integrator:
    - I can create a custom view in which we join two datasets > the view can be used as a source for different component but not the map component (it seems that the geocode column is not found)
    - I can create a custom view with a geocode column in it and that one can be used as a source for a map
    What I'd like to show is that it is possbile to have one datasets coming from a source system and that it is easy to combine an additional excel sheet with geo-information and maybe another excel sheet with different measures. This should be possible since you can join different datasets together in a custom view.
    Thanks in advance,
    Richard

    Oh sorry, we have two base views and one custom view:
    base view TRIS_Omzet which gets it data from an OBI server and has data like revenue, customer, time, etc.
    base view Endeca_Klanten which gets it data from an excel sheet, this view contains the name of the customer and the geocode of the customer's location
    We created one custom view (Omzet_Geo) where the two base queries are joined together using the following query:
    DEFINE V1 AS SELECT
    "Endeca_Klanten.Klanten" AS Klant,
    "Endeca_Klanten.Coordinaten" AS Coordinaten
    from Endeca_Klanten;
    DEFINE V2 AS SELECT
    "TRIS_Omzet.Naam_Consultant" AS Naam_consultant,
    "TRIS_Omzet.Jaar" AS Jaar,
    "TRIS_Omzet.Jaar_week" AS Jaar_week,
    "TRIS_Omzet.Actual" AS Actual,
    "TRIS_Omzet.Omzet" AS Omzet,
    "TRIS_Omzet.Partij" AS Partij,
    "TRIS_Omzet.Uren" AS Uren
    FROM TRIS_Omzet
    DEFINE Omzet_Geo AS SELECT
    V1.Klant AS Klant,
    V1.Coordinaten AS Coordinaten,
    V2.Naam_consultant AS Naam_consultant,
    V2.Jaar AS Jaar,
    V2.Jaar_week AS Jaar_week,
    sum(V2.Actual) AS Actual,
    sum(V2.Omzet) AS Omzet,
    V2.Partij AS Partij,
    sum(V2.Uren) AS Uren
    from V1
    right join V2
    on (V1.Klant=V2.Partij)
    group by Klant, Coordinaten, Naam_consultant,Jaar,Jaar_week,Partij
    Our view definition in the GUI looks like the following, as shown in the screenshots the datatype of the coordinated column is a Geo column both in the base view and the custom view. However the view still can't be selected to be used as a source for the map component.
    The two base views:
    The custom view:
    regards,
    Richard

  • Spry dataset not working in Template - please help

    Hi all,
    I have a situation where when I pull a spry dataset from an
    xml file and display the contents in a table which works fine in a
    regular html page but not a template formed page for repeatable
    region.
    The error I get is FAILED TO RETRIEVE DATA SET FOR SPRY
    REPEAT. Prior to that it tells me GetParentDataSet is null or not
    an object. I tried setting up a repeat region around the repeated
    rows but that didn't work either. So I pulled everything else out
    that might be causing the problem but nothing. I checked the
    pathing as well for the spry assets and it checks out okay.
    Anyway, here's the template.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <link href="../styles/style.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkB.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkA.css" rel="stylesheet"
    type="text/css">
    <!-- TemplateEndEditable -->
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type=”text/javascript”>
    // Setup nested data sets:
    var dsReagCons = new
    Spry.Data.XMLDataSet("../xml/consumables.xml",
    "electrodes_and_accessories/item[@catno='il_acl100_7000_coag_systems']");
    </script>
    </head>
    <body>
    <!-- Main body contents -->
    <!-- TemplateBeginEditable name="EditRegion3" -->This
    is a test
    <!-- TemplateEndEditable -->
    <div spry:region="dsReagCons">
    <table align='center' width='680' border='1'
    cellpadding='3' cellspacing='0' class='form'>
    <tr>
    <td colspan='5' class='prodHead' >Electrodes and
    Accessories</td>
    </tr>
    <tr class='prodHead2'>
    <td spry:sort="ddi_cat_no" width='80'>Diamond<br
    />
    Cat. No.</td>
    <td spry:sort="oem_cat_no" width='80'>OEM<br />
    Cat. No.</td>
    <td width='300'>Description</td>
    <td spry:sort="models" width='100'>Models</td>
    <td width='45'>UOM</td>
    </tr>
    <tr spry:repeat="dsReagCons">
    <td>{dsReagCons::ddi_cat_no}</td>
    <td>{dsReagCons::oem_cat_no}</td>
    <td>{dsReagCons::desc}</td>
    <td>{dsReagCons::models}</td>
    <td>{dsReagCons::uom}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    What am I missing here? Like I said I even tried putting a
    repeat region around the table itself.
    Thanks,
    -- Jim

    Hey,
    Good to have a comm expert on this. Actually I solved the
    problem. It was combination of what I was doing within the template
    and the way the xml file was formed. Also, I had to use a template
    parameter to feed a spry:test filter.
    Thanks for getting back to me anyway.
    -- Jim

  • Join-types right & full outer join with Datasets

    Hello
    I use Crystal Reports XI Release 2 with ADO.NET Datasets as datasource. In the "Database-Expert" I try to set the "Link-Options". Unfortunately are the join-types "right outer join" and "full outer join" disabled.
    - Is this because of the datasource Dataset?
    - Is there e possibility to build the Dataset so I can use this two joins?
    - If not, is it possible in a newer version?
    Thanks, T.Fitzi

    Hi
    I think this is the problem. I don't connect directly to a database. My application (C#) provieds Crystal Report with a dataset. So all my data is in this dataset.
    Are this joins in the new version stil disabled?
    Regards, Thomas

  • Can two Templates be Joined ??

    Dear Members,
    Can two different templates be joined at runtime and presented as a single output. We are using the rdf method to generate reports in xml publisher. we are using xml publsher 5.6.3 and are on EBS 11.5.9.
    The XML source which is rdf file is same for both the templates. But when we run the concurrent program, it should pick up both the templates and they should be presented as a single piece. How can this be done.
    I read about the concept of Sub Templates but in think we can only call one template at run time, not two. Its like reverse of Bursting.........
    Thanks
    sandeep

    Sub templates is exactly what you may be looking for. It will do an import of the second RTF file at runtime. Your concurrent program would know just one RTF.
    However, if you know in advance that it will be a single output out of two RTF files then you can as well have one single RTF template. Why do you want to keep it separate ?

  • Joining two datasets in Crosstabs

    Hi....I have a requirement in crosstabs...
    I have 3 data sets…. Ds1, ds2, ds3
    Month column comes from all the 3 data sets.
    I have a Category Column which comes from all three datasets…. (category = Mother board,mouse,key board )
    Max sales, Avg sales, Total sales are the columns which comes from ds1, ds2, ds3 respectively..
    Is it possible to achieve this following out put by cross tabs?
    How to join two/three data sets in crosstabs??
    Image below:
    http://i51.tinypic.com/2u9k421.jpg

    The Lookup expressions are used for this. They all use a similar syntax:
    =command(LocalKey, ForeignKey, ForeignValue, "OtherDatasetName")
    This is similar to JOINing tables ON LocalKey=ForiegnKey in Transact-SQL. The expression builder tool will give you some limited help with the 3 Lookup expressions . Visakh's link has more extensive help.
    The Join expression mentioned by Brad is often used in conjunction with the LookupSet and MultiLookup expressions, which return an array of values (ForeignValue) rather than a single value like Lookup. Join will concatenate the elements of an array into
    a string.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Joins in DW Dataset

    Is there a way to do Joins in your DataSet using the DataSet
    Wizard?
    I know I could just paste the Sql into the Sql box. But can
    you do it using
    the tables it displayes and picking the fields you want.
    All I can see is defining one table and choosing fields from
    that table. In
    DW2004, the word Join isn't even in the help file.
    Thanks,
    Tom

    Simple answer "No". You need to create the join by hand, or
    copy from
    another app
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "tshad" <[email protected]> wrote in message
    news:euvai1$mag$[email protected]..
    > Is there a way to do Joins in your DataSet using the
    DataSet Wizard?
    >
    > I know I could just paste the Sql into the Sql box. But
    can you do it
    > using
    > the tables it displayes and picking the fields you want.
    >
    > All I can see is defining one table and choosing fields
    from that table.
    > In
    > DW2004, the word Join isn't even in the help file.
    >
    > Thanks,
    >
    > Tom
    >
    >

  • GPO Template to secure Computers joined to a 2012 Domain

    Hi,
    We are looking to implement a "Quarenteen OU" for new machines that join our domain.  I've found out how to change the behavior of assigning machines to a different OU than the Computers OU using the redircmp command.   Does anyone have
    a good "template" resource of default security polices to assign a new Server/destkop machine that gets placed into such a quarenteen OU to ensure its secure before moving it to a different/seperate OU?  I'm currently looking for knowledge base
    articles that cover this.  Any help would be greatly appreciated.
    Thanks,
    Kevin C.

    Hi Kevin,
    Based on description, we can follow the suggestion provided by Martin to assign security policies to these machines.
    SCM provides ready-to-deploy policies and DCM configuration packs based on Microsoft Security Guide recommendations and industry best practices, allowing
    us to easily manage configuration drift, and address compliance requirements for Windows operating systems and Microsoft applications.
    Regarding SCM, the following articles can be referred to for more information.
    Microsoft Security Compliance Manager (SCM) - Getting Started
    http://social.technet.microsoft.com/wiki/contents/articles/1866.microsoft-security-compliance-manager-scm-getting-started.aspx
    Microsoft Security Compliance Manager
    http://technet.microsoft.com/en-us/library/cc677002.aspx
    Security Compliance Manager (SCM)
    http://technet.microsoft.com/en-in/solutionaccelerators/cc835245.aspx
    Best regards,
    Frank Shen

Maybe you are looking for

  • The Select Query

    Hi All,   SELECT matnr FROM mara INTO TABLE gt_mara                                WHERE matnr IN s_matnr                                AND   mtart = p_mtart.   IF NOT gt_mara[] IS INITIAL.     SORT gt_mara BY matnr.     SELECT aufnr objnr aufpl FRO

  • Add revocation info (ocsp response) in the signatures

    I'm doing an application to sign pdfs in java. I already have successfully sign pdfs, but I want to add also the revocation info embedded into the file. I have no problems with CRLs, but I can't add the other revocation method like a ocsp response. T

  • Adobe reader cant open PDF-documents with the font DIN?

    Efter den senaste uppdateringen av daobe reader till mac så kan jag inte öppna mina PDF-dokument med typsnittet DIN?

  • How to change the workflow agent manually ?

    Hi, We encountered a situation where the workflow was received in error by a person. We are unable to determine the root cause of the problem as it was the first and last time we encountered this situation and we are unable to replicate the same erro

  • Issue with ENEQuery java api and searching terms with accented characters

    Hi, we are using ENEQuery to query the mdex engine. When search terms contain accented characters (like á,í etc), even though the terms are decoded (using java.net.URLDecoder), the term gets send to dgraph is encoded. for e.g a search for "sofá", fro