Implementing Subtotal functionality

Hi,
I have a web dynpro application in which i need to implement the subtotal functionality for a table.I have a table which has 5 columns, where in the first 2 columns have datatype string.So i need to find the sub total of the third column wrt first column and second column.In the same way, i need to find the subtotal of any column with integer datatype wrt any column with string datatype.
Please suggest me how to proceed.
Regards,
Padmalatha.K
Points will be rewarded.

Hi,
Create a calculatted attribute to do the calculation
public int getSub_Col(IPrivateTestCompView.IContextElement element)
    //@@begin getSub_Col
       int x = element.getAttributeValue("<Your first attribute");
       int y = Integer.parseInt(element.getAttributeValue("<Your second string attribute"))
      return x+y;
    //@@end
Pl handle the exceptions
Regards
Ayyapparaj

Similar Messages

  • Hi, i want to implement a function in ODI

    hi, i am new to odi.
    i have created a project in odi which was very simple and only transfers data from one table to another.
    but now i want to implement a function in odi. i have the code for that function which is written in pl/sql.
    my function accepts some values that are used ahead in the function. now i dont know how to pass the values
    so can anyone plz tell me that how to pass values.
    regards,
    prateek.
    Edited by: user11116379 on May 21, 2009 1:37 AM

    If you want to call a PL/SQL function, you may want to do this in an ODI procedure. Take a look at the documentation which describes how to call a stored procedure, which is I think going to provide you the ability to execute your function.
    Functions can be called as a part of a mapping in an interface in ODI, just as you would normally use it as part of a select or insert statement.
    If you want to pass parameters into the execution of a task, you should use ODI's variables. Variables may be passed into the execution of a task, and the values from those variables can be used as a part of a mapping, resource name, filter etc.

  • Problem in implementing forgotPassword function

    hi,
        I need to implement forgotPassword function in my jsp.
    I followed everything from these links : -
    https://forums.oracle.com/message/10958330
    Handling Forgotten Passwords
    I am not recieving any mails .
    In the logs there is no logs of EmailService getting started. Is there any configurations that I need to take care of ..??
    Thanks
    Rammohan

    Hi,
        After sorting some errors Password is getting generated and Password is getting reset .
       But Email is not being sent to the recepient.
       My SMTPEmail.properties file is as follows : -
    /config/atg/dynamo/service/SMTPEmail.properties
    $scope=global
    defaultFrom=[email protected]
    emailHandlerHostName=smtpcorp.com
    emailHandlerPort=25
    username=*****@gmail.com
    password=*******
    Any ideas  what am I missing...?
    Thanks

  • Eclipse: UFL "u212com.dll" that implements this function is missing

    Dear Sirs,
    I try to open one of our reports with the "Crystal Reports for Eclipse 2.0" sample application. Thie report relies on a com based UFL. I get the following error message:
    Crystal Reports Viewer
    Exception yadada...
    UFL "u212com.dll" that implements this function is missing
    OK
    How can I fix this?
    Thanks for your answers.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • UFL 'u212com.dll' that implements this function is missing

    I am attempting to write a user function library for the crystal reports version that ships with Visual Studio 2010. Following the walkthrough on the Business Objects website (although that is for VS2005) I have successfully created my .dll file and added it to the GAC, and it appears in the function list under 'Additional Functions' in the Crystal Reports formula editor. However when I use the function on in my Windows forms application, I get the error "UFL 'u212com.dll' that implements this function is missing.". This is on my development machine and I have installed the latest service pack for Crystal Reports for VS2010 (64-bit). My OS is Windows 7 64-bit.
    I have two questions:
    1)  What version of the .NET framework should my class library be targeting? My windows forms application targets the .NET framework version 4, but should I be doing the same thing for the .dll for Crystal Reports? It does show up in the formula editor though, so I guess that means that Crystal Reports recognises it correctly.
    2) I have done a search on the PC for the file 'u212com.dll' and it is in the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64 (and also in the equivalent 32-bit folder) Is this correct, or is there is a specific 64-bit version of this file?
    Or is it something else that I am missing? Thanks in advance for any suggestions.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • "UFL 'u2ltdate' that implements this function is missing."

    I am working through migrating older reports from a very outdated version of Crystal into a newer version and trialing Crystal Server 2013 with Crystal Reports for Enterprise.  The only problem I am running into is that I have many reports using the NumberToDate function to pull a number string and form it into a date for the report.  I really need this function to work because we rely on it quite heavily.  When I pull reports that use it into my new environment I am given the following error:
    "UFL 'u2ltdate' that implements this function is missing."
    I have found the u2ltdate.dll on the web and transferred it into the following folders: windows/system32 and program files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/win32_x86 and the win64_x64 as well just to be sure.  But to no avail I am still unable to use the NumberToDate function.  I have even tried copying the u2ltdate.dll from our older server, and this doesn't work either.  I really need to get this working as soon as possible.    I don't know if I need a 64 bit dll because it is windows server 2008 or if I don't have it in the right places.  Please help!

    Hi Warre,
    Don't put the ufl into the \windows\system32 folder. Nothing should go there now.
    I doubt this will ever work in CR for Enterprise. It's a Java Designer so the only way to make it work is to create a Java UFL.
    Search for this KBA:
    1803967 - How to make a Java UFL available in Crystal Reports 2011 Designer?
    Same for CR for Ent., you need a Java UFL.
    Only way to make this work is to convert the UFL to Java or use Crystal Reports 2011 or 2013.
    See this MS Forum post I responded to also:
    Custom Crystal DLLs with Crystal Reports 2008 for Visual Studio Run Time
    And this one:
    http://scn.sap.com/docs/DOC-35036
    And this one:
    Java UFL and VB UFL
    Try searching, there is a kbase article with a sample attached.
    And you will need a 64 bit version because some of the report processing servers may be 64 bit only but I believe the Crystal Report Processing Server is 32 bit only. It will need the UFL copied into it's \win32_x86 folder.
    Only issue you should have is using CR for Ent. to design/update/create the reports with that function. Use CR 2011 or 2013 and it should work.
    Problem is we no longer have the source code for that UFL and others, quite often they were written by Support people and therefore not saved into our code source system.
    Don

  • How to implement the function "Slow Play" using MPMoviePlayerController?

    Does anybody have idea to implement the function "Slow Play" using MPMoviePlayerController or some other indirect solutions? Thanks. Kevin.

    You can use the changeSelection(...) method to change the cell with focus.

  • How to implement "SelectAll" function in table view?

    hi, experts
    i want to implement "SelectAll" function in table view, just like the SelectAll function in ALV,how to do?
    and, can table view has it's tool bar ,may be on top of it.
    pls help and thanks a lot!!

    Search this forum. You will find plenty of threads on the same...
    Raja

  • How to implement avg function in answers or RPD

    hi,
    I need to implement this function in obiee answers or RPD..how can i do that.. please help me
    AVG(SAS.SHIPPED_QTY) OVER (ORDER BY SAS.ACCOUNT_MONTH_NO
    ROWS BETWEEN 12 PRECEDING AND 1 PRECEDING) AVG_QTY_SALES,
    thanks in advance

    Hi,
    I think you are trying to use a sql server window function here. If you are, then you could push this function to the DB itself, using EVALUATE() in OBIEE.
    Hope this helps.
    Thank you,
    Dhar

  • UFL 'u2lcom.dll' that implement this function missing...

    Post Author: YAO
    CA Forum: Formula
    ey dudes,
    "UFL 'u2lcom.dll' that implement this function missing"
    Thats the error Crystal reports send me when i try to run a report.
    i searched for it and the file already exist.
    I use Crystal Reports XI
    Can u help me?
    Thank you.

    Don,
    thank you very much. It solved the issue.
    Earlier the vb6 dll was registered using an a/c id different than the one to login to Crystal Enterprise server from .Net code.
    Now copied the dll to 'c:\Program Files\Business Objects\common\3.5\bin\ on the server and ran,
    *regsvr32  c:\Program Files\Business Objects\common\3.5\bin\crufltest.dll and it woorked.*
    Thanks.

  • UFL u2lpdmtime.dll that implements this function is missing.

    UFL u2lpdmtime.dll that implements this function is missing.
    I get this error when I try to run an a report.
    I just installed Crystal Reports Version 11 on my machine.

    I am getting a similar error message in a 3rd-party program (LDRPS 10, SunGard, Inc.) that uses CR XI R2:
    "UFL 'u2lsamp1.dll' that implements this function is missing.
    Error in File C:\WINDOWS\TEMP\47b92342-bfee-4784-bad0-28a6825f3b28
    {7D171C51-0246-4492-8934-80987D66ED88}.rpt:
    Error in formula <WorkCalled>.
    'If Not IsNull({Employee.pkEmployee}) Then
    UFL 'u2lsamp1.dll' that implements this function is missing."
    It only happens if I run the report as part of a Table of Contents with other reports. It works fine if I run it by itself.
    I will let you know if I find out anything useful from the 3rd-party developer.

  • How to implement web functionality in OBIEE.

    Hi,
    Please help me in how to implement " web functionality" in OBIEE. Also need ur sugegstions for the below features while implement.
    a.Full set of features
    b.Installation
    c.Inter-changeability
    reg,kannan

    hi,
    Java  jdk-1_5_0_06-windows-i586-p.exe
    OBIEE  OBIEE 10.1.3.3
    1.     Copy biee_windows_x86_101330_disk1.zip file in to your local drive, extract it and run setup file
    2.     For the documentation BIDOC.zip in to your local machine, extract and explore
    Task
    1.     Copy installation files into your local machine
    2.     Install JAVA/JDK
    3.     Set JAVA_HOME, PATH, CLASSPATH
    4.     Install OBIEE
    5.     Explore OBIEE physical folders
    6.     Explore OBIEE installed components
    7.     Create some sample reports and charts.
    or else see the below link for installation
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/install/installoraclebee.htm
    Regards
    Naresh

  • How to implement copy functionality in advanced table

    hi all, i have a advanced table with some data populated, all the rows has a checkbox where the user can select the rows which he wants, my requirement is how to implement copy functionality, i,e i need to show the same set of rows which the user selected in the same advanced table. can any one give me an idea of how to do this

    You can copy the key of the selected rows to the copy page and based on those keys render the rows. On this copy page, once user commits after any modification to data, read those rows and save with new keys.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Implementing archive functionality

    Hi all ,
    I want to implement archive functionality.
    I am using appfuse and maven.(spring framework)
    In my aplication when user logs in he is provided with list of records from one table.
    He should be able to archive as many recrds as he want.
    I am not getting how to implement this functionality.
    Code of jsp which shows al records is
    <head>
    <title><fmt:message key="engagementformList.title"/></title>
    <meta name="heading" content="<fmt:message key='engagementformList.heading'/>"/>
    <meta name="menu" content="EngagementformMenu"/>
    </head>
    <c:set var="buttons">
    <input type="button" style="margin-right: 5px"
    onclick="location.href='<c:url value="/engagementformform.html"/>'"
    value="<fmt:message key="button.add"/>"/>
    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
    value="<fmt:message key="button.exit"/>"/>
    </c:set>
    <c:out value="${buttons}" escapeXml="false"/>
    <form>
    <display:table name="engagementformList" class="table" requestURI="" id="engagementformList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="engagementformform.html" media="html"
    paramId="id" paramProperty="id" titleKey="engagementform.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="engagementform.id"/>
    <display:column sortProperty="dateLastMod" sortable="true" titleKey="engagementform.dateLastMod">
    <fmt:formatDate value="${engagementformList.dateLastMod}" pattern="dd/MM/yyyy"/>
    </display:column>
    <display:column sortProperty="dateRcvd" sortable="true" titleKey="engagementform.dateRcvd">
    <fmt:formatDate value="${engagementformList.dateRcvd}" pattern="dd/MM/yyyy"/>
    </display:column>
    <display:column property="title" sortable="true" titleKey="engagementform.title"/>
    <display:column property="requestorsName" sortable="true" titleKey="engagementform.requestorsName"/>
    <display:column property="requestorsExtensionNo" sortable="true" titleKey="engagementform.requestorsExtensionNo"/>
         <display:column property="requestorsEmailId" sortable="true" titleKey="engagementform.requestorsEmailId"/>
    <display:column property="LOB" sortable="true" titleKey="engagementform.LOB"/>
    <display:column property="ITSolutionLeadsName" sortable="true" titleKey="engagementform.ITSolutionLeadsName"/>
    <display:column property="ITSolutionLeadsExtensionNo" sortable="true" titleKey="engagementform.ITSolutionLeadsExtensionNo"/>
    <display:column property="ITSolutionLeadsEmailId" sortable="true" titleKey="engagementform.ITSolutionLeadsEmailId"/>
    <display:column property="solve" sortable="true" titleKey="engagementform.solve"/>
    <display:column property="solveNumber" sortable="true" titleKey="engagementform.solveNumber"/>
    <display:column property="typeofRequest" sortable="true" titleKey="engagementform.typeofRequest"/>
    <display:column property="partOfProgram" sortable="true" titleKey="engagementform.partOfProgram"/>
    <display:column property="reasonWorkRequired" sortable="true" titleKey="engagementform.reasonWorkRequired"/>
    <display:column property="descriptionOfWorkRequired" sortable="true" titleKey="engagementform.descriptionOfWorkRequired"/>
    <display:column property="impactIfChangeIsNotMade" sortable="true" titleKey="engagementform.impactIfChangeIsNotMade"/>
    <display:column property="relatedProjectProgramActivity" sortable="true" titleKey="engagementform.relatedProjectProgramActivity"/>
    <display:column property="quantifiedFinancialBenefits" sortable="true" titleKey="engagementform.quantifiedFinancialBenefits"/>
    <display:column property="otherBenefits" sortable="true" titleKey="engagementform.otherBenefits"/>
    <display:column property="funding" sortable="true" titleKey="engagementform.funding"/>
    <display:column property="priority" sortable="true" titleKey="engagementform.priority"/>
    <display:column property="priorityDate" sortable="true" titleKey="engagementform.priorityDate"/>
    <display:column property="timingIssues" sortable="true" titleKey="engagementform.timingIssues"/>
    <display:column property="alternativeSolutions" sortable="true" titleKey="engagementform.alternativeSolutions"/>
    <display:column property="status" sortable="true" titleKey="engagementform.status"/>
    <display:column property="username" sortable="true" titleKey="engagementform.username"/>
    <%-- <display:column property="archived" sortable="true" titleKey="engagementform.archived"/> --%>
    <display:column sortable="true" titleKey="engagementform.archived">
    <input type="checkbox" name="archived" value="${engagementformList.id}" >
    <c:out value="${engagementformList.id}" />
         </display:column>
    <display:setProperty name="paging.banner.item_name" value="engagementform"/>
    <display:setProperty name="paging.banner.items_name" value="engagementforms"/>
    <display:setProperty name="export.excel.filename" value="Engagementform List.xls"/>
    <display:setProperty name="export.csv.filename" value="Engagementform List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Engagementform List.pdf"/>
    </display:table>
    </form>
    <c:out value="${buttons}" escapeXml="false"/>
    I ma not getting how will i collect all the reocrds that are marked for archiving in from this jsp and pass it to controller for archiving.
    Can anybody have an idea about this or implemented this before.
    Thanks in advance.

    yes,but i am notegetting how will i collect all the records for which checkbox has checked im this jsp and how to pass that list of records from jsp to controller. :(

  • Implement MOD(%) function

    Please implement MOD(%) function without using the MOD or %.  . Function should take in two integers and return one integer.

    "The only reason to create and use a MOD function over the in build one is if this was a homework exercise. "
    I'd have to classify that statement as false.
    A number of languages have slightly different built-in implementations that are a pain to use.  For example what is mod(-1, 4) ?  In some implementations the answer is -1 in others the answer is 3.  If the built in version returns a value
    that is less useful to you then knowing how to write your own implementation is important and not necessarily a homework assignment.  Some people may genuinely be interested in the mathematical definition of the mod function (or % operator)
    The wikipedia entry whose link is in the response by eyal below is decent and has an interesting table of language specific differences in implementation.  The fact that such a table exists proves that the snarky responses are misguided.  in any
    event, results that are "always non-negative" or results that are governed by the sign of the divisor are in my opinion most justifiable in mathematical terms.  Results that depend on the sign of the dividend are difficult to use when trying
    to compute subscripts for arrays for example.
    The divisor based sign implementation looks like this
    // a = qb + r such that 0 <= r < b and b > 0
    // r = a - qb
    result = a - b*floor(a/b); // a % b
    here is the wikipedia link again
     http://en.wikipedia.org/wiki/Modulo_operation
    The non-answers here reflect cruelty or ignorance (inclusive or)

Maybe you are looking for