How to create  some columns dynamically in the report designer depending upon the input selection

Post Author: ekta
CA Forum: Crystal Reports
how  to create  some columns dynamically in the report designer depending upon the input selection 
how  export  this dynamic  report in (pdf , xls,doc and rtf format)
report format is as below:
Element Codes
1
16
14
11
19
10
2
3
Employee nos.
Employee Name
Normal
RDO
WC
Breveavement
LWOP
Sick
Carers leave
AL
O/T 1.5
O/T 2.0
Total Hours
000004
PHAN , Hanh Huynh
68.40
7.60
76.00
000010
I , Jungue
68.40
7.60
2.00
5.00
76.00
000022
GARFINKEL , Hersch
66.30
7.60
2.10
76.00
In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
Can anybody help me how do I design such report....
Thanks

Hi Developer life,
According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
Similar threads with details steps for your reference:
https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
Any question, please feel free to let me know.
Best Regards
Vicky Liu

Similar Messages

  • How to create table columns dynamically ?

    Hi All,
    I am working on an SSRS report that will show sales in the past 5 years. If the user selected to view sales of past 3 years he will only see 3 columns. so How can I create table columns dynamically at run time and how can I make sure that their dimensions
    will adjust to fit the report page size.

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Do the execution time of the insert command depend upon the no the indexes

    hi,
    Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
    Edited by: [email protected] on Mar 4, 2009 3:02 AM

    sure,..
    An index is a structure which contains entries pointing to the actual data in the table.
    When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
    So this might lead to an update and insert in the index structure.
    This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.

  • Where is the report designer feature in the latest version ?

    Hello,
    We have switch from EPM 11.1.2.1 to EPM 11.1.2.3 with Smart View 11.1.2.5.200 and I'm not able to find the Report Designer feature on Smart View ?
    This feature allow us to include several smart slice in the same worksheet and also to use slider for POV
    Oracle removed this feature from Smart View ?
    Thanks!

    Hi,
    This feature is not removed in 11.1.2.5.200
    In Excel After creating the essbase connection > Navigate to Essbase > Query > Query Designer.
    Or Look at the lower right hand corner where you will see the link for Query Designer.
    HTH.
    Please mark as Correct answer if this answered your query.
    Thanks,
    Gowri Ramalingam.

  • How to create a column where each subsequent entry is added to the former?

    How does one create a column, inside Numbers, where each subsequent cell is added, in value, to the preceding cell above it? For example, a column could be labeled "credit card subtotals for the month." In the first cell, one might insert a dollar value, eg., $24.00. The next credit card charge might be $100.00 and that would be added to the $24.00 to create a running subtotal.
    Thank you.

    Hi Jay,
    Both formulas are written as they would appear entered into C2.
    The 'special formula' is also written as it would appear in C2. Where I have used 'formula for C2' substitute your choice of the two formulas listed above the 'special formula' in my earlier post.
    If you choose to use the first version, the finished 'special formula' will look like this in C2:
    =IF(LEN(B2)>0,SUM(C1,B2),"")
    Jerry's remarks regarding using conditional formatting to suppress the display of zeroes is well taken, but in this case, will not work as there are no zero values to be hidden.
    In this case, either of the initial formulas will repeat the last 'running balance' in every cell from the last row containing an entry in column B to the bottom row of the table.
    The formula checks, by counting the number of characters displayed, whether an entry has been made in the column B cell on the same row as the formula (B2 in the example in this post. IF an entry has been made, the formula calculates the sum of that entry and the previous running balance. IF no entry has been made (ie. there are no chanracters displayed in B2, the calculation is skipped, and the empty string ( "" ) is placed in C2, giving the appearance of a blank cell.
    Example:  the formula in this post is used in column C. Column D uses the core of that formula (with the C1 reference replaced by D1) without the IF statement. Both formulas are filed down to the bottom cell in their columns. Note the difference in rows 7 and below:
    Regards,
    Barry

  • How to create a text variable for Calender Yr/Month depending on the prompt for calendar year

    Hi everyone
    Please assist on this issue:
    i have created a Bex report that has an offset for 12 months from the current calender month, i tried to use text variables to replace the calender months but i just learned now text variables from Bex dont work in BO, so I would like to create a prompt in BO to enter Calendar Year and then based on the input(Calender Year) the Webi report must display a 12 months for that Year.
    Please also indicate where exactly  i have to click in order to get that "Helpful icon "  when the my issues have been resolved, because i searched it and havent seen it anywhere on the communications
    Thanks in Advance
    Ole

    Hi Gill
    In BO I recieve my all months for existing data  and when i create a prompt for Calender Year the months in the report still has those text varibale for exampl if i enter 2011 on the prompt the text remains for the year that was already there wen i created my text variable... so its not dynamic.....
    So if i have text variables in Bex it will display like this in Webi in which it wont change if i put in 2011 as input for the prompt...

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • How to create Infoset&user group query--(query report)

    Hi Guys,
      how to create Infoset&user group query--(query report),
      Pls send me the exact procedure with Example....
                                                                              Regards:
                                                                              Kumar .G

    goto SQ03 and create an User Group If U want to create Ur Own.
    Goto SQ02 to create Ur Infoset by Giving Logical database name or Simple Database table
    Then Choose What ever data U need to be included in The Qurey in field Groups.
    Then Generate the Infoset
    Now Assign the infoset to user group
    Now goto SQ01 and Click on Other user group Button and choose Ur user Group.
    Then in the USer group select Ur Infoset and then create Ur own Query and save this.
    Now select the infoset query and goto More functions under Query menu and Generate report name.
    Now Create a transaction code for the report name generated.
    Now use the Tcode.
    Hope U have got the basic idea of creating Queries.
    ~BiSu

  • How to insert a new field in the Report Designer

    Hi all.
    I have a query and a report, but the query evolve.
    We have a new key figure (inside rows).
    In the report designer, I check the data provider.
    The new key figure is added in the catalog field.
    Now, I would like to insert the new field in the report.
    I add a new row in the report structure but it isnt what I want.
    In this case, I add a second row inside an another keys figures block.
    I want to create a new block for my new key figure
    Thanks for your help
    Céline

    Yes, key figures is in the field catalog.
    But When I do that " Insert a row ", Report designer create a " row 2 " below another key figures.
    And it isn't what I want. I want a new block .
    For exemple in the tab report structure (My new key figure is "Margin")
    I do that
    Group Level 1 : key figures
             Detail Area
                      Sales Amount
                                   row1
                                          cell1
                                          cell2
                      Cost
                                   row1
                                          cell1
                                          cell2
                                   row2 ( the new row added)
                                          cell1
                                          cell2                     
    But I want that:
    Group Level 1 : key figures
             Detail Area
                      Sales Amount
                                   row1
                                          cell1
                                          cell2
                      Cost
                                   row1
                                          cell1
                                          cell2
                     Margin
                                   row1
                                          cell1
                                          cell2                     
    Thanks for your help

  • Make changes to the line item depending upon doc type n sp. GL ind in F-48

    I want to make changes to the line item depending upon the document type and special GL indication for the transaction code F-48.
    Depending upon document type and special GL indicator i want to calculate the work contract tax during simulation in transaction code F-48.

    Hi,
    You want to deduct WCT when you use particular document type and special gl indicator.
    I just want to know the reason why you want to determine the WCT based on the above conditions.
    I created WCT as withholding tax types and assigned to vendor master. So when the user booking transactions he will choose the respective WCT tax type and tax code so system will deduct the amount and the same updated in WITH_ITEM.
    Or you made a down payment request through T.code F-47 and when you want to book the actual transaction in F-48 then choose line item from down payment request.
    Give me your requirement in clear if the above is not clear
    Regards,
    Sankar

  • How to create alv table dynamically by performing action on the button.

    Hi all,
    my requirement is to create alv table dynamically.
    that is i will create two buttons
    1) show alv table
    2) close alv table
    if user selects show alv table then the alv table should be displayed.
    and if user selects clsoe alv table then the alv table should be closed.
    to create alv table dynamically  i have followed this procedure.
    under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
    with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      lo_cmp_usage->create_component( ).
      endif.
    to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      else.
      lo_cmp_usage->Delete_component( ).
    endif.
    Thanks & Regards,
    Naveen
    Edited by: naveen.webhelp on Feb 10, 2011 5:52 AM

    Hi
    ALV table will be shown in the viewcontainerUI element.
    it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
    SALV_WD_TABLE.
    and if you are not getting the table filled in the first place.
    then check have you mapped the DATA node to some node in the comp controller
    wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
    there are many ways to do so.
    best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
    create an attribute of type WDUI_VISIBILITY name say VIS.
    now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
    then in the showalv grid button's eventhandler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '02'
    and in the wddoinit and delete alv grid button's event handler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '01'
    thanks
    sarbjeet singh

  • How to create dynamics columns in oracle query1.

    hi,
    how to create dynamics columns in oracle query.its very urgent.
    regards
    prasad..

    Urgent is it?
    Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
    What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
    Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
    If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
    Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
    You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
    /rant
    As a basic example of dyanamic SQL:
    DECLARE
      cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
      cols DBMS_SQL.DESC_TAB;
      ncols PLS_INTEGER;
    BEGIN
      -- Parse the query.
      DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
      -- Retrieve column information
      DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
      -- Display each of the column names
      FOR colind IN 1 .. ncols
      LOOP
        DBMS_OUTPUT.PUT_LINE (cols.col_name);
      END LOOP;
      DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    /

  • How to create a BPEL dynamic process?

    Hi gurus,
    We have encountered the following scenario, hope somebody can help!
    The client will manage some provisioning activities with an end system that will service them, BPEL is required to be the "Activity Manager", and handle these as they come; meaning, the client will send an array message describing the order in sequence on how they should be sent to the end system. This activities can have dependencies between them, also defined within the input message. The following is a muck up example of input message structure:
    <ActivityOrder>
    <!-- Some descriptions about the ActivityOrder>
    <Id/>
    <Status/>
    <DateInitiated/>
    <!-- This can have N number of ListActivity descriptions-->
    <ListActivity>
    <ListAtivityHeader>
    <SequenceNumber/>
    <Dependency/>
    <ActivityId/>
    <Status/>
    <Description/>
    <!-- ListActivityItem will contain message details to send to partnerLink>
    <ListActivityItem>
    </ListActivityItem>
    </ListActivity>
    </ActivityOrder>
    The order in which these activities are processed in BPEL will be dynamic, and they will be sent at run time, so to support this approach, a dynamic orchestration process will be needed on the integration layer. The client will send an array containing the sequential activities described by <SequenceNumber>, and also the dependencies between them, if that activity requires it, described by <Dependency> which will contain the sequence number that has to be completed before the current activity can be performed. After the end system resolves and replies to the activity requestin BPEL, an update must be sent to the client notifying status.
    All these interactions are assynchronous and could take as long as 6-8 weeks. Is it technically feasable the implementation of the above requirements? If so, how can we accomplish this?
    We are on SOA Suite 10.1.3.1
    Regards,
    Wilver
    Edited by: user633514 on Feb 4, 2010 8:21 AM

    Thanks for the reply, and yes, I have taken ideas from it that sample, but this is not the case I'm stating, parterLink is wellknown at design time, so its not a Dynamic partnerLink type of scenario since its the process flow the one that needs to be determined at run time. Dependant activities can't start until reply of the activity that it depends on has being received. How can I verify that an activity sent has being received?
    I've been weightin options; Can't use flowN since there could exists dependencies between processes. It can be accomplished by doing a combination of logical while structures or to call recursively another bpel process that will manage the Invoke/Receive, depending on the nature of the flow. Is there any other way of doing this that we haven't seen? What are the pros and cons I could encounter? What is the best practice recommendation for such scenario?
    Right now we have the following algorithm:
    Channel Initiates process
    Receive Input
    While Message has Activity
    If Activity has no Dependencies
    Invoke CurrentActivityCreationService
    End-If
    Else
    Set $receiveStatus = 'NO'
    While Activity Dependancy NOT Received
    Verify Activity Dependancy Receive Status (Where I get this info??)
    Update $receiveStatus with the outcome of the Verify activity above
    If $receiveStatus = 'NO'
    Receive ActivityCreationServiceResponse
    Update Channel
    End-If
    Else
    Invoke CurrentActivityCreationService
    Set $receiveStatus = 'NO'
    End-Else
    End-While
    getNextActivity
    End-Else
    While Exist a Pending Activity Responses to be Received
    Receive ActivityCreationServiceResponse
    Update Channel
    End-While
    Invoke Channel Callback
    The above algorithm creates me the following restrictions:
    • Activities are needed to be sent sequentially ordered.
    • Each activity may only have one dependency.
    • An activity can never depend on another that is later in the sequence.
    • Before sending activities that depend on previous one, it needs to know the state of that previous activity dependency, if already received or not.
    • For better performance, all independent activities should be first in the sequence, and activities with dependancies last.
    As usual most of these restriction are a hard sell since the activity stack will be tailored by a functional end user, so their not desired. Any fresh idea will be more than welcome, thanks for the time.
    Regards, Wilver
    Edited by: Wilver Cortes on Feb 5, 2010 6:34 AM
    Edited by: Wilver Cortes on Feb 5, 2010 6:38 AM

  • How to create a database dynamically

    I am trying to create mysql database dynamically through java. Also please help me how to execute *.sql file in java.

    dheerajsea123 wrote:
    I am trying to create mysql database dynamically through java. Also please help me how to execute *.sql file in java.If possible it depends on the database and driver.
    If possible the exact methodology varies by database (driver shouldn't matter.)
    Normally it is not considered a good practice for traditional server applications.

  • How to create two columns in a header?

    Can anyone tell me how to create two columns in a header please?
    Thanks!!

    Sandra,
    I'm suspicious about your motives.  It just doesn't seem logical to me to put so much content into a Header that two columns would be required.
    You might consider the alternate header-like approach; use a Text Box set to two-column format and Format > Advanced > Move Object to Section Master.
    Jerry

Maybe you are looking for

  • Material stagging at storage location level

    Hi Guys, When i do material stagging at storage location level (MF60) material moved from one storage location to another storage location 311 and material document is created in system . I want to do it through two steps that is material issue from

  • How to get the size of free memory in unix?

    I have one oracle database running in unix, and I want to tune the memory used. additional, I want to create another database in this server. I don't know how many memory left in it. Could you tell which unix commands can be used to find out the size

  • HT2731 My iTunes cannot  open in iPad

    Hai boss,  This mail sent in iPad.I have two problems in my iPad.(1) In my settings I don't see the personal hotspot function.this is available in my iPad.And another question is my iTunes could not cannot them.this is my request for apple support.pl

  • Using a "Scheduled Task" on a cisco controller to output data to a text file

    Can someone tell me if there is a way to run a Cron Job, RBA, or some other automated process on an 8510?  The idea would be to run the job every 5mins, and output the data to a text file.  Is this possible?

  • Still Images with iSight Camera

    Hello Is it possible to capture single/still images with an iSight camera? If yes, with which application? The only I've found is Photobooth, but that is too slow beacause of the countdown before taking the photo...