Check Box item in oracle forms

Hello experts,               I am new in oracle forms. I am using oracle forms 11g,weblogic server 10.3.5,oracle database 11g at windows 7 platform. I have a simple data block from base table.there is a tabular form is selected, It has four rows(records). Now I have to make 4 check boxes adjacent to records in data block in another data block.Now I have to make functionality in which only those records should be inserted into database table for which corresponding (in front of the record) check box is checked. Thank you regards aaditya.

Hi,
Commit_Form built-in function commits all the available data base fields.  So you have to use separate insert into statement to complete your task.
Like...
for i in 1 .. 4
loop
     first_record;
     if :chk_box='Y' then
          Insert into <table_name>  values(field1,field2,....);
     end if;
     next_record;
end loop;

Similar Messages

  • To Calculate total while check box enabled in oracle forms.

    hi All,
    I am Using Oracle 10g forms. I have a form developed with some 15 fields in it and 10 Records in it.
    i have a field called TONS and another CHECKBOX Fied.I have a TOTAL field which is located below to TONS field.
    Now By using this TOTAL Field, i wanted to calculate TONS for records only when CHECKBOX field is enabled.if CHECKBOX field is disabled then
    TOTAL field Should not calculate the Tons field. how can i do it? Pls Help me...
    Thanks in Advance.

    If I were coding this, I would use a Calculated field to total your TONS field. Your Calculated field total would be stored in a hidden field and your checkbox code would simply assign the value from the hidden field to your displayed total field or set the displayed total field equal to null depending on the state of your checkbox.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Event to use for Creation of a Check box on Warehouse master Form

    Hi experts
    I have created one check box on Warehouse Master form in AfterMENUClick Event. It works fine if I open the form on Menuclick . But If I open the Warehouse master form by Link button from any document, it does not show the check box. I also want to deactive the checkbox if once it checked. So, I do some coding in Data_Load event. It also works fine If I open the form by Menu click. But if I open the form by Link button it gives error " Invalid Item Id ". 
    So I want to know which event I should use to create the check box and which Event I Should use to Deactive the Check box

    Thanks Nagy for quick reply
    I use the following code for creation of check box
    <B1Listener(BoEventTypes.et_FORM_LOAD, False, New String() {"62"})> _
            Public Overridable Sub OnAfterFormLoad(ByVal pVal As ItemEvent)
                Dim ActionSuccess As Boolean = pVal.ActionSuccess
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                'ADD YOUR ACTION CODE HERE ...
                Dim oForm As Form
                Dim oMatrix As Matrix
                Dim oItem As Item
                Dim sysItem As Item
                Dim BinCheck As CheckBox
                Dim BinLabel As StaticText
                Dim cmbBinCode As ComboBox
                oForm = B1Connections.theAppl.Forms.ActiveForm
                oForm.PaneLevel = 1
                sysItem = oForm.Items.Item("2000002010") 'Excisable check box
                oItem = oForm.Items.Add("BinChk", BoFormItemTypes.it_CHECK_BOX)
                oItem.Left = sysItem.Left
                oItem.Top = sysItem.Top + 20
                BinCheck = oItem.Specific
                BinCheck.Caption = "Bin Enabled"
                BinCheck.DataBind.SetBound(True, "OWHS", "U_BinEnabled")
            End Sub
    It gives error on sysItem = oForm.Items.Item("2000002010") line Invalid Item Id
    Plz check and tell the problem
    Regards
    Gorge

  • Check box item visual attributes

    Hi,
    I set an item visual attributes like below
    background color gray15
    Font weight demibold
    Font style Plain
    Font spacing Dense
    But when executing the form this check box item does not appear clearly, it is not readable, could you suggest me some visual attributes setting to make a check box item more readable?
    Thanks you very much.

    I think the problem is related to enabled of set_item_property of this item when it is set to property_false, the enabled property_false does not allow the visual attributes setting to display the item more readable, do you have any idea to display the item more readable when enabled is set to property_false?
    Thank you very much for your suggestions.

  • How do  we check the check box items based on the databse fields.

    Hi All,
    I have a requirement like as mentioned below#
    1. I have a combox box whcih i will be populated from database.
    2. I have created two check box as "Stategric " and "Non Stategric".
    3. Now when i select the combox box condition i need to select the check box items.
    4. But the problem is i wil be knowing weather it is a stategric or Non stategirc based on the database column.
    5. How do i need to map the database point of view and correlacte with javascript pont of view.
    6. Do we need to write any Application process to achieve this task and who we can do that.
    Thanks,
    Anoo..

    Hi VC,
    As per my understanding the code should be placed between --.
    Based on this i have placed the code
    function setCheckbox(pThis, pItem){
    alert('inside');
        var l_code = '';
        // Get checkbox name
        rName = document.getElementsById('P1_ENG_BAU').firstChild.name;
    alert("The value is"+rName);
        // Fire AJAX
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CHECKBOX_LIST',0);
        get.add('F120_COMPANY',pThis.value);
        gReturn = get.get('XML');
        if (gReturn) {
          var values = gReturn.getElementsByTagName('value');
          var messages = gReturn.getElementsByTagName('message');
          // Build the checkbox
          for (i=0; i<values.length; i++) {
            var rValue = values.firstChild.nodeValue;
    var rMessage = messages[i].firstChild.nodeValue;
    l_code+='<input id='+P1_ENG_BAU+'_'+i+' type=checkbox value='+rValue+' name='+rName+'>';
    l_code+='<label for='+P1_ENG_BAU+'_'+i+'>'+rMessage+'</label>
    document.getElementsById('P1_ENG_BAU').innerHTML = l_code;
    Correct me if iam understanding is wrong.
    Thanks,
    Anoo..
    Edited by: Anoo on May 31, 2012 11:04 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to disable copy option for a text item in oracle forms

    Hello experts,
                  I am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a text item in my oracle form and I have to disable to being copy from a text item in oracle forms.Actually I have to make two text item.First text item to type a password and another text item is also to type password.Here I want that the data from first text item should not be copy through the use of mouse or keyboard shortcut key.
    thank you
    regards
    aaditya

    Thank You To reply, Actually doing so as you said,My problem would not be solved.This would hide data in text item than I will not be able to copy that but in my case the data should not be concealed.Actually I have to make a Form to  User registration and here is a strictly boundation to have a right email address of user.There would two text items for this purpose as: N_User_Email------> to type email address in text item.Here user would not be able to copy text written from N_User_Email R_User_Email  ------> to type email address again as in N_User_Email.

  • How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods

    Hi All,
    How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
    This is a enhancement requirement.
    When ever user enter value in field 1 then automatically cursor should go to next field.

    Hello Bobb,
    You can create a trigger(when-list-changed) for each list item where you could:
    1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
    or
    2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
    Second option is much faster(only an 'if clause')
    Hope this helps.
    Regards,
    Alex

  • Complete filter cannot be displayed by check box item - How to solve

    Hi,
    I have created a web template which has a table, chart and the navigational block.
    When i execute the report and further when i want to drill down i use navigational block.
    When i filter the value suppose country in the navigational block by clicking on it, i should be able to see the county values, but i get the error "Complete filter cannot be displayed by check box item".
    How can i solve the problem by getting the filter values, when i further drill down
    Thanks
    rani

    it is a awfull conundrum/and is why I began ONLY using optimum as a web mail/ But  Now yes Now even this is becomming a nasty little night mare'   I see 2 email windows,simotaniously'
    and  Then I se FLASHES of words,stuck in address bar..
    weeks Later I see LAZSLO '
    This lead me to a Univeristy'IMAGINE THIS'
    but is it also a company and Optimum has the web mail as well as tec support OUTSOURCED
    "THEY CAN N OT HELP YOU PAST dinner time,save your breath! 
    BUT WHAT IS HAPPENING WITH ALL THESE points for answers APPLE BOYS AND GRILS?
    HOW do you all get points to the  Happyness to then say TOUCH DOWN?
    remarkably fantastic!'for you not me
    linda really would LIKE TO KNOW WHos doing your mail latley'
    peace

  • Update check box item

    Hi All,
    Thanks for any assistance.
    I am using Apex 4.2.0.
    I have a check box item that has a list of documents, I would like to check off the documents as they are loaded to another table. What would be the easiest why to accomplish this?
    Thanks

    To be honest I am not sure how to use that so didn't try. Could you provide me with a sample of the code that i would use. Below is what I was trying to do however all items are being checked and not just the items that match.
    select
    apex_item.checkbox(1,imm_document_type.id,'CHECKED',NULL)
    "Select",
        DESCRIPTION
    FROM   IMM_DOCUMENT_TYPE,
           IMM_DOCUMENTS_TEMP
    WHERE IMM_DOCUMENT_TYPE.ID = IMM_DOCUMENTS_TEMP.DOCUMENT_TYPE_IDI would really like to put this in an lov checkbox values though and not a report. Can I accomplish that?
    Thanks
    Edited by: Marie on Dec 6, 2012 6:16 AM

  • Check box Item property in mutiple record block

    Hi,
    I have migrated a number of forms from 6i to 10g. All seems to be working apart from a problem with the display of check boxes that are part of a multiple record block. The item property for the checkbox has font weight set to bold and this works fine on the 6g version. On the 10g version it is displayed as normal font weight.
    Any other items in the record, text items etc are displayed in bold correctly.
    As this seems to affect a lot of forms is there some patch/fix that I should have applied or is this just the way it is?
    I am trying to use set_item_instance_property to set them manually but that doesn't seem to make any difference.
    Thanks in advance and Happy Christmas/New Year.

    Problem solved following response from Oracle support desk -
    UPDATE
    ======
    Hi Dave,
    When using lookandfeel=generic, the colors for different Windows items (e.g., menu, check
    box, window background ...etc) are taken directly from the Operating System
    (OS) user settings. I tested the issue with lookandfeel=oracle and with
    colorScheme set to different values, and check box tick in this case takes the
    same color as the color scheme used.
    I suggest then using dark color scheme to give you a similar effect as it was in Forms 6i. for example:
    colorScheme=Titanium

  • Preventing disabling of check box - item okay in MIGO

    Dear all,
    In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
    Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
    Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
    Experts suggestion is required in this regard.
    Thanks in advance.
    Regards,
    M.M

    Hi Magesh,
    it is possible. use Badi enhancement
    MB_MIGO_BADI goto
    IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    tell your abaper to put the logic like
    parent ID and subcomponent ID need to select
    if either of two is not selected
    then error message will prompt not to save the GR doc since subcomponent is unselected.
    reference field EKPO check PSTYP
    hope this help you.
    regards,
    Maia
    Edited by: Maia on Apr 18, 2008 3:07 PM

  • How can I add check boxes without using the form widget?

    I would like to use check boxes for our facets for our search engine.  You can see an example below.  Is there anyway to do this without using the form widget?
    PJM - Site Updates

    It is not possible to accomplish this with the Muse's Form Widgets. You may need to look for other online solutions and fetch the source code and add to the Muse page using the Insert HTML feature.
    Cheers,
    Vikas

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • List Item in Oracle forms

    Hello, I am using oracle weblogic 10.3.5 with oracle forms 11g at windows 7 platform.I have an oracle form with a list item(database item). Now I have attached a record group from another database table to populate list item.My list item is by default set at null value but I want  to show a particular value in list item as when new instance  of list item is occurred:
    |                 ABC                                    |             
    |__________________________________|
    it is a list item.It has 4 values as
    Name          Value
    ' '                    NULL
    A                    1
    B                    2
    ABC                3
    D                    4
    and when list item instance is loaded then I want to show the ABC (able name) and  3 (value) in list item.
    thank You
    regards aaditya

    Block Level Trigger: When new record instance
    :list_item:=3;

  • Problem with List Item in oracle forms

    Hello Experts,        
                         I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
    I have 3 database tables say(tbl_city,tbl_state,tbl_address).
    tbl_city
    C_ID
    C_name
    S_ID
    0
    None
    0
    1
    XYZ
    1
    2
    AS
    2
    3
    AXD
    2
      tbl_state
    ID
    s_ID
    S_Name
    0
    None
    1
    XY
    2
    ASD
    tbl_address
    A_ID
    A_Street
    S_ID
    C_ID
    1
    ABC
    1
    1
    Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
    Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
    -- here item_nm-->List item Name,  sel_val & sel_val2 for selecting C_ID and C_NAME,   tablNm---->tbl_CITY,  whr for where condition,   mtch--->selected value of list_State(list item in form)
    PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
    group_id RecordGroup;
    group_name varchar2(10) :='abc';
    status NUMBER;
    query1 varchar2(350);
    item_name varchar2(20);
    match varchar2(50);
    BEGIN
        match:=mtch;
        item_name:=block_nm||'.'||item_nm;
      group_id := find_group(group_name);
    if not id_null(group_id) then
    delete_group(group_id);
    end if;
    --if whr='' then
    --    match:='0';
    --    end if;
    query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
    message(query1);
    group_id := Create_Group_From_Query(group_name,query1);
    /* Select statement must have two column*/
    status := Populate_Group(group_id);
    Populate_List(item_name,group_id);
    exception
        when others then
        message('error');
    END;
    I am not  able to guess what trigger  in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
    Thank You
    regards
    aaditya

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

Maybe you are looking for

  • USING LONG ETHERNET CABLE FROM HUB TO VISION BOX

    Hi, just ordered bt vision and wondered if anyone could tell me if it is ok to connect the hub to the vision box with a long Ethernet cable, 20m long. From the video clips on setting the system up they say if over 2 meters you must use power adaptors

  • Macbook Pro not recognising lens correction

    Its probably an easy fix, but my old iMac 2008 version works fine, recognising all of my lenses (Nikon) in the Develop Module simply by checking the 'enable lens profile' box. However, the Macbook Pro Retina 17 simply gives me a choice of 8 Nikon len

  • Connecting PC to Wireless network on a mac

    I have a Modem and router hooked via Ethernet into my Emac. How can I connect a PC running XP with a wireless USB adapter up so that it too can get internet?

  • HT5559 Request for a password...?

    Hi, So i've found that 2 freeware program I use for work do not open. Its not the programs itself as older versions of the program works (they have bugs which means i cant use certain functions). I've attempted to re-install the program's and they st

  • Algorithm 'AES' has expired  exception while starting UCM server

    Hi, I am using Oracle UCM11g. While starting UCM server i am getting following exception. Error encountered encrypting the field 'JdbcPassword' with scope 'system'. The decryption key for category 'db' and encoding type 'AES' is missing. [ Details ]