List using select value for relationship building

I have a form of interactive report. I have one "after Header" (LOAD) of the process running the sql commands that will fill a table with the data that the report needs for a given week.

I have a select list element that works like a "before header" which retrieves a list of the dates in a table. Dates containing only the first day of the week for the past two years. It is called "WEEK_OF" table and the column is called "WEEK_OF_DATE".

The default value for the select list is the first day of the current week. And then all of the first day of the week of the WEEK_OF table.

I wish that the process of LOADING using the value in the Select list. So, to start, I would list to display the report to begin with the data of the current week and the current week.

So I tried to use the variable: WEEK_OF_DATE (name of the element) as the start date of the report. However: WEEK_OF_DATE is null.

Also, after that I have the status, I would choose a new date in the list and have the report automatically refreshes with the new data.

Any ideas what I am doing wrong?

Hi Lyle,

When you set a default value for a selection list that should be used to filter a report, I thought it best to do using a calculation, dependent on the element is NULL and the header before running. If other calculations are based on this value, it should have the sequence number low to ensure that the value is available for those.

Andy

Tags: Database

Similar Questions

  • Exception while trying to get the selected value for the choice of SelectOne in ADF Mobile

    I added the following code after arriving through this post https://forums.oracle.com/thread/2536419

    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("facilitySelectItems");

    Attribute String = (String) iterBind.getCurrentRow () .getAttribute (0);

    But Jdeveloper complained class BindingContext wasn't available and I get the jar file adfm.jar has not been added to the project. I added it manually the path C:\JDeveloper11r24\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar. Once I've deployed code on an android emulator, I get the below error. Can someone please?

    07-25 13:18:03.812: D/CordovaLog (869): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] request: {classname: oracle.adfmf.framework.api.Model; method: evaluateMethodExpression; params: [0: #{pageFlowScope.IBCMSearchBean.getSearchParams}] [1:] [2: {}] [3:] ;} exception: {message: oracle/adf/model/binding/DCBindingContainer (unsupported major.minor version 50.0); the severity: ERROR; .Guy: oracle.adfmf.framework.exception.AdfException; .exception: true ;}}}

    The version of the compiler maximum the JDev shows that 1.4. And I'm using version 11.1.2.4.0 for JDeveloper. The JDK version is 1.6.0_24.

    Sorry I missed the question!

    First of all, to get the value of selectedItem in selectOneChoice do not have another function in the domain controller. Here is an excellent article by Frank that explains this. Or you can use the below function to get the selected value immediately. Here the market is the value of selectOneChoice attribute. I wasn't aware of this method until you have read this article.

    {} public void getAndSetMarketValue (market of the object)

    ValueExpression ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression ("#{bindings.marketSelectItems}", Object.class);

    AmxAttributeBinding attrBinding = (AmxAttributeBinding) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());

    access the iterator that populates the list of values in

    the selectManyChoice component

    AmxIteratorBinding amxListIterator = attrBinding.getIteratorBinding ();

    the AmxIteratorBinding is a wrapper for the BasicIterator

    iterator which sets out the information we need

    ListIterator BasicIterator = amxListIterator.getIterator ();

    for each index value, query the name of the service (you can

    access and attribute from the line) to display

    SelectedValue = string

    (String) listIterator.getAttributeValueAtIndex (((New Integer ((String) market))) .intValue (), "Value");

    }

    Second, you can use #{row} in commandLink's action since it is something that is evaluated when the user clicks on the link and we do not have access to #{line} after that the entire component is rendered. To remedy this give an action for the commandlink which is a function in the bean and the function of bean back to the action of the link selected.

    ListOfReports.amx

    .......

    .......

    LoginBean.java

    ......

    public String returnClickValue() {}

    Option of string = AdfmfJavaUtilities.evaluateELExpression("#{viewScope.selectedItem}").toString ();

    return option;

    }

    ......

  • XML - a list of possible values for filtering

    Hello world

    I have a bunch of data from AMFPHP to be edited by flex. The data is a combination of data is is attached to various SQL tables. The format is similar to:

    < date = October 10, 2008 ">"
    ... < grade_number rank = "1" >
    ... < name of the subject 'English' = >
    ... < name type = 'homework' >
    ... < input id = "1" >
    ... < entry_e > create new homework < / entry_e >
    ... < date > 10/10/2008 < / date >
    ... < object > 10/10/2008 < / topic >
    ... < Adder > 1 < / Adder >
    ... < / Entry >
    ...

    I used to send these data on an object, and then use a collection of grouping and a filter function to extract relevant data when an opportunity chose the date, subject, category, type. This barely worked and given with the binding problems. I feel, the best solution is to use an EX4 object instead. To do this, however, I need the following information:
    -A list of all possible values for each grade, subject, date and type. These values would then fill controls to choose fields to filter data to allow the user to drill down to the entry they wish to change.

    I'm on the right track with this idea? How do you get a single list of all possible values, you can filter the dataset? It is d ' assign focus in the books about how to filter data with an e4x expression, but little discussion of how to get all possiblve values so that the filter (for example to fill a combo box that lists the possible values)

    In addition, when the data is returned via an e4x expression, is a copy or a pointer to the source data? IE, if I change the data returned, does it also change it in the source data?

    Thank you

    Stone

    I don't know how your application is designed, but does a good job up front in the design data exchange will save you tons of time/bandwidth later.

    In my application, there are semi-static data, driven by the table (for example, tables search db). These data do not change frequently (for example, possible to assign grades a student 'A, B, C, D, F').

    Then, the user starts the questioning of the system (for example, the list of students in a course). In the query result, the information may be changed (for example, assign a student a grade from the menu drop-down). Once all changes have been made, a 'Save' may be issued. A 'Cancel' might pull down new data (i.e., re-run the last query) and reset the visible screen to a non-altered state.

    Quote:
    So from what I understand you query the PB often enough?

    Not really. The initial list of data loading can be slow... but we did things like caching server-side to speed up a bit. This initial list of data is retrieved only ONCE per logon session.

    Queries are short and return summary of results. The entire record of the data extraction is fast enough because things are indexed on the back-end.

    Quote:
    I tried to limit the bandwidth by downloading a copy of the week and then classes allowing the user to "save changes". I'm not too worried about getting a data collision since the classes are unique to each connection.

    Looks like your application protocol design is simple. The user logs and data are extracted by user id. The user updates the data and record visits. Fact.

    In this scenario, if I'm right about your application, I would always break cela in two different HttpService calls to get a sort of simultaneous treatment. A HttpService would be responsible for downloading the data to fill in the boxes on the menu drop down. The other to download the classes for that day there.

    In fact, this raises the question; the user can update the other than just the current day? If so, looks like you will need to allow the user to choose a day, extract the data for this date, allow updates/save, then choose another day to update.

    In this scenario, the separation of the HttpServices is paying off, since the query to extract semi-static data to fill drop-down list boxes is done only once when the user connects to the departure.

    Again, I'm not sure the design of your application, so I talk only through different scenarios.

    Quote:
    Therefore, there is no way to obtain the unique values of the dataset object directly?

    I'm not sure that understand this issue. You would get the values to fill your combo boxes through a HttpService (for semi-static data). It can then return something like:


    ....
    ........ English Spanish Spanglish
    ....

    ....
    ........
    ....

    Then you might have something like:

    I hope this helps.

  • use Select to FOR

    Hello
    11 g R2,.
    is it possible to have earned for a loop, a select clause?
    SQL> BEGIN
      2  FOR i IN
      3  select * from
      4      (select sql_id from v$sqlarea where  executions !=0 and UPPER(PARSING_SCHEMA_NAME) ='SYSADM'
      5     ORDER BY elapsed_time DESC)
      6          WHERE rownum <= 10 ;
      7  DBMS_OUTPUT.PUT_LINE (i);
      8    END LOOP;
      9  END;
     10  /
    select * from
    *
    ERROR at line 3:
    ORA-06550: line 3, column 1:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    reverse continue avg count current max min prior sql stddev
    sum variance execute forall merge <a SQL statement> time
    Thank you.

    user10274093 wrote:
    Hello
    11 g R2,.
    is it possible to have earned for a loop, a select clause?

    SQL> BEGIN
    2  FOR i IN
    3  select * from
    4      (select sql_id from v$sqlarea where  executions !=0 and UPPER(PARSING_SCHEMA_NAME) ='SYSADM'
    5     ORDER BY elapsed_time DESC)
    6          WHERE rownum <= 10 ;
    7  DBMS_OUTPUT.PUT_LINE (i);
    8    END LOOP;
    9  END;
    10  /
    select * from
    *
    ERROR at line 3:
    ORA-06550: line 3, column 1:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new null 
     
    reverse continue avg count current max min prior sql stddev
    sum variance execute forall merge  time
    

    Thank you.

    a number of problems here.
    1. Select the needs of parentheses around him.
    2. for statement loop lack (and;).
    3. to help I have instead of i.sql_id in put_line
    4. top keywords - very old hat.
    5. with the help of the PL/SQL at all when a simple piece of SQL would do (why must you put_line)?

    In any case, try following:

    begin
      for i in (select *
                  from (select sql_id
                          from v$sqlarea
                         where executions != 0
                           and upper(parsing_schema_name) = 'SYSADM'
                         order by elapsed_time desc)
                 where rownum <= 10) loop
    
        dbms_output.put_line(i.sql_id);
      end loop;
    end;
    

    Published by: Paul Horth on May 15, 2013 13:16

  • List uses disk space for all the servers on a site

    I read http://www.virtualizationadmin.com/articles-tutorials/General-virtualization-articles/use-PowerCLI-quick-stats-part1.html and other information. I've not seen all examples that can identify the disk space actually used for a virtual machine. for example thin servers provisioned and space used by disk...

    There's a good scenario for this need help for vSphere PowerCLI script to report on all the warehouses of thin provisioned

  • Using the values of default setting with the functions or procedures?

    If you have a procedure or a function that has DEFAULT values reported for some parameters How do you call this function or procedure when you want to use some of the default values? I tried...

    myProcedure(202,,);
    myProcedure (202, ",");
    myProcedure(202,null,null);
    myProcedure (job_id = 202);
    myProcedure (job_id = > 202);

    None of the above worked.

    PROCEDURE add_job (job_id IN jobs.job_id%TYPE
    job_loc IN jobs.job_location%TYPE DEFAULT 145
    mgr_id IN DEFAULT jobs.mgr_id%TYPE 30
    );

    Thank you.

    EDIT: I will say that it is a simplified example. Imagine you please a parameter list much more great and perhaps half having DEFAULT values. Thank you.

    PROCEDURE myProcedure (job_id IN jobs.job_id%TYPE
    job_loc IN jobs.job_location%TYPE DEFAULT 145
    mgr_id IN DEFAULT jobs.mgr_id%TYPE 30
    init_id IN jobs.init_id%TYPE
    sal_id IN jobs.sal_id%TYPE 100 by DEFAULT
    , clock_id IN DEFAULT jobs.clock_id%TYPE "A".
    shift_id IN jobs.shift_id%TYPE
    , lot_id IN DEFAULT jobs.lot_id%TYPE «BACK»
    );

    Published by: davejjj on March 20, 2013 16:47

    Hi davejjj,

    Here is an example of calling your myprocedure. This example uses default values for sal_id, clock_id, lot_id

    declare
      procedure myprocedure (
        job_id     in jobs.job_id%type,
        job_loc    in jobs.job_location%type default 145,
        mgr_id     in jobs.mgr_id%type default 30,
        init_id    in jobs.init_id%type,
        sal_id     in jobs.sal_id%type default 100,
        clock_id   in jobs.clock_id%type default 'A',
        shift_id   in jobs.shift_id%type,
        lot_id     in jobs.lot_id%type default 'BACK'
      );
    begin
      myprocedure (job_id     => your_job_id,
                   job_loc    => your_job_loc,
                   mgr_id     => your_mgr_id,
                   init_id    => null,
                   shift_id   => your_shift_id
                  );
    end;
    /
    

    This, however, will NOT WORK, because myprocedure doesn't have a default value declared for init_id

    begin
      myprocedure (job_id     => your_job_id,
                   job_loc    => your_job_loc,
                   mgr_id     => your_mgr_id,
                   shift_id   => your_shift_id
                  );
    end;
    /
    

    Concerning
    Peter

  • Requirements for Flex Builder 3

    I'm confused about the requirements for Flex Builder 3.

    Adobe ( http://www.adobe.com/products/flex/systemreqs/ ) website lists the following requirements for Flex Builder:

    * Intel® Pentium® 4 processor
    * Microsoft® Windows® XP with Service Pack 2 or Windows Vista® Home Premium
    * 1 GB of RAM (2 GB recommended)
    * 500MB of available disk space (500 MB additional required for plug-in configuration)
    * Java™ Virtual Machine: Sun™ JRE 1.4.2 Sun JRE 1.5, IBM® JRE 1.5, or Sun JRE 1.6 (included)
    * Eclipse™ 3.2.2 or higher for plugin configuration (Eclipse 3.3 recommended for Windows Vista)
    * Adobe® Flash® Player 9 software *.
    * BEA Workshop 10.1
    * IBM Rational Software Architect 7.0.0.3 (Eclipse 3.3 only plugin configuration)

    If I understand correctly BEA Workshop and both Eclipse IDE-based IBM Rational Software Architect.

    I need to Eclipse and BEA Workshop and IBM Rational Software to use Flex Builder, or just an eclipse based IDE?

    You don't need BEA Workshop or IBM Rational Software. I think it means that you can install the plugin eclipse/BEA Workshop on top of Flex Builder/IBM Rational Software.

    If you choose to Flex Builder standalone, then you have even eclipse. If you choose Flex Builder Plug-ins you need eclipse.

    HTH,
    Gerard

  • Force users to enter a value for a parameter.

    Hello

    I have a report with a bunch of settings and I want to force the user to enter values for both parameters between each of them. As for example when the user does not select values for these 2 settings it should get a dialog box saying "Please enter the value parameter xyz" or something like that, that will force the user to enter a value for the parameters until he could see the report.

    Please let me know if BI Publisher can do this.

    Thank you
    DY

    You can not do this currently. BI publisher does not apply to any control.

    You can take a look and see if you can try something mentioned in the blog post: http://blogs.oracle.com/xmlpublisher/entry/good_ol_fashioned_debugging

    Thank you
    Bipuser

  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

  • Not allowing a value for a selection in a Select list

    Version 4.1.1.00.23

    Hello

    I created a Select list to display projects within a Department (that we call groups).

    A group will have projects, however, more than one group may have a project with the same name.

    If my application for the display of the list select the data in a hierarchical format like this:

    Group 1

    Proj Grp 1

    Proj Grp 1

    Proj Grp 1

    Proj Grp 1

    proj Grp 3

    Group 2

    Proj Grp 1

    Proj Grp 1

    Proj Grp 2

    Proj Grp 2

    Group 3

    Proj Grp 1

    Proj Grp 2

    proj Grp 3

    What I'm looking for, it's to NOT allow 'Group' level to be selected in the list. Only allow the level of project to be selected values.

    The query is:

    WITH t
         AS (SELECT 'Group: ' || vg.group_name name
                   ,vg.group_id
                   ,NULL id
                   ,1 AS weight
             FROM   vertical_group vg
             WHERE (vg.group_id = :P100_GROUP OR :P100_GROUP = 0)
             UNION ALL
             SELECT '....' || project_name
                   ,group_id
                   ,project_id
                   ,2 AS weight
             FROM   tbs_projects
             WHERE  status IN ('Pipeline'
                              ,'Planned - Partially Funded'
                              ,'Planned'
                              ,'Execution') AND
                    ( :P100_RYG_PROJECT = 0 OR :P100_RYG_PROJECT = ryg_proj_id ) AND
                    ( group_id = :P100_GROUP OR :P100_GROUP = 0 ))
    SELECT name
          ,id
    FROM   t
    ORDER BY group_id
            ,weight
            ,name
    
    

    Can someone help me with this?

    Is there additional information that I can provide?

    Thank you

    Joe

    HTML optgroup element is used for the structure select of the lists in this way. Select standard lists the APEX and LOVs do not have support for generating optgroup of the items in the lists of options, but point of plug-ins with this feature are available.

    See the documentation for more information on the use of plug-ins.

  • Fetch value selection list to select the list using dynamic measurements

    Hello

    I have a select list 1 and select list 2

    as I chooses a 1 based on selected value select list option, select list 2 options screens.


    : Options P1_SELECT1

    DISPLAY RETURN VALUE OF VALUE
    D INTERIOR
    INTERNATIONAL I HAVE

    : P1_SELECT2 with dynamic statement options

    Select NAME, ID from PRODUCT_MAS
    where ADDL_FIELD1 =: P1_SELECT1

    can I do this task using dynamic measurements?
    If so how can I do this?

    You have even set a dynamic Action for this:
    Set as Select list and property 'Cascading LOV Parent article (s)' set of P2_SELECT2 to P1_SELECT1 and you're done.

  • Dynamic action fails using the null value on the list of selection change event

    I have a selection list that I created a dynamic action to which I added a value set to to clear the values of other controls on the form by assigning the value NULL.

    This doesn't seem to work, and I can't understand why it does not work.

    Event = change
    Selection type = Items
    Items = P4_MYSELECTLIST
    (no other condition for this action, I want it to reset for each change in the selection list).

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = static assignment
    Value = NULL
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Xanas,

    If you set the values NULL and not the literal string "NULL" you must change your DA slightly. Modify your game to run JavaScript Code.

    Action = run the JavaScript Code
    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Code = this.affectedElements.val ('');
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)

    Edit:
    You can also change the real action to the following if you want to leave your DA as setpoint:

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = Expression JavaScript
    Value = "
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 10, 2012 09:52

  • Fill in the text field of the value of select list using javascript

    Hello

    I'm editing a form where a text field is to be filled using an On-Demand application process. The process is called with an OnChange.

    Application process:
    declare
      l_CCSS_STATUS varchar2(100);
    begin
      select CCSS_STATUS into l_CCSS_STATUS from PATIENT
        where ID = :P11_PATIENT_ID;
      htp.prn(l_CCSS_STATUS);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    l_CCSS_STATUS := 'Inactive';
      htp.prn(l_CCSS_STATUS);
    end;
    In the attributes of HTML Form selection list element:

    onChange = "javascript:f_getStatus()"; "

    It fills a text field (: P11_CCSS_STATUS) when I appreciate is selected in the select list.


    I am filling a second field (: P11_COPY) with a (share) value for the same table of PATIENTS, but don't really understand how the: P11_CCSS_STATUS field is filled in from the application process.

    If I understand the request of the share in the application process, then it is appended to the value CCSS_STATUS and appears in the: P11_CCSS_STATUS text element.

    Any help is appreciated.

    Thank you
    Matt

    Hello

    visit the similar to the below application process

    declare
      l_CCSS_STATUS varchar2(100);
      l_COPAY varchar2(100)
    begin
    
      select CCSS_STATUS , COPAY into l_CCSS_STATUS , l_COPAY from PATIENT
        where ID = :P11_PATIENT_ID;
      //notice this line.... how the response is send
      htp.prn(l_CCSS_STATUS || ',' || l_COPAY);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    l_CCSS_STATUS := 'Inactive';
      htp.prn(l_CCSS_STATUS);
    end;
    

    and javascript call you to something similar to below.

    function myAjaxCall()
    {
       var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=myAppProcess',0);
       ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID'))
       //notice the below line.. use of split function
        ajaxResult = ajaxRequest.get().split(',')
       $s( 'P11_CCSS_STATUS' , ajaxResult[0]);
          $s( 'P11_COPAY' , ajaxResult[1]);
    }
    

    Example: http://apex.oracle.com/pls/apex/f?p=12060:110

    Kind regards
    Shijesh

  • Using AJAX code for the conditional selection list.

    Hello

    I use AJAX code for the first time, I have no knowledge in java, I got the code from this forum and try to manipulate my requirement.

    My requirement is that I have two selection lists, host_name) 1 and 2) database_name.
    As soon as I pick/choose the value of host_name select list, I need to fill in only the databases on this particular host. I don't want to send the page for this action.

    Here is the code, thank you if anyone can help.


    On request the code application process:
    -----------------------------------------------------
    declare
    number of l_counter;
    l_o_name varchar2 (2000);
    Start
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");
    for rec in (select "ORA_DATABASES_VW". "' Database_name ' as 'database_name ',.
    'ORA_DATABASES_VW '. "" DB_ID "as"DB_ID ".
    of 'ORA_DATABASES_VW '.
    where 'ORA_DATABASES_VW '. ("' HOST_NAME ' =: TEMP_ITEM)
    loop
    HTP. PRN ("< option value ="' | rec.db_id |) '">' || Rec.database_name | ("< / option >");
    end loop;
    HTP. PRN ("</select > '");
    end;

    Header HTML on this page:
    =================
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_List_XML (source_item, target_item) {}

    var v_Target = html_GetElement (target_item);
    var v_Source = html_GetElement (source_item);
    var ajaxResult = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = POPULATE_LIST_XML', 0);
    ajaxResult.add ('TEMP_ITEM', source_item.value);
    var v_result_xml = ajaxResult.get ('XML');

    If (v_result_xml & & v_Target)
    {
    var options_Contents = v_result_xml.getElementsByTagName ("option");
    v_Count = options_Contents.length;
    v_Target.length = 0;

    for (var i = 0; i < v_Count; i ++)
    {
    var v_opt_xml = v_result_xml.getElementsByTagName ("option");
    appendToSelect (v_Target, v_opt_xml.getAttribute ('value'), v_opt_xml.firstChild.nodeValue)
    }
    }

    }
    function appendToSelect (target_item, option_val, option_content) {}
    var v_Opt = document.createElement ("option");
    v_Opt.option_value = option_val;
    {if (document. All)}
    target_item.options.Add (v_Opt);
    v_Opt.innerText = option_content;
    } else {}
    v_Opt.appendChild (document.createTextNode (option_content));
    target_item. AppendChild (v_Opt);
    }
    }
    < /script >


    Attribute of the form in the host_name column element. P935_INSTANCE_DB_NAME is my page for database_name.
    OnChange = "get_List_XML (this,"P935_INSTANCE_DB_NAME").

    Feel free to mark the answers useful or correct ;)

  • How do you define a value for a list item select (LOV) with Javascript?

    I am trying set the values for a group of elements in a dynamic way, based on a selection of a report. Everything works fine, but the selection list.  What I have so far is the following:

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is REFRESH_LIMIT_TYPE', $v ('pFlowStepId'));
    var gReturn = get.get ();
    $x('P10014_LIMIT_TYPE').value = gReturn;

    My guess is that a Select list of an LOV is more complicated than a text or a single display element.

    Thanks in advance for your help,

    Jim

    Thank you user - placed you me in the correct district-

    $s ('P10014_LIMIT_TYPE', gReturn); -This update value, but not the displayed value.

    Apparently LOVs require two values ('P10014_LIMIT_TYPE', return_value, display_value) $s;    Then I changed my code-

    ".. gReturn a = 44001, now = ' 44001, ASSUMPTION..."

    var args = gReturn.split(",");

    var r = args [0];

    var d = args [1];

    $s ('P10014_LIMIT_TYPE', r, d);

Maybe you are looking for