Setting a Filter on a Shuttle ???

The help document for Shuttle has under Runtime Control, instructions for Adding a Leading List Data Filter to a Shuttle. Has anybody gotten this to work?

Hi sgerick,
Have you finish Setted a Filter on a Shuttle?
Thanks and Regards
binghao

Similar Messages

  • Need to Programmatically Set IRR Filter on Date Field Due to APEX 4.1 Bug

    There may be another work around but, here is the problem that we are encountering...
    We have a huge table that is partitioned on a DATE field and an IRR that reports on this table. By default, we want to show the most recent 3 days of data. There is a built-in filter for "is in the last 3 Days." Sounds Great! Unfortunately APEX generates the code using TIMESTAMP rather than DATE functions. As a result of this, the query does not perform partition pruning and, as a consequence, it is doing a full table scan which takes forever. Note the use of the "LOCALTIMESTAMP" function in the query that is generated by APEX for this filter:
    SELECT   "BUSINESS_DATE",
             COUNT ( * ) OVER () AS apxws_row_cnt
      FROM   (SELECT   *
                FROM   (SELECT   *
                          FROM   position_delta_his p) r
               WHERE   ("BUSINESS_DATE" BETWEEN *LOCALTIMESTAMP*
                                                - NUMTOYMINTERVAL (:APXWS_EXPR_1,
                                                                   'year')
                                            AND  *LOCALTIMESTAMP*)) r
    WHERE   ROWNUM <= TO_NUMBER (:APXWS_MAX_ROW_CNT)If, instead, APEX used the SYSDATE function, as the underlying column is a DATE, this returns instantly, after partition pruning.
    SELECT   "BUSINESS_DATE",
             COUNT ( * ) OVER () AS apxws_row_cnt
      FROM   (SELECT   *
                FROM   (SELECT   *
                          FROM   position_delta_his p) r
               WHERE   ("BUSINESS_DATE" BETWEEN *SYSDATE*
                                                - NUMTOYMINTERVAL (:APXWS_EXPR_1,
                                                                   'year')
                                            AND  *SYSDATE*)) r
    WHERE   ROWNUM <= TO_NUMBER (:APXWS_MAX_ROW_CNT)
    The bug is that APEX should base the underlying function on the data type of the filtered column.
    As a work around, if we create a filter where BUSINESS_DATE >= '4/13/2012' (three business days ago), again, this returns instantaneously. The issue is that we can only set this filter by using the APEX GUI. We need to be able to:
    1. Determine the date for 3 business days ago
    2. Set this as the default filter.
    I tried creating a BEFORE HEADER PL/SQL page process but, it does not appear to be having any effect. Here is that code:
    DECLARE
        ldt_Filter DATE;
        CURSOR lcsr_GetMaxBusinessDate IS
            SELECT Max(BUSINESS_DATE)
            FROM POSITION_DELTA_HIS;
        DAYS_AGO CONSTANT NUMBER := 3;       
    BEGIN
        APEX_UTIL.IR_CLEAR( :APP_PAGE_ID );
        OPEN lcsr_GetMaxBusinessDate;
        FETCH lcsr_GetMaxBusinessDate INTO ldt_Filter;
        CLOSE lcsr_GetMaxBusinessDate;
        ldt_Filter := ( Trunc( ldt_Filter ) - 3 );
        APEX_UTIL.IR_FILTER( p_page_id       => :APP_PAGE_ID,
                             p_report_column => 'BUSINESS_DATE',
                             p_operator_abbr =>'GTE',
                             p_filter_value  => TO_CHAR( ldt_Filter, 'YYYYMMDDHH24MISS' ) );
    END;Can anyone tell me:
    1. How to set this filter programmatically (also needs to be displayed on the page so the user can see the current filter...as if it were created via the GUI) ***OR***
    2. Some other work around for this issue..
    Thanks,
    -Joe

    Actually, now that I look further, I don't think it is going to work to simply set the filter programmatically. The end user can still click the column heading where they are only given the choice of the LOCALTIMESTAMP based filters. If they pick one, the page is going to be out to lunch for them.
    We really need some other fix. We really need a way to actually address the underlying issue.
    -Joe

  • How to set the width of a shuttle?

    Hi
    I have a group which is shown in intersection-shuttle style but the problem is that it breaks some rows into two lines and i want to make the shuttle a bit wider. How could I set the width of the shuttle. Apparently the Group Width attribute of the group doesn't work for this.

    You could try this using the inlineStyle property of the shuttle component in the generated page. Not sure that works though. You better ask this on the JDeveloper forum.
    If it works you can create a custom template to include the inlineStyle property during generation.
    Steven Davelaar,
    Jheadstart Team.

  • How to set a filter in DTP?

    Dear Gurus,
    I'm trying to load some selective data based on the Sales Order Number from DSrc to a DSO.  I'm trying to set a filter in the DTP.  Can someone please guide me how to set a filter in DTP?
    Thanks & Regards,
    Ashmeel.

    Hi,
    Double Click the DTP. Open the extraction Tab. On this tab you can see Filter Icon click on that. Put the filter as desired in the sales order number. Save and Activate.
    In case the field on which you want to apply the filter is not visible, open the DTP in edit mode click on the FIlter button, now click on change selection button. Here in you can drag the required fields to LHS for them to be visible in filter option.
    Apply required filter value Save & Activate the DTP
    Revert in case of doubt
    Regards
    Raj

  • How to set OR filter by using whereClause

    Hi all
    I want to set OR filter on whereClause
    I have to values value1 and value2
    now I want to show all records related to value1 and value2

    whereClause = whereClause + "And(vac.Name like '"+vacancy+"' or vac.Name in (";>for(int i =0; i < temp.length ; i++)
    >{
    > //pageContext.putDialogMessage(new >OAException("delimeters "+temp));
    > if(i == temp.length-1)
    > whereClause = whereClause +"'"+ temp[i] +"')";
    > else
    > whereClause = whereClause +"'"+ temp[i] +"',";
    >}
    >whereClause = whereClause + ")AND lower(vac.STATUS) like 'approved' "+
    > "AND vac.CREATION_DATE between to_date('"+ StartD >+"','dd-mon-rrrr') AND to_date('"+ EndD + "','dd-mon-rrrr')";
    > pageContext.putDialogMessage(new OAException(whereClause));
    //vo.setWhereClause(" (FndVacancyName in ("+temp+") OR >FndvacancyName like "+vacancy+") AND ((lower(vac.STATUS) like 'approved') AND (Vac.CREATION_DATE between to_date(" + StartD + ",'dd-mon-rr') AND to_date(" + EndD + ",'dd-mon-rr')) )");
    vo.setWhereClause(whereClause);> vo.executeQuery();
    but it doesnt work for two or more values

  • Setting the filter to restrict the data based on processing period

    Hi all,
    Hope someone might be able to help me - OBIEE 11.1.1.5 - I have an RPD very simple just two tables (nothing coomplex).
    Here is the scenario - after every month end close the user will run the report from the dashboard by selecting the processing period like 20111130 (NOV close) processing period is a varchar(8) in the table, once the user selects the 20111130 i need to get the dataset for the last 12 months which is based on a different field called EMP HIRE DATE (this field includes the data values from 2005 onwards but i only need last 12 months) in this example l need to set the filter so that i only get the data from DEC 2010 - I was able to get this done using the SQL in TOAD against oracle 11 - but i am not sure how to set this as a filter in BI answers/dashboard
    The below is my filter in TOAD but not sure how i can accomplish this in OBIEE - PROCESSING_PERIOD is VARCHAR(8) , EMP_HIRE_DT is DATE
    EMP_HIRE_DT BETWEEN ADD_MONTHS(TO_DATE(SUBSTR(PROCESSING_PERIOD,1,6),'YYYYMM'),-11) AND LAST_DAY(TO_DATE(SUBSTR(PROCESSING_PERIOD,1,6),'YYYYMM'))
    i really appreciate any help

    Thanks.
    I also found that what was happening is that the state was being correctly set, but the List was overriding the state with its built in selected and hovered state.  The renderer would have a stepper, but as soon as the mouse moved over it it would change state.  I even tried deleting all the states in the states array except "normal" and "stepper" , but it would still change out of "stepper".
    Also, the buttons on the item renderer would also cause the item renderer to change states when their states changed.
    So, for this case, to get it done I changed from a states model to a visibility model, and that works fine:
    // if a recipe is a cocktail, switch state to display numeric stepper
    if (XML(data).@course == "cocktails") {
         stepperGroup.visible = true;
         stepperGroup.includeInLayout = true;
         doubleItGroup.visible = false;
         doubleItGroup.includeInLayout = false;
    } else {
         stepperGroup.visible = false;
         stepperGroup.includeInLayout = false;
         doubleItGroup.visible = true;
         doubleItGroup.includeInLayout = true;

  • Setting a Filter on a dynamically created Table

    Hi All,
    I am currently working on a Database to automatize some process. Quick explanation:
    The User can import a CSV (Text) File via a DialogBox, which gets imported into a Table. After this, the content has to be filtered, setting conditions on 4 different rows. The new Table gets exported into a new CSV (It has to be CSV, since it later gets imported
    into SAP)
    I am having some trouble with filters though:
    How can I set a Filter on a dynamically created Table (using VBA)?
    Best case would be to save the filter into my Import spec, but Access doesn't seem to have this option (?)
    Can somebody help?
    Thanks in advance
    Regards
    Alex

    Thanks for the fast reply! Sorry, I am not really proficient at Access. How do I do a query on a dynamically created Table? Do I have to save the Table into a Variable. Or what's the way to import it?
    Hi Alex,
    I never use the Import functionality, nor DoCmd.TransferText.
    To import data from a csv-file I made my own Import functionality. In fact it is just reading an external file, line by line, and each line field by field using the field separator. In my opinion that is far more versatile than the standard functionality.
    But you can use the standard functionality of Access to import a csv-file into a table.
    Having the data in a table, you can generate the appropriate query for the output in a VBA procedure:
            sql_string = "SELECT Field1, Field2, ... FROM MyTable WHERE Field1 = ... AND Field2 = ... ORDER BY Field3"
    and make a recordset of it:
            Set cur_set = CurrentDb(sql_string)
    The output csv-file is then filled by opening a file for Write, loop through all the records, concatenate for each record all the wanted fields using the field separator, and write the result line to the csv-file.
    Most important is to understand this process. After that it should be possible to build it. And if you have further questions, just ask.
    Imb.

  • Set default filter

    Hello,
    could you please help me find the way to set default filter over a specifed colum in CRM 7.0 on a table view? It should work just like a manual created filter, but it should exists already by first call of a view with table.
    I tried following but without success:
      iterator->filter_by_property( iv_attr_name = 'XXX'
                                   iv_value = 'XXX' ).
    and implement it following menthods for context for view with should have mentioned filter:
    getter for field
    do_prepare_output
    do_init_context
    but it didn't work... Method is executed and it look like everything works fine, but as result the filter is not created....
    thanks

    Hi Juzio,
    You can as well try using the following code in DO_PREPARE_OUTPUT method.
    Filter the table with BTPARTNER according to filter values
    IF lv_default_filter EQ abap_true.
                     me->typed_context->BTPARTNER->set_filter( EXPORTING iv_attr_name = 'PARTNER_NO' iv_value =              
                  lv_filter_member )."#EC NOTEXT
             ELSE
                me->typed_context->BTPARTNER->delete_filter( ).
              ENDIF.
    You can reset the flag lv_default_filter in the DO_HANDLE_EVENT method of the view controller when the event 'filter'
    is triggered from the table filter by the user.
    Regards,
    Leon

  • Set/remove filter

    Hi Colleagues,
    In BPS I have created a user exit variable which sets or removes a filter for the last 3 months. I could also create a buttom in the layout in bps_wb. With this buttom I can set or remove the filter.
    My point is the name of the buttom. Currently it is set/remove filter. I want to have it like "set filter" or "remove filter" based user status of the exit variable. If it is active the buttom should be "remove" in the opposite case "set".
    Do you have any idea? I have been searching in se80 in BPS-Application but could not find anything.
    Thanks a lot in advance.
    Best Regards,
    Laszlo

    Hi.
    Unfortunately I think that it is impossible in 3.5 (BW/BPS).
    In WAD 7 it could be achieved easly using standard functionality
    Regards.

  • Set Date Filter Today

    Hyperion IR vs 9
    I want to filter a results set by DATE.  I have a date column called RenewDate.  I want that field to always show what lies in the future.  To do this, the date field fileter parameter should be set to show only what is greater than today.
    How can I do this?

    This should work.Create a computed item (named Now) defined as
    new Date()
    and another (named Filter) defined as
    (new Date(RenewDate)) > Now
    Set the filter to = 1.  Once you handle issues related to handling nulls and my boneheaded column names, this should work.

  • How to set numeric filter for JSpinner?

    Hi there,
    I searched the forum but can't find a solution...I'm kind of getting mad!
    Problem is: I have a JSpinner, I must prevent the user to insert any non-numeric value. the accepted input should be in the form <n>.<m>
    where n could be any integer number, m is OPTIONAL and could be a single digit number. Example: 150.2 or 41 or 7.1 etc.
    I set a DocumentFilter on the editor of JSpinner, overriding replace method. Problem is replace method is never called so my filter is not applied and the user is allowed to insert whatever he wants, characters included.
    Here's my code (sorry for the horrible gui, but it's just for some testing.):
    import java.awt.Dimension;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.JTextField;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DocumentFilter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              NumberEditor edit = new NumberEditor(spinner, "#######.#");
              spinner.setEditor(edit);
              JTextField textField = ((JSpinner.DefaultEditor) spinner.getEditor()).getTextField();
              ((AbstractDocument) textField.getDocument()).setDocumentFilter(new MyDocumentFilter());
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }Why replace method is not called when inserting somethig into the spinner text field?
    Thanks a lot in advance.
    Paul
    Edited by: the.paul on Jul 27, 2010 1:11 AM

    I found a solution, got inspiration from [http://forums.sun.com/thread.jspa?forumID=57&threadID=5424330] .
    Code:
    import java.awt.Dimension;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DefaultFormatterFactory;
    import javax.swing.text.DocumentFilter;
    import javax.swing.text.NumberFormatter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              String decimalFormatPattern = "#######.#";
              NumberEditor edit = new NumberEditor(spinner);
              spinner.setEditor(edit);
              ((NumberEditor) spinner.getEditor()).getTextField().setFormatterFactory(
                    new DefaultFormatterFactory(new MyListFormatter(model, new DecimalFormat(decimalFormatPattern))));
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyListFormatter extends NumberFormatter {
              private static final long serialVersionUID = -790552903800038787L;
              private final SpinnerNumberModel model;
              private DocumentFilter filter;
              MyListFormatter(SpinnerNumberModel model, NumberFormat format) {
                   super(format);
                   this.model = model;
                   setValueClass(model.getValue().getClass());
              public void setMinimum(Comparable min) {
                   model.setMinimum(min);
              public Comparable getMinimum() {
                   return model.getMinimum();
              public void setMaximum(Comparable max) {
                   model.setMaximum(max);
              public Comparable getMaximum() {
                   return model.getMaximum();
              protected DocumentFilter getDocumentFilter() {
                   if (filter == null) {
                        filter = new MyDocumentFilter();
                   return filter;
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }That is: define a custom formatter ; the formatter uses the custom DocumentFilter.
    Hope it is useful for some people out there.
    Regards

  • How to pass the whole set of values of a shuttle item in AJAX

    Hi,
    I am trying to pass the value of shuttle item to a dynamic process using Ajax. But if I use shuttle_right, I am able to get only the first selected value. If I simply give shuttle it returns null.
    Please let me know How I can get the whole set of values separated by ':'
    Thanks,
    Vikas

    Vikas,
    Here's a little snippet that should get you going:
    var shtVals = '';
    var shuttle = new dhtml_ShuttleObject("PXX_SHUTTLE_LEFT","PXX_SHUTTLE_RIGHT");
    for (x=0; x<shuttle.Op1Init.length; x++) {
       shtVals += shuttle.Op1Init[x].value + ':'; //Op1 = left & Op2 = right
    shtVals = shtVals.replace(/:$/,'');
    alert(shtVals);Regards,
    Dan

  • Set variable filter for query from dashboard in IR 9.3

    I have a dashboard that I want to set up to a process a query that has a variable filter. Can I set the variable filter in Javascript so the user does not see the variable filter/limit dialog? I'm using IR 9.3.

    OK, never mind. I figured out how to do it right after I posted this:
    mylimit = ActiveDocument.Sections["Query: New Users"].Limits[1]
    mylimit.CustomValues.Add("TAA")
    mylimit.SelectedValues.RemoveAll()
    mylimit.SelectedValues.Add("TAA")
    ActiveDocument.Sections["Query: New Users"].Process()
    var MySection = ActiveDocument.Sections["Report"]
    MySection.Visible = true
    MySection.Activate()

  • Set with filter Expirationtime comparison current-datetime does not list members: regional settings?

    Hi all;
    I've created a criteria-based set that has to filter for users that have an
    "expiration Time" "prior to" "today".
    xpath filter: /Person[ExpirationTime &lt; fn:current-dateTime()]
    I've got one user where I've set a date expired to a week ago.
    When I click view members it does not return any results. When I change the logic to
    "expiration Time" "after" "today".  to see how this logic works, it doesn't return any results either.
    I'm working in Belgium, regional settings are d/MM/yyyy H:mm (in 24h format).
    My browser language is also set to nl-BE, where FIM actually uses this in the PORTAL field too:
    Today in Belgium is 16/09/2014 16:45. But My set returns 0 members.
    I've read some articles that FIM needs the format in yyyy/MM/dd format (for import)
    Is it correct that FIM Portal doesn't handle this XPATH current-dateTime() function correctly for foreign regional settings?
    I've tried to set it current-dateTime("d/MM/yyyy") or other variants, but that gives an error when I'm trying to save.
    Kind regards,
    David

    Hi,
    I've checked, the "SQL Server Agent (MSSQLSERVER)" is running, and set to automatic.
    I've changed the Local default to "dutch (Belgium)" in the Site settings (it was English (US)):
    I've launched iisreset to restart the website.
    I've looked at the set, no members. I've validated if the users its date format was OK (and Belgian/European style) => it was.
    I've played in the set with the different options (I'm translating as these are in Dutch):
     - Prior to 1 day 
     - Prior to 1 day from today
     - Prior to "Tuesday 16 September 2014 0:00:00" (from a calendar control)
     - Prior to today
    None of these returned any user records :(

  • Setting a filter to a native group in EAS (9.2.0.2)

    Ok...I have a Planning app and I am trying to create a filter in Essbase for the app. I added the filter to the Planning app in EAS and it saved fine. Now... I created a new group in SS, provisioned the group to the Planning app and added a user to the new group. I go into EAS to the new group and see Planning app and when I go to assign the new filter the filter box in grayed out and I can't assign my new filter. I use to use this method in Planning 4.2 to allow certain users the ability to lock and send. Must be something with sys 9 (9.2.0.2) just don't know if i can get around it. Any ideas?

    Yes..thank you I do see that and also realize that SS will only let you set filters on Essbase cubes and not Planning cubes. When I right click on a Planning project in SS I get different drop down then when I go to a Essbase project (Essbase project gives you option to "Assign Access Control".

Maybe you are looking for

  • Either there is no default mail client or the current client..

    Is there a fix for the error message (either there is no default mail client or the current mail client cannot fulfill the message request. Please run Microsoft Outlook and set is as your default mail client) when trying to open a PDF file?. This err

  • Acrobat Reader 10.1.3 - Nachkommastellen werden ignoriert im Browser

    Plattform Windows 7 Acrobat Reader 10.1.3 Betroffenes Dokument wurde erstellt mit Acrobat Distiller 6.00 für Macintosh - PDF Version 1.6 Wenn ich ein Dokument, welches eine Tabelle enthält in der eingetragene Werte addiert werden, im Browser (Interne

  • JAVA_HOME on Tomcat

    how do i set the environmental variable JAVA_HOME to point to my jdk directory which is c:\\jdk1.3.1_02\ somebody please help me!! ive been trying to setup this servlet engine for 5 days now and i still cant get it to work :( i keep getting an error

  • Event.MOUSE_DOWN freezes my app

    My class extends Applet class, and I have an application which has a couple of buttons and text fields. However, the problems occur with events in public boolean handleEvent(Event event) method. I have a bug which freezes my application when the user

  • Download forms and reports 11g

    hi everyone...... i need to download forms and reports 11 g, so where can i download it (preferable oracle.com site as i'm behind firewall)??? thanks in advance Regards, Santosh.Minupurey