Is it possible to populate listbox/dropdownlist items using loadXML method?

Is it possible to populate listbox/dropdownlist items using loadXML method? (If I have xml data in some string variable)
Any sample?
Thanks

Hi Steven,
Yes, Its possible which behaves as system CFL.
Design the form like cfl having grid, choose button, cancel button and edittext of find. When you tab on edittext on form open the CFL form and after load form fill the grid by Datatable using sql query. Write code for select grid line on click of grid. Write the code on choose button which retrive value from grid.
Thanks,
Mahesh

Similar Messages

  • How to populate an application item using ONCHANGE.

    I am trying to populate an application item, TAB_INSTATE using an onchange command. I cannot figure out how to do it. Does anyone know the syntax, or can you point me in the right direction. I am unfamiliar with javascript and have been relying on previous examples, posts. thanks
    apex_item.select_list_from_query
    (20,
    c020,
    'select partner_name, partner_abbrev
    from partners
    where state_code is not null order by partner_name ',
    'style="width:100px"'
    || 'onchange="'
    || CASE
    WHEN :p300_authorization1 = 1
    THEN 'f_set_casc_area(this,f21_'
    || LPAD (seq_id, 4, '0')
    || ');'
    ELSE
    <THIS IS WHERE I WOULD LIKE A THE VALUE OF c020 TO BE PLACED INTO :TAB_INSTATE>
    END
    || 'f_set_casc_subarea(this,f22_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select State -',
    'f20_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) in_state,

    Hello Karen,
    >> I am trying to populate an application item, TAB_INSTATE using an onchange command.
    I believe I answered you in here - Re: once more...4 cascading LOVs, 3rd is hidden 4th no longer works However, for future reference…
    You don’t have a direct access to an application item, using JavaScript, because application items don’t render on page. You can, however, using the AJAX framework to do that, using the add() method. The generic code I’m using is the following:
    <script type=”text/JavaScript”>
    function setSessionValue(pItem, pValue) {
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,null,0);
      get.add(pItem, pValue);
      get.get();
      get = null;
    </script>This code can set any page or application item value.
    Regards,
    Arie.

  • Trouble with using javascript $s function to populate a page item

    Hello Oracle APEX Community,
    I'm working on a drilldown dashboard page and have been encountering a problem when i try to populate a Text Page Item (hidden or not) using the javascript built in $s function.
    The function works great when the data is a number such as dept_id (even if the field type is varchar). However, trying to pass anything which is a text the process fails, except when a value is hard-coded as a parameter for the function. So for example, I have a chart with counts of constituents by state. I would like to populate (filter) a table based on when you click on a bar for a state without having to submit the page. I'm using dynamic actions and a built in javascript function in the SQL for the chart to accomplish this; but again, it works great when I use a varchar field like the FIPS code (i.e. the FIPS for Texas is '48'), but when I try to populate the page item using the state abbreviation 'TX' (again varchar) it fails.
    Here's an example of code that works:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.deptno||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.deptno||')', d.dname And here's an example of code that does not work:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.loc||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.loc||')', d.dname However, when I hard code a text value the script works:
    SELECT 'javascript:$s("P1_DEPTNO","BOSTON")' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO","BOSTON")', d.dname
    ORDER BY d.dname I'm encountering this problem on several versions of APEX: (4.0.2.00.07-local installation) and (4.1.0.00.28-apex.oracle.com)
    Does anybody know of this problem and how to solve it? I've looked for settings on the page item itself, and can't figure it out.
    I've re-written my sql to utilize the value fields of my tables instead but I have some objects on the page which are really going to depend on the character based data instead.
    Thanks,
    Wayne

    In your javascript you are generating, surround your value with double-quotes and it'll should then always work with both numbers and strings (your strings are probably being interpreted as variable names and they don't exist at runtime, hence erroring out).
    Example:
    SELECT 'javascript:$s("P1_DEPTNO","'||d.loc||'")' LINK,Edited by: gti_matt on Aug 16, 2011 9:50 AM

  • Is it possible to populate an information field with the expect docURL?

    Hi,
    Is it possible to populate an information field with a function that checks for the expected docURL at checkIn time?
    I need to pass the value of the docURL of the checked in content item to a bpel process.
    Thanks.

    Thanks for the suggestion.
    To test:
    1. I created an information field called 'docURL'.
    2. Added a rule called 'docDisplayURL'.
    3. Selected global rule with Priority 1 and use rule activation condition.
    4. Added a condition called 'CheckIn'
    Selected 'Use Event'. 'On Submit'.
    Selected 'Use Action', ' CheckIn New', 'Check In Selected', 'Content Information', 'Content Update', 'Search', Clicked Ok.
    5. Selected the Fields Tab, Selected the 'Information Fields' in the Add Rule Field.
    6. Changed the Type to 'Info Only'.
    7. Selected the Is Derived Field and in Custom entered the following:
    <$DocUrl$>
    8. Now my rule 'displayDocURL' shows up.
    9. When I go to an item content information I don't see the 'DocUrl' field populated. What could I be doing wrong?
    Thanks
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

  • How to populate another page item based on cascading select lists?

    Oracle 10gXE
    APEX 3.2
    I've created cascading select lists based on the examples (using Javascript and AJAX) that i've seen on this forum. Thanks for help on that!
    Now that I have these LOV's being populated without needing to submit the page, how do I take the value that is presently in each LOV and concatenate them together to populate another page item? I'm trying to build the URL string that will execute an Oracle Report once the user clicks a button.
    Previously, when I had multiple Select Lists with a submit, the URL was being put together using an After Submit Computation that would set the value for an item (P26_REPORT_URL) on the page. Notice that a report parameter (i.e. parameter name and Select List value) is only included if the user has provided a value. The page item that holds these values is then referenced by a button for URL redirect. The URL Target for the button currently is: javascript:popupURL('&P26_REPORT_URL.'), but will not work at the moment because P26_REPORT_URL page item is not changing based on what is selected in the LOVs. Since I'm not submitting anything (do I need to?), how do I put together the values needed?
    Computation for P26_REPORT_URL:
    DECLARE
    l_param VARCHAR2(2000);
    BEGIN
    l_param := '&REPORTS_URL.&report=&P26_RPT_VIEW..rdf&desformat=&P26_DESFORMAT.&destype=cache';
    IF REPLACE(:P26_OLO_CODE,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_olo_code=&P26_OLO_CODE.';
    END IF;
    IF REPLACE(:P26_BEG_DATE,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_start_dt=&P26_BEG_DATE.';
    END IF;
    IF REPLACE(:P26_END_DATE,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_end_dt=&P26_END_DATE.';
    END IF;
    IF REPLACE(:P26_ORG_CODE_2,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_org_code=&P26_ORG_CODE_2.';
    END IF;
    IF REPLACE(:P26_FLAIR_ORG_2,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_flair_org_code=&P26_FLAIR_ORG_2.';
    END IF;
    IF REPLACE(:P26_BUDGET_ENTITY_2,'%'||'null%',NULL) IS NOT NULL THEN
    l_param := l_param||'&p_agy_code=&P26_BUDGET_ENTITY_2.';
    END IF;
    RETURN l_param;
    END;

    Andy,
    This is a great suggestion! After I posted, I started looking at a Javascript solution and figured it's probably what I had to do.
    However, now the cascading select list no longer working for some reason after I added the function to concatenate the item values. When I remove the showReport() function the select list works again.
    Here is what I have in the HTML Header portion of the page:
    <script language="JavaScript" type="text/javascript">
    function popupURL (url) {
      w = open(url,"winLov","resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
    function showReport()
      var l_param = '&REPORTS_URL.&report=' + $v('P26_RPT_VIEW') + '.rdf&desformat=' + $v('P26_DESFORMAT') + '&destype=cache';
      if ($v('P26_OLO_CODE' != '')
       l_param += '&p_olo_code=' + $v('P26_OLO_CODE');
      if ($v('P26_ORG_CODE_3' != '')
       l_param += '&p_org_code=' + $v('P26_ORG_CODE_3');
      popupURL(l_param);
      function get_AJAX_SELECT_XML(pThis,pSelect){  
         var l_Return = null; 
         var l_Select = $x(pSelect); 
         var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORG_SELECT_LIST',0); 
         get.add('TEMPORARY_ITEM',pThis.value); 
         gReturn = get.get('XML'); 
         if(gReturn && l_Select){ 
             var l_Count = gReturn.getElementsByTagName("option").length; 
             l_Select.length = 0;
             for(var i=0;i<l_Count;i++){ 
                 var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) { 
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{ 
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>

  • How to populate multiple list items dynamically?

    Dear members,
    I have a form there are 3 list items i want to populate these from a record group by dynamically.
    but i can be able to populate only one list item. the others give errors.
    frm-41337 cannot populate the list from record group.
    following is the program unit:
    PROCEDURE POPULATE_LIST_WITH_QUERY
         (p_list_item in varchar2,
         p_query in varchar2)
    IS
         cst_rg_name constant varchar2(30) :=
              GET_ITEM_PROPERTY(p_list_item,item_name);
         v_rg_id RECORDGROUP;
    BEGIN
         v_rg_id := FIND_GROUP(cst_rg_name);
         if id_null(v_rg_id) then
              v_rg_id := create_group_from_query(cst_rg_name, p_query);
         end if;
         if populate_group(v_rg_id) =0 then
              populate_list(p_list_item, v_rg_id);
              copy(get_list_element_value(p_list_item,1),p_list_item);
         end if;
    END;
    i call this in the when-create-record
    populate_list_with_query('gl_users.location_id',
    'select location_name, to_char(location_id) from gl_locations');
    populate_list_with_query('gl_users.company_id',
    'select company_name, to_char(company_id) from gl_company');
    populate_list_with_query('gl_users.group_id',
    'select group_name, to_char(group_id) from gl_user_groups');
    only one is populated others give errors.
    what is wrong?
    thanks
    Muhammad Nadeem
    Oracle Programmer
    CHIMERA
    Lahore
    0092-0301-8334434

    Hi again,
    Did the popup work ?
    For the list item , use the built-in add_list_element in a loop. Example : in the pre-form or when-new-form-instance trigger ,
    clear_list('block_name.list_item_name');
    for rec in (select column1,column2 from t_table order by 1 desc) loop
    ADD_LIST_ELEMENT('block_name.list_item_name', 1, rec.column1, rec.column2);
    end loop;
    See you

  • How do you populate a page item in apex with a value read from excel

    Dear All
    I am working on application where I am uploading a csv file in oracle apex. I then need to access a value in Cell B2 of the csv file and populate a page item called
    :P2100_AUTHORISATION_ID with this value. Many of the examples I have found upload the data using v_data-array into a table but I don't need to do that I just need to get the value from the csv file and then display additional information about the file allowing the user to either or continue or cancel the request to upload. I am running into a small problem that I can't explain and wondered if anyone had any ideas.
    Here is the code I am using to try and populate and item called :P2100_AUTHORISATION_ID but when I poulate the item the value is always 0. But if I replace the line :P2100_AUTHORISATION_ID:= v_data_array(2) with a raise_application_error(-20001,v_data_array(2)); The correct value is displayed in the eror. Any Help would be appreciate and I apologise in advance if this akes no sense at all:-)
    declare
    --variables needed to read excel data from flow files
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len number := 1;
    v_line VARCHAR2 (32767) := NULL;
    v_data_array wwv_flow_global.vc_arr2;
    v_rows number;
    v_sr_no number := 1;
    begin
    --------------------------------------get file info from www_flow_files
    select blob_content into v_blob_data from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    --Read and convert binary to char
    WHILE ( v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char := chr(p_bl_wd_data_entry.hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities </span>
    v_line := REPLACE (v_line, ',', ':');
    -- Convert each column separated by : into array of data </span>
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    --get filename from wwv_flow_files
    select filename into :P2100_FILE_NAME from wwv_flow_files where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    :P2100_AUTHORISATION_ID:= v_data_array(2);
    -- Clear out
    -- v_line := NULL;
    --v_sr_no := v_sr_no + 1;
    END IF;
    END LOOP;
    end;
    Best Regards
    Lynn

    Hi Joel
    Continuing on from my last question, there was something else I want to ask if you dont mind.
    Now that I have the v_data_array(2) value in a page item I would like to use as an input value to a procedure to return some information I need displayed on the page. To do this I need to convert it to a number but when I try to so this I get the following error
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    When I use the wwv_flow.debug that you told me about it is outputting a value '4851 ' so it look like there may be some sort of asii character causing a problem. I have tried using trim(v_data_array(2)) and ascii(v_data_array(2)) but nothing seems to work.
    Would you know how to convert a v_data_array value to a number? At the moment I am attemting to do it withiin the same code I attached in my earlier post but I have replaced the assignment of :P2100_AUTHORISATION_ID with the code below where P_BL_WD_DATA_ENTRY.getauthid is the procedure returning the values I need.
    :P2100_AUTHORISATION_ID:= P_BL_WD_DATA_ENTRY.getauthid(to_number(v_data_array(2)));
    Thanks
    Lynn

  • How to Populate long text(item text)  from BOM CS01 to CJ20N transaction

    I have requiremnt  in which i need to Populate long text/item text  of  BOM  from CS01 to CJ20N transaction(PS network)

    Hi Naveen,
    for anylong text related work use the functions READ_TEXT and SAVE_TEXT.
    read the long text of the BOM item using the proper header and then populate the same text lines to the PS network using the new header specific to the PS network.
    Prabhas.

  • Need default value to populate for existing items in list column.

    I have a list that I have been working with for a while. I recently added a new column and made it a choice type with a drop down list. I have set the default value to "Not Started" (an option in my drop down list) but it seems it will only
    populate for new items created in the list, not existing ones as well. Is there any way to have it populate for the existing items as well? Thank you in advance for your help.

    Hi Russ,
    You can do so by opening the list in the datasheet view and paste "Not Started" for all items in the new column you have created.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is it possible to SORT the Login Items on

    Is it possible to SORT the Login Items on
    Apple - System Preferences - System - Accounts - Login Items?
    Useful to load one of them before or after the others.
    Thanks?

    I don't think you can sort them like that but you can achieve this by using apple script.
    for example if you want to launch Mail first and Safari second, paste the following into script editor and save it as an application.
    tell application "Mail" to launch
    tell application Safari to launch
    You can also put a delay between the two:
    tell application "Mail" to launch
    delay 3
    tell application Safari to launch
    this will put a delay of 3 seconds between launches. Now remove Safari and Mail from login items and put the app you made using apple script there instead.

  • Is it possible to link each line item from an ASN to separate cFolders

    Hi,
    Could you help me with the question mentioned in the subject line? I am very new to cFolders and do not have anyone around inperson to help me out with this. Thanks
    Is it possible to link each line item from an ASN to separate cFolders
    SS

    myApplet.getAppletContext().showDocument(URL url, String target);
    TARGET:
    "_self" Show in the window and frame that contain the applet.
    "_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
    "_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
    "_blank" Show in a new, unnamed top-level window.
    name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.

  • Flex 4, is it possible to populate a tree component with sqlite table data?

    is it possible to populate a tree component with sqlite table data?
    If it is, how would I go about doing this?
    Thanks
    Kristin

    Hi Mustafa,
    it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
    if(something)
    return CHECKBOX_1;
    else
    return CHECKBOX_2;
    so, the use case exists for sure. But of course the application itself is static.
    where do you see a scenario for dynamic creation of components?
    The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
    As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
    Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
    Karol

  • Is it possible to list out CATALOG ITEMS GROUP in a Query Result of a Request Offering??

    Hi Experts,
    Is it possible to list out  CATALOG ITEMS GROUP as a result of Query Result in Request Offering ?? Because each and every Catalog Items Groups are being created as a SingleTon Child Class of System.CatalogItemGroup. i.e., Each CatalogItemGroup instance
    will have its own singleton class.
    Is it possible to list out all CatalogItemGroup Instances consolidatedly in the QueryResult Window??
    Though the System.CatalogItemGroup class is an Abstract class, I tried to list out the Classinstances via powershell command as below, which lists all catalog group instances, Note: Actually these are instances of SingleTon
    Child Classes
    "Get-SCClassInstance -Class (Get-SCClass -Name System.CatalogItemGroup)"
    But when I configured the QueryResult window with the "System.CatalogItemGroup" class, it doesn't list out any Group instances in the Porta.......
    Am I missing anything, Any suggestions please???
    Thanks and Regards, Narayana Babu

    Thanks Anton, I already tried that too... But it doesn't list out any Group instances in the Portal.
    Since each Catalog Groups are individual Single ton Class instances derived from "System.CatalogItemGroup" class. Therfore If I specify the internal ID of the abstract class "System.CatalogItemGroup" in the tag below, it doesn't list any in the
    Portal.... But if I specify ID of any one of the derived singleton class, it does displays the one instance of that particular class..
    Thanks and Regards, Narayana Babu

Maybe you are looking for