Solved

How to add additional database columns to the Cognos Model's Query Subject.

Posted on 2011-09-13
8
958 Views
Last Modified: 2013-12-25
Hi,

I've published the model and packages already.  But I need to add more database columns to the existing Query Subject.

I tried using the ..Run Metadata Wizard, but it's creating another object itself by adding these new columns, instead of adding to the existing object.

Any help would be appreciated.

Thanks
0
Comment
Question by:kris norman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 
LVL 8

Expert Comment

by:SNeupane
ID: 36530752
Right click on the query subject and create a 'Query Item', then edit the expression to what you need.
0
 

Author Comment

by:kris norman
ID: 36530990
But it throwing an error. Because the column I'm referring doesn't exist in the Query Subject yet.

QE-DEF-0030 Expression parsing error.
QE-DEF-0359 The query contains a reference to at least one object '[dbo].[tbl_PO_Facts_POReceipts].[POLineRef]' that does not exist.
0
 
LVL 8

Accepted Solution

by:
SNeupane earned 500 total points
ID: 36531312
I see.
1st of all, cognos best practice suggests that you bring everything from database in your source view and then create business view from the source by selecting only what is needed.
In your case, double click on the query subject you want to add a column, then expand database tables and drag the column what you want to bring in.
Click OK and you'll see the new columns.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Assisted Solution

by:kris norman
kris norman earned 0 total points
ID: 36531566
It's silly one.  I removed the Select * from table in the Query Subject Definition and re-wrote the same query. It works.  

Always, thanks for your help
0
 

Author Comment

by:kris norman
ID: 36531670
I've requested that this question be closed as follows:

Accepted answer: 0 points for nooka8's comment http:/Q_27305807.html#36531566

for the following reason:

It worked
0
 
LVL 8

Expert Comment

by:SNeupane
ID: 36531671
So my 36531312suggestion helped.
May be 'assisted'?
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question