How take variable value in WAD 7.0 from query

Hi experts,
We have some queries with the same type of data but with different structure. All have the same variables entry and we want to execute through WAD one of them based on the values entered in the variables screen.
Could you help us saying how we can take that variables values entered in order to use in the Web template code?
We are using WAD 7.0 and QD 7.0.
Thanks in advance.

I'm afraid I haven't made my question understood clearly.
What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
Please advice.
Thanks in advance,
Shady

Similar Messages

  • How to Read Variable Values in WAD 7.0 Using JavaScript

    I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
    I get a Javascript error:
    bics.getElementsByTagName is not a function
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    Thats my script:
    function currency()
    var varnm = "SFS_CP_CURR"; // Name of the variable to be read
    root = document.childNodes[0]; // <HTML>
    body = root.getElementsByTagName("BODY")[0]; // <BODY>
    xml = body.getElementsByTagName("XML")[0]; // <XML>
    bics = xml.childNodes[0]; // <BICS_VIEW>
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
    for ( i = 0; i <= varl.length; i++ ) // Loop one by one
    vari = vars.getElementsByTagName("VARIABLE")<i>;
    varnam = vari.attributes[0].text; // get variable name
    mem = vari.getElementsByTagName("MEMBER")[0];
    varval = mem.attributes.getNamedItem("name").value; // read variable value
    if (varnam == varnm) //check varname in loop needs to be read
    if (varval == "ZMON") // check for value1 and fire command1
    SFS_CP_M();
    if (varval == "ZKON") // check for value2 and fire command2
    SFS_CP_K();
    break;
    Where's the mistake?

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How to display a variable value in WAD?

    I am using a replacement path variable to filter a report by project number. While this works fine, the project number is not easily visible (only via Filter -> Display All Filter Values and this only displays the description, not the key).
    How can I display the key and the description of the project number variable at the top of the report?
    Thank you,
    Dennis

    The first part is right -
    1) drag a text element onto the page, at a location in which you want the variable value to be displayed
    2) On the left hand bottom page - go to the web item properties for the text element
    3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
    4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
    5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
    click ok and save your template and try executing it.
    See if this solves your problem.
    regards,
    Nikhil

  • How to pass a Variable value into an ODI Scenario from ODI Package

    I have created an Interface that uses the variable #ENTITY_ID for retrieving entity data from the DWH; now I have generated a Scenario from the interface and placed the Scenario in an ODI Package; am not sure how to pass the #ENTITY_ID variable to the ODI Scenario?
    Any help is greately appreciated.
    Best Regards
    Bee

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • Urgent How to get variable value in other sub templates from main template

    <?import:file:///C:/Temp/P1.rtf?> <?import:file:///C:/Temp/P2.rtf?>
    <?import:file:///C:/Temp/P3.rtf?>
    <?param@begin: Test;'default_value';'string'?>
    <?$Test?>
    <?CALL: O1?>
    <?CALL: O11?>
    <?CALL: O111?>
    <?CALL: O1111?>
    <?CALL: O11111?>
    <?CALL: P1FOOTER?>
    PageBreak
    <?CALL: O2?>
    <?CALL: O22?>
    <?CALL: O222?>
    <?CALL: O2222?>
    <?CALL: O22222?>
    <?CALL: P2FOOTER?>
    PageBreak
    <?CALL: SUM1?>
    <?CALL: SUM2?>
    <?CALL: SUM3?>
    <?CALL: SUMFOOTER?>
    Now i am passing some parameter value to the main template, but i have to pass that variable value in all other templates.
    I am getting parameter value in main template but not getting in other templates. Getting error BI generation failed
    Please advise me.
    Thanks,
    Jag

    Hi Niel,
    are those variables A and B used for the same characteristics?
    If not, maybe you could try to put variable A also to the 2nd query as dummy variable, that would not affect the query... Then in WAD you would see that just once and then you should be able see the variable A in the step 2 in user exit.....
    But I guess, that has already struck you.....
    Regards
    Pavel

  • How to pass variable value into module pool scren from a report program

    Hi,
    I have created a report program with selection screen parameters. when the inputs are filled and executed it generates the purchase evaluation sequence number. i have created a screen and passed that number to display on it with print option and back option buttons as required. but variable alone is not getting passed from the program to module pool screen. buttons are working fine. value alone is not coming. can anyone please help me.
    regards,
    sudha.

    Hi ,
    you need to declare that variable param at Global.
    sample code...
    report xyz....
    data: g_no type ekko-ebeln.
    start-of-selection...
    g_no = '12345'.
    call screen 0100.

  • Javascript Example to Read Variable Value  in WAD 7.0

    Hi,
    I am looking for a JavaScript example of how to read the value of a variable in the 7.0 WAD.  If anyone has done this and would like to share that would appreciated.
    Thanks,
    Mel

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Refresh Variable values in WAD

    We have a strange problem in WAD.
    Actually we are on 731 on Hana and we have built a web report with WAD which contain 20 queries. these queries has 2 varibales:
    - calyear
    - Company code
    As ex when we launch the report with variable's values 2013 - CC01 the system shows the message ' No data found..' for one query  but now if we select the button 'refresh variables' (always for 2013 - CC01) the system shows data!
    Also if we execute the same query in BEX the system shows data.
    In fact there are correct data in InfoProvider for this selection but it looks like that for the 1st execution the system is unable to incorporate the correct variable's value.
    Regards
    Luca

    The problem is that refreshing data across all queries works only if we are already into the report (img 2) but if we launch for 1st time the same report it doesn't work (img 1), so:
    1) launch the wad (variables 2013 CC01) the result is 'No data'
    2) refresh the wad (always with 2013 CC01) the system show data.
    thanks.

  • How catch variable value from trigger

    situation:
    I have trigger which is fired after update on any value in table aaa, trigger is used to archive all values in updated row from table aaa to table aaa_archive, in trigger is calculated sys_guid() ID for archive record ID, I need to get this ID, and forward to php code, because of some filesystem archive operations with files(files are archvived as well, and I need create connection between this file and archived record in DB).
    It is needed to use trigger instead of some own pl/sql archive procedure.
    Can somebody help?
    Thx :)

    Seems to me like you're not grasping how an INSERT works.
    SQL> create table foo_tab( guid varchar2(100), n number );
    Table created.
    SQL>
    SQL> create or replace trigger ins_foo_tab
    2 before insert on foo_tab
    3 for each row
    4 begin
    5 :new.guid := SYS_GUID();
    6 end;
    7 /
    Trigger created.
    SQL>
    SQL>
    SQL> insert into foo_tab( n ) values( 1 );
    1 row created.
    SQL>
    SQL> select * from foo_tab;
    GUID N
    42D0B3DA3E22D07EE040FB0A3A5D4C40 1
    SQL>
    SQL> -- from php
    SQL> var guid varchar2(100)
    SQL> insert into foo_tab( n ) values( 2 ) returning guid into :guid;
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> -- from PHP
    SQL> print guid
    GUID
    42D0B3DA3E23D07EE040FB0A3A5D4C40
    SQL>
    SQL> select * from foo_tab;
    GUID N
    42D0B3DA3E22D07EE040FB0A3A5D4C40 1
    42D0B3DA3E23D07EE040FB0A3A5D4C40 2
    SQL>

  • How to supply values for searchCriteria items in af:query programmatically

    Hi,
    Is it possible to supply the default values for search criteria items in af:query programmatically? I didn't find any of the method to set the values for the search criteria items inside the oracle.adf.view.rich.model.Criterion and oracle.adf.view.rich.model.AttributeCriterion classes.
    Please let me know how can I supply DATE values by default for the search criteria items inside the view criteria.
    Thanks

    Jdev I am using is 1.5.
    I've search page where I've a date field (like TransactionDate). The transactionDate is a transient variable in my VO. Created a view criteria using this transient date filed and kept the operator as 'Between'. When I load the page, I want to keep the values for Between operator as 'CurrentDate' and 'CurrentDate - 365 days' (LastYearDate as of today).
    I can't use bind variables to set the currentDate and lastYearDate to the values of the 'Between' operator. If I use so, I will get an error 'Attempt to set a parameter that doesn't occur in the sql.....'.
    So I thought of overriding the QueryEvent inside the bean. But I didn't find a way to set the values for the TransactionDate programmatically.
    I tried below code in the queryEvent method, but in this case the response time is very hign ( I didn't see the result till 30mn).
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    ViewCriteria vc =
    JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)bc.findExecutableBinding("SupplierSearchCriteriaQuery"),"__ImplicitViewCriteria__");
    Date curretYearDate = null, lastYearDate = null;
    Calendar calendar = Calendar.getInstance();
    curretYearDate = calendar.getTime();
    calendar.add(Calendar.DAY_OF_YEAR, -365);
    lastYearDate =calendar.getTime();
    Object o = new Date();
    ViewCriteriaRow vcr = (ViewCriteriaRow)vc.get(0);
    for(int i=0;i<vcr.getAttributeNames().length;i++) {
    if(vcr.getAttributeNames() == "LastTransactionDate") {
    System.out.println("====================== opeartor ================== " + vcr.getOperator("LastTransactionDate"));
    if( ("%".equals(vcr.getAttributeValues()[i]) || vcr.getAttributeValues()[i]==null)) {
    List nameList = new ArrayList();
    nameList.add("LastTransactionDate");
    List valueList = new ArrayList();
    valueList.add(lastYearDate);
    valueList.add(curretYearDate);
    vcr.setAttributeValues(nameList, valueList);
    vc.addRow(vcr);
    JUSearchBindingCustomizer.applyAndExecuteViewCriteria(bc, vc);
    Thanks,
    Lakshman

  • How to set values in a CoreTable programmatically from a backing bean

    Hi,
    One of the columns in my CoreTable is "af:inputText" field, I need to set the value of inputText field in each row from a backing bean.
    I have bound this table to a component in the bakcing bean and in the setMyCoreTable method I'm also preselecting certain rows. For all the preselected rows I need to set a value in the inputText field.
    Can someone point me to some code samples or give me some ideas to solve this.
    Thanks

    Thanks dvohra,
    I looked at the post you suggested yesterday, but I wasnt sure how I can implement that in my case.
    Since Im programatically preselecting certain rows in the setMyCoreTable method(which is the accessor method), I was hoping I could prepopulate the input text field as well in the same method.
    For your reference below is the code from jspx and the backing bean.
    <af:table value="#{bindings.ProgramComponentList.collectionModel}"
    var="row"
    rows="#{bindings.ProgramComponentList.rangeSize}"
    first="#{bindings.ProgramComponentList.rangeStart}"
    emptyText="#{bindings.ProgramComponentList.viewable ? 'No rows yet.' : 'Access Denied.'}"
    selectionState="#{bindings.ProgramComponentList.collectionModel.selectedRow}"
    selectionListener="#{bindings.ProgramComponentList.collectionModel.makeCurrent}"
    binding="#{backing_EditProgramBean.compsTableComponent}">
    <af:column sortProperty="Name" sortable="true"
    headerText="#{bindings.ProgramComponentList.labels.Name}">
    <af:outputText value="#{row.Name}"/>
    </af:column>
    <af:column sortProperty="Description" sortable="true"
    headerText="#{bindings.ProgramComponentList.labels.Description}">
    <af:inputText value="#{row.Description}" simple="true"
    required="true"
    columns="30"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectMany id="tableSelectMany1"/>
    </f:facet>
    </af:table>
    CODE FROM BACKING BEAN ---------
    public void setCompsTableComponent(CoreTable compsTableComp) {
    ManageProgramsServiceImpl serviceImpl =
    (ManageProgramsServiceImpl)JSFUtils.get("#{bindings.ProgramDetailIterator.dataControl.dataProvider}");
    ViewObject searchProgramView = serviceImpl.findViewObject("SearchProgramView");
    Row currProgram = searchProgramView.getCurrentRow();
    ViewObject view = serviceImpl.findViewObject("ProgramComponents");
    view.setWhereClause("ProgramsComponents.PROGRAM_ID = " + currProgram.getAttribute("ProgramId"));
    view.executeQuery();
    view.setRangeSize(view.getRowCount());
    view.executeQuery();
    Row[] programComponents = view.getAllRowsInRange();
    RowKeySet rks = new RowKeySet();
    ViewObject compTypesView = serviceImpl.findViewObject("ProgramComponentList");
    compTypesView.setRangeSize(compTypesView.getRowCount());
    compTypesView.executeQuery();
    Row[] compTypes = compTypesView.getAllRowsInRange();
    for (int i = 0; i < compTypes.length; i++) {
    String code = compTypes.getAttribute("Code").toString();
    for(int j=0; j<programComponents.length; j++){
    String programCode = programComponents[j].getAttribute("ComponentType").toString();
    if(programCode.equalsIgnoreCase(code)){
    rks.getKeySet().add(compTypes[i].getKey());
    compsTableComp.setSelectionState(rks);
    List li = compsTableComp.getChildren();
    System.out.println("****** li : " + li.size());
    //System.out.println("****** row count : " + compsTableComp.getRowCount());
    //System.out.println("****** count : " + compsTableComp.getRows());
    this.compsTableComponent = compsTableComp;
    The table children size(li.size()) comes up as zero and [compsTableComp.getRowCount()] gives an exception. Can you please provide any help. Seems like Im off track with this whole thing.
    Thanks

  • How to insert fragment into xml column generated from query

    I'm trying to generate xml from some relational data and then insert a sub node into an xml column. Here's some sample code that obviously doesn't work.  I'm trying to figure out the syntax where the ???? exist.
    /* create test tables*/
    DECLARE @person TABLE
    id int NOT NULL PRIMARY KEY CLUSTERED,
    info xml NULL
    DECLARE @roles TABLE
    id int NOT NULL,
    role_name varchar(20) NOT NULL,
    PRIMARY KEY
    id,
    role_name
    /* insert test values */
    INSERT INTO @person (id, info)
    VALUES (1, '<person><name><first_name>Joe</first_name><last_name>Smith</last_name></name></person>'),
    (2, '<person><name><first_name>Tim</first_name><last_name>Jones</last_name></name></person>');
    INSERT INTO @roles (id, role_name)
    VALUES
    (1,'Admin'),
    (1,'User'),
    (2,'Editor'),
    (2,'User');
    /* make sure that xml comes back correctly*/
    SELECT
    role_name AS name
    FROM @roles AS role
    WHERE id = 1 -- works for each id
    FOR XML AUTO, ROOT ('roles');
    UPDATE p
    SET info.modify('insert ???? as last into (/person)[1]')
    FROM @person p
    INNER JOIN @roles r
    ON p.id = r.id
    /* desired output in the info column for id = 1*/
    <person>
    <name>
    <first_name>Joe</first_name>
    <last_name>Smith</last_name>
    </name>
    <roles>
    <role name="Admin" />
    <role name="User" />
    </roles>
    </person>
    Any ideas?

    this?
    DECLARE @person TABLE
    id int NOT NULL PRIMARY KEY CLUSTERED,
    info xml NULL
    DECLARE @roles TABLE
    id int NOT NULL,
    role_name varchar(20) NOT NULL,
    PRIMARY KEY
    id,
    role_name
    /* insert test values */
    INSERT INTO @person (id, info)
    VALUES (1, '<person><name><first_name>Joe</first_name><last_name>Smith</last_name></name></person>'),
    (2, '<person><name><first_name>Tim</first_name><last_name>Jones</last_name></name></person>');
    INSERT INTO @roles (id, role_name)
    VALUES
    (1,'Admin'),
    (1,'User'),
    (2,'Editor'),
    (2,'User');
    /* make sure that xml comes back correctly*/
    SELECT
    role_name AS name
    FROM @roles AS role
    WHERE id = 1 -- works for each id
    FOR XML AUTO, ROOT ('roles');
    UPDATE p
    SET info.modify('insert sql:column("x") as last into (/person)[1]')
    FROM @person p
    CROSS APPLY(SELECT role_name FROM @roles WHERE id = p.id FOR XML PATH(''),ROOT('roles'),TYPE)r(x)
    select * from @person
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • ADF - How to create table which column header come from query result

    I would like to create table that show the summary of task for each month, the query result such as
    Status MonthofYear Total Task
    03 2007/06 9
    03 2007/05 12
    03 2007/04 10
    03 2007/03 7
    05 2007/06 6
    05 2007/05 3
    06 2007/06 1
    09 2007/06 1
    And the table that I would like to show in jdeveloper is
    Status 2007/06 | 2007/05 | 2007/04 | 2007/03 | ......... | 2006/05
    03 9 | 12 | 10 | 0 | .......
    05 6 | 3 | 0 | 0 | .......
    06 1 | 0 | 0 | 0 | .......
    09 1 | 0 | 0 | 0 | .......

    Lucas worked out a solution for this:
    http://technology.amis.nl/blog/?p=2070

  • How to find the Name of Infoset either from Query Name or Program Name

    Hi,
    I ahve got the program name from the Transaction code of the Query. I also found out the name of the Query but I could not find out the name of the "Infoset". Please help me to find out the name of the Infoset either from the Query Name or from the Program name.
    Thanks,
    Jans

    Hello Christian,
    Thank you for your reply. Actually. We have got transaction name of report and from that we found out the name of the Program and from that Program we have utilised the FM to find out the Query name. But we are unable to find the name of Infiset as we have to Download this Infoset from DEV and it is to be uploaded into QUALITY.
    But we are not sure about the Infoset.
    I could not understand your sentence "When Open it".
    Regards,
    Jans

  • Variables value

    Hi.
    How to get current variable value in WAD using Javascript?

    Hi,
    Go to RSD! and check the infoobject.
    The setting "Query Execution filter value selection" for that particular infoobject of the variable in the "Business Explorer" tab must be set to "values in Master Data table".
    so based on this the variable WILL show all the values that are maintained in the master data.
    To achieve what you are requesting for, in the variable selection pop up screen,
    In the F4 help, click on "Settings"
    and in the "Value Restrictions" tab,
    set the "Read Mode" setting to "custom : Only values in the InfoProvider"
    By Making this setting you should be able to see on the values present in the infoprovider.
    Hope this helps,
    Regards,
    Joe

Maybe you are looking for