Create a list based on checkbox selections

Hi, I'm new to LiveCycle. I would like to create a list at the end of a document which shows all checkbox selections throughout the document. Is this possible?

I am using Livecycle Designer ES3.

Thank you

Create two ListBox objects at the end of your form; ListBox1 will display all of the checkboxes are checked and ListBox2 for all those who are not.

The following code can be placed in the click event of a button or any other event you want:


var vList = getCheck(form1,{});

ListBox1.clearItems();//Name of the list box that lists the checked fields
ListBox2.clearItems();//Name of the list box that lists the unchecked fields
for (var i in vList){
     if (vList[i].value=='0') //<----Value to change based on On/Off value assignments
          ListBox2.addItem(vList[i].caption,i);
     else
          ListBox1.addItem(vList[i].caption,i);
}

function getCheck(vNode,vChecks){
     if (vNode.className=="field" && vNode.resolveNode("ui.checkButton")!=null){
          vChecks[vNode.somExpression]={};
          vChecks[vNode.somExpression].caption=vNode.caption.value.text.value;
          vChecks[vNode.somExpression].value=vNode.rawValue;
     }
     if (vNode.className=="subform"){
          for (var a=0;a

This code assumes that your root subform is form1 (the default value in the Designer). It also assumes that all names and captions for your boxes are unique.

Now for an additional function, you can place the following code in the event of change of your ListBox:

xfa.host.setFocus(this.boundItem(xfa.event.newText));

Displayed in list boxes are all legends of the boxes in your form. Click on one of the items in the list box and it will bring you to this box.

Hope this is what you are looking for.

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • Subtract the value of the fixed number based on checkbox selections

    Hi, I looked around this forum and can't find the exact answer I'm after.

    I have a numeric field that begins with a fixed value of '44' and 6 squares. For each selected check box I want to '2' subtracted '44"for example if 1 is checked the value becomes ' 42" and if the two checkboxes are selected value becomes '40' and so on. "

    Is this possible? I'm going crazy trying to make this work.

    Thanks for any help.

    Try this: Add the code to the change event of the boxes

    For example:

    If (this.rawValue == '1') {}

    this.resolveNode("numericField1").rawValue = this.resolveNode("numericField1").rawValue - 2;

    }

    If (this.rawValue == '0') {}

    this.resolveNode("numericField1").rawValue = this.resolveNode("numericField1").rawValue + 2;

    }

    the 1 this.rawValue is a checkbox enabled, 0 is not checked. Using this code, a checkbox activated subtract 2 from numericField1, and box unchecked I would add 2.

    I had problems with this for awhile because I got it in not the change event click event.

  • How to create a dynamic RTF report that creates dynamic columns based on the selection of dynamic columns in a table?

    Hi all

    Suppose I have table, whose structure changes frequently on a daily basis.

    For example. / / desc my_table gives you after the name of the column the day 1

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone


    Day 2, two other columns are added, viz, address and salary.

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone

    Address

    Salary


    Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.

    For 1 day my XML file should be like this.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 1, EXCEL output RTF model should be like this.
    Name age phone

    Swapnill 23 12345

    For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 2, exit EXCEL model RTF should be like this.
    Name address telephone pay

    23 12345 Madrid 100000 Swapnill

    Now, I don't know below things.

    • Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
    • Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?

    Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.

    Kind regards

    Patricia K.

    Post edited by: SwapnilK

    Hi guys,.

    I was able to solve above the requirement.

    I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.

    Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.

    Kind regards

    Patricia K.

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • Create a drop down that fills the list based on the shape of the selection a menu drop-down.

    I need to set up a drop down menu which is popualated (i.e. displays a certain list of selctions in the drop-down list) based on the choice of the form user selects an adjacent list

    For example

    There are two drop-down list field sitting side by side in form

    1. Select State 2. Select the course

    I want to do is have a list of States in the first drop (State 1.Select) and depending on the State in which the form user selects, the second menu drop-down (2. Select courses) is filled with a selction of courses available in this selected only State (i.e. will it be on; show course available in QLD if QLD is selected).

    Is it difficult to do?

    Hello

    You can also use events preOpen from the drop-down list, to recall the previous selections in other objects and populate the drop-down list accordingly: http://assure.ly/jcTahK

    Good luck

    Niall

  • Checkbox validation based on the selection of the values LOV

    I'm trying to validate a checkbox custom on the opportunity page, based on the selection of the values LOV.

    For example only when the user selects 'rating = A', the box should be able to select and save.

    If the user selects other that 'A' in the field assessment, the box should not save.

    or

    Is it possible to do, the READ ONLY checkbox, enable only when the side 'A' is selected.

    Any thoughts / help on this.

    Thank you, Kumar

    Edited by: user10833334 may 4, 2010 06:43

    There is no function to make a read-only field based on the contents of another field, it is not an option. I will list my thoughts on how you might handle this below.

    -Option 1: I recommend that you use validation to manage it. I don't know exactly to your needs, but you could write a field validation that checks to see if the flag is checked and rating <>has and sends an error message to the user, if it is not. The user would not be able to save the file until it Unchecks the box or sets the side = A.
    Advantages: User gets a message explaining the problem with the data and is forced to fix it before you save it.
    Cons: Requires interaction from the user to save and if they do not pay attention, the data may be lost if they cancelled without saving the changes.

    -Option 2: Another option would be to use the workflow to validate the registration. In this scenario, you can create a workflow that determines whether the field is out of adjustment, and if it is not correctly set, the workflow would update the box accordingly. In this scenario, you would use the 'Actions if Condition is False' also to inform the user that the flag cannot be controlled unless the side =. Then, you must set the Action "Update the values" update the uncontrolled field.
    Pros: Manages the work without user interaction.
    Cons: The con in this case, is that there is no workflow 'Before NEW record saved' trigger, so it is likely that the user sets the value incorrectly when creating the folder and it would stay like that until they update the record again.

    Some people might argue that there is another option that uses the functionality of dynamic page layout to make the field read-only, but this isn't a good option. You would need to convert using the Type of the opportunity in a way that would make use of the possibilities of lourdes for your users and I mention it only to you recommend to avoid his review completely.

    Good luck and let me know if you have any questions.
    Thom

  • Select list THAT LOV based on the selection of the Parent list


    Hello

    I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

    So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

    I think this question been here before, so could someone just tell me the answer?

    Thank you very much

    Leo.

    Leo_Y wrote:

    I'm pretty new to APEX and which seems to be a pretty basic question, but I don't know how to do it.

    So, I have two items in the selection list on my page and I need to dynamically change LOV in the second list based on the value of one of the parents.

    I think this question been here before, so could someone just tell me the answer?

    To get the right answer, you must ask the right question.

    Integrated support in cascade LOV is addressed in the documentation.

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting?

    When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting? I would like to know what changes, so in the future, I can set my camera to one who will give me the highest quality in a first time, which allows me to make cultures and always preserve the quality.

    Thank you

    Dovid

    Thank you twenty-one... your answer of common sense to me.

    so, in short, can I assume down the chosen quality over compression algorithm?

  • Calculate the value based on the selection of the checkbox

    People from g ' Day,.

    I have myself a little stuck on a job that I have here, this javascript Gets the better of me.

    The idea is that this script takes the total sub and adds a surcharge for credit card (in percentage) based on a selection of the checkbox, then spit out the value to be entered in another field.

    If someone could have a quick look over what follows and let me know where I went wrong, it would be appreciated.

    ---

    Subtotal var = this.getField("SubTotal").value;

    var mastercardTick = this.getField ("MasterCard");

    var visaTick = this.getField ("Visa");

    var amexTick = this.getField ("Amex");

    Var extra = this.getField("CreditSurcharge").value;

    card credit var = this.getField("PayCredit").value;

    If (creditcard.value = 'Off') {}

    Event.Value = 0;

    } else {}

    If (mastercardTick.value = 'Yes') {}

    overload. Value = (1,2 / 100) * subtotal.value;

    } ElseIf (visaTick.value = 'Yes') {}

    overload. Value = (1,2 / 100) * subtotal.value;

    } ElseIf (amexTick.value = 'Yes') {}

    overload. Value = (3.75 / 100) * subtotal.value;

    } else {}

    Event.Value = 0;

    }

    }

    ---

    For lines like these:

    overload. Value = (1,2 / 100) * subtotal.value;

    If it should not be as:

    Event.Value = (1,2 / 100) * subtotal.value;

    The variable supplement is defined at the beginning of the script to the value of the field, so the surcharge.value parameter is not any sense.

  • Create the style of paragraph based on the selection

    Is there a way to create a paragraph style based on the selection in the same way, the "New paragraph Style" dialog box without having to go through ALL the elements of style individually?

    Thank you

    Hi Ken,

    Dave (Thanks Dave) code and put it into a string:

    REM note the quotes "escaped".

    myString = "if (app.documents.length > 0 & app.selection.length = 1 & app.selection [0] .hasOwnProperty (""baseline" ")) {"& vbCr '.

    myString = myString & "myDoc = app.documents var [0];" & vbCR
    myString = myString & "var myPstyle = myDoc.paragraphStyles.add ({name:" "myNewStyle" ""}); "& vbCr
    myString = myString & "myPstyle.properties = app.selection [0] .properties;" & vbCr

    myString = myString & "}" & vbCr

    REM run now the string using "DoScript" (requires that you have a

    Instance of rem InDesign "myInDesign"...

    myInDesign.DoScript myString, idScriptLanguage.idJavaScript

    That should do it.

    Thank you

    OLE

  • Create a list of choices based on users

    We use 2 of custom object to track additional customer information and would like to add a list of choices, customized with the values in the list of all users; basically a second field 'owner '.

    Is it possible to create a list of choices based on users?

    Thank you.

    Hello

    Yes, of course; a drop-down list can be created on any BC, there is a BC called 'User' just so build the list of choice in this.

    Kind regards

    Matt

  • How to create a list of value based on a variable?

    Hello

    How can I create a LOV based on dynamic information, if what I want is to have a sql statement to create the LOV like this:

    Select name, id
    users
    where users.group =: VARIABLE_GROUP
    by name

    Thank you
    J

    Hello

    You create the LOV well enough as you have your example. Use the name of the variable that contains the value you want to use for users.group, in general, on a page that is initialized during the loading of the page, or some criteria provided by the user.

    I do it all the time. For example...

    Select project name, project
    projects
    where state_id =: P1_STATE
    state_id order;

    : P1_STATE is defined by a query that runs on my 1 Page that looks at the State of origin for the user who is logged in the system. This LOV then displays only the projects for their own State.

    Thank you
    Don.

  • Tabular returns lines based on the selection list

    Howdy-

    An element of the selection list is used to select a job title.

    The tabular presentation returns lines of documents to be considered annually by the title of the post.

    A single column in a tabular form (the number of the document) is defined as a link so that the user can open and read the document.

    It works beautifully.

    But...

    Some job titles return a row of five documents, still others return more than a hundred, so when paging is used to move to the next set of lines in tabular form, updates the selection list and the selection is lost.  I have the Page Action selection list element when the modified value to Redirect and set the value, but the Type of Source is static that may be my problem.

    How can I use pagination while maintaining the value of the selection list?

    Thanks in advance.

    Alexandra

    Request Express 4.2.2.00.11 (by the way, I don't have our network administrator do a update to this version?)

    the value of the default selection on a hidden item list. When you select from the drop-down list, set the item also hid from the selected item.

Maybe you are looking for

  • Toshiba L5 TV Remote "not available".

    Hey,. My TV do not react in the remote control. I can't turn it off, I have to unplug my TV whenever I want to turn it off. Whenever I press something on my 'not available' message remote appears on the screen, nothing works. It happened after runnin

  • Several updates to iOS 9.2.1

    Upon publication, I have installed iOS 9.2.1 on our iPhones and iPads.  However, a few days ago, I noticed by plugging in my iPhone on my iMac, iTunes do not have the option to back up or synchronize the phone.  It was the same for our iPads and then

  • Pavilion G6 WON'T START

    Can someone advise me. My HP Pavilion G6 1371 ea mobile gave me corrupt BIOS message (501) and the next reboot it froze at the close to the bottom of page for so long, I had to cut the power of it. Now ive tried to feed it upwards and I get nothing f

  • Hard drive receives an error "Location is not available" in Vista

    I get a message that says: Location is not available Done C//Windows/system.32/contig/systemprofile/desktop refers to a location that is unavailable. It could be on a hard drive on this computer or on a network. check to make sure that the disk is pr

  • Windows 7 do not remember the program updates after roll back to windows 10

    Hi, my computer auto installed Windows 10 earlier, where I lived with for a while, but it caused problems running so I uninstalled and returned to my previous installation of Windows 7. Since then, I get several updates for very programs that I insta