Sie sind auf Seite 1von 10

Tips & Tricks

Topics

Complex Objects Creating Dynamic Dimensions Simplifying Hierarchy Navigation Techniques for Combining Incompatible Data Strategies for Testing Complex Designs Managing and Maintaining Complex Universes Questions

2 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Complex Objects
Embedding HTML or RDBMS Function in Your Object

Embedding HTML

<a href=http://www.website.com>|| table_name.column_name ||<a> Dont forget to set format to Read as HTML

Database functions to get max dates

Get_max_date(time.time_date)

3 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Complex Objects
Using Your Time Objects to Create Complex Measure Objects

CY Oct Sales

Potential issues

Double sum How do you test?


Issue 2, July 1999

4 Copyright 1999 Business Objects SA - All Rights Reserved

Database Complex Objects in Semantic Layer

(CASE WHEN SUM(dbo.CLFY_DAY_TBL.DOWNTIME) = 0 THEN 6 WHEN SUM(dbo.CLFY_DAY_TBL.TOTALTIME) = 0 THEN 0 WHEN (SUM(dbo.CLFY_DAY_TBL.DOWNTIME) / SUM(dbo.CLFY_DAY_TBL.TOTALTIME)) >= 0.5 THEN 0 ELSE ROUND(SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) /SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2))) - ((2.515517 + 0.802853 * (SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) / SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2)))) + 0.010328 * POWER((SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) /SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2)))), 2))) / ((1 + 1.432788 * (SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) / SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2)))) + 0.189269 * POWER((SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) /SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2)))), 2) + 0.001308 * POWER((SQRT(LOG (1 / POWER((SUM(dbo.CLFY_DAY_TBL.DOWNTIME) / SUM(dbo.CLFY_DAY_TBL.TOTALTIME)), 2)))), 3))) + 1.5, 2) END)

5 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Complex Objects to Link Reports(In Semantic layer)


The opendocument function permit to call the opening of a document through webi via a fullclient document.

http://<ServerName>/wi/bin/iswi.dll/WIGenerator/wige nerator/generator/OpenDocument?sDocName=<DocN ame>&sDocType=W&iDocId=<DocId>&sRepoName=< DomainName>&sOpen=Y&lsS<PromptNamet1>=<Val ue1>&lsM<PromptName2>=<Value2>&lsM<PromptNa me3>=<Value3> Object format as Read as Html

6 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Explanation

Explanation of bracketed items and names above: ServerName : Webi server name. sDocType : Type of target report (WebI report: sDocType=W, BO report: sDocType=R). sDocName : document name in the repository. iDocId : Document ID in the repository (you can found it if you check the document URL link in corporate document) DomainName : Document domain name. PromptName1,2 : Prompt name Value1,2,3 : Value of the prompt lsS is a single select prompt and lsM is muti choice prompt : //lsCBS single choice prompt answer //lsCBMi multiple choice prompt number i answer // lsCBR -> refresh LOV, only one allowed

7 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Example

For this example, Ive just modified the demo universe E Fashion. It is call now opendoc. Create an object call citylink in opendoc: Citylink = '<a href="http://lab46/wi/bin/iswi.dll/WIGenerator/wigener ator/generator/OpenDocument?sDocName=opend2&s DocType=R&iDocId=109&sRepoName=Document&sO pen=Y&lsSCity='+Agg_yr_qt_mt_mn_wk_rg_cy_sn_sr _qt_ma.City+'">'+Agg_yr_qt_mt_mn_wk_rg_cy_sn_sr _qt_ma.City+'</a>' Remark: I use a prompt call City
Issue 2, July 1999

8 Copyright 1999 Business Objects SA - All Rights Reserved

Complex Variable to link Reports

=If (IsNull(<Sigma D>)) Then <Daily Bulb> Else "<a href=" & Char(34) & "http://3.205.5.25/wi/bin/iswi.dll/WIGenerator/wigenera tor/generator/OpenDocument?sDocName=SDaily&sD ocType=R&iDocId=34&sRepoName=Document&sOpe n=Y&lsSProcess=" &<Process(Query 1 with GECIS)>& "&IsSCoe=" & <Coe(Query 1 with GECIS)> & Char(34) & ">" &<Daily Bulb> & "</a>
Variable Format -????
Issue 2, July 1999

9 Copyright 1999 Business Objects SA - All Rights Reserved

Complex Variable to display Images

=If (IsNull(<Sigma D> )) Then "<IMG SRC="& Char(34) & "/images/Black1.gif" & Char(34) & ">" Else If (<Sigma D> >=4.2) Then "<IMG SRC="& Char(34) & "/images/Green1.gif" & Char(34) & ">" Else If (<Sigma D> >=4.0 And <Sigma D> <4.2) Then "<IMG SRC="& Char(34) & "/images/Yellow1.gif" & Char(34) & ">" Else If (<Sigma D> >=0 And <Sigma D> <4.0) Then "<IMG SRC="& Char(34) & "/images/Red1.gif" & Char(34) & ">"

10 Copyright 1999 Business Objects SA - All Rights Reserved

Issue 2, July 1999

Das könnte Ihnen auch gefallen