Dynamic form search in form builder

Hello folks, I am relatively new to form builder, only a few months of experience, and here is the problem that I am having.
I have this table, table1, with columns A,B,C,D..etc, I want to set up the search page in the following fashion:
- One text field for every column of the table
- The user can fill some of these text field, and leave others empty.
- the form should only search for the columns in the text fields that are not empty, for example, if I leave the text field corresponding to A empty, then I can search for any value of A.
- the result of the search is displayed in an LOV.
I have read around and I found it to be something like that in the LOV query:
SELECT *
FROM table1
WHERE
(:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and
(:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and etc for all columns...
Or maybe this:
SELECT *
FROM table1
WHERE (A = :block.A_text_field AND :block.A_text_field IS NOT NULL) OR
(B = :block.B_text_field AND :block.B_text_field IS NOT NULL)OR etc for all columns....
I haven't tested these two sample codes, because the server is closed currently, but would they work knowing my requirement? Would this query search for any value of B if the B_text_field was left empty? eg. user types 55 in A_text_field and leaves B_text_field empty; would it generate an LOV that shows A=55 and B any value?

well to my mind this where clause
(:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and
(:block.B_text_field IS NULL OR table1.B = :block.B_text_field) and [...]returns:
if A_TEXT_FIELD is entered, then the column A column has to be exact the value of A_TEXT_FIELD (:block.A_TEXT_FIELD = table1.A) else if it there isn't any value entered there is no limitation for table1.A (:block.A_TEXT_FIELD is null with OR condition).
When entering A_TEXT_FIELD and B_TEXT_FIELD, both limitations have to be fulfilled (if only B_TEXT_FIELD is entered just the B_TEXT_FIELD condition has to be fulfilled of course).
When you don't enter any conditions in your textfields, you get all records from the table
whereas the second construct won't return anything if you don't enter some data in your text fields.
guess this:
:block.a_text_field is null and :block.b_text_field is null, so this would be:
(A = NULL and NULL IS NOT NULL) --this is false
OR (B = NULL and NULL IS NOT NULL) -- this is also falseyou can simply check this by issuing the following query in SQL*Plus or something:
CRONET@tcp_asterix_impl> select 1 from dual where 1 = null and null is not null;
no rows selected
CRONET@tcp_asterix_impl>So I believe the first condition does the thing you want.
regards

Similar Messages

  • Dynamic Form Building

    Hello,
    I did some tought on how to build a dynamic form builder, and would also like to know what you people think. I did a search with google, but could not find much.
    What i tought so far is that my dynamic form builder should build a form for a class containing only data in it. This would mean that the class has only get/set methods. Now the get method would return either string, int, etc.
    Now Does anyone know how I can know all the methods in a class? I am sure it exsists in Java (coz I found it in C#)
    and also do you believe it is possible? I tought about this because I wanted my application data to have always a standard interface wether the user is viewing the data from his pc, and applet, or anywere else!
    all your toughts, advices & insults are widly appreciated :)

    Yee I like reading other posts (is the best way to learn things sometimes), but also get afraid to make a new post :)
    I did what you (MLRon) and bsampieri told me, and I must say that was easy :) so thanks.
    I would just like an advice. (I am sorry to always compare with C# but I have using it latly and don't know how to explain myself). In C# you can create an attribute Tag on each method. This becomes like the Meta Data of the class from what I read. Now Is there anything like that in Java as well? Not actuall atributes, but meta data, or I would have to build that myself?
    I am asking the above because imagine the getText() method returns a string. A string graphic wise can be displayed either in a JTextField or a JTextArea (according to wether a multi line is wanted). The same goes for a boolean. It can be presented either by a check box, or else by two radio buttons.

  • A Dynamic Form Builder?

    I'm trying to avoid having to program a dynamic form builder
    from scratch for our CMS. I'm sure it's out there somewhere. Any
    leads?
    Thanks!
    Paul

    Yee I like reading other posts (is the best way to learn things sometimes), but also get afraid to make a new post :)
    I did what you (MLRon) and bsampieri told me, and I must say that was easy :) so thanks.
    I would just like an advice. (I am sorry to always compare with C# but I have using it latly and don't know how to explain myself). In C# you can create an attribute Tag on each method. This becomes like the Meta Data of the class from what I read. Now Is there anything like that in Java as well? Not actuall atributes, but meta data, or I would have to build that myself?
    I am asking the above because imagine the getText() method returns a string. A string graphic wise can be displayed either in a JTextField or a JTextArea (according to wether a multi line is wanted). The same goes for a boolean. It can be presented either by a check box, or else by two radio buttons.

  • Dynamic SQL in Form Builder 6.0

    Hai,
    I would like to know how to create Dynamic SQL in Form Builder 6.0. I'am using oracle 9i database...Please help me.....

    I studied the EXEC_SQL and i wrote these syntax(below), but it gives me error...Could you help me please......:
    PROCEDURE Dynamic_sql IS
    connection_id EXEC_SQL.CONNTYPE;
    cursorID EXEC_SQL.CURSTYPE;
    sql_string VARCHAR2(1000);
    v_pc varchar2 (4);
    v_pd varchar2 (30);
    v_poc varchar2(4);
    v_pvd DATE;
    v_pid DATE;
    exec_id PLS_INTEGER;
    out_file TEXT_IO.FILE_TYPE;
    linebuf varchar2(7000);
    vchFileName VARCHAR2(100);
    Vchfolder VARCHAR2(100);
    AppID      PLS_INTEGER;
    nmbAlert          varchar2(50);
    BEGIN
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
    vchFileName := 'dynamic_sql_'||sysdate||'.txt';
    Vchfolder := 'D:\KONS\Damar\';
    host('mkdir '||Vchfolder,NO_SCREEN);
    out_file := text_io.fopen(vchfolder||vchFileName,'w');
    TEXT_IO.PUT_LINE (out_file,'PRODUCT CODE PRODUCT DESC PRODUCT OBJECT CODE PRODUCT VALID DATE PRODUCT INVALID DATE ');
    connection_id := EXEC_SQL.OPEN_CONNECTION('FIFDBA/F1FDBA@REPL_DAILY');
    cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
    sql_string := 'SELECT PROD_CODE, PROD_DESC, PROD_OBJT_CODE, PROD_VALID_DATE, PROD_INVALID_DATE
    FROM HOUS_PRODUCT_TYPE ';
    EXEC_SQL.PARSE(connection_id, cursorID, sql_string, exec_sql.V7);
    --EXEC_SQL.BIND_VARIABLE(connection_id, cursorID, '', input_empno);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 1,v_pc, 4);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 2, v_pd, 30);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 3, v_poc, 4);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 4, v_pvd);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 5, v_pid);
    exec_id := EXEC_SQL.EXECUTE(connection_id, cursorID);
    WHILE (EXEC_SQL.FETCH_ROWS(connection_id, cursorID) > 0 ) LOOP
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 1, v_pc, 4);
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, v_pd);
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 3, v_poc);
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 4, v_pvd);
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 5, v_pid);
    TEXT_IO.PUT_LINE(out_file,v_pc || v_pd ||v_poc||v_pvd||v_pid);
    --Forms_DDL('INSERT INTO TEMP VALUES('||''''||nRows||' '||v_state_id||''''||')');
    --COMMIT_FORM();
    END LOOP;
    EXEC_SQL.CLOSE_CURSOR(connection_id, cursorID);
    EXEC_SQL.CLOSE_CONNECTION(connection_id);
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
    TEXT_IO.FCLOSE(out_FILE);

  • Populating dynamic values in the combobox with XML form Builder.

    I am trying to  populate dynamic value in the combobox with xml form builder. I  see the document saying create property group and document property Id with respecitive values.  I am able to create the property group with system admin -> System config
    -> KM -> CM -> Global services  -> property Metadata -> groups  with new button. and I  am trying to create document property Id with value. I am not able to find the way to give  value in the property.   I am using  EP 7.0 Sp 14.  Please let me know how to sovel it

    Hi
    You can create new property metadata with System Admin > System Config > KM > CM > Global services > Property Metadata > Properties > New. Specify the values for this metadata as the ones you need to have in the combo box. Use allowed values parameter of the matadata to sepcify the values. Each metadata property will have unique property ID and you can map this property ID to your combo box in xml forms.
    Give it a try.
    Regards,
    Yoga

  • Creating dynamic LOV in form builder 6i

    Hi All,
    I am new to form builder.
    I want to create dynamic lov, means
    Project type
    Client
    Work_type(thsi is also lov) ->> 1) Billable
    Reason (this is also lov) ->> 1) Billable
    Work_type(thsi is also lov) ->> 2) Non-Billable
    Reason (this is also lov) ->> 1) Fresher
    2) Project Manager
    As shown above, Suppose the project type is client then I will select either "Billable" or "Non-Billable" value.
    If I am selecting Work_type LOV as "Billable" then it should display "Billable" value in reason LOV
    or if I am selecting Non-Billable value from Work_type LOV then reason LOV will display the list of value as Fresher and Project Manager.
    Please help me, its very urgent.
    Thanks in advance.
    Regards,
    Bluetooth

    Bluetooth,
    This can be accomplished by creating two seperate record groups; one for Billable and one for Non-Billable. Then - in the WORK_TYPE When-Validate-Item (WVI)trigger - when the value is "Billable" you assign the Billable Record Group to your LOV or if the value is Non-Billable, then you assign the Non-Billable record group to your LOV. Your Record Group queries must return the same number of columns and the column names must match. If your record groups need to have a different number of columns and column names, then I would just use two seperate LOV's and assign them to the item accordingly. For example:
    /* Sample WVI trigger */
    DECLARE
      lov_id    LOV;
      item_id   ITEM;
    BEGIN
      lov_id := Find_LOV('YOUR_LOV_NAME');
      /* Option 1: Change Record Group of LOV */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'BILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'BILLABLE_RG');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'NONBILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'NONBILLABLE_RG');
        END IF;
      END IF;
      item_id := Find_Item('YOUR_BLOCK.REASON');
      /* Option 2: Seperate LOV's */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'BILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'BILLABLE_LOV');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'NONBILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'NONBILLABLE_LOV');
        END IF;
      END IF;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Search for coding possible thru Toad, but not thru Forms Builder

    Hi all,
    I am searching for a particular word 'instalment' which is used in forms. when I search using 'Find and Replace PL/SQL' there are no matches. But in Toad, when i search in 'Find in Files', its displaying the code containing the above word in a particular .fmb file. why this is happening?? I am in urgent need of that code.
    Pls help me.. its urgent!!
    Edited by: user13106173 on Dec 6, 2010 3:05 AM

    When I open that file in Quick view from ToadWhich file are you referring too when you say "that file"? I assume you mean the Forms Module (.fmb), but I hate to assume things so could you please confirm this for me? ;-)
    How can we see attached library details?There is no way to view the PL/SQL code of an attached library except by opening the library in the Forms Builder. If your form has an attached library, the Object List Report will indicate there are attached libraries in the "Attached PL/SQL Libraries" section of the report.
    * Attached PL/SQL Libraries                        
       * Name                                            MY_LIB_NAME
       - Comments                                       
       * PL/SQL Library Location                         MY_LIB_NAME
       * Name                                            RP2RRO
       - Comments                                       
       * PL/SQL Library Location                         rp2rro
    But through forms builder, I cant see the below details. Don't quote me on this, but believe TOAD's quick view displays all of the code in the .fmb, even the code of an attached library, whereas Forms Builder will allow you to see the signature of the program units in the attached library, but not the code.
    Also the ct_message display item used here is not created in this particular form. It is in some other form. How this happens?Is the CT_MESSAGE display item a Subclassed item? Meaning, it was included in your form file through an Object Library or by copying the item to the form and choosing to subclass (create a reference to) the item rather than copy of the item in your form. Oracle Forms implements inheritence through the use of subclasses. By subclassing an item (be it a Visual widget [like a button] or a Program Unit) Forms stores a refernce to the object rather than the actual object. This allows you to share and reuse code and objects.
    Check the Object List Report of your form and see if there are any attached libraries. If there are attached libraries, open these libraries in Forms Builder to find your code. It is also also possible to subclass objects in your form file through the use of Object Libraries. Check your Object List Report to see if there is an Object Groups sections:
    * Object Groups                                    
       * Name                                            CALENDAR
       - Subclass Information                           
       - Comments                                       
       * Object Group Children                          
         * Name                                          WHEN-NEW-FORM-INSTANCE
         - Subclass Information                         
         * Real Object Pointed to by the Object Group Child
         * Name                                          WHEN-WINDOW-ACTIVATED
         - Subclass Information                         
         * Real Object Pointed to by the Object Group Child
    .....If the CT_MESSAGE item was added to your form thorugh an object library, it will be listed in this section of the object list report.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem with dynamic query in Forms Builder

    Hi,
    I need in forms builder cursor in procedure which parameter is a whole query. But i stuck when i wanna give some text in signs '' to procedure.
    I wanna give like test('select ' ||'test' || ' from dual');
    But this is not good beacuse it is missing ''.
    Query which procedure get is select test from dual.
    The right sql would be select 'test' from dual.
    How could i pass signs '' to procedure.
    Any ideas.
    Thanks in advance.

    test('select ''' ||'test' || ''' from dual');Francois

  • How to Create a Dynamic Form

    Hi All,
    I am trying to build a dynamic form in Flex. The idea is to
    have a generic form component that contains a standard header and
    footer with a dynamically generated body. The body ( all the form
    items ) will be generated dynamically by an XML File. In theory to
    create any form all I would do is use the generic form and create
    the xml for the body and I'm done.
    I have been searching all over for a sample and have yet to
    find one. Has anyone done something like this? I see several
    similar questions in this forum but they have gone unanswered. I
    would greatly appreciate any help you can offer.
    Thanks
    STeveR

    Using State the following program does work and have
    something similar to your requirements..
    though not being generated according to an xml structure it
    does create form controls dynamically.
    I myself am trying to create several form items from xml
    files and the content of the xml file I am not aware of completely.
    It might have n number of occurances of a group of form
    controls all depending on the out put of the xml file which in
    itself ois generated dynamically from a server side script.
    I have not really been successful in doing what I need. But I
    hope to solve this problem using the approach taken in this
    example. but I believe there must be a better way to do what I am
    trying to do. AM trying to figure this out since yesterday and yeah
    I am making progress and hope to resolve it soon...
    I need to comeplete it today itself..
    will get back with more that comes to my mind.
    If anyone has any thoughts on it Please do post back..
    <?xml version="1.0"?>
    <!-- states\StatesDefInstan.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="initializeApplication();">
    <mx:Script>
    <![CDATA[
    import mx.core.*;
    import mx.states.*;
    private function initializeApplication():void {
    //Code for adding a static button.
    // Create the Button to be added
    var newButton:Button = new Button();
    newButton.label = "New Button";
    // Create an AddChild object that adds the button.
    var addChild:AddChild = new AddChild();
    addChild.relativeTo = myPanel;
    addChild.target = newButton;
    // Create a State object
    var newState:State = new State();
    newState.name = "added";
    newState.overrides = new Array();
    newState.overrides.push(addChild);
    // Initialize the states property of the Application.
    // and add the new state.
    states = new Array ();
    states.push(newState);
    //Code for adding a dynamically created button.
    // Create an add AddChild object that adds the button.
    var addChildDyn:AddChild = new AddChild();
    addChildDyn.relativeTo = myPanel;
    // Explicitly set the AddChild targetFactory property
    // to a factory
    // that runs the createMyButton method to create the button.
    addChildDyn.targetFactory =
    new DeferredInstanceFromFunction(createMyButton);
    // Create State object with the addChildDyn override.
    var newState2:State = new State();
    newState2.name = "dynAdded";
    newState2.overrides = new Array();
    newState2.overrides.push(addChildDyn);
    //Add the state to the Application's states property.
    states.push(newState2);
    // Function to create a new Button control.
    public function createMyButton():Object {
    var newButton:Button = new Button();
    newButton.label = "New Dynamic Button";
    return newButton;
    ]]>
    </mx:Script>
    <mx:Panel id="myPanel"
    title="Static and dynamic states"
    width="300" height="150">
    <!-- If the current state is not the added state, change
    to the
    added state; if the current state is the added state,
    change to the base state. -->
    <mx:Button id="myButton" label="Toggle Static Button"
    click="currentState = currentState == 'added' ? '' :
    'added';"/>
    <!-- If the current state is not the dynAdded state,
    change to the
    dynAdded state; if current state is the dynAdded state,
    change to the base state. -->
    <mx:Button id="myButton2"
    label="Toggle Dynamic Button"
    click="currentState =
    currentState == 'dynAdded' ? '' : 'dynAdded';"/>
    </mx:Panel>
    </mx:Application>
    Thanks,
    Bijay

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

  • Error while opening Adobe Form Builder

    Hi all,
    I am trying to open an existing form in Adobe Form builder (TA SFP).
    When ever I display a standard form say FP_TEST_01 and go to the layout tab, I get an error saying <i><b>Error occurred in communication with layout editor</b></i>. I am using ECC 5.0 system.
    Am I missing any configurations?
    We have all the required configurations set as mentioned in Configuration guide. (Required for ABAP stack).
    Please help me out.
    Thanks in advance.
    Regards,
    Ravikiran.

    Or go to http://service.sap.com/download > Download > SPs and Patches > Search for SPs and Patches > Enter 'Designer'. Install Designer 7.0 <b>and the 7.0 patch</b> (!).
    Kind regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Bug in Oracle Forms Builder 6i?

    When converting from binary to text in Oracle Forms Builder, the conversion is inexplicably dropping a WHEN-VALIDATE-RECORD trigger for one of my data blocks.
    I am running Oracle Forms Builder 6i on Windows XP with the latest patches. I couldn't find anything in the bug search that resembled this problem. Is this a known issue? Is there a workaround?
    Any help would be appreciated. Thanks!

    I just tested this in 10.1.2.2 on XP and could not reproduce the problem. It is unlikely that this is a bug and if it was, it is very likely that it was already corrected.
    Ensure that you are using 6.0.8.26. If you are using Oracle Applications you should be using 6.0.8.27.
    Also, Error Correction Support for stand-alone Forms 6.0.x users ended long ago, which means that a patch cannot be provided for version 6.x.

  • Dynamic forms in AIR/Flex

    OK, this is another of those "Is AIR the right tool for the job" questions. And I have zero previous exposure to Flash/Flex, just doing a fast forward through all available information, to reach an assessment.
    The app in question is mainly a vanilla database client (server component exists and has a ReSToid HTTP interface). It involves task lists, forms, all the ususal stuff and is glueing together a bunch of other (pre-existing) apps on the client  which are to be spawned from the glue app.
    In contrast to the legacy app which is to be replaced, the database structure shall be customizable per customer site and consequently have custom edit forms.
    Now, how to implement custom, dynamic forms in AIR/Flex? It seems logical to store the forms together with custom table in the database, but in which format? It is impossible to just store MXML forms, as Flex is a compiled language and I didn't find a hook to pull in extra MXML from an external source.
    Is there a Flex component turning an XML description of a form into a form on the screen, as mx:FlexNativeMenu can turn XML into a menu?
    Or am I looking into the wrong direction? It seems an AIR/Ajax soulution would be able to just pull the custom form in HTML from an external source and use it. But AIR/Flex is looking to be the friendlier and more productive environment....

    You can dynamically compose a form at runtime via as3.
    Here is a quick example.
    HTH.
    ps: afaik there is no component which automatically builds a form from xml.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()">
    <mx:Script>
    <![CDATA[
         import mx.controls.TextInput;
         import mx.containers.FormItem;
         private function init():void {
              var formItem:FormItem = new FormItem();
              formItem.label = "FormItem1";
              var textInput:TextInput = new  TextInput();
              formItem.addChild(textInput);
              myForm.addChild(formItem);
    ]]>
    </mx:Script>
         <mx:Form id="myForm">
              <mx:FormHeading label="My Form"/>
         </mx:Form>
    </mx:Application>

  • Desname parameter works fine in Report builder but fails in Forms builder

    Hi,
    I need some help with my current task. Here is my problem.
    I am working on Oracle 10g. My reports and Forms builder version is 10.1.2.3.0.
    My objective is to use Forms builder to call a report which will direct the output directly to the printer without preview.
    First , in report builder , I use the Parameter Form builder and set Report parameter DESTYPE = PRINTER and the DESNAME automatically changes to PCL6 ( which is the network printer name I am using).
    When I run the report , the output is directed to the printer and it works just fine.
    But in Forms builder , when I call the same report, set the DESTYPE as Printer and DESNAME as 'PCL6' , it gives an error Invalid printer name 'PCL6' specified by parameter DESNAME.
    I tried searching in this forum, it says the error is due to an invalid printer name specified in the DESNAME. But if my printer name is invalid, I wonder how the same printer name works well in Report builder?
    My coding in Forms as below :
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESNAME,'PCL6');
    Appreciate if anyone can help. Thanks
    Regards
    Shiva

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

  • How to use template.fmb file within form builder

    Hi
    I have created forms without using template.fmb file
    and deploy them on EBS then they working fine
    But when I try to use template.fmb file then it gives an error
    following are the steps :
    1:open template.fmb file with form builder
    2:rename that file with XXXX.fmb
    compile that file and deploy XXXX.fmb file in AU_TOP
    after that
    in putty i m trying to create XXXX.fmx file in same TOP but it gives an error
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.5.0 Production
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package body APP_CUSTOM...
    Compilation error on package body APP_CUSTOM:
    PL/SQL ERROR 302 at line 22, column 19
    component 'DISABLED' must be declared
    PL/SQL ERROR 0 at line 22, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 5
    identifier 'APP_WINDOW.CLOSE_FIRST_WINDOW' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    Compilation errors have occurred.
    Form not createdfollowing is command
    $ frmcmp_batch module=$AU_TOP/forms/US/XXXX.fmb userid=APPS/apps output_file=$AU_TOP/forms/US/XXXX.fmx module_type=form batch=NO compile_all=special

    for you question - EBS General Discussion General EBS Discussion
    Compiling Forms In R12
    and search on forum

Maybe you are looking for