How having a where-clause in a report without affecting the actions button

Hi,
let's suppose I have a simple report built on a table where I have a date field.
If I want the report to get the records of the table when you login ao as to have only those of the current month, I could modify the region source in the page rendering of the report in this way:
select
“COLUMN1"
"COLUMN2",
"COLUMN3"
from   "MYTABLE"
where to_char(COLUMN2,'mm-yyyy') = to_char(trunc(sysdate),'mm-yyyy')
order by COLUMN2
The problem is that if I try to choose another range of date on the application by using the filter of the Actions button, I get no records and I suppose that is 'cause the report applies the filter to the query where I have
where to_char(COLUMN2,'mm-yyyy') = to_char(trunc(sysdate),'mm-yyyy')
and so I doesn't work.
How should I do?
Thanks!

try this...
select  
“COLUMN1" 
"to_char(COLUMN2,'mm-yyyy') ", 
"COLUMN3" 
from   "MYTABLE"  
where COLUMN2 between to_char(COLUMN2,'mm-yyyy') and  to_char(trunc(sysdate),'mm-yyyy') 
order by COLUMN2

Similar Messages

  • How to remove a photo from a LRPublishedCollection without affecting the Publish Service?

    Hello guys!
    I would like to know if there is a way to remove a photo from a LRPublishedCollection without affecting the Publish Service. Basically I would like it to be removed from the collection but I don't want to be added to "Deleted Photos to Remove".
    Thanks a lot!
    Jordy.

    I don't know how to keep it from being put on the "Deleted Photos to Remove" list at least briefly, but if you do this, it'll amount to the same thing:
    * save status for all photos in collection
    * set status of all photos to "do not publish"
    * remove photo from collection.
    * publish the collection, and make sure you call the deleted callback, but don't do anything else.
    * restore previous photo statuses.
    Only works in Lr4+.
    Rob

  • Print crystal report without using the print button on toolbar

    Hi,
    I am working on Crystal report XI. I need to print the report w/o using the toolbar. So I have inserted a print icon in the report. On clicking that icon it should call a jsp page which will print the report. I am not able to call any print methods provided by JRC to do this.
    Can someone help me with this problem.
    Is there some other way to implement it ?
    Thanks
    Message was edited by:
    CR_newbie

    Print the report where? On what printer? The server's printer?
    Java code runs on the server. You can't affect the client's computer from JSP.
    You can write javascript code which can call window.print() but that is working through the browser to display the print dialog box (as if the user selected file:print)

  • Dynamic where clause for generated reports (designer 6.0)

    Hi,
    I'd like to include dynamic where clause into my reports. It's easy with report builder by using bind parameter in a query where clause (&param where param is a parameter in which you fill a VARACHAR2 to complete default where clause).
    Problem with designer 6.0 report generator is that he failed while trying to parse the query statement he contructs if there is a bind parameter within.
    How can I manage this problem ?
    Thanks for answers
    Romain

    Hi Divya,
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no P_WHERE_CLAUSE= '||Where_Clause);Instead of using SET_REPORT_OBJECT_PROPERTY built in try using ADD_PARAMETER built in which
    adds parameters to a parameter list. Each parameter consists of a key, its type, and an associated value.
    v_rep := RUN_REPORT_OBJECT(repid); and instead of using RUN_REPORT_OBJECT try using RUN_PRODUCT.
    DECLARE
         repid REPORT_OBJECT;
         v_rep  VARCHAR2(100);
         Where_Clause Varchar2(4000) := null ;
            *Pl_Id        ParamList;*
            *Pl_Name      VARCHAR2(10) := 'param_list';*
    BEGIN
         Where_Clause := 'Where '||Create_Where_Clause();
         message(Where_Clause);
         message(' ');
            pl_id := Get_Parameter_List(pl_name);
            IF not Id_Null(pl_id) THEN
               Destroy_Parameter_List(pl_id);
            END IF;
            pl_id := Create_Parameter_List(pl_name);
            Add_Parameter(pl_id,'P_WHERE_CLAUSE', TEXT_PARAMETER, WHERE_CLAUSE);
            Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    --      Add_Parameter(pl_id,'ANY_OTHER_PARAMETER', TEXT_PARAMETER, 'VALUE FOR OTHER PARAMETER');
            RUN_PRODUCT(REPORTS,'REPORT_NAME', ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;Also you can add as many User created or System parameters as you want using add_parameter. Updated the code to add PARAMFORM parameter.
    Best Regards
    Arif Khadas
    Edited by: Arif Khadas on Mar 15, 2011 9:31 AM

  • Where clause is not being passed to the report

    I just upgraded my crystal reports from 10.0 to 11 R2. Reports were working fine in 10.0 version,
    Reports are called from vb.net (vissual studio 2005). When I was running this reports using crystal 10.0 and visual studio 2005, it was working fine, After the upgrade report runs but I am noticing that where clause is not being passed to the reports.It generates report as there is no where clause and produces multiple pages report.

    I believe you are encountering an issue documented in [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Ludek

  • Replace Where Clause in a Report?

    Is there any way to programmatically replace the Where clause on a report?

    Hi,
    You can use QBE reports. This way you can give the where clause in the customization form.
    Thanks,
    Sharmila

  • How to set Where clause in the View Object of the MessageChoice ?

    Hi,
    How to set Where clause in the View Object of the
    MessageChoice ?
    Example:
    <bc4j:rootAppModuleDef name="EdEscolaCampusView1AppModule"
    definition="ed00050.Ed00050Module"
    releaseMode="stateful" >
    <bc4j:viewObjectDef name="EdEscolaCampusView1" >
    <bc4j:rowDef name="CreateEdEscolaCampusView1" autoCreate="true" >
    <bc4j:propertyKey name="key" />
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    <bc4j:viewObjectDef name="ListaTipLocalView1"
    rangeSize="9999">
    </bc4j:viewObjectDef>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    messageChoice declaration:
    <bc4j:messageChoice name="SeqTipoLocalCampus"
    attrName="SeqTipoLocalCampus"
    prompt="Local do Campus">
    <contents>
    <bc4j:optionList attrName="SeqTipoBasico"
    textAttrName="NomTipoBasico"
    voName="ListaTipLocalView1"/>
    </contents>
    </bc4j:messageChoice>
    I would like set where clause of ViewObject, with dinamic parameters (using attribute1 = :1), before populate messageChoice.
    thanks...
    Danilo

    Hi Andy,
    I try set a where clause using the message:
    Set where Clause parameter using UIX , but my UIX Page have 2 messageChoice's of different ViewObject's, then I need implement this Java Class:
    //Nome da Package da Tela Detail
    package br.com.siadem.siaed.ed00050;
    // Importa as Bibliotecas necessárias
    import oracle.jbo.ViewObject;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.client.Configuration;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.data.jbo.servlet.bind.*;
    import oracle.cabo.ui.data.BoundValue;
    import oracle.cabo.ui.data.DataBoundValue;
    import javax.servlet.http.HttpServletRequest;
    import br.com.siadem.siaed.util.*;
    import javax.servlet.http.Cookie;
    import oracle.cabo.data.jbo.def.NestedAppModuleDef;
    import oracle.cabo.data.jbo.def.ViewObjectDef;
    import oracle.cabo.data.jbo.def.AppModuleDef;
    // Classe que configura os parametros para a execução da Query,
    // utilizando variáveis de Sessao
    public class FunPreQueryLista
    public static EventResult FunConfiguraQuery(BajaContext context, Page page, PageEvent event) throws Throwable
    // TrataDadosSessao - Classe utilizada para retornar os valores das variáveis de sessão genéricas
    // Ex: CodCliente, CodMunicipio etc...
    TrataDadosSessao varDadosSessao = new TrataDadosSessao();
    // 1o. Parametro Configurado - Através da classe TrataDadosSessao, utilizando um método Get
    // <alterar>
    String valor1 = varDadosSessao.getCodCliente();
    String valor2 = varDadosSessao.getCodMunicipio();
    //Cria o objeto que retorna o ApplicationModule
    ApplicationModule am = ServletBindingUtils.getApplicationModule(context);
    // Início das Configurações da Query da Lista
    //Cria o objeto que retorna o view object da lista desejada
    //alterar
    ViewObject TipoLocal = am.findViewObject("ListaTipoLocalView1");
    //Configuração dos parametros definidos na query do view Object
    //alterar
    TipoLocal.setWhereClauseParam(0,valor1);
    TipoLocal.setWhereClauseParam(1,valor2);
    // Executa a Query
    TipoLocal.executeQuery();
    // Fim das Configurações da Query da Lista
    // Início das Configurações da Query da Lista
    //Cria o objeto que retorna o view object da lista desejada
    //alterar
    ViewObject TipoDestLixo = am.findViewObject("ListaDestinoLixoView1");
    //Configuração dos parametros definidos na query do view Object
    //alterar
    TipoDestLixo.setWhereClauseParam(0,valor1);
    TipoDestLixo.setWhereClauseParam(1,valor2);
    // Executa a Query
    TipoDestLixo.executeQuery();
    // Fim das Configurações da Query da Lista
    // Retorna o Resultado para a Página
    return new EventResult(page);
    The code works very well...
    And, I'm sorry for my two repost's in UIX Forum about this in a few time.
    Thank very much...
    Danilo

  • How to write WHERE clause in dynamic record group in oracle forms

    hi this is s.v.eswar,PLZ HELP ME
    i am new to oracle forms
    i want to write where clause in dynamic recordgroup
    this is the code i have written
    DECLARE
         MGR_ITEM ITEM:=FIND_ITEM('MGR');
         RG_ID_MGR RECORDGROUP:=NULL;
         MGR_DUMMY NUMBER;
    BEGIN
         RG_ID_MGR:=FIND_GROUP('MGRNUMBER');
         IF ID_NULL(RG_ID_MGR) THEN
              RG_ID_MGR:=CREATE_GROUP_FROM_QUERY('MGRNUMBER','SELECT DISTINCT TO_CHAR(EMPNO),TO_CHAR(EMPNO) FROM EMP WHERE JOB='MANAGER''); --THIS IS THE LINE I AM GETTING ERROR
         END IF;
         IF NOT ID_NULL(RG_ID_MGR) THEN
              MGR_DUMMY:=POPULATE_GROUP('MGRNUMBER');
              IF MGR_DUMMY=0 THEN
                   POPULATE_LIST(MGR_ITEM,'MGRNUMBER');
              END IF;          
         END IF;     
    END;
    COMPILE TIME ERROR
    1)I have written where clause like this WHERE JOB='MANAGER'
    then oracle compiler has given error like
    ENCOUNTERED THE SYMBOL 'MANAGER' WHEN EXPECTING ONE OF THE FOLLOWING .,().........etc
    (FOR THE ABOVE ERROR I JUST REMOVED SINGLE CODES AND WRITE LIKE THIS ----->WHERE JOB=MANAHER)------>THEN COMPILED SUCESSFULLY)
    AND I RUN THE FORM
    RUN TIME ERROR
    FRM-41072: CAN NOT CREATE GROUP 'MGRNUMBER'

    Hi there
    pls have a look here
    Dependent drop down lists in forms 6i
    hope this helps...
    regards,
    Amatu Allah

  • How to canel where clause equal effect

    hi all
    in JPAQL
    i wanna cancel the where clause effect in order to use the following example query
    select u from user u where u.name= :name
    the question is what to put for the value of the parameter:name to make the query get all the objects ,ie. make it match against any name,i know that this can be achieved with omiting the where clause alltogether but my real world query is much complex and i cannot guarentee that each time i run the query all the parameters will be assigned so i want to neutralize the effect of effect of the unassigned parameters by making a default that get all objects, i cannot use dynamically generated sql or jpaql as my db perform much much better with precompiled queries
    please help me and tell me if ur solution is portable among JPA providers(in the spec )or just available in KODO
    thanx alot

    hi all
    in JPAQL
    i wanna cancel the where clause effect in order to use the following example query
    select u from user u where u.name= :name
    the question is what to put for the value of the parameter:name to make the query get all the objects ,ie. make it match against any name,i know that this can be achieved with omiting the where clause alltogether but my real world query is much complex and i cannot guarentee that each time i run the query all the parameters will be assigned so i want to neutralize the effect of effect of the unassigned parameters by making a default that get all objects, i cannot use dynamically generated sql or jpaql as my db perform much much better with precompiled queries
    please help me and tell me if ur solution is portable among JPA providers(in the spec )or just available in KODO
    thanx alot

  • How to delete aggreagetd data in a cube without deleting the Aggregates?

    Hi Experts,
    How to delete aggreagetd data in a cube without deleting the Aggregates?
    Regards
    Alok Kashyap

    Hi,
    You can deactivate the aggregate. The data will be deleted but structure will remain.
    If you switch off the aggregates it wont be identified by the OLAP processor. report will fetch the data directly from the cube. Switching off the aggreagte won't delete any data,but temporarly the aggregate will not be availbale as if it is not built on the info cube. No reporting is not possible on swtiched off aggregates. The definition of the aggregate is not deleted.
    You can temporarily switch off an aggregate to check if you need to use it. An aggregate that is switched off is not used when a query is executed.This aggregate will be having data from the previous load's. If the aggregate is switched off means it wont be available for reporting but data can be rolled up into it.
    If u deactivate the aggregates the data will be deleted from the aggregates and the aggregate structure will remain the same.
    The system deletes all the data and database tables of an aggregate. The definition of the aggregate is not deleted.
    Later when you need those aggregate once again you have to create it from scratch.
    Hope this helps.
    Thanks,
    JituK

  • How do i print from indesign (CS4) landscape without losing the edges.

    i'm a PC to MAC newbe. Also moved from CS2 toCS4.
    can't for the life of me figure out how to print from indesign in landscape layout without losing the left 2.5 inches of print. having the same trouble with #10 envelopes.
    your help would be appreciated!

    Usually this problem has to do with choosing the correct size and orientation of paper, both page size and print paper size.
    IOW, if you want to print to a #10 envelope, start a new document that is exactly the size of a #10 envelope. Then when you print it, choose a paper size that is exactly the size of a #10 envelope.
    What size page are you printing, and what paper size are you choosing when you print it?
    Ken

  • How to format my computer without affecting the software installed?

    how do I format my computer without affecting the software installed?

    You can, but if you don't format the drive using the Zero Data option all your personal files will still be accessible to someone who knows how to gain access to them. If that's not a concern then here are two options (easy and not so easy):
    The Easy Way
    1. First, boot from your Tiger DVD, select your language and click on the Continue button, then select Disk Utility from the Utilities menu, select your boot hard drive, go to the First Aid tab, and click the button for Repair Disk. Repeat this until no trouble is found. Then click on the Repair Permissions button. Then quit DU, return to the installer and shutdown the computer for a couple of minutes.
    This will assure that the drive is OK and permissions are OK.
    2. Next, boot to single user mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
    3. At the prompt, type the following commands pressing return after each command line:
    /sbin/fsck -yf
    mount -uw /
    rm /private/var/db/.AppleSetupDone
    shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when you reboot, it will send you to the startup wizard where you can start a new user without reinstalling.
    The Not So Easy Way
    Follow these instructions step by step to prepare a Mac for sale:
    First, back up the data:
    1) Shut down all Virtual PCs. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    2) Clone to an external drive using Carbon Copy Cloner.
    Next, prepare the machine for the new buyer:
    3) Deauthorize the computer in iTunes! Deauthorize both iTunes and Audible accounts.
    4) Remove Open Firmware passwords
    5) Turn the brightness full up and volume nearly so.
    Install a fresh OS:
    6) Insert the OS X install CD/DVD.
    7) Restart the computer while holding down the C key to boot from the CD/DVD.
    8) Run Disk Utility from the file menu and erase the internal hard drive (optionally zero all data).
    9) Install OS X.
    10) Reboot the computer.
    11) From the welcome screen, you can skip the registration step by typing command-Q.
    12) When prompted, create an account (it will be an admin account).
    13) From your new admin account, configure networking.
    14) Then use Software Update to bring your system and all of it's applications up to date.
    15) From Disk Utility, repair permissions on the new volume.
    Now delete the account you just created:
    16) Boot from a different volume (e.g. a firewire drive, if available)
    17) Clean up the image using the following terminal commands:
    prompt> rm /Volumes/<imagevol>/var/db/BootCache.playlist
    prompt> rm /Volumes/<imagevol>/var/db/volinfo.database
    prompt> rm -r /Volumes/<imagevol>/var/vm/swap*
    18) Now you can get rid of the admin account you used to set up the machine Use the terminal:
    prompt> nicl -raw /Volumes/<imagevol>/var/db/netinfo/local.nidb -delete /users/<admin>
    prompt> rm -r /Volumes/<imagevol>/Users/<admin>
    prompt> rm /Volumes/<imagevol>/var/db/.AppleSetupDone
    19) Shut down and ship it to your buyer. When they get it, it will boot to the Welcome screen just like a factory Mac, except that it's better because it's completely up to date.

  • REPORT - Who runs the action

    Hi,
    I need to make a report containning all the actions made on a user and the user who made this action.
    For instance, I need to know WHO creates an account.
    Do I have an attribute or a table that store this information?
    I try to see into mxp_audit but the colon startedBy is almost always  "NULL" and in the colon "changedBy" into mxiv_oentries I find lots of negative values such as -1;-2;-3;-4 instead of mskeys.
    An idea?
    thanks

    Hi!
    I just made a report like yours. first your need to see what a changes there is made by a user.. thats quite easy because thats everything on changed on the user. you could make some union on the mxiv_all_sentries and mxiv_oentries. then for matching them up to a time where they were updated and by whom you should use the valueauditid on mxiv_sentries/oentries and map it to mxp_audit and then use them to se when and by whom made the changes..
    That should give you most of it!

  • How to save data in CallableObject without completing the action

    Hello,
    we have a process with actions with callable objects. Some of these actions cannot be completed within a short time, but still are an "atomic task". Thus we'd like to save the data entered so that it is there again when calling the action at a later time again. This would also make it possible for the employee of a team to really take the task (eg. by pressing a button "take this task") and for the other to see, who is in charge.
    How can data be written into the GP context (eg. LocalContext of the CallableObject), without completing the action (eg. by setting a result state)?
    We do not want to build LoopBlocks where the same Action is called and completed multiple times, each time adding an other "Iteration X"-entry in the navigation.
    Best regards,
    Manuel Schaffner

    Hi,
    I dont think there is any way of passing data back to GP context without completing the callable object. If you wish to save the data locally then you can probably use CAF business objects.
    Ashutosh

  • How can I add photos to a video without interrupting the sound of the original video?

    In PE11, How can I add photos to a video without interrupting the sound of the original video?

    RLHeflin
    Thanks for getting your details posted. Good job.
    You further explained
    I am simply wanting to “overlay” a new visual element without disturbing the underlying audio.
    A classical way to do a Premiere Elements Overlay is to hold down the Ctrl key of the computer main keyboard and drag the new clip over the area of the one you want to replace on the Timeline. That should not do anything but replace one portion of the video on the Timeline. No change in duration video or audio track if you are dealing with video linked to audio.
    If you hold down the Alt key of the computer main keyboard, I am envising a scenario where you want to add to (not replace) some Timeline content.
    A just in case note, if you have video on Video 1 and 2 and the video in 2 does not have transparent areas in it, then all you will see is the Video 2 content. I believe that Hunt eluded to that concept as a possible technique for what you might be doing.
    Another just in case, if you have not seen the following Adobe documentation on arranging clips, you might be interested in the following link
    http://help.adobe.com/en_US/premiereelements/using/WS9B8F8208-EAE8-4b49-A79B-9479B46A8981. html
    Please update us on your progress when you get a chance.
    Thank you.
    ATR

Maybe you are looking for

  • Can't connect to cellular data on my iphone 4s

    So here's a description of the issues I've been having over the last several months. I cannot connect to or use my cellular data when not connected to wifi. Example: I will be out at the store or on my way to work and I will try to search google but

  • How do i use both ssd and hdd drives on macbook pro together

    have a mid 2012 macbook pro 15 inch. I replaced hdd drive with ssd drive and put hdd drive in optic bay. Was wondering what the best way to use both together is

  • Do illustrator cs6 document open in illustrator cs5?

    do illustrator cs6 document open in illustrator cs5?

  • Regarding Invoiced Document

    Hi, After transaction MIRO (Invoice Verification), a breakup of the Total Amount is visible in terms of figures (numbers) in the invoice posted. This breakup in numbers represent Principal Amount,Octroi,VAT,Sales Tax etc. Is it possible in SAP R/3 MM

  • Error 1004, 1013,

    i am using iphone 4 (GSM)(FACTORY UNLOCKED). I was using IOS 4.2.1 but i updated it to 4.3.2 but in end some error 1004 came and my phone stuck in dfu mode.. so i google about solution... and i found tinyumbrella software.. i used it for exit dfu mod