How to  build a  Calculator in WAB Template  by using  Java Script......

Hi ,
I am  trying   to build a dynamic  calculator in WAD which is as  similar to one in Executive view in Cognos. The  problem i am  facing  is,  i can  able to build a normal  calculator  by using  java script  but  i am  unable  to read the  key figure  values from  the  analysis  item  on from the  data  provider  in to  by  calculator  by using  on click  function. I wanted  to get the all  the  values in to a internal excel , so  that  my calculator can read the  values from  that. can  any  one  help  me  on getting  values in to internal excel by using   java before the  executing the  web template ?...
Thanks in advance....
Jhon.
Edited by: sap bw on Jul 31, 2008 5:51 PM
Edited by: sap bw on Jul 31, 2008 5:52 PM

I might not be understanding your question completely since you mention WAD and then Excel, but if you are asking how to get the key figure values using Javascript in WAD, you can go to the Dataprovider properties and enable 'Output Result Data'.  This will embed an XML element into the HTML output that you can then parse using standard Javascript DOM navigation.
Hope this helps.

Similar Messages

  • How to do Front End Validation for JSP Forms using Java Script with 9iJD...

    How to do Front End validation using 9iJD. Any wizard is there. We need to do the val. using Java Script. If its not available, please include that in the Production Release.

    Thanks a lot. When is the Production Release is scheduled. Please tell us whether itll be available for Free Download. Bec, we couldnt buy. Bec, if its working fine with all the options without any bug only, we can ask our company to buy 9iJD by stating the advantages. Just explain us.

  • How to convert DTD files into XML(template) by using Java ?

    I am a beginner to java,and want to convert a random DTD file
    into a XML template(having no data).
    any guys can give me some suggestions ?
    thanks very much

    DTD allow you to validate a XML file.
    To do so, you can use API such as dom or xalan.
    To transform an XML file from a vocabulary A to vocabulary B, you have to write a XSLT style sheet, and use xerces to perform the transformation.
    Using tools such as XSL-FO, you can transform your XML into PDF.

  • How can I find my custom panel in CS5 using java script

    -I made an empty panel using Adobe Configurator 2 and then exported it to /Panels folder.
    -My custom panel is now in photoshop and works.
    -I added a simple code to onPanelInit():
    function onPanelInit()
        var myWindow = new Window ("dialog");
        var myMessage = myWindow.add ("statictext");
        myMessage.text = "Hello, world!";
        myWindow.show ( );
    so far so good.
    Now instead of creating a new window like I did above, I want to use the new custom panel and add a text to it.
    The problem is, how do I do that in java? Where can I find the panel that I should assign the text to?
    I know that you can add the text in Configurator, or you can edit the .xml file and add the button there, but my
    plan is to create a panel where i can add and remove buttons dynamically and that's why I have to do that in java.
    Any help would be appreciated!
    Cheers,
    Petri J

    Use Runtime.exec() to run a OS specific command which retrieves OS specific info.
    Or use JNI to access a OS specific API which returns the info you want.

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • How I build my own libraries of classes/methods in java ?

    How I build my own libraries of classes/methods in java ? how then I refer a functionX() (i mean method) in LibraryX ? can you give a short/brief example of a library with a class with a method and a main method of normal class calling this method (of external's added library's) ?

    Just another cross poster.
    [http://www.java-forums.org/new-java/12389-how-i-build-my-own-libraries-classes-methods-java.html]
    db
    edit And [http://forums.java.net/jive/thread.jspa?messageID=305387]
    Edited by: Darryl.Burke

  • How can can I determine where email templates are used?

    How can can I determine where email templates are used?
    Here is a SQL query which was recently provided in response to a YES! question.
    1. E-mails attached to the "Notify when plan cancelled":
    select
         da.Name as ServiceGroupName,
         ds.Name as ServiceName,
         dp.Subject as MonitorTaskName,
         de.LogicName as Event,
         demt.name as EmailTemplateName
    from
         defevent de,
         defemailtemplate demt,
         defeventtrigger det,
         defproject dp,
         defservice ds,
         defarea da
    where
         det.objectid = 21 and
         det.objectinstid = dp.projectid and
         de.eventid = det.eventid and
         demt.emailtemplateid = det.templateobjectinstid and
         ds.serviceid = dp.ownerinstid and
         da.areaid = ds.areaid
    2. E-mails attached to all delivery plan tasks:
    select
         da.Name as ServiceGroupName,
         ds.Name as ServiceName,
         dt.Name as TaskName,
         de.LogicName as Event,
         demt.name as EmailTemplateName
    from
         defevent de,
         defemailtemplate demt,
         defeventtrigger det,
         deftask dt,
         defproject dp,
         defservice ds,
         defarea da
    where
         det.objectid = 46 and
         det.objectinstid = dt.taskid and
         de.eventid = det.eventid and
         demt.emailtemplateid = det.templateobjectinstid and
         dp.projectid = dt.projectid and
         ds.serviceid = dp.ownerinstid and
         da.areaid = ds.areaid
    3. E-mails attached to all approval tasks:
    select
         da.Name as ServiceGroupName,
         ds.Name as ServiceName,
         dwsr.Subject as ApprovalReviewStep,
         de.LogicName as Event,
         demt.name as EmailTemplateName
    from
         defevent de,
         defemailtemplate demt,
         defeventtrigger det,
         defworkflowsteproles dwsr,
         defservice ds,
         defarea da
    where
         det.objectid = 57 and
         det.objectinstid = dwsr.steproleid and
         de.eventid = det.eventid and
         demt.emailtemplateid = det.templateobjectinstid and
         ds.serviceid = dwsr.ownerid and
         da.areaid = ds.areaid

    Just add a line to the "where" clause to specifiy which service(s) you want to run this for rather than for the whole catalog:
    --By Service Name
    ds.Name = "My Service Name"
    --By Service ID (Multiple services can be returned.)
    ds.ServiceID IN ('1', '2', '3')

  • How to read the value of Inputfield in WAD in JAVA script?

    Hi Experts,
    I have a requirement in WAD .
    I have put an Input Field (text box), a button and a script control  in the web template.
    In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
    Thanks in advance.
    Regards
    akshay

    Hi,
    To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
    You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
    Hope the above helps.
    Regards,
    wira

  • How to pass values to variables in WAD 7.0 using java script

    Hi.,
    My requirement is based on WAD 7.0.
    The sales value has to displayed in WAD using graph with various chart types.
    I have created variables for plant and material group in a query.
    I have created drop down box for plant with all plants in it, check box for material group and a Submit button in WAD in FORM tag of HTML coding.
    Once all the values are set in drop down box, checkbox and if the user clicks on submit button, the values has to captured by the variables for which I have created and the graph has to be aligned to the new values in variables.
    Kindly help me how to use java script to get the values from FORM and pass it to variables.
    Regards,
    Selva

    Hi Selva,
    You do not need to use Javascript for this. Instead you can achieve this by using API Commands in WAD 7.0.
    Please configure Action on the ButtonGroup webitem to use 'Commands'.
    ->Choose Command 'Set Variables Values / SET_VARIABLES_STATE' under Commands for Web Templates
    ->Set Display Variable Screen setting to OFF
    ->Choose Query Variable for Plant, Select Variable Type as 'Binding Type', Binding Type as 'Data Provider Selection', Data Provider as the one you have assigned to the Dropdown webitem, Characteristic as 0PLANT or as that assigned to the Dropdown webitem
    ->Repeat above steps for Query Variable Material Group
    Now when you make a selection from the Dropdown webitems, the Chart output will change accordingly. Let me know if this helps.
    --Priya

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How to save report in PersonalCategory  after creating it using java panel?

    Hi,
    Anybody knows How to save report in PersonalCategory  after creating it using java panel?
    I dont want to save it in public folder. I want to save report (webi) in user's personal category.
    can anybody send me source code?
    It will help me a lot.
    Thanks in advance
    Amol Mali

    Hi teda,
    i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
    Actually the report is created in webi java panel using RE SDK and  is saved in Report Sample Folder then i'm saving it in user's personal category by following code
    string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
                         + "SI_INSTANCE=0 And SI_ID=" + reportID;
                    InfoObjects infoObjects = infoStore.Query(query);
                    InfoObject infoObject = infoObjects[1];
                    Webi wreport = (Webi)infoObject;
                    ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
                /personalIDs.Add(Convert.ToInt32(categoryID));
                   infoStore.Commit(infoObjects);
    But the report is presents in the Folder also and in user's personal category also.
    I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
    How can i do that?
    any idea.
    Please help me.
    Thanks in advance
    Amol Mali
    Edited by: amol mali on Jan 9, 2009 7:55 PM

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • How to use Java Script in jspx pages of ADF Faces?

    I wanna invoke an Applet in a jspx using Java Script...
    How can I do this? :)

    check my other post..that's to know how to use js in jsf pages...not to invoke applet..
    Re: how to Add inline JavaScript to a Page 11G

  • How to use java script when popups are blocked in browser

    How to use java script when popups are blocked in browser

    Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.

Maybe you are looking for

  • Was unable to load data class info from sync services.  try again later.

    Since installing the latest version of itunes (11.1.5.5) whenever I have either mine or my wife's iphones (4 and 5c, both with the latest 7.1.1) turned on and I start iTunes, I receive the error message saying that itunes was unable to load data clas

  • Windows 7 64-bit Corrupting (Altering) Large Files Copied to External NTFS Drives

    http://social.technet.microsoft.com/Forums/en-US/w7itproperf/thread/13a7426e-1a5d-41b0-9e16-19437697f62b/ continue to this thread, I have the same problems, the corrupted files only archives, zip or 7z ... and exe, there are no problems copying larg

  • Itunes wont sync music to iphone or ipod

    Itunes is updated fully Iphone updated I try my normal gig of goig to file, add file to library and select all my songs i want and hit ok. I then hit the sync button. There use to be a autofill button at the bottom right corner but i dont know where

  • 2 e4200s on the same network?

    I used to have this exact setup with 2 wrt610ns i believe was the model number, i have one at my house, connected to my dsl, and then another in my "man cave" connected by a approximately 250 foot buried outdoor cat6 cable, inside of conduit of cours

  • Forms & Reports 11gR2 installation - Can't create domain

    Hi, I try to install Forms & Reports 11gR2 (version 11.1.2.2.0) on a Windows 7 64 bits machine. Here is that I try : Installation of JDK 1.7.0.51 for Windows 7 64 bits Installation of WebLogic 10.3.6 "Generic" bits (java -Xmx1024m -jar wls1036-generi