BIP 11g: Data Model Editor question

In BIP 11g, when you create a parent query q1 and link it to child query q2, is it possible to refer to column from q1 in the select list of q2? Oracle Reports allows this and I am trying to re-create this Oracle Report to a BIP report and this does not seem to work...i.e.
q1: select a.col1 col1_q1, a.col2 col2_q1from table_a
q2: select b.col1, b.col2, round(:col2_q1/b.col3) calc from table_b
while creating q2, the calculation refers to :col2_q1 which is the 2nd column of the parent query q1, BIP asks confirmation to create a bind variable for col2_q1. These type of references are common in Oracle Reports.
Is there any workaround for this?
Thanks,
Manish

I think it's "11835845 - 11G SQL DATA SET CREATION ORA-01756 ERROR BECAUSE COLON IS READ AS BIND VARIABLE" bug
You can use CHR(58) instead of a colon.
Regards,
Igor

Similar Messages

  • BIP 11g: Data Model Editor bug?

    In BIP 11g, trying to create a data model with single query with following SQL:
    SELECT to_char(SYSDATE, 'HH24:MI') start_time FROM DUAL
    The Create Data Set - SQL window does not like the above SQL. Specifically, the format mask HH24:MI is not recognized and give the error ORA-01756: quoted string not properly terminated.
    Anyone seen this?

    I think it's "11835845 - 11G SQL DATA SET CREATION ORA-01756 ERROR BECAUSE COLON IS READ AS BIND VARIABLE" bug
    You can use CHR(58) instead of a colon.
    Regards,
    Igor

  • XCode 4.02 data model editor -- How do I delete an entity?

    How does one delete an entity from the data model editor in XCode 4.02?
    I have searched for the past hour for a little "minus" button hidding somewhere on the screen.

    Switch Editor Style to 'Graph' from 'Table' (lower right of the editor window).
    Select the entity you want gone...tap once so it shows focus.
    Hit the 'Delete' key on your keyboard. 'Undo' if you want it back.

  • BIP 11g data set links

    Hi Gurus,
    I'm not sure if this is how BIP was designed to work or if this is an issue.
    I have 2 very simple queries that I am using as data sets. These queries are only for illustrative purposes.
    In my first data model, I type in the SQL queries (I do not use the query builder)
    Qry 1:
    select hro.organization_id org_id, hro.name div_cd
    from hr_operating_units hro
    order by hro.name asc
    Qry 2:
    select mtrx.org_id , mtrx.description credit_type, mtrx.attribute1 sort_Seq,
    mtrx.attribute4 lbl_text
    from cn.cn_credit_Types_all_b mtrx
    order by mtrx.attribute1 asc
    I create a link between Qry 1 and Qry 2 on the element ORG_ID. When I run the data model , I get an error. If I remove the link, I get XML output, but it's not what I'm looking for.
    In my second data model, I use the query builder for the same queries. The sqls generated are:
    Qry 1:
    select     "HR_OPERATING_UNITS"."ORGANIZATION_ID" as "ORGANIZATION_ID",
         "HR_OPERATING_UNITS"."NAME" as "NAME"
    from     "APPS"."HR_OPERATING_UNITS" "HR_OPERATING_UNITS"
    order by "HR_OPERATING_UNITS"."NAME" ASC
    Qry 2:
    select     "CN_CREDIT_TYPES_ALL_B"."ORG_ID" as "ORG_ID",
         "CN_CREDIT_TYPES_ALL_B"."DESCRIPTION" as "METRIC",
         "CN_CREDIT_TYPES_ALL_B"."ATTRIBUTE1" as "SORT_SEQ",
         "CN_CREDIT_TYPES_ALL_B"."ATTRIBUTE4" as "LBL_TXT"
    from     "CN"."CN_CREDIT_TYPES_ALL_B" "CN_CREDIT_TYPES_ALL_B"
    order by "CN_CREDIT_TYPES_ALL_B"."ATTRIBUTE1" ASC
    I create a link between Qry 1 and Qry 2 using elements ORGANIZATION_ID and ORG_ID and I get the XML output that I expect.
    Is this the expected behavior? What if I have existing data models that used data templates from eBS or earlier versions of BIP EE?
    Thanks,
    Sunder

    I like it when I answer my own questions. All selected columns must be aliased. In the first data model I changed Qry 2:
    select mtrx.org_id org_id , mtrx.description credit_type, mtrx.attribute1 sort_Seq,
    mtrx.attribute4 lbl_text
    from cn.cn_credit_Types_all_b mtrx
    order by mtrx.attribute1 asc
    and it worked.

  • Session variables in bi publisher 11g data model

    Hello ,
    I am new to bip data models , i am creating data model using bi answers issued sql query . In that bi answers there is an column containing session variable (nq.session.Currency) . When using column in bip data model . How do i give filter column telling it has session variable and setting the session variable currency as bind parameter .
    Please provide inputs how to use columns containg session variable in bi publisher data model
    Thanks,
    SRIKANTH

    Hi,
    You can use VALUEOF("session_variable_name") in the filter condition in your logical query.
    BR.

  • Missing toolbar in data model editor

    Hi,
    I just received an rdf file from one of my collegues.
    i can open the file without any problems but when i go to the data model tool i don't see any tool bar.
    it impossible to add any placeholder columns and so on without this tool bar, because i'm not allowed to add any object from the object navigator either.
    i'm allowed to delete objects though.
    tool version is reports 6.0.8.11.3
    when changing to the layout editor i see the toolbar and when i start a new report from scratch the tool bar appears.
    any help greatly appreciated.
    thanx
    kim

    having worked with reports quite a lot i wasn't aware
    that you could toggle this toolbar on and off.But I also have forms where the toolbar tunrs itself off for no apparent reason. And yes, you can turn it back on with the View menu, but that doesn't explain why it is disappearing.
    Dave

  • Reports Builer 11g - DATA MODEL crashes

    Win 7, 64 Bit
    Reports Builder 11.1.1.2
    Report Builder Launches - OK
    Can click all items in Object Navigator +except DATA MODEL+
    Report Builder crashes.
    Anyone experience the same and find a fix?

    Correct.
    11gR1 Builders on Win 64 are only supported using 32 bits software distribution.
    Reference
         Availability of Oracle Forms/Reports Builders Version 11g R1 (11.1.1.x) on 64 bit Platforms. (Doc ID 1108940.1)
    But you can use the new 11gR2 where builder are support on 64 bits.
    You can download it from the following link.
    reference
    http://www.oracle.com/technetwork/middleware/reports/downloads/index.html
    Regards

  • How to use numeric column in BI Publisher 11g Data Model?

    Hi Gurus
    I was able to create a link(join) in Data model when I used VARCHAR column.
    However if I used numeric column I got an error
    Any ideas?
    Thanks
    Laszlo

    Can you please post the error message?
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Data model editor cannot save samle XML data if data contains angle bracket

    BI Publisher can correctly query data containing angle brackets, and it produces well-formed XML in that case. Angle brackets are correctly coded as &lt and &gt. However, if you try to save the generated XML as sample XML for the data model, BI Publisher will issue the following error in its log:
    [2012-02-17T14:12:07.491-08:00] [AdminServer] [ERROR] [] [oracle.xdo] [tid: 30] [userId: <anonymous>] [ecid: 4d7950b0e2efed24:2a9da7a7:135894f9533:-8000-0000000000002f73,0] [APP: bipublisher#11.1.1] End tag does not match start tag '...'.
    where '...' would be any characters appearing between the open angle bracket and the close angle bracket. The sample XML data will not save, so you cannot open the report in the Desktop TemplateBuilder for Microsoft Word.
    Note that this bug is not fixed in the latest February patch for version 11.1.1.5.
    Edited by: 906888 on Feb 17, 2012 2:51 PM

    ok...tell me this, are you saying you are encoding the angle brackets or bi publisher is doing it automatically????
    With the data I worked, & (ampersands) were more predominant and I replaced the columns containing them with +& a m p ;+ (without spaces) and everything was fine....
    -bifacts
    http://www.obinotes.com

  • Data Model: generation questions

    Hello,
    i'm using a latest and greatest version of the tool.
    I seemed to have problems generating the relational from logical.
    2 questions :
    1.
    emp/dept relation. in emp table i create a UK on deptno. Deptno is a FK from dept table.
    that's fine in the logical diagram, but once i hit generate it produces 2 columns in the emp - deptno ( as a fk ) and deptno2 with UK on it.
    I can't figure out why it's doing it and how to prevent it from doing this.
    2.
    when i create a view . BTW, if you can please! make the process of creation more... user friendly - i think it would be great.
    Anyway, step by step:
    create view in logical.
    add 3 tables using the query builder.
    add where clause using all 3 tables.
    generate to relational.
    go back to logical and remove on table. save changes to logical, try to generate to the relational.
    My end result - no changes to the relational view....
    Please advise.
    Also would be great if you can point me to smth more than a "help" about all those convoluted options in the "generate" menu(s).
    And thank you for this neat tool. The more i use it the better i like it.

    Maggie,
    > .. That's really unusual, so I would ask why this isn't a single entity
    you are right - it's making little sense. I agree. The reason been - I have to extend an existing schema. And i can't modify objects.
    Here is the real life scenario ( maybe you will have a better approach - i'm all for it ).
    1. I have a table Servers( server_name varchar2 - PK, + bunch of other columns )
    2. Yes, it's not a mistake PK is defined on the varchar server_name.
    3. I can't alter the table in any way.
    4. I'm creating a new entity - Book.
    Book should have only one entry per server, and have other information about the server, applications installed on it, etc.
    5. there is an entity that describes applications, per server, per environment. Where PK is defined server_name, application_name,environment_name.
    6. I think to combine these 2 ( server and applications) into Book . I'll have other entities off the Book.
    So in logical I have:
    applications:book => N:M
    applications:servers => N:1
    servers:book => 1:1
    speaking of which... hmm.. i can actually have another entity where i'll store the server_name and other information from Book. and i can create a view where i'll display servers' + book's info joining them on the server_name. I'll have to put "on update/insert/delete" trigger to handle the DML. Plus i'll have to have a UK on server_name in the new entity...
    I think it's good solution to avoid 1:1 relation.
    But it seems that 1:1 will be more streamline at this point - faster to implement, lesser locks, better scaling...
    ... Which is the parent entity and which is the child entity? With a 1-1, how do you tell?Agree.. no way to distinguish.
    ... Let me ask this, on examples where you have a standard 1-to-many relationship between two entities, do you get just the one standard foreign key column?If you imply - "does modeler generate one column in rel model ?" - then my answer is "yes". It generates one column wo problem.
    Happy New Year.
    Andrew

  • Network Data Modeler Source

    I have been working on building PL/SQL to extract Network models from well formed road shape files. I have successfully built a rather large road network and would like to add some features to Oracle's Network Data Model Editor to assist with final editing and add the pl/sql extraction module. Does anyone know if Oracle has released the source for this or if they are planning to?
    Thanks

    Hi,
    Please see the Data Modeler Forum message option Show Source/Target Name “on” in the logic model for an answer to this question.
    David

  • NWDS does not open Webdynpro Component's Data Modeler

    Hi,
    All of a sudden my kindly Tool does not open any of the Component's Data Modeler for Mapping attributes. It happened all of a sudden. I cleaned everything and reinstalled from a proper software.
    If any one has a solution kindly let me know or if you can direct me to appropriate forum or Weblog  to recover it will be a great help.
    -Shekhar

    HI Shekher...
    May be following link will helpful to u...U see some basic tutorial in this link that will help u abt webDynPro.....
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Also I m Giving U some Basic IDEA abt Data-Modular.
    Data Modeler
    Features
    The Data Modeler is a graphical tool and part of the range of Web Dynpro tools. Using the Data Modeler provides you with efficient support for a number of central development tasks.
    ·        Creating a View
    ·        Controller definition
    ·        Declaring a Model to the Component
    ·        Nesting Components
    ·        Creating a Data Link
    ·        Working with View Templates
    ·        Working with the Service Controller
    The perspective area that displays the Data Modeler is the Diagram View. The entities of a Web Dynpro application are created using graphical means. A selection list of Data Modeler actions is available from which you select the relevant entity and insert it in the design area of the Data Modeler.
    Starting the Tool
    Prerequisites
    You have created a Project and a corresponding root Web Dynpro Component.
    Procedure
    To open the Data Modeler, choose Open Data Modeler from the context menu for the component name in the Web Dynpro Explorer. To create an application entity, choose the corresponding Data Modeler action in the tool selection area. Then click on the relevant area in the Data Modeler editor. The corresponding wizard is then started and you can make the required entries.
    For example, to define a custom controller, choose Create Custom Controller and then click on the area Custom Controllers. The definition wizard is started automatically.
    If This is not the case then plz check ur WebDynPro Installation Manual....
    Hope So ur problem will Solve.....:-)
    Regard's
    Dheerendra Shukla

  • Basic questions on data modeling

    Hi experts,
    I have some basic questions regarding data modeling within MDM. I understand the available table types and the concept of lookup fields. I know that the MDM data modeling concept is different to the relational concept. But having a strong database background my first step was to design a relational data model which I would like to transfer to a MDM repository. Unfortunately I didn't found good information material on this. So here are some questions maybe you can help me:
    1) Is it the right approach to model n:m relationships with multivalued lookup fields? E.g. main table Users with lookup field from subtable SapAccounts (a user can have accounts in different SAP systems, that means more than one account).
    2) Has a record always be unique in MDM repositories (e.g. should we use Auto ID's in every table or do we have to mark a combination of fields as unique)? Is a composite key of 2 or more fields represented with marking these fields as unique?
    3) The concept of relationships in MDM is only based on relationships between single records (not valid for all records in a table)? Is it necessary to define all relationships similar to the relational data model in MDM? Is there something similar to referential integrity in MDM?
    4) Is it possible to change the main table to a sub table later on if we realize that it has also to be used as a lookup table for another table (when extending the data model) or do we have to create a new repository from scratch?
    Thank you for your answers.
    Regards, bd

    Yes you are correct. It is almost difficult to map relational database to mdm one. But again MDM is not 'just' a database. It holds much more 'master' information as compared to any relational db.
    1) Is it the right approach to model n:m relationships with multivalued lookup fields? E.g. main table Users with lookup field from subtable SapAccounts (a user can have accounts in different SAP systems, that means more than one account).
    Yes Here you need to use MV look up tables or can also try Qualifier tables if it gets more complex
    2) Has a record always be unique in MDM repositories (e.g. should we use Auto ID's in every table or do we have to mark a combination of fields as unique)? Is a composite key of 2 or more fields represented with marking these fields as unique?
    Concept of uniqueness differs here that you also have something called Display Fields (DF). A combination of DF can also be treated as Unique one. For instance while importing records if you select these DF as a combination, you will eliminate any possible of duplicates based on this combination. Auto Id is one of the ways to have a unique id once record is within MDM. While you use UF or DF to eliminate any possible duplicates at import level
    3) The concept of relationships in MDM is only based on relationships between single records (not valid for all records in a table)? Is it necessary to define all relationships similar to the relational data model in MDM? Is there something similar to referential integrity in MDM?
    Hmm... good one. Referencial Integrity. What I assume you are talking is that if you have relationships between tables then removing a record will not be possible as it is a foreign key for some record. Here MDM does not allow that. As Relationships within MDM are physical and not conceptual. For instance material can have components. Now if material does not exist then any relationship to components is not worthwile to maintain. Hence relationshsip is eliminated.  While in relational model relationships are more conceptual. Hence with MDM usage of lookups and main table you do not need to maintain these kind of relationships on your own.
    4) Is it possible to change the main table to a sub table later on if we realize that it has also to be used as a lookup table for another table (when extending the data model) or do we have to create a new repository from scratch?
    No. It is not possible to convert main table. There is only one main table and it cannot be changed.
    I went for the same option but it did not work. What I suggest is to look up your legacy system one by one and see what fields in general can be classified as Master, Reference, Transactional - You will start getting answers immediately.

  • Questions on Subviews and Import/Export in Data Modeler v3 EA1.

    I have a few questions about the capabilities of Data Modeler v3 EA1:
    1) Is it possible to rename subviews? Would like more meaningful names then Relational_x - Subview_x.
    2) Is it possible to save documents at subview level?
    3) Is it possible to import/export subsets of data?
    4) Having problems importing Erwin 7 .xml file, is there known problems with this import?
    Judy

    Hi Judy,
    1) To rename a subview just right click on it in the browser tree and select "Properties". In the properties dialog change the name and click OK button.
    2) You can save a subview as new Data Modeler design - from the File menu select Export -> To Data Modeling Design. In the newly opened dialog select the subview you want to export and click OK button.
    3) After saving a subview as new design (see answer #2) it can be imported in some other design (File -> Import -> Data Modeler Design).
    4) What kind of problems do you have with import of Erwin 7.* xml file?
    Regards,
    Ivan

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

Maybe you are looking for