Group dynamically jasperreports

Hello,
I want to design somehow generic report. Say a report for sales that comprise criterias such as age,sex,education, marital status, sale range ... all these fields will be choosen by the user. Some of the fields might be left empty/not choosen. Can I construct such kind of report by using group by in my query and design a single report template that will work with this...
I really thank you for your responses.
Thanks,
:14:15

Well you need to create as much temples as different combination of fields/groups you have.
Check this forum
http://sourceforge.net/forum/forum.php?forum_id=113530

Similar Messages

  • Creating group dynamically in active directory depending on their role

    Hi,
    I have sycn oid and active directory using directory integration platform. Now the scenario is We have one system says hr system which take care of entering all the user information. Once it submit that information it goes to oid. Now we want that when we import all that user from oid to active directory it didn't duplicate any user as well as depending on their role it should create groups dynamically in active directory. For e.g: If user belong to Trainee category or manager category it must create Trainee group & Manager group & respective person should go into that group. I don't know whether my question is placed in right group or not. I am using filter to do this task but not able to write proper condition in "source matching filter" and "destination matching rule". Any help will be appreciated.
    Thanks,
    Sonya Sharma

    Thanks Tamim. To clear your thought, i will explain again. I have sync oid and active directory through Directory integration platform. I have created user in oid.(cn=users,dc=mycompany,dc=com). It get sync in active directory properly. Now i have created two group in active directory say for e.g Trainees and Manager. There is a field name position in oid which is a custom attribute. When i fill the information of user in oid, I have to fill "Position" attribute also. So my question is that, if i fill Trainee as a value in Position attribute and click on submit it should go in Trainee Group In active directory and not in user group. Same for manager. How can we achieve this? Can we do it through filter? Or any other way? It's needed desperately. Please help me in resolving this issue.
    Regards,
    Sunil

  • Creating Record Group dynamically.

    Hi,
    I have multi line block. My req is i have create record group dynamically based on some fields in line level. This my code in To Location - Key next item,
    DECLARE
    group_id          RecordGroup;
    v_lms_lov lov;
    BEGIN
    group_id := Create_Group_From_Query ('RG_LMSID',
    'SELECT lms_id
    FROM sify_lms_header
    WHERE from_location = :lines.from_location
    AND to_location = :lines.to_location;'
    v_lms_lov := find_lov('LOV_LMSID');
    set_lov_property(v_lms_lov,group_name,'RG_LMSID');
    Set_Item_Property('LINES.LMS_ID',LOV_NAME,'LOV_LMSID');
    END;
    It says, no records in lov. Anything i missed.
    Or any other way to achieve this.
    Pl help.
    Thanks
    Kavitha

    Kavitha,
    Why you need Dynamic record group for this?, you can give the control names in the record group query. Then the record group's query will be
    SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = :LINES.FROM_LOCATION AND TO_LOCATION = :LINES.TO_LOCATIONAnd if you still want to use the dynamic record group creation, then try
    DECLARE
         RG_Group_ID RECORDGROUP;
    BEGIN
         RG_Group_ID := FIND_GROUP('RG_LMSID');
      IF NOT Id_Null(RG_Group_ID) THEN
              DELETE_GROUP(RG_Group_ID);
      END IF;
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('RG_LMSID', 'SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = ''' || :LINES.FROM_LOCATION || ''' AND TO_LOCATION = ''' || :LINES.TO_LOCATION || '''');
         SET_LOV_PROPERTY('LOV_LMSID',     GROUP_NAME, 'RG_LMSID');
         SET_ITEM_PROPERTY('LINES.LMS_ID', LOV_NAME,   'LOV_LMSID');
    END;Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • Remove Excess group dynamically in crystal 10 without using ReportAppServer

    In Crystal report XI I've used follwing code to remove excess group dynamically from aspx page:
                //Remove of Excess Group
                MaxGrpInReport = 9;
               for (int iCount = MaxGrpInReport; iCount >= objShowReport.TotalGroupNo + 1; iCount--)
                    customerReport.ReportClientDocument.DataDefController.GroupController.Remove(customerReport.ReportClientDocument.DataDefinition.Groups[iCount - 1]);
                customerReport.Refresh();
    But when I'm using crystal 10 (Including with Visual Studio 2010) it is getting error. Because "DataDefController.GroupController" is a server component . I'm not using any ReportAppServer. So how can I remove excess group without using ReportAppServer?
    Edited by: sujoyd on Mar 7, 2011 5:11 AM
    Edited by: sujoyd on Mar 7, 2011 5:12 AM
    Edited by: sujoyd on Mar 7, 2011 5:13 AM

    Hello,
    Crystal 10 is included with VS 2005 and VS 2008. there is no CR runtime included with VS 2010. You can download it from our support site.
    CR 10.2 or 10.5 is not supported in VS 2010.
    See this link to get the downloads: SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]
    Thank you
    Don

  • Dump in adding a ui element to group dynamically

    hi all,
    I have a group which has a dropdown ,my requirement is when i click a button
    a dropdown should be created dynamically below the dropdown created at design time.
    My code in  wddomodifyview()
      cl_wd_dropdown_by_idx=>new_dropdown_by_idx(
       EXPORTING
           bind_texts                 = 'CN_RULEBUILDER.CA_CONDITION'
             RECEIVING
            control    = lr_input ).
       lr_group  ?= view->get_element( 'GRP_BUILDER' ).
    lr_group->add_child( lr_input ).
    when i run this i get dump
    Adapter error in MATRIX_LAYOUT "_03" of view "ZMCPTS_RULES_SCREEN.V_MAIN": No LayoutData exists for child element "_10" of the UIElementContainer
    Can someone please help me with this

    This is because you need to set the Layout for the new element added as below:
    data LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.
    LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = lr_input ).
    Thanks,

  • Chart Data Axis (Y) Scale - keep constant over groups, dynamic for report

    Crystal XI
    I want to chart how many transactions there are at a teller, showing number of transactions per hour, with a separate chart for each day in a range that the user specifies at run time through paramaters.
    So I group on date at report level, and make my chart on change of hour show count of transactions, and that works.
    But using autoscale, EACH CHART is scaled on the Y axis, so for a day that has a peak of 5 tx per hour, that hour reaches top of chart, where next day, there is an hour with 100 tx.  So you can't tell at a glance that day 2 was busier than day 1.
    I like the auto scale, but I'd like it to consider the report for the scaling.  Is there a way to do that?  Or do some chart types let me do it and others don't?  (I've looked at Bar and Area charts)
    I can't use a fixed scale, because different customers have wildly different typical numbers.  (I could use a dynamically calculated fixed scale, but I don't see that that's an option)  If there's a way to use a formula for the data scale, I'm missing it, and that would probably solve my problem.
    Assuming I'm out of luck there - I can change the query as necessary, and I suspect I'm giong to have to use some gimmick like chart my maximum value in invisible ink, if someone's been down the road and knows a solution, if you can give me a quick hint on that, I'd appreciate it.

    If all else fails, you can do this easily with our CRChart add-in using the @SC family of macros which allow you to set the Y-Axis scale min/max dynamically (i.e. map them to a field or formula at runtime).
    -Dan
    disclaimer: I work for the company, threedgraphics.com, that makes this product. This product costs money.

  • How do I create portal groups dynamically?

    Has anyone written code to use the
    WWSEC_APP_GROUP_MGR.CREATE_GROUP procedure to create portal
    groups programmatically? I understand alot of what I'm supposed
    to pass, but some of these parameters are pretty obscure and
    obfuscated.
    I'm not sure this can be called like a normal (non-htp) stored
    procedure at all. I now understand nearly all of the
    parameters. Looking at the page source behind the Create Groups
    page, I see that many of these parameters are involved in the
    page generation itself, for example p_back_url being a variable
    that is probably attached to the action of "Previous" buttons
    that appear as you go through the process of creating a group.
    Here is my call:
    wwsec_app_group_mgr.create_group(p_groupname => 'X',
    p_description => 'TEST GROUP',
    p_db_role => 'DBA',
    p_hide_group => 'N',
    p_styleid => 6,
    p_group_id => y,
    p_siteid => 0,
    p_site_id => 1);
    where "y" is the nextval of the group sequence.
    Inserting SQLERRM into a table, I end up with this:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 323
    ORA-06512: at "SYS.HTP", line 860
    ORA-06512: at "SYS.HTP", line 975
    ORA-06512: at "SYS.HTP", line 993
    ORA-06512: at "PORTAL30.WWUTL_HTP", line 25
    ORA-06512: at "PORTAL30.WWERR_API_ERROR_UI", line 182
    ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 2891
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 255
    ORA-01403: no data found
    I know that this procedure is responsible for generating the
    subsequent pages in the "create group" wizard. There's just no
    possible way to figure out how to use this procedure
    dynamically. I repeat we WILL NOT BE TYPING IN OVER 3500 GROUPS
    and 7000 USERS USING THE WIZARD. There must be a way.
    I don't want to just arbitrarily insert groups into tables
    behind the scenes without knowing what I'm doing. If this is as
    simple as inserting a row into wwsec_group$, wwsec_member$,
    etc., then great, but there's no way of knowing.
    Maybe an Oracle person can help me. Is there another API I can
    use, or is there a way to use this API as a stored procedure
    where I can just loop through a driving table to create a bunch
    of users and groups?
    I appreciate any help. I need to create over 3000 groups based
    on my client's organization. We REFUSE to do this by hand using
    portal's interface. Not that it's bad, it is just impractical
    in this instance.
    Adrian Klingel

    Never mind.

  • How to create a message check boxes group dynamically in OA Framework

    Hi all,
    I am developing a custom OAF page. It is a master-detail page. And I am having some difficulties to build that.
    Firstly, I need to create a dynamic message check boxes group. These check boxes will get the prompt from a standard database table's column. Let's say I have table X with description column and it has 7 rows. Values of description column are A,B,C, ...etc. Then my master region on the page will have 7 check boxes with the prompts of A,B, C... Check box number will depend on the row/rows that this table has.
    The other requirement is to create master and detail rows that depends on the number of any checked check boxes. If 2 check boxes are checked then we need to create 2 rows of master data and detail data too.
    Does any of you have any ideas or suggestions to do that?
    It is urgent, any help would be appreciated.
    Thanks in advance and regards
    PS: Is it possible to do that? Can anyone put some light on this thread please?
    Edited by: user1742330 on Aug 12, 2012 4:23 PM

    Please help me out with this issue...
    I am in a very urgent situation. Any idea about this thread???

  • No option to reorder the Parameters in group Dynamic prompt

    I have designed Crystal Report which has an Dynamic prompt like Region / State / City.
    Selection of Prompts occurs in Order but the title shows as City/Region/State in Preview.
    I even checked example reports provided for Crystal report and seems like all has the same order of display the label.
    Its just the label display. I am using Crystal Reports 11.5.10.1263
    Easy example, open Report Samples > Feature Examples > Prompting.rpt
    Press F5 to prompt for parameter values. First parameter in that report is Country/Region/City.
    LOV list proper order, but the Label on top of it shows as City/Country/Region.
    Question
    Is there any workaround to make it in order?
    Is there any option to hide the label.

    I think you are referring to Standard Parameters.
    I am referring to Dynamic and have to use the Existing one which was created using Business View Manager. After selecting that I can order how it needs to be display in Value Section. Even i select Country / Region / State in the order i want, the prompt displays properly but associated label text displays other way like (City/Country/Region).
    in the example report i posted in the post 1,  open it up, Expand Parameter Field, Right Click and select Parameter Order
    You will see City/Country/Region. If you edit one of the parameter, the order of display would be Country/Region/City.
    On Preview Press F5 and in that screen, Verify the label text for this prompt group.. it will show as City/Country/Region but the prompts will be in order like Country / Region / City.

  • Problem with Assigning more than one value to GROUP dynamically

    Hi,
    I have a problem with assigning more than one value to GROUP varible dynamically.
    I am able to assign only one value dynamically through Initialization block
    I have even tried with the ROW-WISE initialization blocks..
    using this query..
    SELECT 'GROUP', G.GROUP_NAME
    FROM GROUP_MAP G
    WHERE G.USER_NAME = ':USER'
    if GROUP_1, GROUP_2 are two groups to be associated,
    through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
    And the properties and securities of this Groups are not inherited.
    Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
    Thank you.,

    Hi,
    i finally got in this way..
    i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
    Though it is same as that of ROW-WISE initialization,
    the properties of those groups are also being inherited..
    Now, i can assign more than one groups and its properties to a user dynamically.

  • Dynamic users group

    Looking for a cleaner solution to applying user policies, based on OS.
    I have user groups that may be running either XP and Win7.
    At the moment I specify a filter for the OS in each individual policy. Each policy is in a policy group say 'Admin Win7 policy group' and applied to the group 'admins'. But so does 'Admin XP policy group'. This means the correct policy gets applied but in the agents "Show Properties/Policies" I get "Non-Effective" messages for policies that get trapped by the filter.
    An enhancement request for an equivalent to the 'dynamic workstation group' - 'dynamic user group' perhaps?
    cheers

    Currently Exists if you use eDir.
    However, it would not help since the OS is not an inherent User Attribute.
    Your current implementation is the logical way to go.
    On 12/5/2010 6:06 PM, GERWIL wrote:
    >
    > An enhancement request for an equivalent to the 'dynamic workstation
    > group' - 'dynamic user group' perhaps?
    >
    > cheers
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • Dynamic query disappears from group

    Hi All,
    I've created a group within my SCOM deployment and wanted to add Windows servers to this group dynamically, using a Dynamic inclusion Rule.
    However when I create the rule and click apply, it seems to save (it also says populating the group members).
    But when I check the group via the "view group members" actions, it is empty..
    The formula I've added is a very simple one: ( NetBIOS Domain Name Equals 'domainname' )
    When I check back on the tab for Dynamic Members, then I don't see my rule anymore.
    It seems as if it didn't get saved.
    Can anyone help me on this?
    Thanks
    Filip

    Apparently SCOM removes the query in the GUI if it's invalid. Sadly, SCOM doesn't notify you of this, so I was pulling my hair out trying to find out why this was happening.
    To be able to build the query requested above, I've created the following query:
    Object is Windows Server 2008 Logical Disk
    And Group
      Display Name Equals S:
      Or Group
        Windows Computer.DNS Name matches wildcard WEBNY*
        Windows Computer.DNS Name matches wildcard SQLNY*
        etc
    The above query works for Logical Disk 2008. For 2012 Logical Disks, use the appropriate Class. To get the Windows Computer.DNS Name just hit Insert and in the dropdown menu go down to (Host = Windows Computer). This should do the trick to only find disks
    belonging (or not, depending on the query) to the targeted computers.
    Membership should update almost instantly.

  • Dynamic creation of Radio Button Group

    Hi,
    I need to create a Radio Button Group dynamically and add Radio buttons to it.
    I am able to create the Radio buttons dynamically. Could someone help me how to create Radio Button Groups.
    I tried creating the Radio Button Group using the following code
                  DATA : lr_radiobuttongrp type REF TO CL_WD_RADIOBUTTON_GROUP_BY_IDX.
                  call method CL_WD_RADIOBUTTON_GROUP_BY_IDX=>NEW_RADIOBUTTON_GROUP_BY_IDX
                  EXPORTING
                    bind_texts = 'test'
                  RECEIVING
                    control = lr_radiobuttongrp.
                  cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_radiobuttongrp ).
                  lr_container->add_child( lr_radiobuttongrp ).
    But when I run it I am geting a dump "subnode viewname.ME does not exist".
    Thanks,
    Suvarna.
    Edited by: Suvarna Chittor on Aug 12, 2008 12:10 PM

    what is 'test' in bind text parameter
    you should provide the name in Capitals along with the node name,
    if the node name is TEXTS and the context attribute under this node is TEXT then you have to pass
    TEXTS.TEXT
    also provide the VIEW parameter to the call
    Abhi
    Edited by: Abhimanyu Lagishetti on Aug 12, 2008 12:26 PM

  • Dynamically Create (and reference) Dialog Window Groups

    I'm trying to setup a dialog window that can be easily added to via a CSV file.  The only problem I've run into is; I'm not quite sure how to create the groups dynamically.  Basically, the script setups up a bunch of texture features and then gives the option to save and/or strip that feature.  Below is the basic idea of what I'm trying to do, but the groups are not able to be created in the way that they are shown:
    featArray = [];
    featArray[0] = new Array("Feature Display Name","feature sub-group",'texture',"feature action",'feature type');
    featArray[1] = new Array("Feature2 Display Name","feature2 sub-group",'texture',"feature2 action",'feature2 type'); //etc.
    for(var z in featArray) {
        if(featArray[z][2] == 'texture') {
            w.p1.sp1.add('statictext',undefined,featArray[z][0]);
            w.p1.sp1.g[z] = w.p1.sp1.add('group');
            w.p1.sp1.g[z].orientation = 'row';
            w.p1.sp1.g[z].add('checkbox',undefined,'Save');
            w.p1.sp1.g[z].add('checkbox',undefined,'Strip');
            w.p1.sp1.g[z].children[0].id = featArray[z][0].toLowerCase() + "-save";
            w.p1.sp1.g[z].children[1].id = featArray[z][0].toLowerCase() + "-strip";
    If you change the g[z] to g1, it will create each field correctly (visually), but there is no way to properly reference the check boxes to see which are checked.  Any ideas how, or even if, it is possible to dynamically create a different group for each line of the featArray?  And if so, how to then reference the check boxes in those groups later on?  Thanks in advance for any help!

    You just use the array ie:
    featArray = [];
    featArray[0] = new Array("Feature Display Name","feature sub-group",'texture','feature group','feature type');
    featArray[1] = new Array("Feature Display Name2","feature sub-group2",'texture','feature group2','feature type2'); //etc.
    var w = new Window('dialog','test');
    w.p1= w.add("panel", undefined, undefined, {borderStyle:"black"});
    var x = new Array();
    var count =0;
    for(var z in featArray) {
        if(featArray[z][2] == 'texture') {
            w.p1.add('statictext',undefined,featArray[z][0]);
    w.p1.g = w.p1.add('group');
    w.p1.g.orientation = 'row';
    x[count] = w.p1.g.add('checkbox',undefined,'Save');
    count++;
    x[count] = w.p1.g.add('checkbox',undefined,'Strip');
    count++
    x[0].onClick=function(){
        alert("Checkbox 0 clicked");
    x[1].onClick=function(){
        alert("Checkbox 1 clicked");
    x[2].onClick=function(){
        alert("Checkbox 2 clicked");
    x[3].onClick=function(){
        alert("Checkbox 3 clicked");
    w.test = w.add('button',undefined,'Press to Test');
    w.add('button',undefined,'Cancel');
    w.test.onClick=function(){
    for(var w =0;w<x.length;w++){
        alert("Checkbox " + w + " value = " +x[w].value);
    w.center();
    w.show();

  • How to Controll Dynamic Checkbox Groups

    i want to create checkbox groups dynamically. Each group will have at least one child checkbox. if i select parent check box all child checkboxes should be checked.if i uncheck parent checkbox all child checkboxes should be unchecked.
    that check box group name also coming dynamically. i am trying to pass group name dynamically but it's not recognizing that name in javascript.
    pls help me on this how to controll dynamic checkbox groups.

    recognizing that name in javascript.Are you dynamically creating checkboxes with JSP?

Maybe you are looking for