How to change dynamically the number of lines to show in time chart

Hello all,
I need your help for the following scenario:
In browser is an applet available that contains a tree. Each tree node have the id. The user can select  a tree node and open a crystal report with time chart. This time chart shows values for tree node id(y-axis). The values are measurement values from database. The database table contains:
id_field = tree node id,
value_field = measurement value,
and time_field.
So, my problem is that the user can select more than one tree node. The maximum selection count is 16.
My idea is to do something in the following way:
  1) create function ("myFunction")
  2) set function as filter
  3) add my function  (or parameters)to y axis
For example:
filter:
if {@time_field} in {@time_begin_param} to_ {@time_end_param} and {@myFunction}
"myFunction"-function:
if ( treenode_id1 != -1 )
then "if {@id_field} = treenode_id1"
else if ( treenode_id2 != -1 )
then "if {@id_field} = treenode_id1 or {@id_field} = treenode_id2"
When the user selection is changed:
1) in my struts action u2013 create report programmatically
2) set parameter treenode_id1 u2013 treenode_id16 equals user selection
3) open report
My question is what is the correctly way to solve my problem?
And here some concrete questions:
1) When I set 16 parameters for y axis how can I hide unused parameters?
2) When I'm using filter with function is the function in db request or are all data requested and then filtered?
3) Can I add data set to my chart programmatically from my struts action?
4) When it is possible can I add parameters to y axis also programmatically?
5) Is it possible to change data set of crystal report without recreating the report?
Any help is appreciated!
(and sorry for my bad english)
Greetings,
Nikolas

Hello all,
I need your help for the following scenario:
In browser is an applet available that contains a tree. Each tree node have the id. The user can select  a tree node and open a crystal report with time chart. This time chart shows values for tree node id(y-axis). The values are measurement values from database. The database table contains:
id_field = tree node id,
value_field = measurement value,
and time_field.
So, my problem is that the user can select more than one tree node. The maximum selection count is 16.
My idea is to do something in the following way:
  1) create function ("myFunction")
  2) set function as filter
  3) add my function  (or parameters)to y axis
For example:
filter:
if {@time_field} in {@time_begin_param} to_ {@time_end_param} and {@myFunction}
"myFunction"-function:
if ( treenode_id1 != -1 )
then "if {@id_field} = treenode_id1"
else if ( treenode_id2 != -1 )
then "if {@id_field} = treenode_id1 or {@id_field} = treenode_id2"
When the user selection is changed:
1) in my struts action u2013 create report programmatically
2) set parameter treenode_id1 u2013 treenode_id16 equals user selection
3) open report
My question is what is the correctly way to solve my problem?
And here some concrete questions:
1) When I set 16 parameters for y axis how can I hide unused parameters?
2) When I'm using filter with function is the function in db request or are all data requested and then filtered?
3) Can I add data set to my chart programmatically from my struts action?
4) When it is possible can I add parameters to y axis also programmatically?
5) Is it possible to change data set of crystal report without recreating the report?
Any help is appreciated!
(and sorry for my bad english)
Greetings,
Nikolas

