How to check a checkbox

Hello,
I am using the interapplication communication API classes from my c# program. I read an  previously generated xml and write the data to the live cylce pdf form
I use the below classes and use the IField.value( myField.Value = xmlcolValue;) to write to the form. It works fine for all the text boxes, But is not writting/selecteing/checking  the checkboxes.
I have tried using the IFeild.setExportValues(..) but it gives me an error "Security setting prevent me from doing that".Could you please let me know how to solve this issue?
CAcroAVDoc  
Thank you
IAFormApp  IFields   IField

Hello,
Still searching for the same issue. Does anyone have a solution/fix for this?
Thanks

Similar Messages

  • How to check a checkbox field value in fw9 PDF form

    Hi,
    I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
    All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
    What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
    Thank you,

    Hi Simon,
    I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
    Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
    Please help me,
    Thanks you,

  • How to check whether checkbox is checked or not and to get label if checked

    Hi,
    I've used checkboxgroup, and i'm populating it dynamically using attribute node & attribute value.. like this
    IPrivateTestView.IWelcomNode wNode =wdContext.nodeWelcom();
         IPrivateTestView.IWelcomElement wEl,wE2,wE3;
         wEl=wNode.createWelcomElement();
         wNode.addElement(wEl);
         wEl.setWelValue("Welcome Boards");
         wE2=wNode.createWelcomElement();
         wNode.addElement(wE2);
         wE2.setWelValue("Traditional Welcome");
         wE3=wNode.createWelcomElement();
         wNode.addElement(wE3);
         wE3.setWelValue("Photograph");
    now i want to check whether checkbox is checked and how many checkbox has been checked and then i want that label values of checked boxes.. so pls help me out. if possible give me some sample coding...

    CheckBoxGroup.texts -> Welcom.WelValue
    In controller method (e.g. action handler):
    IWelcomNode node = wdContext.nodeWelcom();
    for (int i = 0; i < node.size(); ++i)
      IWelcomElement e = node.getWelcomElementAt(i);
      if (node.isMultiSelected(i))
        String text = e.getWelValue();
        /* checkbox #i is selected and variable "text" contains the text */
    Armin

  • How to check the checkbox of Adobe Installer with the Aplescript??

    Hi All,
    am trying to Install Adobe Flash Player thru stand alone Installer, I want to check the check box and need to click on Install button,
    Whem am trying to get the entire contents of window thru UIElementInspector, am unable to get the contents of checkbox and Install buttons..
    I just tried myself with the below script to click the checkbox, but did not succeed, error saying unable to get the checkbox.. Pls suggest how to check..
    tell application "System Events"
        tell process "Adobe Flash Player Install Manager"
            set frontmost to true
            click the checkbox "I have read and agree to the terms of the Flash Player License Agreement" of window "Adobe Flash Player 11.5 Installer."
        end tell
    end tell
    Pls check the below link to view the image of the Adobe Flash Player Installer.
    https://docs.google.com/document/d/1yzyBTrvi94QxjlEAlcbudOBpXiTGPEI2LA3D1iEo8Gw/ edit

    I'm working on a similar script, but when I execute the script, I run into this error:
    error "System Events got an error: Can’t make {563, 234} into type list." number -1700 from {563, 234} to list
    Any ideas? Here's the background: I'm trying to click the search box on this page: http://www.alexa.com/siteinfo/payeasenet.com
    Here's my UI Inspector results of said element:
    <AXGroup>
         <AXScrollArea: “”>
          <AXWebArea: “”>
           <AXGroup: “”>
            <AXGroup: “”>
             <AXTextField: “Enter a search query”>
    Attributes:
       AXRole:  “AXTextField”
       AXSubrole:  “AXSearchField”
       AXRoleDescription:  “search text field”
       AXChildren:  “<array of size 0>”
       AXHelp:  “”
       AXParent:  “<AXGroup: “”>”
       AXPosition:  “x=550 y=212”
       AXSize:  “w=214 h=30”
       AXTitle:  “Enter a search query”
       AXDescription:  “”
       AXValue (W):  “”
       AXFocused (W):  “1”
       AXEnabled:  “1”
       AXWindow:  “<AXWindow: “Payeasenet.com Site Info”>”
       AXSelectedTextMarkerRange (W):  “(null)”
       AXStartTextMarker:  “<AXTextMarker 0x60800024af80 [0x7fff758b4eb0]>{length = 24, bytes = 0xbd040000000000006024c514010000000000000001000000}”
       AXEndTextMarker:  “<AXTextMarker 0x600000248a30 [0x7fff758b4eb0]>{length = 24, bytes = 0xbf0400000000000040420c17010000000100000001000000}”
       AXVisited:  “0”
       AXLinkedUIElements:  “(null)”
       AXSelected:  “0”
       AXBlockQuoteLevel:  “0”
       AXTopLevelUIElement:  “<AXWindow: “Payeasenet.com Site Info”>”
       AXNumberOfCharacters:  “0”
       AXSelectedText (W):  “”
       AXSelectedTextRange (W):  “pos=0 len=0”
       AXVisibleCharacterRange (W):  “pos=0 len=0”
       AXInsertionPointLineNumber:  “0”
       AXTitleUIElement:  “(null)”
       AXAccessKey:  “(null)”
       AXRequired:  “0”
       AXInvalid:  “false”
       AXPlaceholderValue:  “”
       AXARIABusy:  “0”
    Actions:
       AXPress - press
       AXShowMenu - show menu
       AXScrollToVisible - AXScrollToVisible

  • HOW TO CHECK THE CHECKBOX VALUE WITH SQLCE DATABASE

    Hai All,
       Good Day! I am using VB in Visual Studio 2008. I have a form with check boxes and one button control. If i selected the check box and then click the button, check the database table field and check box text are equal. if both are equal then
    how to check?
     I have tried it. The code is:
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim conn As New SqlCeConnection
    Dim cmd As New SqlCeCommand
    conn.ConnectionString = "DataSource = E:\Vbprojectex\WindowsApplication3\WindowsApplication3\Database1.sdf"
    Try
    cmd.Connection = conn
    conn.Open()
    If CheckBox1.CheckState = 1 Then
    cmd.CommandText = "SELECT Aerator FROM ttabpagelist where Aerator = CheckBox1.Text"
    TextBox1.Text = 1
    End If
    cmd.ExecuteNonQuery()
    Finally
    conn.Close()
    End Try
    End Sub
    End Class
    Thanks & Regards Sasi ................. Go Green

    probably something like (ofc below will never give result since Aerator can't have 2 values, you will have to adjust the second check box column obviously)
    Try
    cmd.Connection = conn
    conn.Open()
    dim strsql as string = "= "SELECT Aerator FROM ttabpagelist "
    Dim whereConcatenator As String = " WHERE "
    Dim Wherestatement As String = String.Empty
    If checkbox1.checked = True Then
    Wherestatement += whereConcatenator
    Wherestatement += "Aerator = " & checkbox1.Text
    whereConcatenator = " AND "
    End If
    If checkbox2.checked = True Then
    Wherestatement += whereConcatenator
    Wherestatement += "Aerator = " & checkbox2.Text
    End If
    cmd.commandtext = strsql & wherestatement
    TextBox1.Text = 1
    End If
    cmd.ExecuteNonQuery()
    Finally
    conn.Close()
    End Try

  • How to check a checkbox in batch file

    Hello Guys,
    Heres an easy for you guys but nightmare for me question: I'm writing a batch file to login to sharepoint site. But I need to be able to check the "keep me signed" box also. How do I make my batch file to auto check that?
    I will attach my codes and site link for you guys to find out what the "checkbox" is called...
    Thank You in advance..
    The link is http://fwmc.sharepoint.com
    Here is my code: 
    set WshShell = WScript.CreateObject("WScript.Shell")
    call WshShell.Run("http://fwmc.sharepoint.com", 1, false) 
    WScript.Sleep 2000
    WshShell.SendKeys "[email protected]"
    WScript.Sleep 2000
    WshShell.SendKeys "{TAB}"
    WScript.Sleep 2000
    WshShell.SendKeys "userpassword"
    WshShell.SendKeys "{TAB}"
    WScript.Sleep 2000
    WshShell.SendKeys "{ENTER}"
    WScript.Quit()

    Heres an easy for you guys but nightmare for me question: I'm writing a batch file to login to sharepoint site. But I need to be able to check the "keep me signed" box also. How do I make my batch file to auto check that?
    This is a nightmare for you because the SendKeys method cannot be relied upon. Why? Because you can never be sure where the current focus is. While it is possible to place a tick mark by sending a space (instead of ENTER!), you will find that it will work some
    of the time and it won't some other times. Any unexpected pop-up will derail your script. If you need robust code then you must avoid SendKeys.

  • How to check the checkboxes that are dynamically displayed in the browser

    Hi
    Here the requirement is ,I am dynamically diaplaying the text boxes based on the data captured from the database.Here depending upon the number characters in Database,related that much of checkboxes will display.How can i provide Javascript client event handling in this without knowing the checkbox ID'.
    Needs urgent reply,
    Regards
    Usman

    code to check all check boxes in a page.
    <body>
    <SCRIPT language=JavaScript>
    function doCheckAll()
      with (document.dam) {
        for (var i=0; i < elements.length; i++) {
            if (elements<i>.type == 'checkbox' )
               elements<i>.checked = true;
    </SCRIPT>
    <FORM  name=dam>
    <INPUT  type=checkbox value=1>
    <INPUT  type=checkbox value=2>
    <INPUT  type=checkbox value=3> <br>
    <INPUT  type=checkbox value=4>
    <INPUT  type=checkbox value=5>
    <INPUT  type=checkbox value=6> <br>
    <INPUT  type=checkbox value=7>
    <INPUT  type=checkbox value=8>
    <INPUT  type=checkbox value=9> <br>
    <INPUT onclick=doCheckAll() type=button value="Check all">
    <INPUT type=reset value="Reset">
    </FORM >
    </body>
    How you are generating check boxes? if you are generating checkboxes then you would also be generating ids for them. why cant you use them?
    Regards
    Raja

  • How to check a checkbox by default with personalization

    Hi,
    Screen: ARXCUDCI (Standard Customer screen in Receivables)
    Problem: I want the checkbox "Show only active addresses" to be checked by default.
    I've tried the following personalization
    Condition
    Trigger event: WHEN-NEW-FORM-INSTANCE
    Level: Site
    Actions
    Type: Property
    Object type: Item
    Target Object: CTRL.ACTIVE_SITES
    Propertyname: Value
    Value: "A"
    When pressing Apply now the checkbox gets checked, but when opening the form again the checkbox remain unchecked.
    Can anyone help me with my annoying problem?

    Found out how...

  • How to checking my checkbox with a listbox

    I have a new form where I would like to check automatically my checkbox with a choice from listbox.
    I have a listbox with three values in french "Utilisateur" - "Comptable" and "Membre direction".
    I would like when the user has selected "Utilisateur", my checkbox with value "OJV_OFFICE_UTILISATEURS" has checked or "Comptable" checkbox with value "OJV_OPF Caissiers"
    Can you help me.
    Thanks

    Look at this previous post:
    https://forums.adobe.com/thread/1506686
    To modify the script to your form, you could try this as the custom validation script for your combo box:
    if (event.value=="Utilisateur") {
    this.getField("OJV_OFFICE_UTILISATEURS").value = "Yes"; 
    this.getField("OJV_OPF Caissiers").value = "No";}
    else if (event.value=="Comptable") {
    this.getField("OJV_OFFICE_UTILISATEURS").value = "No"; 
    this.getField("OJV_OPF Caissiers").value = "Yes";}
    Make sure you have the "Commit selected value immediately" option selected.

  • How to check a checkbox in a CheckListBox

    I created a checklistbox with 6 items. Now I want to check some of the items based on the values of some project settings. I tried this, but it doesn't work:
            With My.Settings
                lstItems.Items(0).checked = .InstallFavorites
                lstItems.Items(1).checked = .InstallRecent
                lstItems.Items(2).checked = .InstallShare
                lstItems.Items(3).checked = .InstallGather
                lstItems.Items(4).checked = .InstallEnvelope
                lstItems.Items(5).checked = .InstallDates
            End With
    I also tried doing it by referencing the text of each list item, e.g., 
    lstitems.items("Favorites").checked = .installFavorites
    That doesn't work either. I also want to change the project settings based on whether the user has checked an item, like this:
            With My.Settings
                .InstallFavorites = lstItems.Items(0).checked
                .InstallRecent = lstItems.Items(1).checked
                .InstallShare = lstItems.Items(2).checked
                .InstallGather = lstItems.Items(3).checked
                .InstallEnvelope = lstItems.Items(4).checked
                .InstallDates = lstItems.Items(5).checked
            End With
    Of course, that doesn't work either.
    How do you check an item in a checklistbox, and/or determine whether an item has been checked?
    Robert Homes

    Hi,
     You can use the GetItemChecked and SetItemChecked methods to get and set the checked state of CheckedListBox items like this.
    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    With My.Settings
    .InstallFavorites = lstItems.GetItemChecked(0)
    .InstallRecent = lstItems.GetItemChecked(1)
    .InstallShare = lstItems.GetItemChecked(2)
    .InstallGather = lstItems.GetItemChecked(3)
    .InstallEnvelope = lstItems.GetItemChecked(4)
    .InstallDates = lstItems.GetItemChecked(5)
    End With
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    With My.Settings
    lstItems.SetItemChecked(0, .InstallFavorites)
    lstItems.SetItemChecked(1, .InstallRecent)
    lstItems.SetItemChecked(2, .InstallShare)
    lstItems.SetItemChecked(3, .InstallGather)
    lstItems.SetItemChecked(4, .InstallEnvelope)
    lstItems.SetItemChecked(5, .InstallDates)
    End With
    End Sub
     Sorry Armin, i am a slow poster and did not see your reply until now.  Did not mean to duplicate the answer.  8)
    If you say it can`t be done then i`ll try it

  • How to check lock status of field in current document?

    Hi,
    How to check the status of field in current document(master agreement), that is whether its locked or not.
    I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
    IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
    Is there any way to get current document field status?
    Thanks,
    Saloni

    Hi,
    If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
    isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
    Meaning, if the box is checked, it will return a value = true and if not then false.
    Hope this helps,
    Regards,
    Vikram Shukla

  • How to uncheck a checkbox using Screen Variants?

    Hi Masters!
    Anybody knows how to uncheck a checkbox that is already checked by default?
    I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn't work), but at runtime it always shows the checkbox checked.
    At the same transaction there is a unchecked checkbox by default witch I can check it with a screen variant, but somehow I can't do the other way around...
    Any suggestions?
    Many thanks in advance,
    José Omar

    I checked the code and found something interesting. The
    variable I'm trying to uncheck is GV_WITH_CONTACT_PERSON.
    It's declaration:
    DATA: GV_WITH_CONTACT_PERSON TYPE XFELD VALUE 'X'.
    At the initialization of the program (at the first screen module):
    PROCESS BEFORE OUTPUT.
    MODULE INITIAL_STATE.
    And inside the MODULE INITIAL_STATE there is also:
    MOVE 'X' TO GV_WITH_CONTACT_PERSON.
    So there are places in the code that the checkbox is checked.
    Now we get another problem. I don't now when the values set at a screen variant are inserted in the screen. Is it possible that the code itself is overwriting the value set with a screen variant? Or is this not possible at this point in the code?
    Many Thanks,
    José Omar

  • How to use a checkbox to toggle visibility of a Bar or Line on a Graph

    I came across a tutorial but can't seem to get it working properly.  Would someone be able to better explain how you can use checkboxes on/off to toggle the visibility of a line or bar on a graph?  I know you can do this directly within the graph's legend, but my legend is so large that it doesnt fit on my screen, so I need to take an alternative route.
    This is the tutorial i'm referencing:
    http://analysis-reporting.blogspot.com/2009/06/formatting-tricks-2.html
    Here is a screenshot of my dashboard. I want to code the checkbox to turn visibility on/off of the blue bar, the blue bar gets its values from Row 3 Colums B to F:
    http://img266.imageshack.us/img266/3838/testah.jpg
    Any help would be greatly appreciated!

    It appears that you're missing the logic for the check box.  There needs to be a cell whose value changes based on the check box's status (1 for checked, 0 for unchecked).  Do this choosing 'destination' in the check box's options and setting it to a cell in your spreadsheet.  The default values are 1 for checked, 0 for unchecked.  Then, you should have the values for your blue line in a table, but the actual line graph should be driven from an identical table that gets its information from the first table (confusing?).  The logic in the 2nd table should read:   =IF(Control Cell = 1, Actual Value, "")
    What this does is if the check box is checked, then the 2nd table will read the same as the first, and your values will appear.  However if the check box is unchecked, the 2nd table will have blank values ( "" ) and thus not register.
    Here are some images to help:
    This is the dashboard I created, notice the values are mapped to one area but the chart is driven by the other.
    http://img191.imageshack.us/i/basicr.png/
    This screen shows that the chart is driven from the 2nd set of data.
    http://img821.imageshack.us/i/chartdata.png/
    This screen shows the logic behind the 2nd table, the one that actually drives the chart.
    http://img836.imageshack.us/i/maplogica.png/
    This screen shows the check values for the checkbox.  Note that the destination for the first check box is cell B3.
    http://img683.imageshack.us/i/checkbox.png/
    This is the dashboard in action:
    http://img511.imageshack.us/i/inaction.png/
    Here is the XLF file so you can look at the logic and stuff.
    http://www.filedropper.com/demo1_2
    --Hope this helps.

  • How to create 2 checkboxs in 2 different JTable cells within 1 buttonGroup?

    Hi,
    I have a JTable with dynamic number of rows and 5 columns. What I mean by dynamic is that new rows can be added and existing rows can be deleted so the number of rows may change. As I said before there are 5 columns. The first 3 columns will always contains Strings. The fourth and fifth column will have checkboxs. I'm creating the checkboxes be specifying that the forth and fifth columns will have boolean in them. As you all know JTable converts boolean values to checkboxes.
    Here is my problem:
    I want to add these 2 checkboxes in column 4 and column 5 to a buttonGroup, s� that if I check the checkbox in column 4 the checkbox in column 5 will be unchecked and vice versa. An importent thing is that every row has its own buttonGroup for its checkboxes.
    To use buttonGroup I have to have 2 checkboxes to add them to the group for example
    buttonGroupForRow1.add(checkBox1);
    buttonGroupForRow2.add(checkBox2);
    But in my case there are no specific checkBoxes to add, I only have boolean values in 2 different cells in the JTable.
    How can I solve the problem?
    Here is a part of the code to help you undersand my problem:
    JTableToggle getPrgMemberPopupTable() {
              if (prgMemberPopupTable == null) {
                   DefaultTableModel model = new MyTableModel(10,5);
                   prgMemberPopupTable = new JTableToggle(model) {
                        public boolean isCellEditable(int rowIndex, int vColIndex) {
                             if (vColIndex == 3 || vColIndex == 4)
                             return true;
                             else return false;
                   prgMemberPopupTable.setRowSelectionAllowed(false);
                   prgMemberPopupTable.setColumnSelectionAllowed(false);
                   prgMemberPopupTable.getColumnModel().getColumn(0).setHeaderValue("Name");
                   prgMemberPopupTable.getColumnModel().getColumn(1).setHeaderValue("Subrack");
                   prgMemberPopupTable.getColumnModel().getColumn(2).setHeaderValue("Slot");
                   prgMemberPopupTable.getColumnModel().getColumn(3).setHeaderValue("Active");
                   prgMemberPopupTable.getColumnModel().getColumn(4).setHeaderValue("Passive");
                   prgMemberPopupTable.setName("prgMemberPopupTable");
                   prgMemberPopupTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                   prgMemberPopupTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
              return prgMemberPopupTable;
        class JTableToggle extends javax.swing.JTable {
            public JTableToggle(DefaultTableModel aDefaultTableModel){
                super(aDefaultTableModel);
            public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                // toggle is true in the case where the control key is pressed, i will invert that case.
                toggle = !toggle;
                super.changeSelection(rowIndex,columnIndex,toggle,extend);
         class MyTableModel extends DefaultTableModel{
              public MyTableModel(int a, int b){
                   super(a, b);
              public Class getColumnClass(int index){
                   if (index == 3 || index == 4)
                        return Boolean.class;
                   return super.getColumnClass(index);
         }Grateful for all help
    //Roomi

    Thanks for your help.
    2 requirements has to be fulfiled here:
    Req.1. A member is selected. The memeber is selected either by checking Active or Passive checkbox
    Req.2. Every selected member is either Active or Passive.
    My solution is build on the ide that when you check the active checkbox, then that member is selected and its is an active member. If the passive checkbox is selected then it is a passive member.
    The thing is, not every member in the JTable is selected, only those who are relative to that specfic case are selected.
    Let's say that I have 10 members in my table (which means 10 rows). Then I can select for example the second and fifth members as an active members and the seventh member as a passive one. That means only those members are selected (Req.1.). And (2 and 5) are actives and (7) is passive (Req.2)
    But lets say that I change my mind, and decide that the seventh member should be active and not passive. Then when I modify the selection and check the active checkBox (on column 3) the passive checkBox (on column 4) should become unchecked.
    Camickr, with your suggestion I can not distinguish between if the member is passive or it is not selected at all.
    Even if I use JRadioButtons instead of JCheckBoxes the problems still the same, 2 different JRadioButtons (or JCheckBoxs), both of them are in seperate columns (seperate cells), how can I add them to one ButtonGroup? Or let me refrase the last sentence (question), How can build up the solution so that when one of them is selected the other one is unselected. If I don't use ButtonGroup and have to build my own buttonGroup then I have to start thinking about mouse listner, and where the mouse click to plase, ...etc which is a lot of work for a simble thing to do.
    Unfortuntly I cannot change the layout either, I'm stricted to this layout by the company.
    //Roomi

  • How to set a checkbox to call javascript for calling package procedure?

    Hi folks,
    I have a report where each row includes a dynamically created checkbox:
    Step 1: define report in APEX based on this test query
    select object_id,
           txt,
           htmldb_item.checkbox
              1,
              data.object_id,
              'onclick=alert('||data.object_id||');'
           ) cb
    from
      select 1 object_id, 'AAAA' txt from dual union
      select 2 object_id, 'BBBB' txt from dual union
      select 3 object_id, 'CCCC' txt from dual
    )  data Step 2: create a log table
    create table tk_test_log
       log_val  varchar2(100)
    );Step 3: Then I have a package stored in db called: tk_test
    create or replace package tk_test is
      procedure add(p_num number);
      procedure remove(p_num number);
    end tk_test;
    create or replace package body tk_test is
      procedure add(p_num number) is
      begin
        insert into tk_test_log values ('TK_TEST.ADD: '||p_num||'   '||to_char(sysdate,'DD/MM/YYYY HH24:MI:SS'));
      end;
      procedure remove(p_num number) is
      begin
        insert into tk_test_log values ('TK_TEST.REMOVE: '||p_num||'   '||to_char(sysdate,'DD/MM/YYYY HH24:MI:SS'));
      end;
    end tk_test;Is it possible to call "tk_test.add" procedure everytime when user checks any of checkboxes and to call "tk_test.remove" when user un-check any checkbox?
    How should I modify a javascript in step 1 (currently = alert('||data.object_id||') ) to obtain similar solution?
    Please help,
    Tomas

    Hi Earl,
    Thanks for your reply.
    Well this is exactly what I'm planning to use within my package :). Above example was just a really into into problem.
    In reallity:
    "add" prcedure will add a record into collection (plsql table - stored as a type)
    and
    "remove" procedure will remove it from it
    But my problemis how to call it from javascript.
    You're probably suggesting to use/maintain this collection within APEX and not within database?
    Here is how I've defined my collection:
    create or replace type ap_choice_temp_object_type is object
        ( person_id number,
          choice_id number,
          added     date
    create or replace type ap_choice_temp_tab_type is table of ap_choice_temp_object_type;       And then in package I have procedures:
      procedure clear_ap_choice_temp_tab is
      begin
         l_choice_temp_tab := ap_choice_temp_tab_type();
      end;
      procedure add_ap_choice_temp_row (p_person_id number,
                                        p_choice_id   number
                                        ) is
      begin
        if l_choice_temp_tab.exists = false then
           clear_ap_choice_temp_tab;
        end if;
        l_choice_temp_tab.extend;
        l_choice_temp_tab(l_choice_temp_tab.last) := ap_choice_temp_object_type(person_id => p_person_id,
                                                                                choice_id => p_choice_id,
                                                                                added => sysdate
      end;
      procedure remove_ap_choice_temp_row (p_person_id number,
                                           p_choice_id   number
                                           ) is
      i integer;
      begin
        -- this should be more optimalised -- this version is just 1-st try !
        print_ap_choice_temp_tab;
        i := l_choice_temp_tab.first;
        loop
           if l_choice_temp_tab(i).person_id = p_person_id and l_choice_temp_tab(i).choice_id = p_choice_id then
             l_choice_temp_tab.delete(i);
           end if; 
           i:= l_choice_temp_tab.next(i);
           exit when i is null;
        end loop;
        print_ap_choice_temp_tab;                                                                              
      end;
      procedure print_ap_choice_temp_tab is
       i integer;
      begin
         dbms_output.put_line('Start');
         i := l_choice_temp_tab.first;
         loop
            dbms_output.put_line(l_choice_temp_tab(i).person_id||' | '||l_choice_temp_tab(i).choice_id||' | '||l_choice_temp_tab(i).added);
            i:= l_choice_temp_tab.next(i);
            exit when i is null;
          end loop;    
         dbms_output.put_line('End');
      end;Testing code
    begin
      tk_test.clear_ap_choice_temp_tab;
      tk_test.add_ap_choice_temp_row(123,321);
      tk_test.add_ap_choice_temp_row(777,555);
      tk_test.add_ap_choice_temp_row(9999,4445);
      tk_test.remove_ap_choice_temp_row(777,555);
      --tk_test.print_ap_choice_temp_tab;
    end;     Do you have any nice example how to use what you're suggesting in APEX? I mean "create some collection at page display time, let the user update the collection (through checkboxes) while they're scrolling through things."
    I think this example would be usefull for many developers :)
    Thanks,
    Tomas

Maybe you are looking for