• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1006
  • Last Modified:

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

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
kris norman
Asked:
kris norman
  • 3
  • 3
2 Solutions
 
SNeupaneCommented:
Right click on the query subject and create a 'Query Item', then edit the expression to what you need.
0
 
kris normanAuthor Commented:
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
 
SNeupaneCommented:
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
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
kris normanAuthor Commented:
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
 
kris normanAuthor Commented:
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
 
SNeupaneCommented:
So my 36531312suggestion helped.
May be 'assisted'?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now