Similar Messages

  • How can i know the number of lines in field-symbol internal table

    how can i know the number of lines in field-symbol internal table

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How do you find the number of lines in a file?

    I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
    Thanks

    That depends. How do you define a line? Is it a specific number of
    characters, a String that's terminated by a newline character or some
    combination thereof?

  • How do I increase the number of lines presented in a drop down list?

    When I am entering a single character/number for each of a random selection of three letters in a password verification, I get a drop down list from A to S only, the first 20. Accessing letter T to number 9 means scrolling down. How can I increase the number of lines in a drop down box to 36?

    Hi canddski,
    If you are taking about an interface on a website, this is up to the ui designer. But there is a reflow that depends on screensize for the Firefox UI.
    You can use asp to control the list:
    [http://forums.asp.net/t/1970301.aspx?How+can+i+display+selected+no+of+records+from+datatable+using+dropdown+list+without+database+]
    but also try asking on stackoverflow.com

  • How do I limit the number of emails that show in my active mailbox?  There was a way in Settings on ios 6, but i can't find it in ios 7.

    How do I limit the number of emails that show in my active mailbox?  There was a way in Settings on ios 6, but i can't find it in ios 7.

    You need to delete your current hotmail account set up on your iphone.
    Once this has done click 'Add Account' and select the new 'outlook.com' tab.
    Set up your hotmail account again from scratch and this will then allow you to select how many weeks/months of emails you sync to your phone.
    Im not sure if anyone else had a similar problem to me prior to iOS 7, but if i deleted an email from my hotmail account on my iphone - it wouldnt sync with my actual hotmail account. So when i logged in online all the emails I had deleted on my phone would still be showing as unread.
    But by setting the account up as above, they now sync perfectly.
    Well for me anyway

  • How can i read the number of lines written - in spreadshee​t array?

    hello NI,
                           I am writing file as spreadsheet format continuously, contains date, time, chanel1, channel 2, channel 3..... etc.
    i just want to know how many lines has been written after file write....
    Regards,
    Balaji DP

    You count the number of line termination char. Se example 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.PNG ‏25 KB

  • Java Comiler - How to find out the Number of lines of Executable code

    Hello,
    Is there any option we have or could have to get the "Number of Lines of Executable Code" while we run the java compiler?
    Technically Java is an interpreter. So in case the term is incorrect, please excuse me.
    Since the compiler anyway traverses through the Java files, it is easy and correct to get the number from the compiler rather than having any external tool calculating the same.
    It should remove the comments, blank lines and take care of java single sentence written in multiple lines.
    Any suggestions or help is highly appreciated.
    regards,
    Sabyasachi

    How many lines of code are there in this program?
    public class sabre20110211 {public static void main(String[] args) {for (int i = 0; i < 10; i++)System.out.println(i);}}And how many in this program?
    public
            class
            sabre20110211
        public
                static
                void
                main(
                String[]
                args
            for
                    (int i = 0;
            i < 10;
            i++
                System.out.println(i);
    }

  • How can I stop the number of unread emails showing on the icon for my main account including the number of emails in my gmail account as well?

    How can I stop the number of unread emails, displayed on the icon for my main account, including the number of unread emails in my gmail account as well? The number is accurate (unlike the many users who seem to have phantom unread emails) it's just that I want each acc to show its own total, as it did before.  I suspect I fiddled with some setting unwittingly.  It seems to do it first thing each morning, particularly.  Many thanks

    If you go to Settings>Notification Centre>Mail each of your email accounts will appear here separately. You can then change if Badges are displaye on the Mail App - which will show you the number of emails - or not.
    Regards,
    Steve

  • How do I limit the number of rows retrieved at a time using RefCursor?

    I have a PL/SQL package in use, that returns a REF CURSOR. This is currently being used in a Forms 6i application. Now I want to develop an ASP.NET web application that displays exactly the same information as my Forms 6i module. In fact those two applications will be used concurrently for a while.
    I looked at the sample code provided on otn.oracle.com and decided to use the OracleDataAdapter.Fill()-method to fill a dataset and bind that dataset to a pageable GridView. Now I wonder, whether this method retrieves ALL records of the query at once and how I can limit the number of rows fetched? The Select statement retrieves up to 10000 rows at a time. Most of the time, a user is only interested in the first 20-30 rows. Forms 6i fetches more rows as the user scrolls down, how can I implement the same behavior in ODP.NET?
    - Markus

    Excuse me, but the reply does not quite answer my question. Maybe I did not explain my concerns clear enough:
    I understand the use of the two properties (RowSize and FetchSize) to reduce the amount of round trips needed to transfer the data - not the number of rows fetched in total. This would still lead to a situation where all rows are transferred, when I am using the OracleDataAdapter.Fill()-Method. Is this correct or did I misunderstand the function of this method?
    I quote the otherwise really helpful article you send me:
    Of course, there is a cost if the fetch size is arbitrarily large. More client-side memory and processor cycles will be needed to store and manage a larger amount of data. The goal is to find a high-performing balance between the number of round trips and the amount of data retrieved per trip.
    My RowSize is for sure a bit larger than the one in the given example. The query will probably be used by up to 100 users at a time, so I would like to limit the resource-costs not only on the network by the number of round trips, but also on the web-server which is storing all these records in it's memory per user-request.

  • How do I reduce the number of emails to show on my iPhone with the new update?

    How do I reduce the number of email messages that populate on my iPhone with the new operating system?

    You read unread messages to reduce the notifcation number.
    You delete messages to reduce the number showing as available.

  • How can I reduce the number of lines in live paint?

    I'm trying to use adobe illustrator to color the background of a photograph green while keeping the person in the picture the same color.
    I used live trace to get a vector image and then attemped to use live pain to finish the job, but I end up with thousands of blue lines and gaps that are too small to color in. Is there anyway i can reduce the number of gaps so that i can actually paint the background?
    I've already tried the gap options and adjusting the settings to small medium or large did nothing.
    If this isn't possible, is there any other feature in adobe illustrator that would allow me to achieve my goal?
    I have a photograph with a person in the middle; i want the person to remain the same and the background to be changed to green.
    Thanks for your time.

    Would be easiest to fix this when tracing.
    You could try the magic wand tool to select them (but you'll have to expand the live paint object)

  • How to change dynamically the Webservice URL

    Hi,
    I added a webservice to my projet from a WSDL.
    As my application needs to fire this webservice towards different servers, I set dynamically the URL in my code. Here is the problem. When I point to the initial server (the one I got the WSDL from), everything is fine. But when I want to fire the webservice toward another machine, my code is not taken into consideration and my application still communicates with the initial server !
    I have something like:
            URL url = null;
            StuffService stuffService = new StuffService(RIOT_url, new QName("http://web.stuff.com/", "StuffService"));
            Stuff stuffPort = stuffService.getStuffPort();
            try {
                url = new URL("http://localhost:3337StuffService/Stuff?wsdl");
            } catch (MalformedURLException ex) {
                Logger.getLogger(Page1.class.getName()).log(Level.SEVERE, null, ex);
                  //USE THE WEBSERVICEIs there something wrong in my code ?
    Do I need to change some files in the project ?
    Thanks for your help

    This has nothing to do with JSF. Rather post webservice related questions at the webservice forum: [http://forum.java.sun.com/forum.jspa?forumID=331]
    Back to the actual problem, are you using a webservice proxy? A proxy should be able to pick up the URL and port the request.

  • How do I limit the number of characters allowed in an input form and then how do I limit the number of lines?

    I'm selling Classified Advertising in a newspaper and I want my visitor to be able to enter their own ads.
    They need to be limited to 30 characters/line with a limit of 4 lines.  (120 characters total).
    How can I use html or css to limit the input to 30 characters per line and then limit them to 4 lines?
    Is that possible?
    Thanks so much.
    Dale

    I would place 4 text fields and use the maxlength attribute. Setting maxlength="30" will stop any more than 30 characters from being entered into any given text field...
    <p>
      <label for="textfield">Line 1:</label>
      <input type="text" name="textfield" id="textfield" maxlength="30">
      <br>
    <label for="textfield2">Line 2:</label>
      <input type="text" name="textfield2" id="textfield2" maxlength="30">
      <br>
    <label for="textfield3">Line 3:</label>
      <input type="text" name="textfield3" id="textfield3" maxlength="30">
      <br>
    <label for="textfield4">Line 4:</label>
      <input type="text" name="textfield4" id="textfield4" maxlength="30">
    </p>

  • How can I get the number of lines in a string?

    I have a lone string with multiples lines (return). How can I find out how many lines in the string?

    For the counting of no.of lines, try the Line Counter here http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000BB700000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    As for extracting data without having worry over the description, you may wanna try using "Configuration File VI" in LabVIEW's File I/O function palletes.
    Regards
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • How can I check the number of lines per inch in my document (I need no more than 6 per inch!!)

    I need to produce a dopcument in New times Roman with a minimun of 12 ot font size, single spaced and , with no more than 6 lines of type per inch?
    How can I check that I do not have more then 6 lines per inch?
    thanks in adavance!!!

    If this is about Pages for iOs, you can certainly set TNR adn 12 pts, but no, there is no lines per inch settings.
    If this is about Pages for OS X, you are in the wrong forum.

Maybe you are looking for