Need to pass value from check box to the pl/sql function in process

My requirement is to use single value check box and pass the flag value to the pl/sql function.
The function need to interpret the flag and execute accordingly.
In this case checkbox name is P1_DELETE and it returns Delete, if checked.
Anonymous block with in the process looks as follows:
declare
l_result VARCHAR2(1024);
begin
l_result := test_function(:P1_DELETE);
end;

Hi Visu,
checkboxes in APEX are handled as arrays, namely APEX_APPLICATION_GLOBAL.VC_ARR2. To pass and process the checked values of checkboxes in a pl/sql function or procedure you could use the following way, assuming you have a checkbox named P1_DELETE with a single return value of "Delete"
DECLARE
    l_checkbox_values apex_application_global.vc_arr2;
BEGIN
    l_checkbox := :P1_DELETE;
    -- calling function test_function processing the value
    test_function(NVL(l_checkbox(1), 'SOME_OTHER_VALUE'));
END;If the checkbox is not checked then the array at position 1 is null and you have to process that as you like.
If your checkbox would be a group than the array would be colon separated such as 1:2:3:4 etc. and you would have to loop the array like:
    FOR idx IN 1..l_checkbox.COUNT LOOP
        test_function(l_checkbox(idx));
    END LOOP;Hope that helps.
Andreas

