User input for group updates

I'm new to Oracle development.
I've done some work with pl/sql, sql*Plus,
and ORacle forms.
I'd like to allow the user to do a query
in forms, then give them the option of
modifying all rows returned by the query
with a column value they can specify.
I know how to do a forms query, know how
to prompt for variables they can input,
but how do I then take that information and
update the rows? Don't know what "handle" to
use to refer to the rows returned.
My other thought, would be to write the whole
thing in pl/sql. But pl/sql won't allow me to
use the prompt/accept commands. (Why?)
I wanted to create a nice loop that would allow
the user to make repetitive changes on groups
of data. I know I need to use a cursor. But
don't know how to get the prompt/accept part.
Thanks for any help --
- Maeve
null

You are simply assuming that the user will enter something that can be interpreted as a double. If you're going to do different things based on some characteristics of the user's input, then you are going to have to check those characteristics yourself (via code that you write). In particular if you want to distinguish between int and double, you're going to have to write code to decide which of those two categories the user's input falls into.

Similar Messages

  • How to force sql developer to prompt for user input for every execution ?

    Hi Folks,
    Environment: Oracle 11g (on Windows 7)
    SQL Developer: *3.1.07*
    I am executing a PL/SQL code off Sql Developer. The code uses substitution variables to prompt user for input. However,I am only prompted for the user input for the very first run of the code. For the subsequent executions, the code simply picks up the user input from the very first run. This behavior persists for all subsequent runs of the code.
    I have executed the same piece of code from SQL*PLUS and the behavior seems normal (i.e. I am prompted for fresh input for every execution)
    How can flush out the old user input so I can be prompted for new user input for every run of the code in sql developer?
    Thanks in advance
    rogers42

    Hi Rogers42,
    1/try
    undefine
    undefine fred
    select '&&fred' from dual;
    [run this multiple times]
    [prompts gere]
    old:select '&&fred' from dual
    new:select 'a' from dual
    'A'
    a
    [prompts here]
    old:select '&&fred' from dual
    new:select 'b' from dual
    'B'
    b
    2/try
    exit (requires recent version of sql developer: tools->preferences->Database->worksheet->Re-initialize on script exit command)
    select '&&fred' from dual;
    exit
    run this multiple times
    [prompts here]
    old:select '&&fred' from dual
    new:select 'x' from dual
    'X'
    x
    Commit
    [prompts here]
    old:select '&&fred' from dual
    new:select 'y' from dual
    'Y'
    y
    Commit
    3/use &fred instead of &&fred
    For background see
    http://totierne.blogspot.co.uk/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team

  • Require User Input for either dashboard prompts not BOTH ! !

    Fellow Earthlings,
    How to make required for user input for either of dashboard prompts not BOTH. !!!!!!
    Like if they enter '123' on DashP1 they need not have to enter DashP2 value and vice versa on same dashboard prompt.
    I have some dashboard prompts and I am using presentation variables to pass these values to my analysis.
    DashP1 - Pvar1 - Default All columns - User can type in values
    DashP2 - Pvar2 - Default All columns - User can type in values
    In my report , I am using a SQL filter to do a table.column_name LIKE (concat('@Pvar1}{'%')) same for the other table.column_name LIKE (concat('@Pvar2}{'%')) [ This is because users want to do a partial match on the value.
    So when the user is typing the values like 123 on DashP1 they are able to search, which is good. However on DashP2 which defaulted to all column values, they just erase/delete that and pass no value to it. So it remains the prompt vlaue is looking like -Select Value state which is not good. :(
    Now when there report is run for that DashP1 -value as '123' obviously we get no results since erasing that is causing it not to pass any value and when i check the query log it passes '@Pvar2'. This is causing no results.
    So I thought making it Required user input would resolve the issue, however the new request is to have either DashP1 or DashP2 require user input.
    Please advice if there a way to solve this problem.
    If this any way possible with Action links or any other methods.
    Any help is greatly appreciated.
    Thanks,
    VidyaS

    Hi Vidya, Please post that Script it will be quite handy for other OTN users.
    Thanks
    NK

  • User mapping for groups doesn't work

    Hi,
    I have a problem with the user mapping for groups. When I select "User Mapping for System Access" I get the error message "There are no systems available for user mapping for the selected principal." There are some hints, what the reason could be, but I think I checked them all. For the single users in the group, the User mapping works without problems. Does anybody know what the reason for this problem could be? We are running SAP EP 7.0.
    Kind regards,
    Dominik

    Hi,
    It seems that the system you are pointing to is a delta link linking to "nowhere" and the source system has been deleted.
    The main reason for the problem is that the delta link system refers to a system that (no longer) exists.
    Try recreating the delta link's base system with the same location in the PCD and correct attributes.
    Hope this helps.
    Regards
    Srinivasan T

  • How to capture user input for customer exit processing?

    I need to calculate the number of working days elapsed in the current fiscal quarter BASED on the USER INPUT on the reporting front.  i.e., say the fiscal quarter started on 1 July 2005 and if the user enters 10 July 2005, I should get the value 8 (Assume that Monday through Friday are all workdays).  If the user enters 12 July 2005, I should get 10.  I have written customer exits and know how to use factory calendar, but <b>THE CHALLENGE</b> is how do I <b>CAPTURE</b> the user input and use it in my exit?  During the varible definition, if I select the check box "Ready for input" then the customer exit is not being processed and unless I check that box I can't get a user entry!  If I look at the import values in the customer exit, I see i_t_var_range with type rrs0_t_var_range.  My strong feeling is that this parameter gets the user input, but I am unable to use it as the customer exit is not being called if I make the user to input the data.  Based on the empirical evidence, I felt that user input and customer exit can not co-exist!!  Please somebody prove me wrong and let me know how can I use the user input to process my "customer-exit" variable.  I would really appreciate any input from the BW community here.

    Hi Sameer,
    Most likely, I'm missing something, but I think that the answer is very simple.
    CASE I_VNAM.
    WHEN 'YOUR_CUSTOMER_EXIT_VAR'.
    IF I_STEP = 2. “ After selecting of input variable
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'USER_INPUT_VAR'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    In this typical user exit coding you have a user entered value in LOC_VAR_RANGE (originally in I_T_VAR_RANGE) and you construct your user exit variable value in E_T_RANGE.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • How to validate a user input for where clause?

    I have a situation to validate a where clause which is input by the user.
    Because the query will be run against huge tables and we need to notify the user if they input the clause is not valid.
    I use the below query to try:
    Select 'A' from blablabla where user_input_where_clause and 1=0;
    however, it can not capture the error when the user input:
    'name=123' while the right condition should be name='123'.
    Can you pls advise ?

    In this particular case, Oracle will not even try to run the SQL statement because of the syntax error. IF the WHERE condition supplied does not make sense, Oracle will not execute the statement, so it does not matter if the query accesses huge tables.
    SQL> Select 'A' from blablabla where 'name=123' and 1=0 ;
    Select 'A' from blablabla where 'name=123' and 1=0
    ERROR at line 1:
    ORA-00920: invalid relational operator
    SQL>IF you have a restriction as to what type/value can user specify for the where condition (asuming it would make sense to SQL engine), you would have to do it before submitting to the database.
    Note, however, that user could specify any condition they like, having potentially damaging effects.

  • User Exit for Delivery Updating

    Hi,
    I am creating one user exit for delivery ,
    My condition:
    If XLIKP-UPDKZ (Update indicator) = Update (U).
    Read table Deferred COGS Activity (Z1009) with key
    Delivery Number  eq LIKP-VBELN.
    If sy-subrc <> 0
    Exit.
    Else.
    If V50AGL-WARENAUSGANG=X (PGI is active)
    Update table Z1009 with
    WADAT_IST = XLIKP-WADAT_IST
    PGI_ERNAM = SY-UNAME
    PGI_ERDAT = SY-DATUM.
    where Delivery Number (DL_NO) eq LIKP-VBELN.
    If delivery updated successfully then no problem ,
    if not updated then I need to through error message to log.
    I need Function Module for this.
    Can u help me.

    These ar all the User Exits used in VL01N.
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    You can also look at BADI: LE_SHP_DELIVERY_PROC. It has several implementations which could be useful to you.

  • Any design input for an updatable listing?

    My client wants to be able to add job position titles and descriptions to a page. He wants the user to be able to see the job position titles at the top, all together and then choose which one of them he wants to see the full description.
    I wanted to do something other than list the items, then have anchors to the job description...just so it would be a little nicer
    I thought I might use an accordian box so one could just click on the description they wanted to see. But I'm worried that this might limit my client's being able to update listings himself. Also, adding listings might be an issue.
    Has anyone done something like this and made it updatable with Cushy cms?
    Anyone have a better design solution?
    TIA
    Gretchen

    If I understand your question, you want to be able to provide a method for your client to add job listings on their site as they come up?
    I have done something like this is the past where I created a simple form, they input the information such as title, descrip, requirments and it goes into a database.
    Then on the job opportunites page, you call the information from the DB.
    You would want to have a method for them to not show the information once the job is filled, such as a column that is a yes/no column that if the answer is yes, the row is displayed, if no, it does not.
    I am unfamilar with cushy, so I cant really help you with that.
    Gary

  • I am getting another's user ID for app updates.

    I recently purchased an iMac 27. I have never installed Twitter on this device. And yet an update flag for Twitter has appeared in the App Store. When I click on install the update, I get the panel that asks for the user ID and password. But the user ID has already been filled in and it is an individual I have never heard of.
    So I have a new device giving me an update notice on an app I have never installed and the authentication panel already had the user ID of a person I have never heard of filled in.
    I have run searches on my iMac for "twitter" and the other person's user ID. Nothin shows up. This is annoying because my App Store icon sits there telling me to do an update.
    Any ideas what is causing this?

    Dah-veed, you got that one right. Thanks for the tip on Find Any File. That solved the problem. Yes, I downloaded a trial and sure enough, when I deleted it, the update notice went away.
    Thanks for the quick response on my problem!!
    Randy

  • Saving user input for later use ! How ?

    Hi ! I wrote a simple program called GPA Calculator. In the program, the user chooses the lessons he takes and he enters his grades on those lessons and the computer calculates his GPA. It was a simple task to do thanks to swing class.
    But the problem is , since the user always choose the same lessons, I want to add a user control interface by which , a user can save his information by pushing a button which will be called "save"and when he runs the program again and after logginning by his username , his lessons are shown automatically by the program.
    I know a bit C++. And the only solution that popped into my mind is saving the data in a text file.And after he logins again , checking if there is such a user in the saved text file. In C++ there was a file processing method called random access files and i am planning to use it exists in java (i am gonna look for it).
    Since i am new to java and programming, I want to ask you naively if you advise me any other methods.
    Thanks for your help iin advance.
    (I hope now it is the right place to put this message :)

    i am trying to use a database system (and learning it)
    i downloaded derby. but everytime i am trying to run the program , i encounter this error. i am trying to use derby in embedded mode .
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at SimpleApp.go(SimpleApp.java:64)
         at SimpleApp.main(SimpleApp.java:48)
    i tried to solve the problem but i couldnt.can you pleease tell me what to do step by step ?
    thanks for your help ....

  • LDAP for users / RPD for Groups.  How?

    I realize this has been asked before but I've not found a good explaination.
    We've set up OBI to authenticate against our LDAP.
    But I need to assign users to groups created in the repository.
    Just adding groups in the rpd and importing ldap users and assigning them to groups does not work as their passwords are blank.
    This is not surprising as the Developer's Guid on page 124 says:
    "When a User exists in both the repository and in an external source (such as LDAP servers), the
    local repository User definition takes precedence. This restriction allows the Oracle Business
    Intelligence Server Administrator to override users that exist in an external security system."
    So how to do this?
    On the same page it says:
    Groups are defined in the repository. However, if lists of users are stored on LDAP servers, the
    group membership information must be obtained from a database table.
    Problem is I just don;t have enough experience yet to understand how to set that up. Anyone have suggestion or can point to detailed info on the topic?
    Thanks, E

    Do as microsai says. In addition to the LDAP authentication you need to populate the GROUP variable (also shown in microsai's link). This is where the relationship between users and groups is loaded. This normally requires the USERS=>GROUPS relationship to be in an external table although there are other ways to do it from LDAP such as in [this example|http://oraclebizint.wordpress.com/2007/10/12/oracle-bi-ee-101332-and-oid-user-and-group-phase-2/].

  • User Exit for COR6 Update required..

    Dear Experts,
    I am supposed to add a logic along with a pop up window in COR6 when the user clicks on "Partial Confirmation" Button in COR6.  My problem is that field name for the "Partial Confirmation" Button in COR6 is CORUF-TEILR. And the value is 'X' when debugging.
    But as soon as my cursor enters the User Exit this value of CORUF-TEILR becomes 0, and hence I am unable  put the only for "Partial Confirmation" and now the POPUp is coming for all the radio buttons.
    I hav tried all methods but unable to get the value of the CORUF-TEILR into my User Exit, plz help how can i get the CORUF-TEILR into my User Exit program...
    Thanks in advance

    The following program is allowing you to find all the user-exit from a transaction.
    I found it somewhere on the net some times ago.
    REPORT  zfind_userexit.
    TABLES : tstc, "SAP Transaction Codes
             tadir, "Directory of Repository Objects
             modsapt, "SAP Enhancements - Short Texts
             modact, "Modifications
             trdir, "System table TRDIR
             tfdir, "Function Module
             enlfdir, "Additional Attributes for Function Modules
             tstct. "Transaction Code Texts
    **& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE,
           field1(30),
           v_devclass LIKE tadir-devclass.
    **& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    **& Start of main program
    START-OF-SELECTION.
    * Validate Transaction Code
      SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
    * Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                                     AND object = 'PROG'
                                     AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                                         AND object = 'FUGR'
                                         AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    * find sap modifactions
        SELECT * FROM tadir INTO TABLE jtab WHERE pgmid = 'R3TR'
                                              AND object = 'SMOD'
                                              AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu
                                     AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
               20(20) p_tcode,
               45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
                 2 'Exit Name',
                 21 sy-vline ,
                 22 'Description',
                 95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt WHERE sprsl = sy-langu
                                           AND name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
                   2 jtab-obj_name HOTSPOT ON,
                   21 sy-vline ,
                   22 modsapt-modtext,
                   95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    * take the user to smod for the exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • No user input for the field on which i need to write customer exit code.

    Hello everyone,
    Scenario:
    There are differrent lease type and there Start date and expiry date.
    each lease has to return somoe returns on some basis.
    selection screen has four options but none of them is date.
    My understanding:
    I need to get only those leases in my report whose expiry date is greater than system date/current calendar day.
    I am not selecting any date field in selection screen, so i need to get value of expiry date from cube, and than compare it to current date.
    So i need to write a customer exit in which i need to read date and restrict data on this expiry date.
    Requirment:
    Need a code for SAP exit variable which will meet the following requirment
    There are the following 4 variables in the query.
    1) material
    2) product hierarchy
    3) City
    4) lease type
    I need a customer Exit variable (CMOD) that will
    filter the records on the basis of condition-"lease expiry date is greater than current system" and display all the records whose expiry date is greate than Sy Date (Current Date) and also if expiry date is blank.
    kindly give me information on how i can write this code asap; and let me know if need more information.
    Thanks

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Create a timer to make a variable for pause length from user input

    I have an external task that varies in time based on the machine I am using, yet once that value is determined, it will remain the same while on that machine. I need to have an Applescript perform a task based on that time variable. This a repeating loop script that will need user input for the first iteration of the loop. How can I get this time variable to use in the script? I would like it to be something like this.
    --script clicks OK button in the app (this is already scripted)
    --timer started
    --script throws up a dialog instructing user to click OK when hardware specific task is completed (has a cancel option to cancel script as well)
    --when dialog box OK is clicked a time value is determined between the timer started and the dialog OK click
    --time value is now a variable to call for pause between loop cycles, requiring no more user input (except an overall script cancel if needed)
    is this possible?
    PowerBook G4 Titanium 500 Mhz   Mac OS X (10.4.2)  

    Yeah, it's possible. There are probably a couple ways to do it. Here's a quick one that uses a unique hardware ID. Properties persist between runs, reboots, etc. but not compiles.
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">property delay_time : missing value
    property last_mac : missing value
    set test_mac to primary Ethernet address of (system info)
    if test_mac is last_mac and delay_time is not missing value then
    -- performclickhandler()
    delay delay_time
    else
    set start_time to (current date)
    -- performclickhandler()
    display dialog "Click OK to set the timer..."
    set delay_time to (current date) - start_time
    set last_mac to test_mac
    end if
    -- rest of your script
    </pre>

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

Maybe you are looking for