JSP HTML parameter form to call report - Dependent  drop down list

I have a report parameter form developed using HTML & JSP to call oracle reports6i.
First parameter "STATES", Second Parameter "CITY"
I have a master-detail relation betwen STATE & CITY table.
I want the parameter form drop down lists dependant. ie if the user chang STATE value in the first drop down, the second drop down list CITY shoud
change automatically.
Please help
Thanks
Vimal

Vimal,
This is not functionality that's available in the Reports generated parameter form. In order to do this you'll need to build the parameter form yourself as a true HTML form and code the javascript to link the fields.
Hope this helps,
Danny

Similar Messages

  • Can you make dependant drop down lists?

    can you make dependant drop down lists?

    Yes, you can create main menu and sub menu items , with default menu the sub pages will auto create sub menu items (you should select all pages from menu type option).
    These videos will help you :
    https://www.youtube.com/watch?v=hncVlzYuuvQ
    https://www.youtube.com/watch?v=kziCEqQpF9s
    Thanks,
    Sanjit

  • HCM Processes & Forms: Field not updating after Drop Down list selection

    Hello all,
    I am having a problem that I think happens a lot, but I can't solve it through all the examples given here.
    I have a Drop Down List where I change the value. On the CHANGE event, I have:
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "GET_ORGINFO";
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    I have defined a User Event called GET_ORGINFO. It gets triggered fine. It moves into my generic service that I defined, and it changes the value that I want to change.
    When I look at the PDF, the value is still in it's old value. So, after reading some blogs, which specifically says, if something goes wrong in one service (I have 3: my own, SAP_PA and S_MGRS_POSITIONS), they all fail. I debugged and checked, and, after some changes, nothing goes wrong anymore, nothing that I can see anyway.
    So what I do see, is that there's a call made like this:
      CALL METHOD me->process_data_container
        EXPORTING
          ref_to_data_container = ref_to_relevant_data_container
          operation             = c_do_operations
          message_handler       = dummy_message_handler
          no_auth_check         = no_auth_check
        IMPORTING
          is_ok                 = operation_ok.
    Within this method, my new value is listed (in the table VALUES_OF_FIELDS). After this call is made, so when it exists the method process_data_container, the old values are back in VALUES_OF_FIELDS.
    So, at the last moment INSIDE the method, the values are correct, as soon as it steps out of this method, the old values are back.
    Does anyone have any idea? Am I doing something wrong with regards to the User Events? I am on EnhP 04.
    Gr,
    Jaron Frenk

    Hey Chris,
    Unfortunately, that's not it. I did check the fields I need. Everything is going ok. As in, I get the fields (with their current values) in my own generic operation. I see everything updated the way it should. But then at the end, nothing happens...
    What exactly do you mean by " then make sure your own generic service has it's input/output defined correctly". What input/output do you mean? I assume the generic service itself is okay, since it works with the user event "USER_EVENT_CHECK". And it sure is possible I am forgetting something in the definition of the user event, but I can't figure out what.
    A small addition*
    I just checked by user event. I have 3 fields selected:
    I0001_PERSG
    I0001_PERSG_TXT
    I0001_PERSK
    The generic service should get the PERSG and PERSG_TXT based on the PERSK that is entered. I don't think I need anything more.
    Gr,
    Jaron
    Edited by: J. Frenk on Apr 26, 2010 9:01 AM

  • Dependent drop down list

    I hope I can explain this properly...
    Lets say I have a drop down list in box "A"...I want a drop down list in box "B" to display options dependent on what is selected from Box "A".
    e.g.
    If box "A" is selected as "month"...I want box "B" to have pulldown options of "JAN, FEB, MAR" etc
    if box "A" is selected as "year"...I want box "B" to give options as "2012, 2011, 2010" etc
    I am using Livecycle Designer 8.0 if that matters...
    Can someone provide guidance?
    thanks so much in advance!
    John

    Hi John,
    Just noticed Debadas posted a solution while a was checking mine works. Mine is basically the same (in the same event) but just wanted to point out that if you are targeting Reader 9 or later then you can use the setItems method which makes things a little easier, as you can load all the items in one hit (though maybe with an older version of Designer that wont work, but thought I might as well add my bit).
    switch (DropDownA.rawValue)
        case "Month":
    //      this.setItems("January,February,March,April,May,June,July,August,September,October,Novemb er,December");
            this.clearItems();
            for (var i = 0, currentDate = new Date(2012,0,1); i < 12; i++, currentDate.setMonth(currentDate.getMonth() + 1))
                this.addItem(util.printd("MMMM", currentDate, true))
            break;
        case "Year":
            this.setItems("2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001");
            break;
    Bruce

  • No Parameter form when calling report from Forms 6i webpage

    I have my Forms 6i fmx files and Reports rep files runnung off of HP Unix
    within the same directory and yet when I call the report with RUN_PRODUCT,
    I don't get the Parameter Form popup. I left it as default at first, and then I even tried using ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'HTML') to my parameter pl_id in my RUN_PRODUCT call. Can anyone tell me why I don't get a Parameter form?

    Actually if you are on the Web then you don't have much control over the format the parameter form is in, so specifying it as HTML doesn't help.
    Try paramform=yes when calling teh Report and this "temporarily" should help. The problem that you run into the is that there is nothing happening when you click the parameter form submit button. The reason is that when using Run_Product you are talking to a static HTML file generated into teh Reports temp directory with no services assigned to it.
    Check the Whitepaper under http://otn.oracle.com/products/reports/pdf/277282.pdf for the options that you have.
    Frank

  • Suppressing parameter form when calling report

    I use an action button on a Forms module to call a Reports module. This Report has one argument, and the value is provided by the module. When I run the Form and press the button, the parameter form of Reports appears. How can I suppress the parameter Form since the value is provided by the Form?
    Set the display property of the parameter to 'No' doesn't work.
    I use Designer 6i R4.11

    I don't know how to set this in Designer, but to your action button you have to add this:
    Add_Parameter(plid,'PARAMFORM', TEXT_PARAMETER, 'NO');
    plid - parameter list

  • Suppressing parameter form when calling report  (Designer 6i R4.11)

    I use an action item on a Forms module to call a Reports module. This Report has one argument, and its value is provided by the Forms module. When I run the Form and press the button (= action item), the Reports parameter Form appears. How can I suppress the parameter Form since the value is provided by the Form?
    Setting the display property of the argument to 'No' doesn't work.

    Hi Harm,
    There is one parameter called 'PARAMFORM', this is text parameter saying report
    whether it has to show the Parameter form or not.
    If we set this to 'NO' when calling report,i t won't show the Parameter Form.
    Another way is...
    Open the report and delete all the items from the Parameter form layout.
    Pass all the parameters from the form. Now it wont show the parameter form.
    Think it will help you.
    Thanks.
    Siva.

  • Supressing the parameter form when calling report from form...

    Hi everybody
    I call a report from a form passing a parameter. After pressing
    the button, the runtime parameter from appears. How do I
    suppress it so that the report appears right after pressing the
    button???
    Thanks
    Serguei

    Hi Serguei ,
    You have to add a text parameter 'PARAMFORM' with the value
    'NO' to the passing parameter list.

  • Parameter form for web report

    Hello,
    Using rwservlet on the web I can specify paramform=yes and I'll get a parameter form for my reports, which is really handy as it saves me from having to build my own forms. However when I run JSPs directly I cannot seem to get the automated form. Am I missing something obvious or is the parameter form just not available when you run JSPs directly?
    Cheerio,
    Robert

    Hi Robert,
    The description of the command line keyword PARAMFORM in Publishing Reports manual says:
    Use PARAMFORM to specify whether to display the Runtime Parameter Form when you execute a report via CGI or a servlet. PARAMFORM is used only to supply parameters to paper layout reports, not Web source reports.
    For JSP reports you need to create an HTML parameter form which calls the JSP and submits the parameters selected.
    You can find Reports documentation (incl Publishing Reports here):
    http://www.oracle.com/technology/documentation/reports.html
    Navneet.

  • Populateing a drop down list in a repeating sub form

    I have been using the scripts from the Purchase Order sample that work with the Country and States/Provinces drop down lists and have modified them to fit my needs. The scripts work great. However I have a drop down list that is in a repeating sub form and the only the drop down list in the first occurance of the sub form works. The others don't.
    I put this line of code in a field called drpOrderedByTeam.
    JobsScript.getJobsOther(xfa, xfa.resolveNode("form1.TimeSheetSF.DetailsSF[*].DetailsTable.DetailsRow.ItemNumber"));
    I thought I just needed to add an "[*]" to the name of the sub form and it would work with all occurances but it doesn't seem so and I'm not sure what else to do.

    Based on your explanations, I've attempted to re-create your form and I think I've got it working the way you'd like it to.
    There are some difficulties with using fields in table headers which are replicated on subsequent pages because while new instances of the header subform and the fields it contains are created, you don't have access to these instances using the header's Instance Manager (I think this is a bug but I'm not sure). This means that you can't iterate through the instances of the header in order to populate the task lists depending on the selection in the team list. One solution for this is to make all header fields Global (select each field and, in the Object palette's Binding tab, set the
    Default Binding property to
    Global). This means that all instances of these fields will share the same value. The effect is that when you change the value of a field on an instance of a header on any page, the change will be replicated on all instances on all pages. The catch, though, is when you use lists in the header. Making list fields global doesn't mean that their item lists are global -- which causes other headaches.
    In the end, because of the problems I've described, I had to resort to cheating a little but if you think about it, it's not really cheating. What the form does is whenever the team list value changes, it removes all instances of the DetailsSF rows. This has the effect of also removing all instances of the DetailTitlesSF headers accross the current page set (and removes all pages but the first one). Then 6 new instances of the DetailsSF row are generated and the DetailTitlesSF header is re-populated using the new selection in the team list. After that, if a new page gets generated because of the number of instances of the DetailsSF rows, the new instances of the task lists in the new instances of the DetailTitlesSF header will have the correct list of items based on the current value of the team list. In the end, even though I'm cheating by removing all instances of the DetailsSF row in order to reset the lists in the DetailTitlesSF header, it's not really cheating because if you change teams, then it should be assumed that all data entered doesn't apply anymore because the tasks change as well... Convinced?
    The best way to understand this is to check-out the sample form.
    Let me know if you have any questions.
    Stefan
    Adobe Systems

  • [Forum FAQ]How do I add a search feature in the parameter with long drop down list?

    Introduction
    There is a scenario that thousands of values in the drop-down of a parameter. Scrolling through the large drop down list is slow and cumbersome. Is there a way that we add a search feature in the report, so that it can filter down the values in the drop
    down list to a smaller list of values?
    Solution
    To achieve this requirement, we can add a parameter with multiple keywords ahead, then all of available values which are begin with the keyword will display in the parameter list. In this scenario, we can create cascading parameters. One is a keyword parameter,
    and the other parameter is based on the keyword to display the available values.
    In order to enable the user to type multiple keywords, we can use the query below to create a split function which takes the list and the de-limiter as input parameters and splits all the values in the database:
    CREATE FUNCTION [dbo].[SplitParameterValues] (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
     RETURNS @ValuesList TABLE
     param NVARCHAR(255)
     AS
     BEGIN
     DECLARE @ListValue NVARCHAR(max)
     SET @InputString = @InputString + @SplitChar
     WHILE @InputString!= @SplitChar
     BEGIN
     SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
     IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
     BEGIN
     SET @InputString=@SplitChar
     END
     ELSE
     BEGIN
     SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
     END
    INSERT INTO @ValuesList VALUES( @ListValue)
     END
     RETURN
     END
    Use the query below create a stored procedure to return all available values for Account parameter:
    create PROCEDURE sp (@keyword nvarchar(50))
    AS
    SELECT     AccountDescription
    FROM         DimAccount d
    inner join (SELECT [param] FROM SplitParameterValues (@keyword,',')) s on d.AccountDescription like (s.[param]+'%')
    In Report Designer, select Stored Procedure as the Query type for DataSet1, then select or type sp in the drop-down list as below:
    By default, there is a parameter named keyword in the Parameters pane.
    Add a multi-value parameter named Account in the report, then select “Get values from a query” option for Available Values as below:
    Report Design and Report Preview surface
    Report Design:
    Report Preview:
    References:
    Create User-defined Functions (Database Engine)
    Adding Cascading Parameters (SSRS)
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hmmm. This didn't work. I even re-booted, and Firefox still doesn't show the search engine.
    It was actually an update to an earlier engine, and I foolishly removed the old version rather than just updating it.
    Is there anything elsewhere (eg. the registry) that might be preventing this?

  • Create a drop down list that populates based on the selection form another drop down list.

    I need to set up a drop down list that is popualated (i.e. displays a certain list of selctions in the drop down list) based on the choise the form user selects in an adjacent List
    For example
    There are two drop down list field sitting side by side in the form
    1. Select State          2. Select Course
    What I want to do is have a list of states in the first drop down list (1.Select State) and depending on which state the form user selects , the second drop down list (2.Select Course) will populate with a selction of courses available in that selected state only (i.e. it will on;y show course available in QLD if QLD is selcted).
    Is this hard to do?

    Hi,
    I would recommend some posts from Stefan Cameron's blog:
    http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
    http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/
    Hope that helps,
    Niall

  • Drop-down list in Interactive forms

    Hi All,
    I am creating an interactive form in webdynpro abap. I would like to include a drop-down list in the interactive form. Data in the drop-down list should come from a database table.
    Can anyone give a sample program to do it? It would be of great use.
    Thanks & Regards,
    Vinod

    hi Vinod,
    You may get many threads with  similar query as yours if you use the search functionality.
    But you may refer these two threads which are close to your query.
      Drop Down List population - Abap dynpro adobe form - type ZCI
      Re: Dynamic Drop Down in Interactive Form not populating values
    Regards,
    Runal

  • Open a new form based on the selection from the drop down list

    Good Morning Everyone,
    Can any one please advise how I can start to build the form that has a drop down list(DDL) to list other forms so the user can select one from the selection of that DDL to open a new form.
    e.g  A form in workspace ES3 with drop down list to list 3 forms: form1, form2, form3. When user select form1 from the DDL, then it will kick off the render servic to launch form1 in workspace ES3.
    Thanks in advance,
    HD

    Hi,
    I'm not surea about the data structure...Are there two ClassNodes, one for "VALVES" and one for "BOLTS"??
    and for scripting it is no good idea if the names of the attributes are value, don't know if this is your naming...
    but to access a node of the DATA view -->
    //var selection --> you have assigned "VALVES"
      var onodeCN =  xfa.resolveNodes("xfa.record.Classification.ClassNode[*].value");
    // get the node with the valves -->
                   for (var i = 0; i < onodeCN.length ; i++) {
                        if ( onodeCN.item(i).value == selection ) {
                                         //get the Leaves of Node VALVES
                                         var onodeVALS = xfa.resolveNodes("xfa.record.Classification.ClassNode[+i+].ClassLeaf[*].value");
                                         for (var j = 0; j < onodeVALS.length ; j++) {
                                           // insert values of Leave to 2nd drop down
                                XXX.addItem(onodeVALS.item(j).value, onodeVALS.item(j).value);
    ??works??
    norbert

  • Calling a JSP Report From HTML parameter form

    Hi,
    I m trying to run a JSP Report from a HTML parameter Form. The JSP reports requires a parameter named userid in the URL with a valid value for database connection.
    eg. URL "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?userid=sysapps/system@trt1". We have created a variable on the server named "parmformjsp" with a value "sysapps/system@trt1". Now i use this variable in the URL as follows, eg. "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?parmformjsp".
    When i use this URL to call another JSP report from a JSP report it works fine, but the same does not work when calling a JSP report from a HTML form.
    the code for HTML parameter form calling a report is as follows,
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Parameter Form</title>
    </head>
    <body>
    <p>Parameter Form</p>
    <form name="form1" method="GET"
    action="http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_custrns.jsp?parmformjsp">
    <p>From Date<input type="text" name="p_fmdate" size="20"></p>
    <p>To Date<input type="text" name="p_todate" size="20"></p>
    <p> </p>
    <p><input type="submit" ><input type="reset" value="Reset" name="B2"></p>
    </form>
    <p> </p>
    </body>
    </html>
    If i create an input parameter named "userid" with a valid database connection value, remove the ?parmformjsp part from the action URL then it works fine. How can i call the JSP report using the parmformjsp variable name instead of using the "userid" clause in the URL.Can anyone suggest any workaround....
    Thanks & Best Regards,
    Unmesh

    do it like this...
    DECLARE
    pl_id ParamList := Get_Parameter_List('tmpdata');
    BEGIN
    IF NOT Id_Null(pl_id) THEN
      Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'ROUTE_CARD_CONTROL', TEXT_PARAMETER, :ROUTE_CARD.ROUTE_CARD_CONTROL);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Run_Product(REPORTS, 'D:\STL_FINAL\CHPREPORTS_FINAL\ROUTE_CARD.REP', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END; what exactly happens when you call the report. if its showing the blank page... may be you are not passing the right parameter name. cross-check that your parameter name in the report is 'ROUTE_CARD_CONTROL'.

Maybe you are looking for

  • Can't access a Windows PC from my Mac

    Hi , I'm having real problems connecting to my PC from my Mac. I'm using a wireless router, both the pc and my macbook are connected wirelessly to the the router. From the PC I can ping the pc, the router, external web addresses, and the mac. From th

  • Has anyone tried to pair the iphone with a 2006 Lexus GX470?

    before opening the package I would like to know if anyone has been able to use the bluetooth capabilities of the iphone with a 2006 Lexus. Was you able to pair the phone to the car's bluetooth technology?

  • RG23A/C Balances Debit Issue !!

    Hi Our client made a sale of Rs 60Lakh in December on which they did not charge excise duty from customer. Some provision in excise act. As a result they have to debit 10% of this sale amount . i.e. Rs 6 Lakh from cenvat credit. Any idea how this to

  • Idoc segment field filtering

    Dear all, Where to select the fileds which are to be sent via Idoc. I mean I want to send only few fields from the segment thru Idoc. In which tcode we can do this?Any idea? Please help.Thanks in advence. Regards, Ashwini

  • White Balance settings name "Cloudy" Italian version

    Hi, the White Balance "Cloudy" settings italian name is not "Nuvolo" but "Nuvoloso". Nuvolo is a forums slang words, it is non italian!!! Will You modify it?