Similar Messages

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

  • How to get the correct value from check box

    hi guys,
    here is a program to read data from IKPF.
    with the user tick on the check box, the program will retrive
    corresponding records based on the inventory counted (zstat) status.
    however i don't get the correct output with the following selection.
    Please advise where is going wrong. Thank you.
    IF ph_ncnt = 'X'.
        v_zstat1 = SPACE.
      ENDIF.
      IF ph_pcnt = 'X'.
        v_zstat2 = 'A'.
      ENDIF.
      IF ph_acnt = 'X'.
        v_zstat3 = 'X'.
      ENDIF.
       select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       b~menge into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and ( a~zstat = v_zstat3 OR
            a~zstat = v_zstat2 OR
            a~zstat = v_zstat1 )
         and a~gjahr = p_gjahr.

    hi guys,
    i'll use the following to get the desire result. This is a bit "stupid" but at least it gives me the correct result.
      IF ph_ncnt = 'X'.
        v_zstat1 = SPACE.
      ENDIF.
      IF ph_pcnt = 'X'.
        v_zstat2 = 'A'.
      ENDIF.
      IF ph_acnt = 'X'.
        v_zstat3 = 'X'.
      ENDIF.
    IF ph_ncnt = SPACE AND ph_pcnt = SPACE
                         AND ph_acnt = SPACE.
         message I799(SA) with 'Which data to print?'.
         stop.
      ELSEIF ph_ncnt = 'X' AND ph_pcnt = 'X'
                           AND ph_acnt = 'X'.
       select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and a~gjahr = p_gjahr.
      ELSEIF ph_ncnt = 'X' AND ph_pcnt = 'X'.
       select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and ( a~zstat = v_zstat1 OR
            a~zstat = v_zstat2 )
         and a~gjahr = p_gjahr.
      ELSEIF ph_ncnt = 'X' AND ph_acnt = 'X'.
      select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and ( a~zstat = v_zstat1 OR
            a~zstat = v_zstat3 )
         and a~gjahr = p_gjahr.
      ELSEIF ph_pcnt = 'X' AND ph_acnt = 'X'.
      select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and ( a~zstat = v_zstat2 OR
            a~zstat = v_zstat3 )
         and a~gjahr = p_gjahr.
      ELSEIF ph_ncnt = 'X'.
      select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and a~zstat = v_zstat1
         and a~gjahr = p_gjahr.
      ELSEIF ph_pcnt = 'X'.
      select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and a~zstat = v_zstat2
         and a~gjahr = p_gjahr.
      ELSEIF ph_acnt = 'X'.
      select awerks bmatnr bcharg aiblnr bzeili agjahr a~gidat
       bmenge azstat into table t_data
       from ikpf as a
       inner join iseg as b
       on aiblnr = biblnr
       and agjahr = bgjahr
       where a~werks in s_werks
         and a~lgort in s_lgort
         and a~gidat in s_gidat
         and a~zldat in s_zldat
         and a~zstat = v_zstat3
         and a~gjahr = p_gjahr.
      ENDIF.

  • How ?? Pass value from one procedure to the others.

    I'm thank you everyone visited my Thread.
    This is my abbreviate program. I've a procedure "proc_check_item" that have many conditions and "proc_item_number" get value (v_stmt)from "proc_check_item".
    -- proc_check_item --
    v_stmt varchar2(100);
    If conditions1 then
    v_stmt := 'and item_number between 1000 and 2000';
    package.proc_item_number(v_stmt);
    elsif conditions2 then
    v_stmt := 'and item_number >= 1000';
    package.proc_item_number(v_stmt);
    elsif
    v_stmt := 'and item_number <= 2000';
    package.proc_item_number(v_stmt);
    end if;
    -- proc_item_number(p_stmt in Varchar2) --
    cursor cur_01 is
    select item_01, ....
    from table_a
    where ...
    and ...
    &v_stmt <--- this point!!!
    How can i do to passed v_stmt from
    "proc_check_item" to "proc_item_number".
    I'm used &,||, ... its does not work pls. help me
    ---- If its right it should be -----
    cursor cur_01 is
    select item_01, ....
    from table_a
    where ...
    and ...
    and item_number between 1000 and 2000
    cursor cur_01 is
    select item_01, ....
    from table_a
    where ...
    and ...
    and item_number >= 1000
    It's look like at REPORT that i can used 'place holder parameter' to support this query but in this procedure !!
    How can i do..
    Thank you for your kindness ...
    Message was edited by:
    Anonymous
    Message was edited by:
    Anonymous

    Something like this:
    -- proc_item_number(p_stmt in Varchar2) --
    cursor cur_01(v_stmnt varchar2) is
    select item_01, ....
    from table_a
    where ...
    and v_stmt = ...
    open cur_01(p_stmt)

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • Pass values from one Taskflow to another

    JDev 11.1.1.5.0 ADF BC
    Use case: Need to pass values between two bounded taskflows. There are two different pages on two different taskflows and I need to pass values from one to another.

    Hi sahar
    you can set the value you want to pass to another taskflow in pageFlowScope
    and create input params in the another taskflow and set this pageFlowScope valu into that
    Params of TaskFlow
    you can refer the following link
    http://opreview.blogspot.in/2011/07/adf-how-to-pass-parameters-between.html
    Regards

  • How to implement Check box in the Rtf based on the value from XML datafield

    Hello All ,
    It would be great if any one can help me in implementing check box in the rtf based on the data filed value from the XML data.
    I need to get in the out put checked boxes like what we say Radio button Yes or No ( If Yes it should be marked ).
    If any one worked on this please help us...
    Thanks in Advance...

    Did you check the user guide,
    we have a section over there :)
    http://blogs.oracle.com/xmlpublisher/2007/05/22

  • Selecting Multiples Values from Multiselect Box

    Hi
    Here is my requirement ,
    Multiselect List Box should display Simulator_Type Values
    Simulator_Type Values           Values to search for in the column simulator type
    AC - small signal                              AC
    HB - Carrier                                    HB
    SP - Linear Noise                            SP - L
    SP - s parameters                           SP - s
    TR - Transient                               TR
    DC - operational point                     DC
    ET - Envelope Transient                  ET
    SSNA                                           SSNA
    [nothing]                                      nilDepending on the values selected in the multiselect values the data has to be dipayed where the value is in the simulator type column
    For Eg : AC - small signal is selected in the :p1_simulator_type multiselect box, The data where the word AC is in simulator_type column should display
    Examples of data in the simulator_Type column:
    SIMULATOR_TYPE
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    DC - operational point
    ET - Envelope Transient
    So , here if i select AC - small signal from the multiselect list box , then the data where "AC" is there in simulator_type has to be displayed , in this case the data associated with
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    has to be displayed...
    currently i have the report query below which is working but only when one simulator type is selected ....
    select
    * from   DW_RFA_JOBDATA
    where  RFA_SUBMIT_TIME >= :P1_START_DATE
    and RFA_SUBMIT_TIME < :P1_END_DATE    
    AND RFA_SIMULATOR_TYPE like '%'||:P1_SIMULATOR_TYPE||'%'Could any body please let me know how do i get data when multiple values are selected...
    Please let me know any further explanation is needed for the question
    Thank you
    Edited by: priyapinky on May 5, 2010 9:26 PM
    Edited by: priyapinky on May 5, 2010 9:54 PM
    Edited by: priyapinky on May 6, 2010 8:48 AM

    Hello,
    It seems to me like you don’t really understand how multi select items work in APEX. This type of items (we are talking about multi-select list, checkbox and the shuttle item) don’t really returned multiple values. They returned a single value that contains multiple segments, each include one valid option. By default, each segment is delimited with a colon (:). In your case it means that if you chose two values from your static LOV, the returned value will look similar to “HB:DC” (or any other combination of options). Now you need to work with this value.
    The way your RFA_SIMULATOR_TYPE column build, you can’t really work with the multi-select value, as you’ll never find a match to it, as this is actually an artificial value that only exist as a result of your multi-select.
    Regarding the new query you are trying, you wrote yourself that “i am getting the data with all the simulator_type select”, and that is correct. Where in this query you are using your filter (:P1_SIMULATOR_TYPE)? This is not the way to go.
    You need to break the compound value returned by your multi-select items, and work individually with each segment. You can do that in two ways. The simple one, as I already suggested, is to add another column that will contain only the code describing the simulator (similar to the returned value of the static LOV). In this case, using the instr() function you are checking if the column value is included in your filter (it’s a revered angle – you are actually checking if the single column value is included in your filter and not if the filter included in your column).
    The second option is a bit more complicated and it involves slicing the filter itself and dynamically build your query, using the “SQL Query (PL/SQL function body returning SQL query)” report option. In this case we are going to use the APEX built-in function APEX_UTIL.STRING_TO_TABLE(). The following is a very simple code example that you’ll need to adapt to your scenario:
    declare
      q      varchar2(4000);
      filter APEX_APPLICATION_GLOBAL.VC_ARR2;
    begin
      q := 'select * from emp where ';
      filter := apex_util.string_to_table('10:20');
      for i in 1..filter.count loop
        if i = 1 then
          q := q || 'deptno = ' || filter(i);
        else
          q := q || 'or deptno = ' || filter(i);
        end if;
      end loop;
      return q;
    end;In your case the parameter for the string_to_table is your filter item, and you can use LIKE as your comparison operator.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Passing data from check FM

    Hi,
    Wanted to know how to pass data from check FM to workflow container?
    We are not able to add parameters for event container as it is standard event.
    Can we set attribute of object ? I could not find macro for setting property.
    Expecting urgent help.
    Regards,
    Akshay

    Hi Akshay,
    Trying to pass data from check FM to workflow container is the wrong approach to use.  The purpose of a check FM is ONLY to see if the workflow should be started by the event or not.  You cannot and should not even attempt to change the event container in a check FM.
    What you need to do is to take a step back and think about your options:
    1. "Not able to add parameters ... as it is a standard event".  Well you can extend the event parameters on a standard event by creating a delegated subtype of the standard object type.  However if the event is raised by standard code this may not help you anyway.   It's worth reading the SAP Library doco on this as some types of events do pass additional information provided you define the event parameter names correctly, e.g. change document events will automatically pass the old/new value of certain fields.
    2. Is the data you are trying to pass related to:
    a) The object - then use attributes of the object instead to calculate the value
    b) The person creating the event - then use attributes of the event creator, i.e. as soon as the workflow starts, add a step to instantiate an instance of an object representing the user such as USR01 or USR01DOHR.
    c) Other standard data in the event container such as the calling program id, the date/time - any of that info can be passed to your workflow container and then used to derive further info from there.
    3. If the data you are trying to pass is only available in the standard calling application, then you need to find another way to raise the event or raise a custom event.  E.g. in a user exit or BADI.
    4. And one final option of last resort - create your own RECEIVER function module - this does allow you to fill the workflow container during the event linkage.  But I would still consider this a "last resort" option.
    Regards,
    Jocelyn
    Message was edited by: Jocelyn Dart

  • Pass Value From One Form to Another and Populate Join Table

    I have a table “std_controls” and a table “actual_controls”.  The standard controls table is updated with the expected business control or process.  The actual controls table is updated with the control or business process the company actually
    has in place.  These two tables may be updated at different times by different individuals.  Later I need to be able to map the actual controls to the standard controls.  I have done this before using a join query which then matched the primary
    keys and populates a new table with the joined keys.  What I would like to be able to do is this:  Have a form open, “form1” (which is where the standard controls are entered).  The user could then click a button which would open another form,
    “form2”, that listed all actual controls at that time from which they could choose.  The user could then select the actual control on “form2” they wanted to map to the current standard control on “form1”.  The user could select the actual control
    on “form2” by selecting a check box.  The effect of this mapping would populate my join table.
    I have seen other posts that describe doing something similar, but I need more help on how to actually set it up.  Thanks for your help.

    Hi jdmcleod,
    According to your description, I don’t understand clearly about your requirement.
    But I think you could access “form1”/”form2”’s control in either of “form1” or “form2”, so you could have a button in “form1” or “form2”, then in the click event get these forms control’s value (e.g. checkbox) and update the database.
    For example to access other form’s checkbox value:
    Dim f As Form
    Set f = Forms!OtherFrom
    MsgBox f.Controls("Check11").Value
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pass value from one page to another

    Hi All,
    "How to pass the value from one Flex page to anothere Flex
    page".
    In First Flex page contains One Inputtext and one button is
    there.After entering the data in inputtext box,the user clicks on
    the button then get the data from inputtext box and then i need to
    send that value to another flex page and display there.
    Can u tel me plz............
    Thanks & Regards,
    Nagarjuna.

    I believe you are thinking in terms of HTML and traditional
    page coding. As an old school ColdFusion guy I understand it is
    difficult to leave that behind. (at least it was for me.) Unless
    you literally have two different HTML pages that each have their
    own Flex app running in them you do not need to send data from one
    page to the next like you would with Web Forms. (If you are doing
    that you may want to simply write the data to a Shared Object, Pass
    it to a server to store and then feed back into the second Flex App
    when it loads or perhaps use the ExternalInterface to then pass it
    through as a series of URL parameters that can be loaded into the
    next Flex App.)
    In Flex you do not have to worry about loosing state between
    pages because there are literally no pages. Only different views.
    You would not "Send" the value from one page to another. You
    provide a mechanism for the second view to reference the same model
    or data object (most call them ValueObjects) that the first view is
    setting via the form fields.
    You would want to use a ValueObject in the first VIEW and
    then fill the object with the form data using setter methods on the
    object. For example set the fields onChange event to call the
    setter on the object and pass it the form fields value as the
    property. Alternately you could bind the values of the model
    directly to the fields so that they automatically obtain the data
    that is being filled in.
    Depending on how complex of an application you are going to
    build and how scalable it must eventually be you have many
    different options to choose from to allow the second View to use
    the data set but the first. However to make the application
    ultimately more scalable you are going to want to keep your view
    separated from the controller and that separated from the
    Model/ValueObject. (By seperated I mean in different classes.)
    I would suggest looking up the subject of MVC in Flex and
    also the Mediator Design pattern. There are many great sources of
    information.
    Here are a few links that may help with ideas.
    http://flexblog.faratasystems.com/?p=246
    http://pages.cpsc.ucalgary.ca/~heatond/mediator/
    http://livedocs.adobe.com/flex/3/html/help.html?content=introbd_2.html

  • The Bold, Italic, Underline functions have disappeared from the screen as have the check boxes at the beginning of the intro line

    The bold, italic, underline, color hi-lite and other boxes in that line suddenly disappeared from the screen and that section remains blank. However when writing a new message if I mouse over the area the boxes re-appear but without their previous alliterations. Also the system does not allow me to color hi-lite text and shows all the colors in a very fuzzy format when I mouse over where the hi-lite box used to be. Additionally the check box at the front of the email subject line has also disappeared but, again, if I mouse over & click it will perform a delete or other function. Need help!

    Hi ITBobbyP,
    According to your description, there are two text boxes at the bottom of the tablix and both of them are outside the tablix. When you export the report to excel, the upper text box could not be displayed.
    Microsoft Excel places limitations on exported reports due to the capabilities of Excel and its file formats. The following limitations apply to text boxes and text:
    Text box values that are expressions are not converted to Excel formulas.
    Text boxes are rendered within one Excel cell.
    The text effect "Overline" is not supported in Excel.
    Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
    To troubleshoot the problem, please make sure that the text box meet the limitations. In addition, please validate that visibility of the text box is set to true, it’s better to set CanGrow property of text box to false.
    If the problem remain unresolved, i would appreciate it if you could give us detailed information about the report, I would be appreciated it if you could provide sample data and screenshot of the report. It will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Passing value from javascript function to servlet

    Hello everybody,
    i need to pass parameter from javascript function to servlet.
    what i wrote is :
    function callPopulateServlet(t)
    var h =document.NewRequest.services;
    var y = t.selectedIndex;
    alert(h.options[y].value);
    var id=h.options[y].value;
    <%session.setAttribute("id",id);%> // am getting error at this point
    document.NewRequest.submit();
    with this id am quering values from database through servlet.
    any body knows plz help me.
    thanks,
    anil.

    this is the error am getting
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • Value of Check Box

    Hi,
    I want to give a value to the check box using the following code:
    <input type="checkbox" value="SelectAll" onclick="$f_CheckFirstColumn(this)" /> -- This code has been put in the column heading of the report generated using the following sql
    select apex_item.checkbox(1,rownum),ename,empno
    from emp;
    I want a check box which can select all the check boxes along with i also want a name of the check box saying select All. is this possible?
    Thanks
    VG

    Hello,
    Your code will check all the checkboxes I believe. If you want the text Select All in front of it or after it, you can just type that after your input tag.
    Or did I misunderstand your question?
    Also I guess you have your example from Carl's website http://apex.oracle.com/pls/otn/f?p=11933:5
    If you type in the search field checkbox in you'll see some other examples.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

