Where Clause in the Forms doesn't work

Hi,
I am trying to execute a query in base table block. The block property 'Query allowed' is TRUE and WHere clause is null;
I used 'SET_BLOCK_PROPERTY' and set the where clause. Did a GO_BLOCK and EXECUTE_QUERY;
The block brings all records as if there is no where clause. TO make sure I put up a message 'GET_BLOCK_PROPERTY' to see the where clause. It showed correct where clause.
null

Setting the where clause the way you did usually works, and it worked fine for me several times.
Yet, a couple of days ago I ran into something that defies my logic:
1) when using the "=" operator, it fetched me several records that satisfied the condition
2) when using the "<=" or ">=" operator it fetched only one of the records that satisfied the condition: the one that is strictly equal.
I tried using the pre-query trigger, but to no avail.
I'm looking forward for your succes.
null

Similar Messages

  • Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?

    Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?

    Hi Aish
    I wanted to check the following, but the URL is not found, you have another one?
    thanks
    Nicole
        4. Visit http://my-site.com/scripts/form_check.php in a web browser and make sure you see all green checkmarks. If some items do not display green checkmarks that means that the hosting server is not configured correctly to allow the Form widgets to send email messages to the address you've specified.
                    Contact your web-hosting provider about the server configuration problem. Describe the items that are not marked as green in the form check page, so that they can help you set up the servers to use the correct settings.
    Il giorno 9-set-2014, alle ore 16:11, Aishvarya Raj Rastogi <[email protected]> ha scritto:
    Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?
    created by Aishvarya Raj Rastogi in Help with using Adobe Muse CC - View the full discussion
    Hi Nicole,
    What is the "From" email address in your form?
    Also, have you checked the spam folder?
    Please check the following posts as well :
    https://forums.adobe.com/docs/DOC-3581
    Re: PHP mail may be disabled or incorrectly configured on the web server.
    Regards,
    Aish
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6714281#6714281
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • Count(*) in the loop doesn't work and I really don't know why...

    Hello,
    I can't figure out why the following doesn't work. I cannot debug for I do not have privileges on this server.
    The execution always fails on bolded line. If I substitute the variable with the table name itself it works. The variable is properly populated in each of the iterations as I can see it by using dbms_output package. The small but may be important detail may be I am connected as user A but the tables are in the schema B. However I can list the tables and their columns in all_tab_cols view and there are synonyms made in my schema which allow me to access the B tables without prefixing them.
    I get the error:
    Error report:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 26
    00900. 00000 - "invalid SQL statement"
    *Cause:   
    *Action:
    I ran out of ideas and I do not have access to any of the Oracle instance to be able to debug right now.
    Variable type for v_tables is wrong? I do not have some magic privilege to use execute immediate with variable?
    Oracle server has a bad day today?
    The crap is 11.1.0.7 if it has anything to do with my problem.
    Please help if you can.
    Grzegorz
    declare
    v_number number := 646989;
    v_current_table nvarchar2(50);
    v_itemno number;
    type t is table of nvarchar2(50);
    v_tables t;
    begin
    dbms_output.put_line('Working...');
    select table_name bulk collect into v_tables from all_tab_cols where column_name = 'ITEMNO' order by table_name;
    for i in 1 .. v_tables.count loop
    dbms_output.put_line('Number: ' || i);
    v_current_table := v_tables(i);
    <b>execute immediate 'select count(*) from ' || v_current_table || ' where itemno = :a' into v_itemno using v_number;</b>
    if (v_itemno > 0) then
    dbms_output.put_line('Current table contains specific ITEMNO: ' || v_current_table);
    end if;
    end loop;
    end;

    In SQL Plus run this and see what SQL is your code returning. Then execute the SQL individually.
    set serveroutput on
    declare
         v_number number := 646989;
         v_current_table nvarchar2(50);
         v_itemno number;
         type t is table of nvarchar2(50);
         v_tables t;
         lSqlString varchar2(20000);
    begin
         select table_name
           bulk collect into v_tables
           from all_tab_cols
          where column_name = 'ITEMNO'
          order by table_name;
         for i in 1 .. v_tables.count loop
              v_current_table := v_tables(i);
              lSqlString := 'select count(*) from ' || v_current_table || ' where itemno = :a';
              dbms_output.put_line(lSqlString);
              --execute immediate  lSqlString into v_itemno using v_number;
         end loop;
    end;

  • 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

  • The query doesn't work

    Hi kind people!
    I have udf  TEST on the picture. The query on the picture I have connected to the field Test and conected to field description too. But with the field Description the query doesn't work. U_Producer is the name of another field. Why does not it work?

    Hi Gordon!
    From the right I have UDF for choosing the spare parts of auto.  I want to add a spare part, for example to item master data (OITM). I enter every field step by step 1 - 4 by choosing frome use tables linked in every field. I choose fielf 1 (Brand) for example TOYOTA and in the use table of 2(Model) field i see only values that belong to TOYOTA that to say corolla, carina, vista and so on.  But to find any component  exactly i put on the loupe in the field 5 and see a table where all types of auto parts in the world but they are filtered with parametrs in 1-4 fields. I chhose needed component and get in the 5 field any code of a choosed part. Then i d liked to link the table of filed 5 to field Description too and to filter component with code in field 5 in order to get item description from the use table. I used the one method of filtering in all fields Here i see that i can to filter values using use fields but I don't use it in standart field description, although the usual selection of elements of any use table works. As a result a see that the problem that doesn't work the selection and filtration in the field description but it works in in UDF.

  • My ipod touch 3G the bottom doesn't work. How do i fix it?

    Everything on the top works. From the bottom, its slowly moving up. now i'm not able to slide to unlock it.

    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • HT1657 I rented a movie and the sound doesn't work, how do I fix it?, who do I direct to for a complaint?

    Hi, I rented warhorse HD, and the sound doesn't work, my itunes version is 10.6.1(7). How do I fix it or who do I direct to get my money back? Thank you

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time?

    My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time - then I have to repeat this again! Any help appreciated.

    I've been having the same issue, but have just discovered something on my own that hasn't been pointed out in any of the forums I've visited.  In what I thought would be a vain attempt to help myself, I went to System Preferences, Users & Groups, and then clicked on Login Items.  I discovered that one of the Items that was listed to open automatically upon login was iTunes Helper and that there was an exclamation point beside it indicating that it was incompatible.  I simply deleted that item and now I don't have the situation you described and my wireless is connected.  Hope this helps!

  • Does anyone else have two Apple IDs? I can't get rid of one of them. It's associated with my iCloud account and I can't fix it. The password doesn't work.

    So, apparently I have two Apple IDs associated with my iPhone. One is an old aol address that got hacked and was shut down. Even aol doesn't recognize the email address anymore, and the password doesn't work. It's associated with my iCloud account, so now I can't access that account. My other Apple ID is with everything associated with my iPhone and everything works just fine. But now I can't get to my iCloud stuff. Has this ever happened to anyone else. The guy at the Apple store says he's never heard of it.

    Does the alert refer to "Local Items?"

  • I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymor

    I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymore. My computer doesn't want to read it anymore. I want to mention that I also tried on some other computers and still the problems continues. How can I solve this? On the Adobe webpage I can't find anymore the download for Adobe CS4. Thanks. Marius Lupu

    You can download the software from http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html and can serialize it with the serial number you have.
    NOTE:- READ THE INSTRUCTION PROPERLY TO AVOID ANY ERROR.

  • The left part of the screen doesn't work very well

    The left part of the screen doesn't work very well. It's hard to erase a letter, and impossible to me to insert the "P".
    Does it means that I need to replace the screen? Or there is a other solution?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new.
    If you've gone through ALL the troubleshooting steps and you're still having the problem, then you most likely have a hardware issue and will need to bring your phone to Apple for evaluation.

  • How can i make a new map on my mail? The way apple has in the manual doesn't work!

    I want to make a new map for my mails, but the way tha apple gives in the manual doesn't work!

    If you mean other folders then you need to create them in your email client e.g. in a browser (which you can only do in IMAP accounts, not POP account) - you can't create new folders in the Mail app itself

  • I have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    Will u help me or not?

  • Creating a where clause in the LOV query box

    Hi guys is any able to help me with this one
    i have a page in my app where there is a LOV drop down now the values for this drop down comes from a table that looks like this
    users_for _form_TBL
    E_MAIL
    Vendor
    [email protected]
    oracle
    [email protected]
    sap
    [email protected]
    IBM
    [email protected]
    Oracle
    [email protected]
    intergraph
    So my syntax for the LOV i mentioned looks like this
    select VENDOR as display_value, VENDOR as return_value
      from form_user_tab where E_MAIL = :APP_USER
    order by 1 ;
    so if [email protected] logs onto the app and has to make a selection on the LOV it would only display the vendors relative to his E_MAIL like oracle ,sap, IBM then he hits the submit button on the page then the vendor that he selected is inserted into another table .What i did on the insert table was create a trigger that after a vendor is inserted the trigger inserts a 1 into a column called assessed .
    What i did after this was add a select in the where clause of the LOV so that it would check in the insert table if that vendor had been chosen before and not display it again to be selected  my syntax the second time around in the SQL query box was
    select VENDOR as display_value, VENDOR as return_value
      from users_for _form_TBL where E_MAIL = :APP_USER
    and (select 'vendor' , 'ASSESSD' from inserted _tbl_imp is null);
    order by 1 ;
    But im getting an error any ideas guys .Thank you

    Hay man thanks for that info on the Tom Kyte Blog 
    --(the code you gave me )
    select 
        u.vendor display_value 
      , u.vendor return_value
    from 
        users_for_form_tbl u 
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    --(After the error i tried )Then when i got the error i try'd using 'or exists'  like this
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
                          or exists (select null from inserted_tbl_imp i where u.vendor = i.vendor)
    order by 
        u.vendor 
    But the all the vendors that where in the  same in the insert table came up in the drop down list  example is oracle was assessed before then only oracle would appear in the drop down list  and if it was assessed 3 times it would come up 3 times
    --Then i tried to select where 'Assessed' is null   ('Assessed' is a column in the insert table  which i created a trigger on to insert 1 in the 'ASSESSED' column  when a vendor is begin assessed  )  
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select 'ASSESSED' from inserted_tbl_imp i where 'ASSESSED' is null ) 
    order by 
        u.vendor 
    This try didnt return any vendors at all
    --Then i tried distinct
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select distinct 'VENDOR',  from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    This gave me a LOV ERROR
    This is what i have tried so far there where others syntax's i tried last night as well  but most of them came back as errors . Thanks again for you time and help  fac586  

Maybe you are looking for