How to display dynamic parameter picklist based on other parameter?

The report uses two parameters 1.  Order placed date and 2. Sales Agent name.  First parameter (Order placed date) is a static date range that allows users to enter a date range to run the report.  The second parameter is a dynamic parameter that displays Sales Agent names as a picklist. Users can select one or more agent names. This pick list is generated using a SQL command.
We would like to display the names of Sales agents (in the parameter pick list)  who were active (i.e. who took orders) between the date range selected in the first parameter.
Currently the picklist, lists names of ALL sales agents (about 100) irrespective of the date selected in first parameter. So, users are forced to go through the entire list of agents instead of agents that were  active during that period.
We are using CR 2008 on Edge 3.1. 
Any elegant way to achieve this? Your help is appreciated.
Regards,
Mohit.
Edited by: Mohit Saran on Oct 19, 2009 2:46 PM

I realized that the question got posted in Bus Objects General forum and have reposted it in Crystal Reports Design forum (as originally intended). Sorry for the confusion.

Similar Messages

  • Can you dynamically change an LOV on the parameter form based on other params?

    Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.

    Hi
    Accouding to my knoledge you can't do it.
    If you want to build lov for that particular
    value, you can do it in Forms.
    Vijay

  • How to display dynamic column added by vo.addDynamicAttribute in jspx?

    Hi,
    I met problem when programmatically add cloumn and display it on screen. Here are my steps:
    0. define a ViewObject using xml. Define a transient column Addtion2. later will add a dynamic column Addtion3, but not defined here.
    1. Implement Application Module, adding a method init() and expose it to client.
    2. In init() method, get target VO and use vo.addDynamicAttribute("Addition3"). Then iterate it use row.setAttribute("Addition3", Math.random()). Add init() to page binding and invoke it.( it's invoked )
    3. In jspx, use dynamic table. But Addition3 never shows up.
    This is my last question: Re: How to display dynamic column added by vo.addDynamicAttribute in jspx? People say I should use dynamic table.
    please have a look at my code:
    Application Module: when it runs, it will print 6 coulmns. vo.getAttributeCount() is <font color="red">6</font>.
    <pre>
    public void init() {
    ViewObject vo = this.getCountryView1();
    if (vo.getAttributeIndexOf("Addition3") == -1) {
    vo.addDynamicAttribute("Addition3");
    vo.executeQuery();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    RowSetIterator it = vo.createRowSetIterator("i1");
    while (it.hasNext()) {
    Row r = it.next();
    r.setAttribute("Addition2", Math.random());
    r.setAttribute("Addition3", Math.random());
    it.closeRowSetIterator();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    System.out.println(vo.getAttributeCount()); //vo.getAttributeCount() is 6
    </pre>
    jspx: when it runs, only 5 columns are shown. Column Addition2's values are set as expected. but Column Addition3 never shows up. And #{bindings.CountryView1.attributeCount} shows <font color="red">5</font>.
    <pre>
    <af:table rows="#{bindings.CountryView1.rangeSize}"
    fetchSize="#{bindings.CountryView1.rangeSize}"
    emptyText="#{bindings.CountryView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" rowBandingInterval="0"
    value="#{bindings.CountryView1.collectionModel}"
    selectedRowKeys="#{bindings.CountryView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CountryView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1">
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:column headerText="#{def.name}"
    sortable="true" sortProperty="#{def.name}" id="c1">
    <af:outputText value="#{row[def.name]}" id="ot1"/>
    </af:column>
    </af:forEach>
    </af:table>
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:outputText value="#{def.name}" id="ot2"/>
    </af:forEach>
    <af:outputText value="#{bindings.CountryView1.attributeCount}" id="ot3"/>
    </pre>
    it's quite weird for me. The vo.getAttributeCount() is 6, but #{bindings.CountryView1.attributeCount} shows 5. And column Addtion3 never shows up.
    what's the matter? How can I show the dynamic added column Addtion3?
    Edited by: simon li on 2012-9-10 下午7:31
    Edited by: simon li on 2012-9-10 下午8:00

    Hi,
    Can you check the tree binding (CountryView1 - in the pagedef) and see it has the 5 attributes hardcoded in it. If yes, try removing everything and then run the page to see if it works fine.
    -Arun

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    >
    Zack H wrote:
    > Lazaro,
    >
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    >
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • How to display dynamic signature in Smartforms?

    Hi,
    Someone could help me in displaying dynamic signatures in SmartForms?. The signature is an attached file to the document. I already have the binary file but I don't know how to display this as an image in the Smartforms.
    Thanks in advance,
    Oliver
    Message was edited by: Oliver Vera
    Message was edited by: Oliver Vera

    Please give me the reply.
    I have an image content in one internal table.I want to display that image in the smartforms.
    plaese please.

  • How to display dynamic values in poplist at row level in advanced table

    I want to display dynamic values in poplist at row level based on a row value in advanced table, with lov i can achieve it, is there any way to achieve this in poplist
    Thanks
    Bbau

    Babu,
    You have been long enough in forum and still come out with these one liners. Problem statement is not clear.
    --Shiv                                                                                                                                                                                                                                                               

  • How to display back the JTable based on the coding??

    Hi all,
    I don't know how to display back my JTable after i remove it. I want the table to dissapear and reappear in given time. Hope someone can help me. Thanks a lot
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class tableTest extends JFrame implements ActionListener
         private String colNames[];
         private String rowData[][];
         private String col[];
         private String row[][];
         boolean stop = false;
         Timer timer;
         JScrollPane sp1=new JScrollPane();
         Container c=getContentPane();
         public tableTest(){
              super("table display");
              int delay=1000;
              timer = new Timer(delay, this);
            timer.setInitialDelay(0);
            timer.setCoalesce(true);
            timer.setDelay(1000);
              testing7(sp1);
              c.setBackground(Color.white);
                 Container c=getContentPane();
                 c.add(sp1,BorderLayout.WEST);
              System.out.println("haih~~");
              setBounds(50,50,600,600);
              setVisible(true);
         public static void main(String args[])
              tableTest test = new tableTest();
              test.start();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public void actionPerformed(ActionEvent e)
                   start();
                   c.setForeground(Color.white);
                   c.remove(sp1);
                   System.out.println("Tested");
                   sleep();
                   stop();
                   testing7(sp1);
                   System.out.println("out!");
                   timer.restart();
        public void testing7(JScrollPane sp1)
              testing5();
              JTable t1= new JTable(row, col);
              t1.setRowHeight(20);
              t1.setGridColor(Color.red);
              sp1.getViewport().setView(t1);
              sp1.setPreferredSize(new Dimension(150, 150));
    //          c.add(sp1,BorderLayout.WEST);
    //          c.remove(sp1);
         public void testing5()
              testing3();
              testing4();
         public void testing3()
              col = new String[5];
              for (int i=0;i<5;i++)
                   col= " "+i;
         public void testing4()
              row = new String[10][10];
              for(int i=0;i<10;i++)
                   for(int j=0;j<10;j++)
                        row[i][j]=i+","+j;
         public void sleep()
              try
                   Thread thread;
                   Thread.sleep(2000);
              catch (Exception e){}
         public void start()
              if(stop)
              else
                   timer.start();
         public void stop()
              timer.stop();

    seegeorge,
    what do i mean by iconize it??

  • How to display dynamic datas and double datas (chart)

    Hi all !
    I would like to display dynamic datas and double datas by using charts.
    However, it doesn't work and I don't understand why.
    Can you help me to fix that ?
    Best regards,
    - John
    Attachments:
    double_dynamics_data.vi ‏54 KB

    Hi John,
    the sine looks like it should look with your VI!
    You convert the DDT to a scalar DBL. That conversion will only use the first sample of the generated sine waveform - usually this is always the same (offset) value when you generate full periods… Or to put it in a mathematical expression: sin(0°)+4 = 4!
    When you want to display waveform you should work with waveforms!
    Actually, I have used Dynamic data type in order to simulate an signal.
    Well, I also simulated a signal in my example VI. I didn't use any ExpressVI to do so…
    In a few weeks, I will receive a sensor. I will use in LabView 'DAQ Assistant' whose the ouput is a Dynamic Data.
    Nobody forces you to use the DAQAssistent ExpressVI. There are nice DAQmx functions available and LabVIEW comes with a lot of ready-to-use example VIs…
    That's why, I used in first place, the 'Simulate signal'. So I think I should keep Dynamic Data Type
    I do think you don't need to use the DDT. I think it's better to understand what is going on in your VI. And I think the DDT will be no help for you…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to insert into date column based on other columns?

    Hi
    I have four columns in a table called game named as
    R_Day - Type - Number
    R_Month - Type - Number
    R_Year - Type - Number
    R_Date - Type - Date
    I have around 1000 records and i want to fill R_Date column based on the data in the R_Day,R_Month,R_Year.
    How to write a query to fill the R_Date column based on other three columns.
    Thanks
    srinivas

    select
    to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
    dt from (select 23 R_Day,07 R_Month,2007 R_Year from
    dual);
    Hi,
    Update <Table Name> set R_Date=select
    to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
    from <Table Name>
    Regds.
    Nirmal
    SQL>  select * from test;
         R_DAY    R_MONTH     R_YEAR R_DATE
             1          1       2007
            21         11       2007
    SQL> update test
      2  set r_date = select to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
      3  from test;
    set r_date = select to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
    ERROR at line 2:
    ORA-00936: missing expression
    SQL> update test
      2  set r_date = to_date(r_day||'-'||r_month||'-'||r_year,'dd-mm-yyyy');
    2 rows updated.
    SQL> select * from test;
         R_DAY    R_MONTH     R_YEAR R_DATE
             1          1       2007 01-JAN-07
            21         11       2007 21-NOV-07
    NB:Please test before posting..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can i dynamically select columns based on the input parameter?

    I have an input parameter which takes single numeric value.
    Based on this value i have to dynamically select table-columns .
    For eg: if i have following fields in my table :
    SEM_1
    SEM_2
    SEM_3 and SEM_4.
    And if i give numeric input as 2 , then i have to select "SEM_2" column only.
    if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
    how do i achieve this dynamic feature in the "Select .....  From...... table...." statement in the ABAP??

    Hi,
    you should try something like this.
    TYPES: cond(72) TYPE c.
    data: condtab TYPE TABLE OF cond,
             condw type cond.
    data: lv_field(30) type c value 'SEM_'.
    write p_num to lv_field+4(1).
    condw = lv_field.
    append condw to condtab.
    SELECT (CONDTAB) FROM table INTO.....
    Kostas
    Message was edited by:
            Kostas Tsioubris

  • How to display data in tableview based on a dropdown filter selection

    Hi All,
    I have implemented a flow logic based BSP page to display the SFLIGHTS table when I open this page it displays all records in the table SFLIGHTS. I would like the set a drop down box filter on CARRID and CONNIND. Only once the user selects the CARRID and CONNID and presses on display buttont the data for that selection in the drop down box should be displayed.
    Can you kindly share the code how I can put 2 drop down boxes and make the data retrieval on the page occur based on the dropdown box selection. The layout page is  as below. Appreciate if you could kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Yeh Karen,
    What  i have written is that only.. ok fine i will tell you in detail ok...
    first what you do is if ur wrking with MVC concept in *do request * add the code for the dropdown as
    select single connid from sflights into wa_sflights.
    this code will give you the coniid  in the dropdown ok
    if you not wrking with MVC ,if its just a Flow with page login then write the same code in Oninitialization
    now if you select the connid from the dropdown and you want to display the details of the that connid in the tableview .. rite?
    then in do handle event write the code when i have written before  if itsnot MVC add in oninputProcessing
    DATA: HTMLB_EVENT TYPE REF TO CL_HTMLB_EVENT,
    W_ID TYPE STRING,
    W_VARIABLE TYPE STRING,
    tvdata TYPE REF TO CL_HTMLB_TABLEVIEW.
    IF HTMLB_EVENT IS NOT INITIAL.
    W_ID = HTMLB_EVENT->ID.
    IF W_ID EQ 'dd_project_name' . ------>this is the name of the dropdown
        DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST
                             NAME = 'dropdownListBox'
                             ID = 'dd_project_name' ).
        IF DATA IS NOT INITIAL.
          W_variable = DATA->SELECTION.
        ENDIF.
    if w_variable is not initial.
    select * from sflights into table lt_flights where connid eq w_variable.
    endif.
    now in the view you should
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= lt_flights %>"
    filter = "SERVER"
    sort = "server" />
    Hope it works fine

  • How to display Dynamic Message in Message Pool.

    HI All,
    I want to display the Error Message in Message Pool Dynamically.
    By creating only one Message in Message Pool of Type Error.
    I.E If user leaves the First Name and Last Name Field Blank then
    Error Message Should appear as:
    Please Enter First Name.
    Please Enter Last Name.
    How could i achieve this.....
    Regards,
    Dhruv Shah

    Hi Dhruv,
    In the Message Pool create a new Message of Type error and the Text Please enter the .
    And on the action of Your Submit button write the following code :-
    String strFirstName = wdContext.currentContextElement().getFirstName();
    IWDMessageManager msgMgr = WdComponentAPI().getMessageManager();
    IWDAttributeInfo <ObjectName> = this.wdContext.getNodeInfo.getAttribute("FirstNameField");
    if( strFirstName  == null || strFirstName.length() == 0)
    msgMgr.reportContextAttributeMessage(wdContext.currentContextElement,<ObjectName>,IMessage<componentName>.<MessageKey>,new Object[] {"First Name"},true);

  • How to display the o/p based on i/p in mpp

    Hi frnds,
    IN MPP,
    use 2 tables ztest1, ztest2
    Input fields :repno, plant, date, material (but date is get from user others are get from ztest1 table)
    in ztest1some records is their(es repno=100 etc,)
    Giver the repno then press "ENTER" button display the plant , material and then modify the material with date ,
    Press 'modify button' save into ztest2.
    How can i archieve,help me.
    Thanks in advance.

    Hi kumar,
    1. create 2 internal table based on u r ZTABLE. in top include. and define work area also WA.
    2. create a screen like 1000 and in screen create a table grid using table wizard and refer u r internal table  .
    3. create a pushbutton name modify.
    4. then in  PAI module write following code.
    CASE SY-UCOMM.
        WHEN 'MODIFY''.
    LOOP AT ITAB1.
    MOVE-CORRESPONDING ITAB1 TO WA.
    INSERT INTO ZTABLE VALUES WA.
    COMMIT WORK.
    ENDLOOP.
    ENDCASE.
    i think u get some idea using this code.
    regards,
    Abhilash

  • How do you display an item value based on other items?

    Item C's value depends on item A and B. If both A&B are null then C should display null , if A is null but B is not null then display 'Ok', everthing else display ' problem';
    3 items on page 5
    item A: name p5_A, display as text (saves state). source type is a dabase column
    item B: name P5_B, display as text (saves state). source type is a databbase column
    item C: name P5_C, display as text (based on PLsql doest not save state), source type pl/sql anonymous block ? like the following
    if :P5_A is null and :P5_B is null then :P5_C is null; else if :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;
    Can someone tell me what did I do wrong on these stements unde apex? Thanks a bunch.
    Tai

    Alternatively, you could do a add a computation for that item - same source as mentioned in the previous reply, but each will work.
    Also, in your anonymous block, you have:
    if :P5_A is null and :P5_B is null then :P5_C is null; else if :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;should probably be
    if :P5_A is null and :P5_B is null then :P5_C := null; elsif :P5_A is null and :P5_B is not null then :P5_C := 'OK'; else :P5_C := 'Problem'; end if;so instead of :P5_C is null , assign it a null - :P5_C := null. Also, else if in pl/sql is written as: elsif
    Edited by: tr3nton on Jan 19, 2010 3:03 PM

  • The Picture of OLE object  in the report  can't be printed, and how to sovle dynamic OLE object based on path

    <p>Hi, everybody,</p><p>  I have a problem which the picture in the report can&#39;t be printed.</p><p>I want to display some pictures  in the reports and print them.So I insert the picture as OLE object, select the graph format and set graph location fomular with the path of the picture which is stored in the local machine. I run the system and generate the report,  the picture is displayed correctly in the report, but when i print the report using ie&#39;s tool, the picture is gone and replaced with a little red mark. </p><p>I want to use the new feature of dynamic graph location about  the  crystal report xi version, but I don&#39;t know where I should put the picture into on the web server and what the path is . Because my web server is installed in the another machine.</p><p>I check the view source of html report and  find that the system searches the picture under  the crystalreportviewer11 folder on the web server.</p>

    Need to give the web server access to the folder

Maybe you are looking for

  • MIRO : Error message for a duplicate entry

    Hi, When we enter In MIRO an invoice with the same informations as another invoice that was already posted, the system display a Warning message like the following : Message no. F5117 Check whether document has already been entered with number 190000

  • Please can someone help me with this problem?

    I have been having major issues concerning all available web browsers for OS X. Since the Security Update 2006-003, ALL browsers crash immediately when trying to log into Yahoo! or Hotmail. Safari is holding out so far as for me to be able to make th

  • Query Saving takes long time and giving error

    Hi Gurus, I am creating one query that have lot of calculations (CKF & RKF). When I am trying to save this query it is taking long time and it is giving error like RFC_ERROR_SYSTEM_FAILURE, Query Designer must be restarted, further work not possible.

  • Nokia C7 - Changing Contact types???

    When you add a new contact it automatically shows it as a mobile number.  Is there a way to change this to call it "Home" as some of my contacts have a home number and mobile number but at the moment my C7 will only call them both mobiles and there s

  • My nano 6 plays the same few dozen songs even though there are 1000 songs.

    My nano 6 plays the same few dozen songs over and over even though there are about 1000 songs on it.  Many of the songs have never even played.