Conditionally hide a Table in template if underlying rows of table are null

Hi Folks.
Very new to BIP but keen to learn.
I have successfully set up an RTF template and I can get it to run with my BIP.
I have defined a table in the report using the Table Wizard. What I'd like to do now is wrap the table definition in the document with a condition that checks if the underlying table values are null. I.e. if the table behind that particular section has no rows then I don't want to display the column headers etc. nothing.
I have tried adding the following before the table...
<?if:SEQ!=''?>
Then insert the table using the wizard..
Then finish with
<?end if?>
There's no whitespace between the if, the table and the end if statements.
I'm hoping to test that if SEQ is null then don't display the table.
Am I missing something simple or am I wildly off-track?
Any pointers appreciated.
Many thanks
Kind regards
Dogfighter.

Disregard last post.
MODS feel free to purge this.
It actually works.
Don't know what I was doing wrong but the code I quoted in the last post does what it's supposed to.
Just tired I guess.
Cheers
Dogfighter.

Similar Messages

  • Multiple Logical Table Sources In BMM Under 1 Logical Table In OBIEE 11g

    I have a question and even after doing a lot of search on google i could not find any article so through to ask you :-
    I want to create a Logical Dimension table
    This logical dimension has columns coming from 2 different physical tables, TableA and TableB. The relationship between TableA to TableB is 1 to zero.
    There are 2 ways to create the logical dimension :-
    1) Go to the logical table source properties of TableA-->then there + sign click and then add TableB right outer join with tableA.
    Here in the logical table source we see only one table tableA.
    2) Drag the tableB column so that we have 2 logical table source.
    Please try this to explain without using the concept of fragmentation and without considering the fact tables. I have this question for simple logical dimension tables only.
    I wanted to know which is the right way and what requirement/factor decides what to do ?

    Check this post
    Business Model - Logical Table Source
    Let me know for Qs.
    If helps mark as correct :)

  • What is exact difference between table and template in script

    hello all
    what is exact difference between table and template in script

    Hi there.
    Tables alow you to achieve more complex flows with internal tables. You can use different types os lines, like footer, header, line items, and differente types of line items. Also, and most important, you have different processing blocks, again header block (processed before processing of first row), body block (rows) and footer block (after last row or page break).
    If you don't need any of this, use a template inside a loop to achieve something like a table. I personaly use templates only to draw lines, for example, before and after a loop, or to align some header in my documents.
    A table, is a loop and template mixed to become a very good tool.
    Regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on Jun 5, 2008 5:10 PM

  • Applescript on Numbers to copy rows between tables

    Hi,
    I am an applescript newbie, but am trying to make my book-keeping spreadsheet a bit more comfortable. And this is the problem:
    I have expenses that repeat every month and I would like to not have to rewrite them each time. So I thought I make a second table where I list all the repeating data and copy them into my main table. This works simply with selecting the row and then copy and paste in to the row of the main table.
    But I would like to make it nicer, and my concept is to make this copy process simpler, by memorizing the row number of the second table, (e.g. row 5 contains the rental costs for my studio ), so I would select the last row and then type the number of the expected row in table 2 and have the content be automatically copied into the selected row of table 1 (main table).
    I got the script to do so except the shortcuts for the keys. And I have no idea how to make the script understand that if I press the key for number "5" to start copying row 5 of table 2 into the last row of table 1. Here is my script as far as I got (it is far from finished I know, it is a test with 4 columns named "Art des Umsatzes", "Kategorie", "Projekt", "Betrag".
    If anyone could give me advice ho to define that the keystrokes become variable b and d, I think I would be able to manage the rest.
    Many thanks
    Hans Peter
                  tell application "Numbers"
                               tell table 2 of sheet 1 of document 1
                                         set a to b
                                         set tags to {"Art des Umsatzes", "Kategorie", "Projekt", "Betrag"}
                                         set tagValues to {}
                                         set theRange to "B" & a + 1 & ":" & "G" & a + 1
                                         set C to 1
                                         set setArt to value of cell C of range theRange
                                         set C to (C + 1)
                                         set setKat to value of cell C of range theRange
                                         set C to (C + 1)         
                                         set setProj to value of cell C of range theRange
                                         set C to (C + 1)
                                         set setBetr to value of cell C of range theRange   
                               end tell
                               tell table 1 of sheet 1 of document 1
                                         set a to d
                                         set tags to {"Art des Umsatzes", "Kategorie", "Projekt", "Betrag"}
                                         set tagValues to {}
                                         set theRange to "B" & a + 1 & ":" & "G" & a + 1
                                         set C to 1
                                         set value of cell C of range theRange to setArt
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setKat
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setProj
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setBetr
                              end tell
                   end tell

    Hi HD
    thanks for your prompt and very helpful response. Although I had to add some more, your suggestion paved the way. Your simpler suggestion with the reference does not really work (sorry.)
    This is the solution. what you need to do is make 2 table. The first on has one row (title row) and 5 columns (first is title again). The second has 6 rows (one title) and 5 columns (first one title). then you fill in each of the cells a word or number.
    Run the script and choose one of the 5 numbers, one row will be added and filled. That's what I hoped to get, only I cannot type, I have to click the number. That is a bit a shame, do you think Automator could make a bridge to connect the script number to the keys?
    Well, anyhow. Thanks again for your great help.
    All the best, Hans Peter
               tell application "Numbers"
                               tell table 2 of sheet 1 of document 1
                                         set b to (choose from list {1, 2, 3, 4, 5} with prompt "Nummer des Schlüssel")
                                         if the result is false then return
                                         set a to b as integer
                                         set tags to {"Art des Umsatzes", "Kategorie", "Projekt", "Betrag"}
                                         set tagValues to {}
                                         set theRange to "B" & a + 1 & ":" & "G" & a + 1
                                         set C to 1
                                         set setArt to value of cell C of range theRange
                                         set C to (C + 1)
                                         set setKat to value of cell C of range theRange
                                         set C to (C + 1)
                                         set setProj to value of cell C of range theRange
                                         set C to (C + 1)
                                         set setBetr to value of cell C of range theRange
                               end tell
                               tell table 1 of sheet 1 of document 1
                                         set d to count row
                                         add row below last row
                                         set d to d + 1
                                         set tags to {"Art des Umsatzes", "Kategorie", "Projekt", "Betrag"}
                                         set tagValues to {}
                                         set theRange to "B" & d & ":" & "G" & d
                                         set C to 1
                                         set value of cell C of range theRange to setArt
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setKat
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setProj
                                         set C to (C + 1)
                                         set value of cell C of range theRange to setBetr
                               end tell
              end tell

  • Add row based on previous row in table control?

    Dear all,
    I have a table control with some rows. Every row contains one button. On button click i want to add another row with dirrerent data. I want to add content based on button text or another columns (ex text views text,) based on this text view, I have to add row. One button can click any no of times. On every click i want to add row, but desired position and content should be based on button click.  Any help in doing this??
    Cheers,
    Venkys.

    Refer to these old threads referring this table and button problem.
    Adding rows to table
    How to create different rows in table or in ALV?
    and for the current scenario what you can do is ...
    in the eventhandler of the button click .
    find out the row number by using the code to read index.
    then based upon that add the element in the node at the desired position.
    finding the row number
      data indx type i.
          DATA lo_el TYPE REF TO if_wd_context_element.
          lo_el = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    indx = lo_el->get_index( ).
    and the adding the element at the desired position say n
        DATA lo_nd_zdealer TYPE REF TO if_wd_context_node.
        lo_nd_zdealer = wd_context->get_child_node( name = 'DEALER' ).
    data ls_str type  wd_this->element_dealer.
       ls_str-id = '00023445'.
       ls_str-name = 'sarbjeet'.
       ls_str-location = 'hosiarpur'.
       ls_str-status = '0001'.
       lo_nd_zdealer->bind_structure( new_item = ls_str
       set_initial_elements = abap_false
       index = n
    thanks
    sarbjeet singh

  • Alter table type from COLUMN to ROW

    TABLE type can be changed from ROW to COLUMN (and vice versa) using the ALTER TABLE command .
    Lars Breddemann  wrote
    when considering which data store to choose (which, by the way, can be changed later on as well), you have to take into account:
    * will you usually need the complete row (all columns)? If so, row store may be more efficient, as reconstructing the complete row is one of the most expensive column store operations.
    * will you need to join the row-store table to a column store table? If so, you should avoid using a different storage type, since using both storage engines in a statement leads to intermediate result set materialization which is another name for bad performance.
    * do you want to fill the table with huge amounts of data, that should be aggregated and analysed? If this is the case, the column store is the better option.
    As a rule of thumb you may just start with column-store tables and change them to row-store tables when you encounter performance issues.
    In general most developers cannot anticipate all important use cases for the tables they design.
    This is especially true for living and growing systems.
    So, more important than choosing the 'right' storage in the beginning is to monitor the performance and to benchmark the differences when changing the storage engine.
    So suppose we have a COLUMN table , but would be requiring to get data from many columns (so would be a very expensive column operation) , would it be advisable to change the table type FROM COLUMN to ROW on the fly . would this be a resource intensive operation if the table has a lot of data ?
    Lets suppose , if the above can be done , but there exists a interdependency for the column table (say from another simultaneous operation) , and thus should remain as COLUMN table as such . so what would be the better option in this case .
    Creating views is not an option as it seems from the SQL guide , that there was not an option to create a ROW view from a COLUMN table. ?
    Edited by: Rajarshi Muhuri on Nov 27, 2011 3:25 AM

    Dear Rajashri,
    1. you cann't alter table from column to row using alter command.
    but you can achieve this through Stored procedure, just Little bit HSQL coding.
    I hope upcoming versions SAP Gives like following SQL statements  ( following statemnt not works in HANA works in oralce )
       create row table "EFASHION_TUTORIAL"."AAA" as
    select
    "ARTICLE_COLOR_LOOKUP_ID",
    "ARTICLE_ID",
    "COLOR_CODE",
    "ARTICLE_LABEL",
    "COLOR_LABEL",
    "CATEGORY",
    "SALE_PRICE",
    "FAMILY_NAME",
    "FAMILY_CODE"
    from "EFASHION_TUTORIAL"."ARTICLE_COLOR_LOOKUP";
    2. Row & column table two different purpose like OLTP & OLAP.
         when you think about OLAP means modeling use Column.
          when you think about OLTP means real time operations then use Row
    Column table is high compress ( 5 - 20X),  i don't think you want get any performance issue when read information from column table. that is actual Core engine reading parller process. ( that is Heart of HANA).
    Column table purpose quite different like calculations, grouping.. most of DW environment Queires.
    Row table is currently system tables in feature row tables as OLTP, it's less compress mode compress to column store.
    so finally you write small program convert column to row and row to column
    thanks
    Rao

  • How to Hide Row in table view depend on condition

    Dear Friends,
    Please any one suggest how to do hide some rows in table depend on condtions.
    My Issue is :
    I have table with binding componant context controller, with in that some rows are no need to disply in my table, I tried to delete that entities from collection wrapper in do_prepare_output. but that entites are perminatly deleted from model node.
    how can achive this with out delete entities from model node and hide some rows in table view.
    thanks & Regards

    Hi Andrew,
    Please can you explain alobrate, because i wont' found that method in my implimentation and it's table config like follow
    <% IF attr->check_consistency( ) eq abap_true. %>
        <chtmlb:configTable  xml="<%= lv_xml %>"
                             id="TextList"
                             navigationMode="BYPAGE"
                             onRowSelection="select"
                             table="//Text/Table"
                             width="100%"
                             selectedRowIndex="<%=Text->SELECTED_INDEX%>"
                             selectedRowIndexTable="<%=Text->SELECTION_TAB%>"
                             selectionMode="<%=Text->SELECTION_MODE%>"
                             usage="ASSIGNMENTBLOCK"
                             visibleRowCount="3"/>
      <% ENDIF. %>
    thanks & Regards
    Ganesh

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Multiple tables and templates in a main window

    Hi,
    Is it possible to have multiple tables and templates in a main window of a smartform?
    If so then how they are positioned in the main window? Means which table to come first and which to be the next?
    Thanks in advance.........
    Prinan

    Hi!
    both tables and templates can be printed any number of times ina  main window.
    The tables as in sequence are printed...after ending with the first it gets on to the another.
    If u want to print it under some cdonditions you can do it using the condition tabs.As per it is a main window the dats gets flowing to the next page so as the order goes thae data goes on printed.
    Regards.

  • Conditional format in OBI Publisher Template Builder for Word

    Hi,
    I'm creating a template in MSWord's Publisher. I inserted a table and I tried to add conditional formatting to some of the cells. Nothing special: just standard red color when the value is below 0.
    In several places I've seen that I should go to the cell and do 'Insert>Conditional Format'. Unfortunately I get the following message then:
    The conditional format is not inside a table and can therefore not be applied to a table row
    I tried to google it, but I didn't find anything.
    So I tried to do it with explicit xsl code. In the User's Guide I found an example and after my adjustments it looks like this:
    <?if:_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__<0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?>
    <?_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__?>
    I put the above xsl code in 'Properties>Advenced' for a table cell.
    And when I try to preview it as HTML I get the error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 45, Column 100>: XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context.
    at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    I exported my XSL-FO Style Sheet and here you have the lines 41-48:
    <fo:flow flow-name="region-body">
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" start-indent="5.4pt" text-align="start" padding-bottom="10.0pt" end-indent="5.4pt" padding-top="0.0pt" height="0.0pt" font-size="11.0pt" font-family="Calibri"/>
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" text-align="start" padding-bottom="0.25pt" end-indent="5.4pt" padding-top="0.25pt">
    <fo:table start-indent="0.0pt" style-id="ts16" style-name="Table Grid" xdofo:table-summary="Template Table 1" xdofo:row-header-count="0">
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    <fo:table-column column-width="45.5pt"/>
    <fo:table-column column-width="57.2pt"/>
    I can't see here anything related to my piece of code.
    Do you have any suggestions what do I do wrong?
    And, what's more important, what should I do, to make this conditional formatting run?
    I'm using Template Builder v. 10.1.3.4.
    I'm new to BI and not an expert in XSL, so please forgive me if the info in my post is incomplete. Let me know about it and I'll try to fill the gaps.
    Thanks in advance.
    Cheers,
    WhatTheHell

    Hi,
    Here is what I have used in the past. insert a formula and copy one of these into the formula (and of course change the field names to your report field name).
    Changing Background Color Based on a Condition:
    <?choose:?><?when:GETROWNUM mod 2=0?><xsl:attribute xdofo:ctx="block" name="background-color">rgb(231,230,229)</xsl:attribute><?end when?><?end choose?>
    OR
    <?choose:?><?when:ROWNUM mod 2=0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">rgb(241,235,207)</xsl:attribute>
    <?end when?>
    <?end choose?>
    OR
    Change font color for entire row based on a condition
    <?if@row:STAT='B'?><?attribute@incontext:color;'red'?><?end if?>
    Hope this helps,
    Steve

  • Carl - Show Hide columns and report templates

    Carl,
    I've implemented the show/hide report column techniques from your demo pages. Thanks for that, it's working well.
    I am having a slight issue. I'm using theme12, and when I implement the technique there with the alternating row color template, the functionality works fine. But when I switch to standard report template I have some issues.
    Debugging the code :
    function html_HideCellColumn(pId){
    35 var l_Cell = html_GetElement(pId);
    36 var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    37 var l_Rows = l_Table.rows;
    38 l_CellI = getCellIndex(l_Cell.parentNode,l_Cell)
    39 for (var i=0;i<l_Rows.length;i++){
    40 html_HideElement(l_Rows.cells[l_CellI]);
    41 }
    42 return;
    the pId is what expect before line 35, but after, it looks like the html_GetElement is returning null.
    Is there something in the template that would cause this change? I am able to reproduce this behavior consistently. Thanks for any input.

    Hello,
    The table headers in the standard report template of that theme are missing the id attribute so changing this.
    &lt;th class="t12header" #ALIGNMENT# >#COLUMN_HEADER#&lt;/th>
    to
    &lt;th class="t12header" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#&lt;/th>
    and your good to go.
    Carl

  • Conditionally hide subtotal row

    I am creating a new analysis where I want to conditionally hide a subtotal row in a pivot table view. I have two columns - Is Consolidated and Property Name. Properties can be consolidated or not so I have Is Consolidated as an attribute (values True or False) and I add both to an pivot table view of an analysis. I made Is Consolidated so that it has subtotals after and then hide the Is Consolidated column so that the pivot table view looks like so:
    Property A
    Property B
    Property C
    True Total
    Property D
    Property E
    False Total
    Grand Total
    However, I want the report to look like so (don't show the False Total line):
    Property A
    Property B
    Property C
    True Total
    Property D
    Property E
    Grand Total
    I found the following - http://gerardnico.com/wiki/dat/obiee/answer_xml but my situation is a little different and when I pull the equation out it never finds it so it doesn't ever apply the conditional formatting.
    Is this possible?

    950121 wrote:
    I don't understand what you're proposing. With this implementation I get the error "Numbers of columns and their data types must be consistent across all criteria and Result Columns".Most detailed steps I could write :)
    1) Login in OBIEE analytics.
    2) Create a new analysis/answers using the subject area that the report should be built out of.
    3) In the criteria tab for the Report 1, drag the following columns: Property Column, and Fact Metric.
    4) For the fact metric column, click on FX and write the following formulae: FILTER(Metric using Flag = 'TRUE')
    5) Create all the filters as you need for this based on the prompts provided on the dashboard page
    Time to create second report to display the subtotal:
    6) Click on combine with similar request and select the same subject area and this will create second line of reports below the result columns.
    7) The concept here is, you can do an union of reports as long as all the reports have same set of columns and matching datatype's.
    8) Now select any column from subject area that is of type character, and obviously the second column which is the metric.
    9) Click on Fx on the first column and change it to 'Total' to hardcode it. Change the fx of the second column to FILTER(METRIC USING FLAG = 'TRUE')
    Time to create third report:
    10) Click on edit, and click on Add new criteria to add third line of report in the result columns set.
    11) Now repeat the steps in the first report, and change the metric to filter by 'FALSE' instead of true.
    12) Apply the same set of prompts across 2 and 3 reports also.
    Apply the formatting on the result columns per your requirement.
    Thanks.

  • Need to hide row when table has 1 entry in adobe

    Dear Experts,
    I have made select statement in Initialization and in context i have called Table EKPO and under that EKET based on EBELP where clause. Then I have called Sub form for both Tables and made as EKPO(Role Body Row) EKET(Role Table for subform1, Role Body row for subform2)
    Eg: Table EKPO
                  Table EKET
    Need to hide if EKET has one row for that, I want to know number of rows in table, if row 1 then need to hide otherwise need to show in adobe.
    Sharrad Dixit
    dixitasharad at gmail

    Hi A,
    I hope as per your previous post, you might have already set the presentation variable. You can write the column formula now as:
    case when @{variables.country} = 'All Choices' then sum(revenue) by year else <your previous case to hide the USA column} end.
    Hope this helps.
    Thank you,
    Dhar

  • How to get source table inside Template Mapping code template

    Hi guys,
    I have the following scenario, I have an table from external database and want to map it to an oracle table. This is done with Template mapping and I selected an Load code template on the execution unit that holds only the external table, this load code template will read row by row from source table and make the inserts into the flow table. I know that oracle use odiRef.getFrom() in order to construct the select statement from the external table. Because i need to do something custom i will need to have a list of the source tables inside the Load code template.
    Is this possible?
    P.S. I use owb 11gr2.
    Regards,
    Cipi
    Edited by: Iancu Ciprian on Jan 11, 2011 10:58 AM

    Hi Suraj,
    Thx for your answer!
    After posting the message i found in ODI documentation about odiRef other function and this I'm trying now to see if works, will let you know my results ...
    I implemented an custom iterator that retrieves the data from an external source and pass it to INSERT commands to execute against flow table. In order that this iterator to work i need the source table name of the current execution unit. Then the iterator is using the that name to get the data from the external entity and retrieve it as an array of Objects, this array of objects will be inserted in the flow table.
    Regards,
    Cipi

  • Error while running code template mapping between two oracle tables

    Hello All
    Iam getting the following error while running code template mapping between two oracle tables. Using OWB 11gR2 and oracle 11gR2 DB.
    java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    c: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4                                        
    Job 51 error: java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4
    Quick help is highly appreciated.

    Dera Dallan
    its only a target user for the workspace where you are deploying the mapping from.
    I have two repositories for two different projects. each repositary has its own workspace.
    ex:-
    Project 1
    Work space bpms_rep_owner
    Repositary owner bpms_rep_owner
    Repositary user bpms_rep_user
    Project 2
    Work space dem_rep_owner
    Repositary owner dem_rep_owner
    Repositary user dem_rep_user
    Reg
    S.Gyazuddin

Maybe you are looking for

  • RFC Call - Retracting data from BI/BPS/SEM to ECC

    Hello Gurus, Since there is no standard retarctors available for SKF and New GL in BPS-SEM we developed a custom retractor. We call a standard BAPI to post SKF and a BDC to post New G/L. When we call the RFC function it asks for the user id and passw

  • IPhoto book to slideshow online?

    I made a book on iPhoto of my safari pictures.  I want to share it online to iTunes or YouTube as a slideshow.  Is that possible?

  • Safari crashes more than 15 times in a day !

    Why does this happen ? This is so frequent and very annoying

  • Xdp file location:

    Hi,    I created a form.xdp using LiveCycle ES in Enterprise suite. I'm surprised that I could not able to find the form in the server. Where is the exact location the form gets stored? I guessed it might be saved as a data record in MYSQL database.

  • List Of Sales Order

    Hi   Is it possible to display a list of open sales order (fields Order No & 1 UDF) of that customer through FMS in Header reference field of Incoming Payments  when user enter code in . Thanks