Interactive sorting using java crystalReportViewer

we are building a crystal report web project using eclipse gallieo.
technologies used are Struts2 AND jsp.
And our requirement is to show interactive sorting as well as to export as HTML as crystal report viewer toolbar option .
we have done a lot searching using google but didnot find any useful.
so if it is possible please provide some code for it.

An old fashioned way to add dynamic  sorting is to use a group on a variable that reverses the letters of the text values depending on which column and whether user chooses Ascending or Descending.  Does not even need SDK.  The HTML export can be done using report parts but will not do well for full complex reports.
We provide  both these features in our Dashboard Launch product seen on the Ecohub
http://ecohub.sdn.sap.com/irj/ecohub/solutions/dashboardlaunch
thanks
Kevin

Similar Messages

  • Interactive Sort using RAS SDK

    We are creating a report from scratch using RAS SDk. In our report we want to enable interactive (dynamic) sort for some of the columns. We are unable to figure out a method that provides this functionality.
    Thanks.

    I don't think this is possible.  Last time I tried this was when the product released approx 2 years ago and I have not heard of this functionality being added in.

  • Interactive sorting

    Hello,
    I have a SSRS 2012 report with a calculated field called "NEW MONEY".  It's a simple expression calculated by the following:
    =Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value
    I'm running into issues when trying to create a interactive sort on the calculated field. The system seems to freeze up on me.
    I simple used the  this expression in the interactive sort
    =Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value on the header for the calculated field.
    Does anyone have any ideas what could be going wrong?
    x

    Hi malibu2,
    Per my understanding that you want to add the interactive sorting on an new added column called ”NEW MONEY” which values calculated using expression: =Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value, when you setting the interactive sorting, you put this
    expression in the Sort by: =Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value as the column header, now interactive sort setting don’t work, right?
    I have tested on my local environment and can reproduce your issue, you problem can be caused by the wrong way you are creating this calculated field and setting the interactive sorting, if you add the expression “=Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value”
    in the table’s new column and type the “NEW MONEY” in the Column header, then set the interactive sort using expression in the column header which will makes the sorting not work.
    Actually, jakkampudi have mentioned to create an Calculated field and drag this field to the new column. You can take reference of details steps below to do the correct action:
    Right click the DataSet and select the “Add Calculated fields”
    Click Add to add the new Calculated field.
    Name: NEWMONEY
    Value: Fields!PURCHASES.Value - Fields!REDEMPTIONS.Value
    Insert an new Column and Drag the NewMoney fields to this Column.
    Right Click the column header “New Money” and select the “Text Box Properties”, Select the Interactive Sorting and do the setting as below:
    When preview you will find the interactive sorting works fine.
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu

  • 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.

  • Can values returned by a lookupset be used for interactive sorting or a report filter?

    I have a report that uses multiple stored procedures. I am using the lookupset function to return the values, then I sum the values with custom code, and have them display all into one tablix. However I can not figure out how to use interactive
    sorting or a report filter with values returned by the lookupset function.
    My question is:
    Can you use values returned by a lookupset for interactive sorting or a report filter?
    Thanks!

    Hi WGiff,
    Based on my understanding, you want to perform interactive sorting or filter for the values which come from multiple datasets.
    In Reporting Services, LookupSet()function is used to retrieve a set of values from the specified dataset. So in your scenario, we should use Lookup() function to retrieve values from specified dataset, then perform interactive sorting or filter.
    As we tested in our environment, we retrieve values using Lookup() function form datasets, then sum these values with custom code. After enable interactive sorting or filter for these values, we can get expected results.
    1. Add custom code below in Report Properties.
    Public Shared Value as Integer=0
    Public Shared Function GetValue(Item as Integer) as Integer
    value= value + Item
    return Item
    End Function
    Public Shared Function GetTotal()
    Dim a as integer
    a=value
    value=0
    return a
    End Function
    2. Enable Interactive Sorting.
    3. Add filter within the group.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Simple Interactive exam engine using Java

    Hi all,
    I am trying to develop a new interactive quiz engine using Java. I am new to the java programming. Is there any place where I can download the source code to refer? Any help would be greatly appreciated

    javabegin wrote:
    I am trying to develop a new interactive quiz engine using Java. I am new to the java programming. Is there any place where I can download the source code to refer? Any help would be greatly appreciatedThis is somewhat a strange request, and one that is short on details. What are you looking for? Command line or GUI? If GUI, Swing? AWT? SWT? or completely different platform? Database based or not? Or is this a class assignment? Have you searched the forum? google?

  • Create offline interactive forms using webdynpro java with XML data source

    Hi Gurus,
    I am having a scenario like below:
    Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to  ECC.
    So my questions are:
    How to create the offline interactive form  from XML?
    Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
    Please give some idea on this as this is my first Offline interactive form using XML datasource.
    Thanks
    Ravi
    Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PM

    Hi Otto,
    Sorry for replying lately. First of all  I did not get your suggestions as your are editing the same posting.
    Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
    if you can give me your personal id i can send you the detailed process
    Thanks
    Ravi

  • Interaction with Microsoft Word using Java Programming

    writing Text ON TO MICROSOFT WORD USING java Programming Urgently required

    Go throuh jakarta POI(hssf) to do..No! HSSF which stands for Horrible SpreadSheet Format can be used for Excel (spreadsheets as the name suggests). For Word, you would need to lok at HPSF.

  • How to interact with google search engine using java HTTP POST

    I am trying to develop an desktop app that acts as an online radio tuner. I want to use google as an index site for actually searching for radio stations online. So I was wandering if it is possible for me to use java to actually interface with the google search engine servers. For example, I have built a gui that allows you to enter search text. This gui will connect to the web. I would like it to connect to the Google site and post the query to the google web servers. Then i would like to began to parse the response( html page) that i get back from the google servers. Like using google without actually typing in the text field on the google site. Can anyone tell me if it is possible to do this with java. If so, what would be the best way to go about doing this. Thanks.

    Thanks for the response. It was actually alot easier to do than I anticipated. All I had to do was create a URL object initialized with the google url(search text embedded in the url - http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8).
    Looks like this:
    String google = http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8;
    URL url = new URL(google);  // creating Google Url object
    URLConnection connection = url.openConnection();
           connection.setDoOutput(true);
           connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" );  // fooling google servers into thinking the request is coming from a real browser
           BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));The content returned by the google server can be accessed calling the BufferedReader class methods.

  • Access database using Java from HTML webpage

    Hi,
    I've got to create some online maths tests to be taken by students with their marks being stored in a database.
    I've wrote some simple java code which can add/remove and modify entries in a test mySQL database that I made. What I now need to do is be able to add entries to the database from a html page.
    The math tests will be java applets with the students having to interact according to questions, press submit and their score will be output. The score will then be entered into the database.
    The problem I'm having is that with an Applet their are all sorts of security issues (I'm having problems getting images to load in an Applet) so assume I'll face the same security issues when I try to access a database through an applet.
    So, could someone please help get started.
    Cheers

    MVC - I assume you mean model-view-control and not Marvel vs Capcom :)
    If so then does this mean I should completely seperate the user interface (the actual applets that will contain the test), the database (that will store the results) and the link between the two?
    is it possible to acheive this using Java, Java Applets, Java Script and the database (in my case mySQL) and could you give me some tips on how best to tackle the problem.
    Thanks

  • I have to create an interactive form with java. How can i do it?

    I have to create an application that allows to create an interactive form like the option "Create Form" on google docs!
    What do you suggest me to create it?
    1) I think that I can use a DB to store the structure and then I can restore it with particular queries.
    Thank you for answers, I hope you can help me
    Best Regards,
    Silvio

    Savio85 wrote:
    Ah ok, I'm sorry.
    I also can use swing.
    For "requirements", I wrote an example to show a sample of "Interactive Form" (Google Doc -> Create Form).
    I'm sorry for my bad requirement,
    Best Regard
    Silvio
    Edited by: Savio85 on Jun 10, 2010 4:07 AMSo you expect people to sign up to Google so that they can see Google docs? Why should anyone make any effort to help you if you make this little effort to create any sort of problem description?
    Anyway, if you want to create an "interactive form" using Swing, there is only one thing to do: learn the Swing API. Lucky for you there is a great online resource for that:
    [the swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/]
    Good luck!

  • How to delete message from the fodler of  AOL account using Java mail

    Hello All,
    I am using Java MAil API in my application, i want to delete message from AOL account's folder,
    when i set the folder as "Recently Deleted" or "Trash" , i get an exception as "folder does not exist".
    when i tested , some times mail is moving into Recently Deleted folder, but not every time.
    this is happening in both the interface as AOl Interface or my application.
    when i use folder.close(true) after setting the flag of message as DELETED. it completely remove the message from the acount.
    but i want to let the message be remained in the Recently Deleted folder. what should i do.
    i dont want to remove the message completely from the account.I am using IMAP also.

    You'll need to figure out what the real name of the "Recently Deleted" folder is on the AOL IMAP server
    (assuming it's a real folder and not some sort of "virtual" folder), then copy the message into that folder.
    See the folderlist.java demo program as a way to explore the names of all the folders on the server.

  • IllegalStateException while invoking livecycle formserver using java api

    I am new to livecycle formserver.when i am trying to invoke formserver using java api ,it is giving illegal state exception.My servlet application to invoke formserver is deployed in tomcat 5.o in one system and jboss with formserver is in anohter system.
    I am using the following properties to connect formserver in another system.
    Properties ConnectionProps = new Properties();
    ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://172.21.49.116:JBoss:1099");
    ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");
    ConnectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
    ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
    ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
    And i am confusing in setting the following paths using UrlSpec object.
    URLSpec urlspec = new URLSpec();
    urlspec.setApplicationWebRoot("http://JBOSS:8080/FormServer");
    out.println("after webroot");
    urlspec.setContentRootURI("http://localhost:8080/srvapp");
    out.println("after contentroot");
    urlspec.setTargetURL("http://localhost:8080/srvapp/HandleData");
    My .xdp file is in my localsystem where my tomcat is running.and renderToHtml method is like this:
    FormsResult formOut = Fsc.renderHTMLForm(formName, TransformTo.AUTO,oInputData,htmlRenderSpec,"",urlspec,null);
    i am passing the path of the .xdp file in my local system to formName parameter.
    with this code i am facing problem.Is there anything wrong in my code?or is there any settings to change in formserver?
    please help me with this problem,i am trying to sort out this problem.
    Any help?
    Thanks in Advance

    If you are invoking LiveCycle ES2 on JBoss compile with JDK 1.6 and run against JRE 6.
    Steve

  • How to find out top 10 records from the R/3 using Java code (WD Program)

    Hi Experts,
    I have used Java Web Dynpro program to fetch records from the backend. Following code helps me and fetches record. As per the customer reqirement, we have to fetch only top 10 records (Actual Cost) from the backend. So I have to modify the Java code. How I can do so? Please help.
              wdContext.nodeGraphData().invalidate();
              IPublicCostcnt.IGraphDataElement categoryElement;
                   for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
                   categoryElement = wdContext.createGraphDataElement();
                   categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
                   categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
                   categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
                   wdContext.nodeGraphData().addElement(categoryElement);
    Regards,
    Gary

    Dear SDN Users,
    This is how I resolved the issue.
    1) Requested ABAPer to provide me sorted data. The data has been sorted in descending order of actual_cost.
    2) After that I used following code. This resolved the issue.
         if (wdContext.nodeItab_Final1().size()>10){
         IPublicCostcnt.IGraphDataElement categoryElement;
              for (int i = 0; i < 10; i++) {
              categoryElement = wdContext.createGraphDataElement();
              categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
              categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
              categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
              wdContext.nodeGraphData().addElement(categoryElement);
         if (wdContext.nodeItab_Final1().size()<=10){
         if (wdContext.nodeItab_Final1().size()>0){
         IPublicCostcnt.IGraphDataElement categoryElement;
              for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
              categoryElement = wdContext.createGraphDataElement();
              categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
              categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
              categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
              wdContext.nodeGraphData().addElement(categoryElement);
    Regards,
    Gary

  • Iterate through all the records in a table using Java API

    Hi All,
    What is the easiest way to iterate through all the records in a given table using Java API? I cannot find any methods that will return all records in a table and the only way I can use is to perform a free form search with a condition that is always true. The code works but is pretty ugly. Is there an alternative to this approach?
    Thanks!
    Kenny

    Hi Kenny,
    You can construct a new Search object with your table's code name, a new ResultSetDefinition object for your table and just execute this search using the GetResultSet method of CatalogData.
    Please look at the following code:
    Search search = new Search(<code name of your table>);
    ResultSetDefinition rsd = new ResultSetDefinition(<code name of your table>);
    rsd.AddField<code name of a field>);
    rsd.AddField(<code name of a field>);
    String sortField = <code name of your sort field>;
    boolean sortAscending = true;
    int page = 0; //page number
    A2iResultSet rs = <your CatalogData object>.GetResultSet(search, rsd, sortField, sortAscending, page);
    for (int i = 0; i < rs.GetRecordCount(); i++)
        Value fieldValue = rs.GetValueAt(i, <code name of a field>);
    Hope this helps,
    Nir
    PS - I really recommend you to start using the new API, as it is much more efficient and straight-forward.

Maybe you are looking for

  • How to view original video files from my Canon Vixia

    Hi - I have a Canon Vixia camcorder and I cannot find a way to view the original mts files on my iMac.  I hate to say this, but my old windows laptop to does this without any issue, so that's what I'll continue to do until something changes. When I m

  • XI domain..logging...QOS

    Hello , Could any one give answers to these .... 1.What is XI domain? 2. Web application server 6.2 has an integration engine. Why is this so? 3. In BPM Async-Sync bridge, does the QOS change? 4. List 4 ways to enable logging / trace? 5. What is logg

  • Oracle 10g r2

    can i ask if oracle 10gr2 is rac. Also, i am using solaris 10 installed on vmware pls can some direct me on how to install oracle 10gr2 on it. Thanks

  • Changing account used to set up

    Hoping someone can advise. I have an iPad and iPhone. My husband bought a MacBook Pro last week and when we initially set it up we used my Apple ID just to make things easier. I would like to set him up with his own Apple ID. How can I do this and wh

  • Message app won't open

    For some reason every time I open my "Message" application it crashes no matter what. I dont know what to do and I dont want to do a Factory Reset. I already tried rebooting my phone and turning it off then on. I need help. Also at time some of my ap