Maybe you are looking for

  • Why does Yosemite crash to logon after waking up (+ Safari crashes)

    Since Yosemite even a freshly installed OSX crashes to Logon on my MacBook Pro, mid 2010, 8Gig, Safari crashes all the time and in general the performance is sub par. Here's my etrecheck: Problem description: * after waking up, the system keeps crash

  • Re: How long to repair before I can cancel?

    I reported a fault firstly on one of my landlines on the 4th August. I returned home from holiday then to find my Alarm was faulting and there was no signal on the phone whatsoever. I phoned to report the fault and they said it would take 4 days to r

  • Is it possible to import, only changes since last import using imp/impdp

    on our production environment, we export three times a day.(10.00AM,1.00PM,6:30PM) and We only want to import the evening export - we have to kind of make sure that if the online system fails _ we have a data up to yesterday evening. i.e. we want a s

  • SharePoint 2010 Performance Zoom In Zoom Out Button Gantt View

    Hello guys, I'v got a question. I've implemented a Zoom In / Zoom Out Button with JavaScript above the Gantt View, but the performace is not that good. When I presse the Buttons in the ribbbon menu it reacts very fast, but the other Buttons react in

  • New tab setting keeps resetting to Google, how to make it stay empty?

    I have searched for a way to make my new tabs, which currently open to Google, open as empty instead. I found the way described on this site, which is to go in about:config and change the URL of browser.newtab.url to about:blank. Then, I closed Firef