Cascading Text Boxes in Tabular Form

Hello Gurus,
I have a Cascading Select List in a Tabular Form made with APEX_ITEM.
My Tabular Form is like this: Col1[select list], Col2[select list], Col3, col4 .
Now :- I would like Col2 to be made as a TEXT BOX as opposed to SELECT LIST. But this TEXT BOX should still be populated "On Change" of Col1 and the TEXTBOX should be editable.
I saw another function called: TEXT_FROM_LOV_QUERY but I can not set the item_id [to use in HTML HEAD Java Script Function & Application Process] as the signature of the function does not support.
APEX_ITEM.TEXT_FROM_LOV_QUERY (
    p_value       IN    VARCHAR2 DEFAULT NULL,
    p_query       IN    VARCHAR2,
    p_null_text   IN    VARCHAR2 DEFAULT '%')
    RETURN VARCHAR2;Please point me to any relevant examples.
Appreciate any help in this regard. Please let me know if I could not explain my problem well.

Hi Jari,
Thanks a lot for your suggestions.
I did make some changes and here is the code I have all together..
Region Source to display the page:
SELECT apex_item.hidden(45,LINE_NO)
  || apex_item.select_list_from_query(46, TRANSACTION_ID, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
  || 'onchange="SetTXTitem(this,'
  || 'f47_'
  || LPAD (LINE_NO, 4, '0')
  || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
  || LPAD (LINE_NO, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
  apex_item.TEXT(47, SLA, NULL,NULL,'style=""', 'f47_'  || LPAD (LINE_NO, 4, '0'), NULL) SLA,
  apex_item.text(48,TRANSACTIONS_PER_PEAK_HOUR) TRANSACTIONS_PER_PEAK_HOUR
FROM cp_std_trans_details
WHERE cap_plan_id = 1
UNION ALL
  SELECT apex_item.hidden(45,NULL)
  || apex_item.select_list_from_query(46, NULL, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
  || 'onchange="f_set_casc_sel_list_std_item(this,'
  || 'f47_'
  || LPAD (9900 + LEVEL, 4, '0')
  || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
  || LPAD (9900 + LEVEL, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
apex_item.TEXT(47, NULL, NULL,NULL,'style=""', 'f47_'  || LPAD (LEVEL, 4, '0'), NULL) SLA,
apex_item.text(48,NULL) TRANSACTIONS_PER_PEAK_HOUR
FROM dual
  CONNECT BY LEVEL = 2the below is my Javascript source:
<script language="JavaScript" type="text/javascript">
function f_set_casc_sel_list_std_item(pThis,pSelect){
        alert('from function');     
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
              'APPLICATION_PROCESS=tab_casc_txt_sla',0);
    get.add('TAB_CASCADING_ITEM_TXTSLA',$x(pThis).value);
    gReturn = get.get('XML');
    alert(gReturn);
    if(gReturn && l_Select){
         $x_Value(l_Select,gReturn);
    get = null;
</script>I have created a APPLICATION ITEM with this name : 'TAB_CASCADING_ITEM_TXTSLA'
and below is the application process source:
DECLARE
   v_counter   NUMBER := 0;
   v_sla number;
BEGIN
   OWA_UTIL.mime_header ('text/xml', FALSE);
   HTP.p ('Cache-Control: no-cache');
   HTP.p ('Pragma: no-cache');
   OWA_UTIL.http_header_close;
     SELECT COUNT (*) OVER () sla_count, sla
       INTO  v_counter,v_sla
               FROM cap_plan_std_business_tran
              WHERE transaction_id= :TAB_CASCADING_ITEM_TXTSLA
       IF v_counter = 1
      THEN
         HTP.prn (v_sla);
      END IF;
      IF v_counter != 1
      THEN
         HTP.prn ('un defined');
      END IF;
END;but some thing should still be wrong and it does not work .. can you please check ...

Similar Messages

  • How to create check box in tabular form

    Dear Friends
    i have craeaed tabular form .Recently all column are default text field but i want to change some column from text field to check box .
    i have try it with simple check box but there is no option to pass return value in to table.
    How to create check box in tabular from.
    select
    "CLAIM_ID",
    "CLAIM_ID" CLAIM_ID_DISPLAY,
    "EMPLOYEE_ID",
    "CLAIM_DATE",
    "START_FROM",
    "END_TO",
    "REIMB_NAME",
    "REIMB_AMOUNT",
    "REMARK",
    "ACTIVE_FLAG",
    "STATUS",
    "APPROVE_NO",
    "APPROVE_FLAG"
    from "EMP_REIMBURSEMENT_DTL
    {code}
    i want to change column from text field to Check box
    Cplumn Name :
    1.ACTIVE_FLAG Return value 'Y'
    2.STATUS Return Value "APPROVE"
    How to pass it with check box in tabular form.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Alert Box on tabular form

    Hi,
    I have a tabular form with only one column, and the column is NOT NULL ENABLE.
    So may I know is it possible to show an alert box in tabular form if user didn’t fulfill the required field?
    In fact, I have created a new button and hide the main button already.
    And I have already added JavaScript in region’s footer, however, the alert box still popup even when I have already key in data in the required field. It is because I can’t able point the new button to the field which is NOT NULL ENABLE.
    Any suggestions are appreciated.
    Thanks.

    Hi Gus,
    Create a normal submit button - in my example, this is called "SUBMIT". When it's created, edit it attributes and change the following:
    Target is a: URL
    URL Target: javascript:notNull('f03');
    Then add the following to the form region's Region Header:
    <script type="text/javascript">
    function notNull(fld)
    var flds = document.getElementsByName(fld);
    var f;
    var e = 0;
    if (flds)
      for (var k = 0; k < flds.length; k++)
       f = flds[k];
       if (f.value == "")
        f.style.backgroundColor = "yellow";
        e = 1;
       else
        f.style.backgroundColor = "white";
    if (e == 1)
      alert("Highlighted fields are required!");
    else
       doSubmit("SUBMIT");
    </script>In this example, the column I'm validating is "f03" but check doing a View Source on your page to get the right "name" attribute for your column.
    Andy

  • Disable Check box in tabular form

    Hi,
    I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
    How can i do this ?
    Thanks & Regards
    Vedant

    hi,
    this thread maybe help you
    Tabular Form: Enable/Disable a field based on the status of a check box
    regards,

  • Livecycle Designer 7.0 - How do I link a text box in a form to a radio button or checkbox?

    Hello,
    I am using Livecycle Designer 7.0 to create a form. I have a scenario where I have several options on a question where they choose one radio button. The last option of the radio button has a text box accompanying it and I only want it to be able to be filled out/typed into if that particular radio button is chosen. Not to be able to be typed into if that particular radio button is not chosen as an answer to that question.
    How do I do that?
    Also how to I do the same for a text box to be entered into and typed into only if the accompanying checkbox is checked?
    Help?

    This forum is for the Adobe FormsCentral  (formscentral.adobe.com) which is a service that allows you to create,  collect and analyze data using an online web form. You should ask  Designer related form questions in the Designer forums: http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_des igner_es
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • Create Check box in Tabular form and report

    This is Marilyn. I wanted to know if anybody can help me with the following scenario.
    I created tabular form which has some LOV columns, and some check boxes. When the user clicks on "add row" button, I want to populate the row with the values from the LOV display to be selected by user, and some of the blank check box also display as empty check box in order for user to select check or uncheck them.
    If this is possible, can you provide an example?
    Thanks

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Cascading LOV in a Tabular form

    Hi Guys,
    I have read numerous articles on the generation of cascading LOV's in a tabular form but havent been able to get it working
    I have created an example in my apex workspace at:
    http://apex.oracle.com/pls/apex/f?p=4000:1500
    workspace XXAPPS
    Username guest
    Password demo
    app no 17551
    Page 2
    In my test scenario, I have an emp table, dept table and an office table.
    Within my tabular form(based on the emp table), I have a deptno column and an office column.
    Depending on what the user selects in the deptno column, I would like the corresponding list of offices associated to that dept LOV to be returned in the offices LOV.
    The table structure is
    EMP
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    OFFICE_ID
    DEPT
    DEPTNO
    DNAME
    LOC
    OFFICE
    OFFICE_ID
    OFFICE_NAME
    DEPTNO
    When the user selects a deptno in the LOV I would like that to control the values that are returned in the office LOV.
    I have used Jari's blog post:
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117
    but as you can see it isn't quite working in that the office LOV is not returning anything.
    I am pretty new new to JavaScript and jQuery so am no doubt doing something wrong as some of the steps are causing errors and are confusing me a bit e.g. step2 is causing the page to return blank (I have commented the code out in the example)
    Any help would be greatly appreciated.
    Thanks
    Edited by: Cashy on 07-Mar-2012 04:05

    Hi fac,
    That is the full code as per the Jari's link on http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117 (last but one section of instructions).
    I have got the id of the elements (f07 and f06) by using IE Developer toolbar and have passed those into the dynamic action.
    The child element is now just showing loading...
    It seems to me that the on demand process is not being called because I changed the code to:
    DECLARE
    l_sql VARCHAR2(32700);
    BEGIN
    IF APEX_APPLICATION.G_x01 IS NOT NULL OR APEX_APPLICATION.G_x01 IS NULL
    THEN raise_application_error(-20001,'code gets here');
    l_sql := 'SELECT competency_id AS RET
    ,competency_description AS DIS
    FROM XXMEL_FOCUS_COMPETENTCIES
    WHERE competency_category_id = ' || APEX_APPLICATION.G_x01 || '
    ORDER BY competency_description
    APEX_UTIL.JSON_FROM_SQL(l_sql);
    ELSE
    HTP.prn('{"row":[]}');
    END IF;
    just to see if the code is getting to the process but the error message that I put in the PL/SQL is not firing.
    Chris

  • Error when pasting 1K of text into a text area of tabular form

    This appears to be a bug to me, put please offer suggestions if you have them....
    Using apex with XE, I have created a table with two varchar2(4000) columns in them. The user will paste large blocks of text into one or both of them (e.g paste text copied from e-mail).
    I created a tabular form and set the two fileds to display as "text area". Insert and/or update works fine unless I paste more than about 1 to 1.5 kbytes of text into one of these fileds, in which case I get a page not found error with the following URL:
    http://127.0.0.1:8080/apex/wwv_flow.accept
    After the error page displays, I can hit the back button and then remove just enough text to get it to under the 1 to 1.5 kbytes and then either insert or update works fine.
    One more bit of info. If I create a single row form then it works fine, it is only the multi-row tabular form that seems to have this issue.

    I don't think the character set is the problem. I used a string of numbers 0123456789 and just copied and pasted it repeatedly to build up the text. The database character set is WE8MSWIN1252.
    Regarding the apache log. I have to admit that I don't even know if I'm running apache. I am using a newly installed Oracle XE on a laptop in order to get some experience with application express. This app is the first one I've done. If someone will direct me to the log then I'll be glad to check it and post the relevent contents.
    I signed up for an apex workspace and intend to see if I can recreate the error from there so I can see if the problem is just in the free version of apex that comes with the Oracle Express Edition for windows database.

  • HELP! need help moving "main" text box in landscape form

    Hello. I am working with a table that is now in landscape. I imported it from another FrameMaker 7.2 file which was in portrait form. The table is ongoing (spills into the next page) and I need to be able to move the "main" text box that the table imported into. I am unable/unsure how to go about doing this?! I have to adjust this box because I still have headers/footers/colored border to add later on. Is it also possible to change the size of that "main" text box that automatically appears when you would first open up a blank document??
    -kt

    Hi kt,
    it's quite easy, if I understand what you want to do...
    Go to the Master Pages in the target document and either create a new masterpage - (called land2port) or alter the existing master page that is being used... You can change the size and position of the TextFlow frame... Then the save the document as a template - import your landscape table and apply the appropriate master page - voilla!
    now you will have room for your headers and footers...
    enjoy!
    David
    [signature link removed]

  • Cascade Select list with Tabular Form

    Hi,
    I am trying to implement Cascade Select List functionality on a tabular form where users should be able to add multiple rows. The data should be saved to a temporary stage area, where users can review the data prior to saving to the table. Very similar to the shopping cart where one can Delete/Update rows by record. I believe there is a way to do it via APEX Collections. If anyone has an example it would definitely help. FYI, Running on APEX 3.2, so no built in cascade functionality.
    Thank you,
    Chandu

    If you received a reply or figured out how to do this, can post? I need to implement exact same functionality and have not figured out how to do so. Have pinged Denes K. for source code on his demo app but not yet received response. Can this be done using wizard tab form or does it have to be a manually tab form?

  • Display null text field in tabular form

    Seems too simple to ask in this forum but I know how to display null for a select list but how can I have a text field display blank instead of '(null)' in a tabular form?

    Hi,
    Go edit report attributes and check that attribute "Show Null Values as" do not have any value.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • I need a combo box with 4 values to choose from which will populate a text box on the form with text related to each combo box selection

    For example:
    Combo box choices:
    apple
    tomato
    squash
    Pumpkin
    The text box depending on the selection above would state the color:
    Green        (if Apple was chosen from the combo box
    Red           (if Tomato was chosen from the combo box
    Yellow       (if Squash was chosen from the combo box
    Orange      (if Pumpkin was chosen from the combo box
    I am very new at this and have spent hours looking for an answer.  Thank to anyone in advance who can help!

    Place each value as the export value of the options in the combo-box and then use this code as the text field's custom calculation script:
    event.value = this.getField("ComboBox Name").value;

  • How to make text field in tabular form as List of value (LOV)

    So the problem is next:
    I should to make field in tabular form as LOV(list of value (combobox)) to load there data form db. Could smb take me an advise how to make it.
    Thanks.

    So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
    Thanks

  • Text box in adobe form

    Hello All,
      when i am dragging a field from data to layout.
    i am getting the caption and input field.
    for eg: if drag and drop name field to layout....then it is displaying as 'NAME  ..............'
    (actaully it is showing a box, but i cant show here , so i typed dots).
    but i dont want 'NAME' should appear on layout, i want only the content (for eg if NAME = 'AMAR').
    i want only AMAR to be displayed not NAME AMAR.
    can any one help me how to achieve this.
    Thanks in advance
    Best Regards,
    Amarender Reddy B.

    Hello Amar,
    When you drag data fields to your layout , you will get caption. It is the standard functionality for PDF forms.
    You can double click on the caption which comes on layout. select the caption text and delete it. Drag the centre divider.
    alternatively
    Go to Pallets> Object>field-->captions
    Just remove the text from the caption box and your job is done.
    You can set the appearence as none for better view of the field.
    Hope it helps you.
    Regards ,
    Vikash Gupta
    Edited by: VIKASH GUPTA on May 13, 2009 11:06 AM

  • Cascading LOVs in a tabular form - 2 fields

    Hi
    Since I cannot find the original thread to VIKAS sample application
    http://apex.oracle.com/pls/otn/f?p=24317:9:702016961545771
    anymore, could someone help me to adopt & strip down his example to only have 2 select fields dependent on each other
    This is the JavaScript I currently have from his site
    <HEADER>
    <script type="text/javascript">
    function appendToSelect(pSelect, pValue, pContent)
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){/* why is ie different ask bill */
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    else {
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    var g_products=new Object;
    var g_sales_reps=new Object;
    function replace_select_list(pSelect,pXML)
    var l_Count = pXML.getElementsByTagName("option").length;
    pSelect.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = pXML.getElementsByTagName("option");
    appendToSelect(pSelect, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    function get_ajax_select_xml(pThis)
    var l_Return = null;
    var l_td=html_CascadeUpTill(pThis,'TD');
    var l_products=l_td.nextSibling.getElementsByTagName('select')[0];
    var old_product;
    if (l_products.options.length>0) old_product=html_SelectValue(l_products);
    var l_sales_reps=l_td.nextSibling.nextSibling.getElementsByTagName('select')[0];
    var old_rep;
    if (l_sales_reps.options.length>0) old_rep=html_SelectValue(l_sales_reps);
    if (g_products[pThis.value] && l_products) {
    replace_select_list(l_products,g_products[pThis.value]);
    if (old_product) html_SetSelectValue(l_products,old_product);
    else {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_products',html_GetElement('pFlowStepId').value);
    get.add('TEMPORARY_ITEM',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_products) { replace_select_list(l_products,gReturn); if (old_product) html_SetSelectValue(l_products,old_product);}
    g_products[pThis.value]=gReturn;
    get=null;
    if (g_sales_reps[pThis.value] && l_sales_reps) {
    replace_select_list(l_sales_reps,g_sales_reps[pThis.value]);
    if (old_rep) html_SetSelectValue(l_sales_reps,old_rep);
    else {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_sales_reps',html_GetElement('pFlowStepId').value);
    get.add('TEMPORARY_ITEM',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_sales_reps) {replace_select_list(l_sales_reps,gReturn);if (old_rep) html_SetSelectValue(l_sales_reps,old_rep);}
    g_sales_reps[pThis.value]=gReturn;
    get=null;
    </script>
    <FOOTER>
    <script type="text/javascript">
    function getCellIndex(pRow,pCell)
    if (document.all) {
    for(var j=0;i<pRow.cells.length;j++)
    if(pRow.cells[j] == pCell) return j;
    return pCell.cellIndex;
    function fire_onchange()
    var td_manufacturer=html_GetElement('MANUFACTURER');
    var l_cellindex=getCellIndex(td_manufacturer.parentNode,td_manufacturer);
    var l_table=html_CascadeUpTill(td_manufacturer,'TABLE');
    for (var j=1;j<l_table.rows.length;j++) {
    var l_cell=l_table.rows[j].cells[l_cellindex];
    var l_select=l_cell.getElementsByTagName('select')[0];
    if (l_select && l_select.onchange) l_select.onchange();
    fire_onchange();
    </script>
    ON DEMAND PROCESS (get_products)
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select val from products
    where manufacturer=:TEMPORARY_ITEM)
    loop
    htp.prn('<option value="' || rec.val || '">' || rec.val
    || '</option>');
    end loop;
    htp.prn('</select>');
    end;
    Also does it make a difference if the temporary item (condition) is a string value rather than a numeric value?
    Thanks a lot!
    David
    Message was edited by:
    swosh

    Swosh,
    I think that this approach is better than the one from Vikas:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Upgrading to Windows 8.1 and Laserjet 1200 becomes an unknown device

    Here at work we still have some "old" printers working locally on some laptops. Recently we performed an upgrade of all our 8.0 devices to 8.1. After the upgrade none of the HP Laserjet 1200 printers is functioning. In the device and printers pane th

  • [ADF-11.1.2] Using Pageflow scope MB in pages is throwing TargetUnreachable

    Hi, I have a BTF with one MB "TempBeanVar" Configured as pageFlow scope. I then configured created one page (.jsff) which is called in above BTF. On that page: I have created a button with actionListener = <af:commandToolbarButton text="View" id="ctb

  • At line selection in OOps ALV

    Hi experts, How can i capture the line and the column selected in the OOps ALV as we have slis_selfield in generall ALV

  • Plant Maintenance notification

    Hi all, In notification (PM)  the I-button (blue-white) in the reference object screen area is not there for a one of the notification type. User wants this button is to be there. I checked configuration settings , screen category object for this not

  • Web form tester. don't run the form.

    Dear all, i am using oracle 8i and forms 6i. i am trying to run the web form tester but it give error. i gave the forllowing parameters: form : D:\Accano\logonscreen.fmx Userid : mis other parameters : useSDI= yes ( what is this?) Look and Feel: Gene