Checkboxes saved in cells
Hi! I want to make a practicing log for my rehearsals in Excel. I want the opportunity to practice
at least three times during a day and each time I practice during a day I want to save what I have practiced and for how long. For instance I can have thee columns:
Warming up, Pieces, Technical rehearsals
16 min, 19 min, 12 min.
In each rehearsal I do, I want to have sub-rehearsals. For example, when I am warming up, I usually do some
'long tones' and 'breathing exercises'. I want to have a list in the top of the document that will look kind of like this:
Waming up:
-long tones
-breathing exercises
Pieces:
-Neruda's trumpet concert
Etc.
I want these to have checkboxes and that within each day I can 'save' which of these things I have rehearsed.
Said in another way: In each cell there is saved which of these tings I have checked off, so when I move to another day/cell, the boxes I have checked off is different. Is that possible?
If 'twas me, I'd go simple and build a single row/rehearsal with each item of interest as a different column:
RehearsalDate - Warmup - WU Long Tones - WU Breating - WU whatever - Pieces - P Neruda - P whatever - Technical - T sub1 - T sub2 - etc
Then I'd list the times in the primary columns (Warmup, Pieces, Technical) and just put an 'x' in the appropriate sub-activity column.
This gives you a way to sort by any item, build charts, run pivots, whatever.
What are your reporting needs? It's often easiest to start with your required outputs and then build your inputs. If you go the other way, it's pretty easy to wind up with a great data set that you can't use.
Similar Messages
-
Adding checkbox to JTable cell
Hi, I am tryin to add a checkbox to JTabel cell.
But somehow i am ending up getting 'false' in the cell instead of checkbox.
Can anyone please help me.
here is my getColumnClass and getValuAt
public Class getColumnClass(int column)
{ if(column==0) return Boolean.class;
else return Object.class;
public Object getValueAt(int nRow, int nCol) {
if(nCol==0)
return new Boolean(ch.isSelected());
}You can use a cell rederer that will give you more flexibility .
Add the renderer to a specific column and that will do the job.
Here is the example:
public class CheckBoxRenderer extends JCheckBox implements TableCellRenderer {
public CheckBoxRenderer() {
super();
public Component getTableCellRendererComponent(JTable table, java.lang.Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
Color c = table.getBackground();
this.setBackground(c);
setSelected(value != null && ((Boolean) value).booleanValue());
return this;
}In order to edit the value in a check box you will need to write a cell editor which
is going to be easy. -
Hide Checkbox from alv cell..?
Hi All,
I have a requirnment in which i need to show checkboxes at different cell of a avl column..
I have created a new column in alv in which i set the visibility of the checkboxes shown in a alv column and here is the way i am binding it in WDDOMODIFY..
IF ls_col-id CS 'BOX'.
SPLIT ls_col-id AT 'BOX_' INTO lv_head lv_tail.
CONCATENATE 'CHK_VISIBLE_' lv_tail INTO lv_temp.
CONDENSE lv_temp NO-GAPS.
lr_column = ls_col-r_column.
CREATE OBJECT lr_checkbox
EXPORTING
checked_fieldname = ls_col-id.
lr_checkbox->set_visible_fieldname( lv_temp ).
lr_column->set_cell_editor( lr_checkbox ).
ENDIF.
But for some reason the checkbox visibility is not getting set as i have strored in column..
Any Idea..??
Thanks in advance
Vishesh.Create one more attribute for visibility lv_visible as WDUI_VISIBILITY in the node to which ALV is bound.
When you create that checkbox instance, there will be corresponding method for visibilty using fieldname like SET_VISIBLE_FIELD_NAME, then pass this feildname for visibiity.
Then based on the check boxclick, you have to modify the internal table to update this attribute.
Example code -
loop at it_table into wa_table.
if lv_check eq 'X".
lv_visible = abap_false.
else.
lv_visible = abap_true.
endif.
modify it_table from wa_table transporting lv_visible.
endloop -
Problem with CheckBox as table cell renderer
i m making a JTable having three columns.
i m also making a cellRenderer of my own MyRenderer
extending Jcheckbox and implementing TableCellRenderer
now i m setting MyRenderer as renderer for third column in my table and
DefaultCellEditor with jcheckbox as parameter as cell editor for this column
the code is like this--------------------
****making of JTable****
table= new JTable(3,3);
JScrollPane scrollPane = new JScrollPane(table);
TableColumn tableColumn = table.getColumn("Male"); // let us suppose that this gives third column
tableColumn.setCellRenderer(new MyRenderer ());
tableColumn.setCellEditor(new DefaultCellEditor(new JCheckBox()));
*****The classs implementing TableCellRenderer is given below******
class MyRenderer extends JCheckBox implements TableCellRenderer{
public MyRenderer(){
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column){
if(value != null){
Boolean booleanValue = (Boolean)value;
setSelected(booleanValue.booleanValue());
return this;
***********************************Problem****************************
The problem is that when we click on the cell of that column first time,
all the cells are selected.
I don't want to use getColumnClass() method for this problem .
If possible , please give some other solution.
what is the problem behind this,If anybody can help us.
Thanks in advance.I think the problem is, when the value is null the checkbox return with the selected state, b'coz u r
returning the checkbox (as it is). so pl'z try with below code (ADDED).
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column){
if(value != null){
Boolean booleanValue = (Boolean)value;
setSelected(booleanValue.booleanValue());
else /// ADDED
setSelected(false);/// ADDED
return this;
Nediaph. -
CheckBox in customized cell renderer - Urgent
i need to customize the cell renderer for a table for one of the columns. One of the column is Boolean type and i want it the way it comes in a default cell renderer.
if i mention the renderer for the column as "checkbox" - it gives me the checkbox "left aligned" i want it in the center.
what shall i do?that works.
thanks ivan.
could i get the same result with defaultTableCellRenderer? as it extends JLabel i get the label-"true/false" not the checkbox. -
Checkbox in table cell won't uncheck
Hey all,
Can someone help with this please. I am using a table model where the second column is Boolean. The table correctly renders this as a checkbox (I'm not using a custom renderer). The checkbox works ok except that you can't uncheck it. You can change which row is selected, but clicking twice on the same cell has no effect - it just stays checked.
Thanks in advance for any help.here I am giving one example. Can u check this. In this eg, I gave check box in 3rd column(column no starting from 0).
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.awt.*;
public class Class1 extends JFrame {
JScrollPane jScrollPane1 = new JScrollPane();
public Class1() {
super();
try {
MyTableModel model = new MyTableModel(); JTable editableTable1 = new JTable(model);
DefaultTableModel tblmdl = (DefaultTableModel) editableTable1.getModel();
tblmdl.setRowCount(3);
tblmdl.setColumnCount(3);
editableTable1.setCellSelectionEnabled(true);
this.getContentPane().setLayout(null);
jScrollPane1.setBounds(new Rectangle(25, 19, 330, 180));
this.getContentPane().add(jScrollPane1, null);
jScrollPane1.getViewport().add(editableTable1, null);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
System.exit(0);
} catch(Exception e) {
System.out.println("Exception in Class1:"+e);
class MyTableModel extends DefaultTableModel {
MyTableModel() {
public Class getColumnClass(int c) {
if(c == 2) {
return Boolean.class;
} else {
return String.class;
public static void main(String[] args) {
Class1 class1 = new Class1();
class1.setSize(400, 400);
class1.setVisible(true);
} -
Saving table cell editor value when switch to other cell
Hello,
I have the code below to allow user entering integer values in a table cell. What I want is that if the user switch to an other cell than I want to save the editor value. It works fine if the user press the Enter button, but how can I do this when user clicks or press tab, arrow to switch to an other cell?
public class IntegerEditor extends AbstractCellEditor implements TableCellEditor, ActionListener{
JFormattedTextField component = new JFormattedTextField(NumberFormat.getIntegerInstance());
public IntegerEditor(){
component.addActionListener(this);
component.setBorder(null);
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
if (value != null) component.setValue(value);
return component;
public Object getCellEditorValue() {
return Integer.valueOf(component.getValue().toString());
public void actionPerformed(ActionEvent e) {
fireEditingStopped();
}Hello camickr,
I add a column to the table with the function see below.
With this sollution I the cell value saving is working fine, but it accept string vales for me :(
If I use the JFormattedTextField than it accepts only integers but I have the original problem. I'm using fireEditingStopped(); in the focusLost method but it has no effect.
What do I wrong?
public TableColumn addNewIntegerColumn(java.lang.String caption, int width, boolean fix) {
//Switch off AutoCreate
this.setAutoCreateColumnsFromModel(false);
//Create a new Column
TableColumn col = new TableColumn(dataSheet.getColumnCount(),width,new LabelRenderer(),this.getDefaultEditor(Integer.class) );
//Set column header
col.setHeaderRenderer(new HeaderRenderer());
col.setHeaderValue(caption);
if (fix) col.setResizable(false);
col.setPreferredWidth(width);
//Add column to the table
this.addColumn(col);
//Add column to the model
dataSheet.addColumn(caption);
return col;
} -
Saving fix cells in data backup
Hello
In the SDP94 i can fix cells. I fix a cell and save.
Now i wante to save my planning area in a data backup.
How could i save the fix cells in my data backup?
Thanks
SvenHi Sven,
When we fix a cell for a KF, the information of fixing value is saved in another KF(Fixed key figure).
This fixed key figure contains the fixed value of the basic key figure . The fixed basic key figure value is copied down to the finest detail into this key figure.
When we take a back up, we need to see that all the necessary KFs are included in the back up.
If necessary we can view the values of the Fixed KFs.
When we restore the back up, then we see the fixing of the cells again in planning books.
I hope this helps.
Please confirm.
Regards
Datta -
Is it possible to use checkbox to active cell/row?
I´m making a spreadsheet where is multiple values and I´d like to use a checkbox to activate/deactivate some cells. Is it possible in Numbers and how or should I try it in other way? The spreadsheet is going to customer and it is easiest way to choose what they want just only marking the right checkbox.
You can use the sumif() function like:
Set the first row to be a header and the add a footer row:
to sum item prices where a checkbox is checked use the formula:
C10=SUMIF(A, TRUE, C)
I hope this helps -
In ALV O/p , need Editable Checkbox for particular cell based on signal lig
Hi,
I have requiremnt liek this in my ALV
There are 4 records in the output consisting of fields checkbox , traffic lights. here, 2 are Red and 2 are Green.
now Green light checkboxes should be (Enabled mode)checked with Edit mode. Red light check boxes should be diabled mode with unchecked. how to do this..
I had wriiteen the following code but it is giving me the dump.
DATA : ls_listrow LIKE LINE OF i_final,
ls_stylerow TYPE lvc_s_styl,
ls_styletab TYPE lvc_t_styl.
LOOP AT i_final INTO wa_final.
IF wa_final-light = '1'. "Disabled
ls_stylerow-fieldname = 'CHK'.
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
ELSEIF wa_final-light = '3'. "Enabled
ls_stylerow-fieldname = 'CHK'.
ls_stylerow-style = cl_gui_alv_grid=>mc_style_enabled.
ENDIF.
APPEND ls_stylerow TO ls_styletab.
INSERT LINES OF ls_styletab INTO TABLE ls_listrow-cellstyles.
MODIFY i_final FROM ls_listrow.
ENDLOOP.
Iam getting DUMP at INSERT line stmt.
Awaiting for ur reply.
Regards,
Deepthi.Check this sample code..may be it will give u some idea...
*& Report Z_DEMO_JG1
REPORT z_demo_jg1 LINE-COUNT 10(2) NO STANDARD PAGE HEADING.
TABLES: ekko.
TYPE-POOLS: slis.
"ALV Declarations
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
field_style TYPE lvc_t_styl,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: it_fieldcat TYPE lvc_t_fcat,
wa_fieldcat TYPE lvc_s_fcat,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE lvc_s_layo, "slis_layout_alv,
gd_repid LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
PERFORM data_retrieval.
PERFORM set_specific_field_attributes.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
**& Form BUILD_FIELDCATALOG
***Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-scrtext_m = 'Purchase Order'.
wa_fieldcat-col_pos = 0.
wa_fieldcat-outputlen = 10.
wa_fieldcat-emphasize = 'X'.
wa_fieldcat-key = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'EBELP'.
wa_fieldcat-scrtext_m = 'PO Item'.
wa_fieldcat-col_pos = 1.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'STATU'.
wa_fieldcat-scrtext_m = 'Status'.
wa_fieldcat-col_pos = 2.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AEDAT'.
wa_fieldcat-scrtext_m = 'Item change date'.
wa_fieldcat-col_pos = 3.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-scrtext_m = 'Material Number'.
wa_fieldcat-col_pos = 4.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MENGE'.
wa_fieldcat-scrtext_m = 'PO quantity'.
wa_fieldcat-col_pos = 5.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MEINS'.
wa_fieldcat-scrtext_m = 'Order Unit'.
wa_fieldcat-col_pos = 6.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-scrtext_m = 'Net Price'.
wa_fieldcat-edit = 'X'.
"sets whole column to be editable
wa_fieldcat-col_pos = 7.
wa_fieldcat-outputlen = 15.
wa_fieldcat-datatype = 'CURR'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'PEINH'.
wa_fieldcat-scrtext_m = 'Price Unit'.
wa_fieldcat-col_pos = 8.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " BUILD_FIELDCATALOG
**& Form BUILD_LAYOUT
***Build layout for ALV grid report
FORM build_layout.
*Set layout field for field attributes(i.e. input/output)
gd_layout-stylefname = 'FIELD_STYLE'.
gd_layout-zebra = 'X'.
ENDFORM. " BUILD_LAYOUT
**& Form DISPLAY_ALV_REPORT
*Display report using ALV grid
FORM display_alv_report.
gd_repid = sy-repid.
CALL
FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_layout_lvc = gd_layout
it_fieldcat_lvc = it_fieldcat
i_save = 'X'
TABLES
t_outtab = it_ekko
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc ne 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORT
**& Form DATA_RETRIEVAL
***Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln
ebelp
statu
aedat
matnr
menge
meins
netpr
peinh
UP TO 10 ROWS
FROM ekpo
INTO CORRESPONDING FIELDS OF TABLE it_ekko.
ENDFORM. " DATA_RETRIEVAL
**& Form set_specific_field_attributes
*populate FIELD_STYLE table with specific field attributes
form set_specific_field_attributes .
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT it_ekko INTO wa_ekko.
IF wa_ekko-netpr GT 10.
ls_stylerow-fieldname = 'NETPR' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_ekko-field_style.
MODIFY it_ekko FROM wa_ekko.
ENDIF.
ENDLOOP.
endform. " set_specific_field_attributes -
Boolean checkboxes in cells...
Hi,
I wonder if it is possible to insert boolean checkboxes into excel cells containing text and have a button concenate text from checked cells together afterwards. Example:
Cell a1='This is cell A1,'
Cell b1= Checkbox unchecked & 'here is Cell B1'
Cell c1 = Checkbox checked & 'here is Cell C1'
When clicking the button, cell A20 should display: This is cell A1, here is Cell C1' (because ell C1 is checked and B1 is unchecked.
How would I do this in excel?
regards TorInsert three checkboxes from the control toolbar, place them over or near the cells, and name them
CheckBoxA1, CheckBoxB1, and CheckBoxC1
Then use code like this:
Sub TestMacro()
Dim strVal As String
strVal = ""
If ActiveSheet.CheckBoxA1.Value Then strVal = strVal & " " & Range("A1").Value
If ActiveSheet.CheckBoxB1.Value Then strVal = strVal & " " & Range("B1").Value
If ActiveSheet.CheckBoxC1.Value Then strVal = strVal & " " & Range("C1").Value
MsgBox Application.Trim(strVal)
End Sub
You can also replace ActiveSheet with a named sheet or sheet's codename -
How do I make the "text" after the checkboxes visible?
(The Dreamweaver 8 text reads, as follows)
quote:
To add checkboxes to a form:
1. Click in the left column of the sixth row, type
Check all of the musical styles that interest you.
(including the period), and then press the
Tab key to move the insertion point to the next cell.
2. Click the
Checkbox button in the
Forms category on the Insert bar to insert a checkbox in the
cell.
3. In the Property inspector, type
Punk in the Checkbox Name text box, and then click the
Unchecked option button, if necessary.
4. Click to the right of the checkbox in the table, type
Punk, and then press the
Shift+Enter keys to create a new line in the cell.
5. Repeat Steps 2 through 4 to create the following
checkboxes:
Alternative,
Trance, and
Jazz. See Figure 9-33 (Pg.515 Dreamweaver 8 textbook)
The following is the CODE where I added checkboxes to a form:
quote:
<tr>
<td><div align="right">Check all of the musical
styles that interest you. </div></td>
<td><div align="left">
<input name="Punk" type="checkbox" id="Punk"
value="checkbox" />
<br />
<input name="Alternative" type="checkbox"
id="Alternative" value="checkbox" />
<br />
<input name="Trance" type="checkbox" id="Trance"
value="checkbox" />
<br />
<input name="Jazz" type="checkbox" id="Jazz"
value="checkbox" />
</div></td>
</tr>
However, the only thing I see in DESIGN View is this the
previous text, "Check all of the musical styles that interest you."
and the four checkboxes "without" the text that should follow each
box .
Please, help, explain what steps I should take, next, to make
the following words (Punk, Alternative, Trance, and Jazz) visible
in the DESIGN View, following each of the four checkboxes.
Thank you for your help!
This Support Forum is the BEST!
Respectfully, OnaSorry - you're sending us to the Webforum which is a real
pain to scroll
miles through to discover what questions and answers there
are. Could you
start a new thread? It looked as if it might have been a
discussion with
Murray but it's really difficult to tell as the last I saw
was Murray asking
you to do something - I think.
Jo
"OnaTutors" <[email protected]> wrote in
message
news:f3iuuc$moe$[email protected]..
> Geschenk, You ROCK!
>
> THANK YOU! THANK YOU, SO MUCH!
>
> You went ABOVE and BEYOND the call of duty! Thank you
for helping with
> the
> other errors in my CODE, too.
>
> You saved my Final Project for my course in Web
Construction 2, due
> "tonight"
> @ midnight!
>
> I've just got 2 more questions to troubleshoot!
>
> Thanx for all of your help!
>
> If anyone is interested, these are the other two
questions that I'm
> TROUBLESHOOTING:
>
>
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
> 1271560
>
>
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
> 1271584
>
> Thanks for helping me out, everyone!
>
> Respectfully, Ona
>
>
quote:
Originally posted by:
geschenk
> you do have some quirks in your current form -- as to
your checkboxes ::
> please replace the current
value="checkbox" with e.g.
>
value="Punk", and furthermore you just need to place a plain
text
> description after the checkbox tag
>
> that´s it ;-)
> -
How do I add a cell number to iMessage on iPad Air 2?
Wife bought me a iPad Air 2 with Wi-Fi + Cellular and it's own unique phone # for Christmas.
She bought it through her Verizon account.
It arrived today via FedEx. Opened it up. Turned it on. Did the initial set-up on it.
Problem is I accidently signed in using my Apple ID that I have for my iPhone.
After that, whenever I would get a text message on my iPhone it shows up on my iPad also...which I don't want.
I want to be able to use iMessage on the iPad and use it's own unique # that came with it.
So I did some reading and from what I found it sounds like you have to sign out of iMessage on the iPad and sign in with a "new" Apple ID that's attached to that new number.
That being said, I signed my iPhone's Apple ID out of my iPad on iCloud/FaceTime/iMessage.
Then I created a completely new Apple ID and assigned the new cellular # to that account on www.myappleID.com and saved it.
I then went back onto my iPad and signed into iCloud/FaceTime/iMessage with the new Apple ID that I'd created.
Now it only shows the email address associated with that Apple ID as the only 'Send & Receive' option...no phone number.
I then went back and confirmed that I'd saved the cell # change via myappleID.com, signed back out of Cloud/FaceTime/iMessage on the iPad and signed back in.
Still, not showing the cell # listed under 'Send & Receive' options for iMessage...and it's not showing me an option for adding the number either...at least that I can find.
So does anyone know how I can now add the Cellular Data Number that's already listed in General>About>Cellular Data Number to iMessage so that I can actually receive messages to that number that's assigned to the iPad?CascadePS wrote:
So does anyone know how I can now add the Cellular Data Number that's already listed in General>About>Cellular Data Number to iMessage so that I can actually receive messages to that number that's assigned to the iPad?
The only way you can use a mobile number with iMessage on an iPad if it's associated with an Apple ID that is also associated with an iPhone. YO can then use the iPhone's mobile number. The mobile number on the iPad is for carrier billing purposes only. It cannot be used for messaging. -
Using a field hierarchy for selecting checkboxes?
I have a bunch of checkboxes in a PDF that are dynamically added to the PDF during its creation process. Each checkbox is a cell in a table, and I do not know the number of rows or columns that will be in the PDF beforehand. What we are trying to do is add a header row to the table that allows the users to select/unselect all the check boxes in a column at once. I figured I could use the field name hierarchy approach to select/unselect all the checkboxes as long as I named them appropriately but I appear to be missing something.
Take for example this table (assume [] denotes where a checkbox will go):
Title
Category 1
Category 2
[check.global.category1]
[check.global.category2]
Some Product
[check.category1.cell1]
[check.category2.cell1]
Another Product
[check.category1.cell2]
[check.category2.cell2]
What I would like to do is add a JavaScript call so that when check.global.category1 is clicked I could add something like this to the click event:
var field = getField("check.category1");
field.checkThisBox() //or checkThisBox(false);
And that would toggle all the check boxes in the Category 1 column. However, that does not appear to work. Is there another mechanism to do this, or some way I can loop over all the check boxes that belong to the same hierarchy? I know this approach works with buttons and text fields but checkboxes appear to be different.I found the answer. To get all the checkboxes use getArray() after calling getField.
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.744.html -
Table component - how to find out which cell is clicked
Hello!
I have a couple of questions regarding table component
1. Is there any way to find out which table cell is clicked on?
2. And is it possible to paint clicked cell programmatically?
Possible solution might be a Select Boolean Checkbox inside a cell, but anyway, i'd have to determine which cell contains this checkbox (some kind of cell coordinates, etc...)
Thank you1. Is there any way to find out which table cell is clicked on? It would be easy to suggest the way, if you can share us the requirement
2. And is it possible to paint clicked cell programmatically?You can do it through javascript by setting contentStyle property.
Sample Code:
<af:table ...>
<af:column>
<af:inputText ...>
<af:clientListener method="paintCurrentCell" type="click"/>
</af:inputText>
</af:column>
</af:table>
<!-- javascript method -->
function paintCurrentCell(event){
event.getSource().setContentStyle("background-color:red");
}Sireesha
Edited by: Sireesha Pinninti on Nov 10, 2009 7:01 PM
Maybe you are looking for
-
RT and strange problem in sequence
Hi there, Another day, another question for the FCP masters.... I'm editing a short promo, where I've set up a new project and when I take clips into the timeline, the clip will flash up the frame before where I set an the in point. If I scroll throu
-
Hi everybody, I'd like to have a web app based on jsp files which include different HTML files stored on Apache Web Server (on a different machine!!) Ex. Header.html, Menu.html and so on... I tried with Stuts tags but it seems not working with HTML f
-
Missing Header Row When Exporting Data to Excel and Program Runs Slow
Hello all, I am new to programming. I’ve dabbled with VB.NET at times over the years but this is the first time I’m trying C#. Although, it’s been quite a while since I’ve done any type of programming other than writing SQL queries at work. For the s
-
What are steps followed in aggregation level in multiprovider
what are steps followed in aggregation level in multiprovider
-
Resizing and exporting to flash = headaches and long nights
I have footage shot in 16:9 PAL DV (interlaced) Client now wants delivery as a flash file 600 x 400 pixels. +How do I get the best result?+ Should I output the file as a PAL DV interlaced and then convert it to flash? The results I got are not very s