Need Calendar Year  as a Variable in the Title of a Table using WAD 3.5

I am using Web Application Designer 3.5 for the first time.
I am modifying a template that has the following table object in it:
</object><object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="TABLE_4"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_5"/>
         <param name="CAPTION" value="Employee Information"/>
         <param name="WIDTH" value="966"/>
         ITEM:            TABLE_4
</object></P>
The Caption of the table is currently set to "Employee Information".  I need the Caption of the table to say "2007 Employee Information" where the year is the previous year.  In other words, if the web application is executed in 2008, the title would say "2007 Employee Information".  If the web application is executed in 2009, the tilte would say "2008 Employee Information".
I am very new to BW and WAD so a detailed explanation would be greatly appreciated.

Goto the Query Description and click on the Text variable icon.
Create a text variable of processing type as customer exit which populates the previous year value.
Use this text variabkle along with the Query Description. So your description will look something like &TXT_VAR& EMPLOYEE INFORMATION
Attach this query as dataprovider to the table item in WAD and you can see the table caption as the previous value followed by Employee Information.
Hope this helps.

Similar Messages

  • Need Calendar Year as a Variable in the Caption of an Analysis Item WAD 7

    I am using Web Application Designer 7.X for the first time.
    I am modifying a template that has the following Analysis Item in it:
               <bi:ANALYSIS_ITEM name="TABLE_4" designheight="300" designwidth="966" >
                    <bi:WIDTH value="966" />
                    <bi:WITH_TRAY value="X" type="CHOICE" text="" >
                        <bi:TRAY_SETTINGS type="COMPOSITE" >
                            <bi:CAPTION value="Employee Information" >
                                <bi:text localkey="1" />
                            </bi:CAPTION>
                            <bi:CAPTION_VISIBLE value="X" />
                        </bi:TRAY_SETTINGS>
                    </bi:WITH_TRAY>
                    <bi:DATA_PROVIDER_REF value="DATAPROVIDER_5" />
                    <bi:LINKED_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" />
                    <bi:ROW_HEADER_VISIBLE value="X" />
                </bi:ANALYSIS_ITEM>
    The Caption of the table is currently set to "Employee Information". I need the Caption of the table to say "2007 Employee Information" where the year is the previous year. In other words, if the web application is executed in 2008, the title would say "2007 Employee Information". If the web application is executed in 2009, the tilte would say "2008 Employee Information".
    I am very new to BW and WAD so a detailed explanation would be greatly appreciated.
    Points will be awarded.

    I am trying to change the caption of the Analysis Item using Javascript, but the caption is showing up blank.  This is my first attempt at writing Javascript so a detailed answer would be greatly appreciated. 
    I would like the caption to read "HR Data 2007" if the function is called in 2008.  I would like the caption to read "HR Data 2008" if the function is called in 2009.  So always use the previous year in the caption.
    I took the following steps: 
    1.  In Web Application Designer, I created a Script item in my Web template.
    2.  I created the function executeJS_SET_ITEM_PARAMTERS_R using the Script Editing Wizard.
    3.  I made modifications to the function to add the year into the caption.
    4.  I modified the XHTML by adding the function to the body onload.  I am not sure if I need to do this part or if my syntax is correct here.  I can't post how I formatted the body onload because this causes 500 errors when I try to post the message.
    Here is the part of the function that I modified using the Script Editing Wizard. 
                    // Create parameter CAPTION
                    var d = new Date();
                    d.getFullYear();
                    var newCaption = "HR Data " + d;
         var paramCAPTION = new sapbi_Parameter( "CAPTION", newCaption );
         paramListTRAY_SETTINGS.addParameter( paramCAPTION );
         // End parameter CAPTION!     
    Here is the XHTML for the Analysis Item showing that the caption is set to be visible.:
               <bi:ANALYSIS_ITEM name="TABLE_4" designheight="300" designwidth="966" >
                    <bi:WIDTH value="966" />
                    <bi:WITH_TRAY value="X" type="CHOICE" text="" >
                        <bi:TRAY_SETTINGS type="COMPOSITE" >
                            <bi:CAPTION />
                            <bi:CAPTION_VISIBLE value="X" />
                        </bi:TRAY_SETTINGS>
                    </bi:WITH_TRAY>
                    <bi:DATA_PROVIDER_REF value="DATAPROVIDER_5" />
                </bi:ANALYSIS_ITEM>
    Here is the XHTML for the Script Item:
                <bi:SCRIPT_ITEM name="SCRIPT_ITEM_1" designwidth="300" designheight="70" >
                    <bi:SCRIPT_CONTENT_TYPE_LIST value="JAVASCRIPT" />
                    <bi:SCRIPT value="biLargeData:9CG1G0CWFS76DYKR0YY9GYHEM" />
                </bi:SCRIPT_ITEM>
    Edited by: Karen Thompson on Apr 10, 2008 5:34 PM
    Edited by: Karen Thompson on Apr 11, 2008 6:21 PM

  • I run a Windows 8.1 -  Photoshop CS5 under Parallels on an iMac one year old and both having the latest OS. I use a NIK plugin "VIVEZA" which run fine for years without a problem. Latelt and without a reason, the NIK plugin has gone corrupt, (can not use

    @I run a Windows 8.1 -  Photoshop CS5 under Parallels on an iMac one year old and both having the latest OS. I use a NIK plugin "VIVEZA" which run fine for years without a problem. Latelt and without a reason, the NIK plugin has gone corrupt, (can not use it more the 2 corrections after a get a black background message that there is not enough memory) and the system stops running and a must restart is required. How do I fix this terrible problem?
    If it requires a Photoshop CS5 re-install, (I belief that it may fix the problem) and re-install the two third party plugins (NIK Viveza) and (Onone Perfect Resize) how and where do I get to the proper Adobe upload page to do that.
    I have tried to fix this problem by changing the memory allocations, I have spend many hours on it and are very disgusted with it but it needs to be fixed. The current memory settings are;
    Ram available = 1588 MB
    Range = 873 -1143 MB
    Recommended Photoshop usage range =  857  however I have tried every setting to max and in between. Nothing works. Current setting = 1588 (max)
    The Photoshop I use is registered, I have product # and order # .

    Contact NIK for updated/upgraded versions of their plug-ins.  They have been having a lot of issues with their plug-ins.

  • Show Report Variable in the title

    Hi all,
    I need to know if it's possible to show in a title of Answer a report variable and, if it's possible, how can I do.
    Thanks a lot
    Steve

    Hallo Venkat,
    Thanks for your reply!
    I'd like to have the most recent loaddate in the title, that works fine now.
    However, i'm struggling with the format of the variable, maybe you have a tip how to change that.
    This is what i've done:
    1. Created repository initialization block "get most recent loaddate". This refreshes every day. The query is basicly a select on my loadtable to get the max date from the loadtable.
    2. Then i created a dynamic repository variable "get most recent loaddate" which retrieves from my initialization block.
    When i set default to '31-12-2007' (just for checking), i creates TIMESTAMP '2007-12-31 00:00:00'.
    3. So, when i use the variable in the title, i get all this text. I'd like to just see the date instead.
    Do you have a suggestion how i can set the datatype to date from the variable?
    Thanks
    Sandra

  • Using variables in the title of the graph

    Hi Gurus,
    I would like to use - for example a presentation- variable in the title of a graph.
    I assign a value for that variable in dashboard prompt.
    Does anybody know the syntax of using variable in the title of a graph
    (Not in a Title view!)
    Thanks in advance .
    Regards
    Laszlo

    You can reference presentation variables in the following areas :
    Title Views
    Narrative Views
    Column Filters
    Column Formulas
    Conditional Formatting conditions
    Chart scale markers.
    Gauge range settings.
    Static text.
    Direct Database Requests
    Dashboard prompts
    iBot Headlines and text

  • Session variable in the title

    I want to add my session variable in the title.
    I used the following:
    @{biServer.variables['NQ_SESSION.myvariable']}
    and I got the default session variable value and not the current one.
    I know about the way to add column and use it in narrative text, but I want it in the title.
    Can someone please assist?

    Look into these http://obiee101.blogspot.com/2008/02/obiee-adding-session-variables-to.html
    http://obiee101.blogspot.com/2007/12/obiee-referencing-session-variables-in.html
    Display Session Variable in Title View
    hope answered.
    Cheers,
    KK

  • When trying to use my webmail service it says i need some java to run reply to the emails.  i am using an iPad iOS 6.1.3

    when trying to use my webmail service it says i need some java to run reply to the emails.  i am using an iPad iOS 6.1.3
    what do i hve to do to be able to use my webmail ?

    Java is not supported on iPads. Does your provider have a non-Java version or have their own app, or could you use the Mail or a third-party email app for it ?

  • How to delete the data in a table using function

    hi all,
    i need to delete the data in a table using four parameters in a function,
    the parameters are passed through shell script.
    How to write the function
    Thanks

    >
    But the only thing is that such function cannot be used in SQL.
    >
    Perhaps you weren't including the use of autonomous transactions?
    CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    tot_emps NUMBER;
    BEGIN
    SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
    DELETE FROM emp3
    WHERE empno = employee_id;
    COMMIT;
    tot_emps := tot_emps - 1;
    RETURN TOT_EMPS;
    END;
    SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
    REMOVE_EMP(7499)
                  12
    SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
    REMOVE_EMP(7521)
                  11
    SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
    REMOVE_EMP(7566)
                  10
    SQL>

  • What are the delta mechanisms and tables used for  Lo Extraction & COPA

    Hi all
    what are the delta mechanisms and tables used for  Lo Extraction & COPA.
    please explain clealry.
    Thanks & Regards,
    James

    James,
    Please go through Roberto's weblog :
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Anyways,
    As you know LO cockpit consists of different modules(MM, PP, SD, etc)
    They are called appl components. Each of them have a number (eg.MM=02) and for each appl comp they might be different Data sources and for each DS they might be different tables. So, unless you be specific we cant tell a specific table for a DS.
    coming to the delta mechanisms, there are " direct delta, queqed delta and serialized delta".
    Copa is based on the oepration concern. it can be created on " accouting based" or "costing based".
    Assign points if helpful
    Kalyan

  • How to write a procedure to load the data into a table using xml file as input to the procedure?

    Hi,
    Iam new to the xml,
    can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
    <?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>.
    Regards,
    vikram.

    here is the your XML parse in 11g :
    select *
      from xmltable('//Entity' passing xmltype
    '<?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>
    ') columns
      "dcode" varchar2(4000) path '/Entity/dcode',
      "ddesc" varchar2(4000) path '/Entity/ddesc',
      "reauthflag" varchar2(4000) path '/Entity/reauthflag'
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    Using this parser you can create procedure as
    SQL> create or replace procedure myXMLParse(x clob) as
      2  begin
      3    insert into MyXmlTable
      4      select *
      5        from xmltable('//Entity' passing xmltype(x) columns "dcode"
      6                      varchar2(4000) path '/Entity/dcode',
      7                      "ddesc" varchar2(4000) path '/Entity/ddesc',
      8                      "reauthflag" varchar2(4000) path '/Entity/reauthflag');
      9    commit;
    10  end;
    11 
    12  /
    Procedure created
    SQL>
    SQL>
    SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
    PL/SQL procedure successfully completed
    SQL> select * from MYXMLTABLE;
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    SQL>
    Ramin Hashimzade

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How do I hyperlink the title of a table to a webpage in Numbers 3.0.1?

    How do I hyperlink the title of a table to a webpage in Numbers 3.0.1? After highlighting the text, Format's "Add Link [Apple]-K" menu item is greyed out, and I see no option in the Format popin menu.
    I am using OS X 10.9 on an August 2010 MacBook Pro.
    Thank you for your time.

    How do I hyperlink the title of a table to a webpage in Numbers 3.0.1? After highlighting the text, Format's "Add Link [Apple]-K" menu item is greyed out, and I see no option in the Format popin menu.
    I am using OS X 10.9 on an August 2010 MacBook Pro.
    Thank you for your time.

  • Question on Updating the rows of a table using a SELECT Statement

    Hi,
    I am trying to set all of the R_IDs in one table to the ID from another table using a join.
    Here is the SQL I came up with. I don't this is correct though.
    UPDATE TABLEA A
    SET R_ID=(Select Id from TABLEB B
    WHERE A.DEE=B.DEE AND
    B.RNUM=1);
    Does this make sense?

    You can try the join view.
    UPDATE ( SELECT table_a.id   AS a_id,
                    table_b.id   AS b_id,
                    table_a.col1 AS a_col1,
                    table_b.col1 AS b_col1,
                    table_a.col2 AS a_col2,
                    table_b.col2 AS b_col2,
                    table_a.col3 AS a_col3,
                    table_b.col3 AS b_col3
               FROM table_a,
                    table_b
              WHERE table_a.id = table_b.id)
       SET a_col1 = b_col1,
           a_col2 = b_col2,
           a_col3 = b_col3;
    However it may result in
    ORA-01779: cannot modify a column which maps to a non key-preserved tableThis is because the key-preserving property of a table does not depend on the actual data in the table. It is, rather, a property of its schema. For example, if in table_b there was at most one record for each id value, then table_a.id would be unique in the result of a join of table_a and table_b, but table_a would still not be a key-preserved table. By adding the unique/primary key on the id column of table_b we can assure that if table_b.id were part of the result set of the join view then it would be unique. This makes table_a key preserved.
    Thus, in order to update a join view we must assure that the columns involved in the join view from the source table are unique. We do this by creating a unique or primary key on those columns.
    However, if you do not mind taking responsibility for making sure that there is one-to-one cardinality between the source and destination rows, then you might try the correlated subquery
    UPDATE table_a
       SET (col1, col2, col3 ) =
              ( SELECT col1, col2, col3
                  FROM table_b
                 WHERE table_b.id = table_a.id )
           WHERE EXISTS
               ( SELECT col1, col2, col3
                   FROM table_b
                   WHERE table_b.id = table_a.id )

  • Display only one variable in the header and not column in WAD

    Hi All,
    my requirement is to be able to display only one variable in the report output header and hide the others. I am able to display all by using the INFO FIELD ITEM and saying variable display ON - but the requirement is very specific for only one variable display.
    how can i achieve this ?
    Thanks,
    Shweta

    Hi,
    You can insert a text item and Turn off the others or Hide these from Filter pane I have done that and then use that query for your WAD.
    Steps:
    1. Uncheck all the variables from your Design item in Analyzer.
    2. Insert a New Text Item and check the Variable you want to display.
    3. Go back and run the Query.
    Even you can change the position in the Query and Save as a workbook.Let me know ,if this works.
    ~AK

  • Need a document about how to move the fact and dimension table's to different server's

    Hello Experts,
    I need a detailed doc on how to move the fact and dimension tables to different server's.Please help me out from this
           Thanks in advance....

    You still haven't told anyone what products besides Essbase you are using, without which this is an impossible question to answer.
    https://forums.oracle.com/thread/2585515
    https://forums.oracle.com/thread/2585171
    Are you connecting to these tables from Essbase with a load rule / ODBC?  Using Studio?  Using Integration Services?  Any Drill-Through reporting set up?
    This may sound harsh, but if you truly don't know how to answer any of these questions you should probably not be anywhere near this task...

Maybe you are looking for