Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

Extension issue..

Hi Community,

How to add extension to Extension Object.

If i am adding Document Properties----->Extensions---->Add Extension Name

it's showing all pages.. but i need only one page..

How to add only one Sheet.

Thanks in Advance..

6 Replies
qv_testing
Specialist II
Specialist II
Author

Please anyone can help me..

how to add extension particular sheet's..

ashfaq_haseeb
Champion III
Champion III

Hi,

I don't think you can do that.

Document Extension will be applied to entire document.

You can create a new idea here Ideas.

Regards

ASHFAQ

sudeepkm
Specialist III
Specialist III

I'm sorry I could not understand the requirement. Are you trying to keep the extension object chart in one sheet or you are trying to keep the extension object sheet object option to one sheet only?

in the later case i think as it is a sheet object so it should be available to all sheets in the document.

Alexander_Thor
Employee
Employee

It seems like you have mixed up the two different extensions.

There are two types of extensions, Document and Objects.

Document extensions are added from the Document Properties dialog and they are document wide extensions that operate at a higher level then objects meaning that they usually don't have access to a hypercube of dimensions and expressions.

Object Extensions on the other hand are added by activating web view, right clicking on a sheet and choosing add object. Then simply drag the desired object onto the sheet. Object extensions are basically like any other chart, they can include a hypercube (dimensions and expressions) and usually visualize that data.

qv_testing
Specialist II
Specialist II
Author

HI Alex,

If we are use document extension, it shows all sheets.

but i need only one sheet... how to add object level..

is it possible???

Alexander_Thor
Employee
Employee

No, a document extension can not be explicitly added to a single sheet. It will be added to the document and the document extension code will fire for all sheets.

You could however code your document extension to only fire if a specific sheet is active and sort of simulate a sheet level document extension.

This is some pseudo code to get you started.

Qva.AddDocumentExtension('Your Document Extension', function() {

     //Check if a specific tab is active using jquery. Need to escape the backslash in the id.

     if( $('#Document\\\\SH01').hasClass('selectedtab') {

          //The sheet SH01 is currently active. Do something.

          $('.QvPageBody').css('background-color', 'red');

     };

});