Changing the Check Box color when selected/deselected
How do I do this using the Action tab in Check Box Properties within Acrobat 7.0 (NOT DESIGNER)?
I added the check boxes to the .PDF using the check box tool (Box Only-No Text).
I am trying to fill the box green when selected and yellow when not selected via ACTION>Mouse Up>Run a JavaScript>Add and enteringthe javasript below with no success:
if (this.rawValue == "1") {this.fillColor="0,255,0";} else {this.fillColor="255,255,0";}
PLEASE HELP!!!
If you are in AcroForm and not LiveCycle Designer, you not use LiveCycle Designer FormCalc syntax or LiveCycle Designer references.
With a single check box:
if(event.target.isBoxChecked(0)) {
event.target.fillColor = color.green;
} else {
event.target.fillColor = color.yellow;
Similar Messages
-
Re- Single click in the check box ensure to select all check boxes
Hi All,
I have an issue to notify the urgency of the cart to the buyer while creating the cart.For that scenario we have a check box in the Basic data of shopping cart.I added the check box in the basic data. Now the quote check box is available for all the line items.
The requestor can select any check box in any line items,so whenever he selects the check box- automatically all the check box should get selected , if any of the check box get deselected then imediatelely all the check box in different line items also should get deselected.Hi Batchu,
Thanks for your reply, See if you add any custom field it will come one by one in the basic data section. Adding one more check box doesnot work for this case.
Moreover the problem is change to any particular line item can be captured in DOC_CHANGE_BADI but i cannot bring the same change to all line items (ie) If 3 rd line item check box is marked then immediately rest of the line item also should get marked.
In the case of DOC_CHECK_BADI to identify the line on which the change happens is tough.
SO thats is the problem for me to bring the logic in the code.
Please if any one come across similar kind of issue please give your suggestion.
Thanks,
Sibi -
How to change the check box with the push button in itrator table rows
Hi all,
I want to change the check box of the itrator table rows with push button/ some thing better as to give
the table view more good look and user friendly.
Does any one has tried any other option in table view in place of check box
Thanks
BhagatThere are various objects which you can create via iterators. Please see the application SBSPEXT_TABLE for more details.
DATA: lo_text TYPE REF TO cl_htmlb_textview,
lo_ddlb TYPE REF TO cl_htmlb_dropdownlistbox,
lo_input TYPE REF TO cl_htmlb_inputfield,
lo_button TYPE REF TO cl_htmlb_button,
lo_chk_bx TYPE REF TO cl_htmlb_checkbox.
row_ref = p_row_data_ref.
CASE p_column_key.
WHEN 'EFF_DATE'. " Input field
CREATE OBJECT lo_input.
lo_input->id = p_cell_id.
lo_input->type = 'DATE'.
lo_input->showhelp = 'TRUE'.
lo_input->width = '60'.
lo_input->invalid = 'true'.
p_class = `ao`.
lo_input->value = get_column_value( p_column_key ).
p_replacement_bee = lo_input.
WHEN 'NEW_LOC'. " Drop down list box
CREATE OBJECT lo_ddlb.
GET REFERENCE OF gt_persa INTO lo_ddlb->table.
lo_ddlb->id = p_cell_id.
lo_ddlb->nameofkeycolumn = 'NAME'.
lo_ddlb->nameofvaluecolumn = 'VALUE'.
lo_ddlb->selection = get_column_value( p_column_key ).
lo_ddlb->selection = 'DUMMY'.
p_replacement_bee = lo_ddlb.
WHEN 'MON' . " Check box
CREATE OBJECT lo_chk_bx.
lo_chk_bx->id = p_cell_id.
lo_chk_bx->checked = get_column_value( p_column_key ).
p_replacement_bee = lo_chk_bx.
WHEN 'NEW_MGR_SRCH'. " Button
CREATE OBJECT lo_button.
lo_button->id = p_cell_id.
lo_button->text = 'Search Mgr'.
lo_button->onclientclick = 'script'.
p_replacement_bee = lo_button.
WHEN OTHERS. " Text
CREATE OBJECT lo_text.
lo_text->id = p_cell_id.
lo_text->wrapping = 'FALSE'.
lo_text->text = get_column_value( p_column_key ).
lo_text->design = 'STANDARD'.
lo_text->textcolor = 'POSITIVE'.
p_replacement_bee = lo_text.
ENDCASE.
Thanks
A -
Changing the background box color of mail form
Well I have this code, that maybe is faulty but is working and I want to know if is possible to change the background color of the three first boxes (Nombre, name, email). The problem is if you open it with Coda or similar that the background color of the three first boxes is transparent and when I give a color to the table it gets to them, making very ugly to enter a text, well if you open it with Coda it becomes very easy to understand the problem.
The code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title>Contacto</title>
<link rel="stylesheet" type="text/css" href="../../css/nms.css" />
</HEAD>
<BODY>
<form method="post" action="../mail.php">
<table bgcolor="black">
<td><font face="Copperplate Gothic Bold" color="white">Nombre</td>
<td><input type="text" SIZE="38"name="Nombre" /></td>
</tr>
<td><font face="Copperplate Gothic Bold" color="white">Telefono</td>
<td><input type="text" SIZE="38"name="name" /></td>
</tr>
<td><font face="Copperplate Gothic Bold" color="white">Email</td>
<td><input type="text" SIZE="38"name="email" /></td>
</tr>
<tr>
<td><font face="Copperplate Gothic Bold"> Comentarios:</td>
<td><textarea name="data" cols=33 rows=12></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" /></td>
</tr></table>
ThanksI've put the form in a div to force the Snippet bigger so that you don't have to drag it out to stop the form being chopped.
The border wasn't working in Firefox because the way you wrote the styles.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Contacto
</title>
</head>
<body>
<div style="width: 400px;height: 380px;padding: 10px">
<form method="post" action="../mail.php">
<table style="background: black; width: 380px;padding: 15px; border-radius:15px;border: 1px solid #fff" summary="">
<tr>
<td>
<font face="Verdana, Arial" color="white">Nombre</font>
</td>
<td>
<input type="text" size="32" name="Nombre" style="background: white;font-family: Verdana,sans_serif; font-size: 12px;">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial" color="white">Telefono</font>
</td>
<td>
<input type="text" size="32" name="Telefono" style="background: white;font-family: Verdana,sans_serif; font-size: 12px;">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial" color="white">Email</font>
</td>
<td>
<input type="text" size="32" name="email" style="background: white;font-family: Verdana,sans_serif; font-size: 12px;">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial" color="white">Comentarios:</font>
</td>
<td>
<textarea name="Comentarios" cols="33" rows="12" style="background: white;font-family: Verdana,sans_serif; font-size: 12px;">
</textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit">
</td>
</tr>
</table>
</form>
</div>
</body>
</html> -
Tabbed browsing doesn't work. Opens in a new browser instead
I want to ask for more information. Does File - New Tab open a new tab? Does the issue happen in [[Safe mode]]?
-
ALV GRID-how to select all the check boxes using push button
Hai All,
I displayed ALV grid & every record contains one check box as first column.
If user clicks on one push button all the check boxes needs to selected.
Could any one tell me how to do this?
Regards,
BhaskarHi Bhaskar,
Try this code :
*" Table declarations...................................................
TABLES :
spfli. " Flight Schedule
*" Data declarations...................................................
Work variables *
DATA :
w_checkbox TYPE c, " Check Box
w_checkbox1 TYPE c, " Check Box
w_lineno LIKE sy-lilli, " Current Line No
w_lines TYPE i. " No. Of Records in Int.Table
Internal table to hold Flight Schedule data *
DATA :
t_spfli LIKE
STANDARD TABLE
OF spfli.
Structure to hold Function Codes *
DATA :
fs_fcode LIKE LINE OF t_fcode.
TOP-OF-PAGE EVENT *
TOP-OF-PAGE.
PERFORM top_of_page.
START-OF-SELECTION EVENT *
START-OF-SELECTION.
PERFORM fetch_spfli_data.
SET PF-STATUS 'YMENU1'.
DESCRIBE TABLE t_spfli LINES w_lines.
fs_fcode = 'EXIT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'SELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'DESELECT'.
APPEND fs_fcode TO t_fcode.
fs_fcode = 'RETRIEVE'.
APPEND fs_fcode TO t_fcode.
AT USER-COMMAND EVENT *
AT USER-COMMAND.
PERFORM user_command.
FORM top_of_page .
WRITE :/50 'Flight Schedule Information'(008).
ULINE.
FORMAT COLOR 1.
WRITE :/10 'Carrier ID'(001),
25 'Connection ID'(002) ,
43 'Airport From'(003),
59 'Airport To'(004),
74 'Departure Time'(007),
93 'Arrival Time'(011),
106 space.
ENDFORM. " FORM TOP_OF_PAGE
FORM fetch_spfli_data .
SELECT carrid " Carrier ID
connid " Connection ID
airpfrom " Airport From
airpto " Airport To
deptime " Departure Time
arrtime " Arrival Time
FROM spfli
INTO CORRESPONDING FIELDS OF
TABLE t_spfli.
IF sy-subrc EQ 0.
PERFORM display_spfli_data.
ENDIF. " IF SY-SUBRC EQ 0
ENDFORM. " FORM FETCH_SPFLI_DATA
FORM display_spfli_data .
SORT t_spfli BY carrid ASCENDING.
LOOP AT t_spfli INTO spfli.
FORMAT COLOR 2.
WRITE :/2 w_checkbox AS CHECKBOX,
spfli-carrid UNDER text-001,
spfli-connid UNDER text-002,
spfli-airpfrom UNDER text-003,
spfli-airpto UNDER text-004,
spfli-deptime UNDER text-007,
spfli-arrtime UNDER text-011.
ENDLOOP. " LOOP AT T_SPFLI...
ENDFORM. " FORM DISPLAY_SPFLI_DATA
FORM user_command .
CASE sy-ucomm.
WHEN 'SELECT'.
w_checkbox1 = 'X'.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'DESELECT'.
w_checkbox1 = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno.
IF w_checkbox = '*'.
CONTINUE.
ELSE.
MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
ENDIF. " IF W_CHECKBOX = '*'
ENDDO. " DO W_LINES TIMES.
WHEN 'RETRIEVE'.
w_checkbox = ' '.
DO w_lines TIMES.
w_lineno = sy-index + 3.
READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox.
IF w_checkbox = 'X'.
PERFORM fetch_sflight_data.
PERFORM display_sflight_data.
ENDIF. " IF W_CHECKBOX = 'X'
ENDDO. " DO W_LINES TIMES.
ENDCASE. " CASE SY-UCOMM
ENDFORM. " FORM USER_COMMAND
This report gives you the SPFLI Data and places a check box in front of each record. When u click on select all button it will select all the records. And if you click on deselect all it will deselect all the records. When you are trying this maintain the pf-status 'YMENU1' and give the function codes as in the code.
Regards,
Swapna. -
How to read the check box value in alv report
hi experts,
i m working on one alv report where i m using the check box for field selection in alv display.
but i don't know how to read the only selected fields.
wa_fieldcat-fieldname = 'BOX'.
wa_fieldcat-tabname = 'IT_HEADER'.
wa_fieldcat-seltext_m = 'Box'.
wa_fieldcat-checkbox = 'X'.
wa_fieldcat-input = 'X'.
wa_fieldcat-edit = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AUFNR'.
wa_fieldcat-tabname = 'IT_HEADER'.
wa_fieldcat-seltext_m = 'Sales Doc'.
wa_fieldcat-hotspot = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = i_fieldcat[]
i_save = 'A'
it_events = v_events
TABLES
t_outtab = it_header
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
when '&RELEAS'.
endcase
endform.
i gone through some already posted que for same problem i tried options like
loop at it_header.
endloop.
but i m getting box field empty.
is there i missed something? plz sugeest.. if u have any other solution plz post...Have this code in your user command fm:
* For capturing changed data
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = w_grid.
CALL METHOD w_grid->check_changed_data
IMPORTING
e_valid = w_valid.
IF w_valid = 'X'.
loop at itab where mark = 'X'.
endloop.
ENDIF.
Regards,
Ravi -
Mulitible check boxes but only select one in each row who I do it with Acrobat Pro X?
Dear Forum Readers
First, if I should post my entry in the wrong forum, forgive me but I didn’t found the right place!
I start to learn about the Adobe Pro X to create a form with different checkboxes, everything goes very well but now I decide it would be better if I could only check one checkbox in each row (see picture) .
Each checkbox in each row has its own value from 1-4 (left checkbox=1 and right checkbox=4) and on the end of the form “Sub Total” all the value in each column who are checked I accounting together.
1. 1. First I change the check boxes into radio button and give them a different value. Now I can only select one radio button in each row like I want it. But if I go to the field “Sub Total” (properties > calculate > pick) to account the value from each column together then I only can select the whole radio button group and not a single radio button. So my idea doesn’t work because the result is wrong.
2.
2.T2. Then I got back and change the radio button again into check boxes. In each row I give the 4 check boxes the same name (so they act like radio buttons) and this works fine as well but with the same result as you read above. I could only “Pick” (properties > calculate > pick) the whole group of the check boxes and not only one and therefore my result at “Sub Total” is wrong again.
I search the internet as well but I couldn’t found any working solution.
Now I like to ask you kindly, is there somebody who can help me with the problem?
I need the form as you can see at the picture but it should be only possible to check one checkbox in each row. But on the time I should be able to calculate each single column together.
I would appreciate every idea (as simple as possible) because I am a beginner with Adobe Pro X.
Thank you very much in advance!!!
Nice regards
KlausDear Gkaiseril
Thank you very much for your answer!
This I fears already J
With JavaScript I have even less an idea than with the program Acrobat Pro XI. Is there not a other solution to solve this problem.
Is it may possible that’s you can show me how such a JavaScript could look like or you know may a existing script?
Anyway, thank your help.
Nice regards
Klaus -
how do i change the default hand tool to the select tool when i open a document.
how do i change the view from 2 pages to a single page?Try setting the check boxes in Edit>Preferences>General for the following:
- Make Hand tool select text & images
- Make Hand tool read articles
- Make Hand tool use mouse-wheel zooming
Adjust these as needed but does it make any difference? -
How to select the check box automatically
Hi All,
I'm using forms 6i.I have 3 check boxes.If i Select the 2nd and 3rd check box then the fist check box should be selected automatically.The 2nd and 3rd check boxes are mutliarray block attached to each other while the !st check box is not attached to them. while Can someone please tell me how to write the code for this?
With Regards,
Gowtham
Message was edited by:
Gowtham1232
Message was edited by:
Gowtham1232It's not very clear, but I think that having a WHEN-CHECKBOX-CHANGED trigger on checkbox2 and checkbox3 that says
IF :checkbox2 = 'Y' and :checkbox3 = 'Y' THEN
:checkbox1 := 'Y';
ELSE
:checkbox1 := 'N';
END IF;assuming 'Y' is the checked value of each checkbox and 'N' the unchecked. -
How to color the check boxes?
Hello
I have couple of check boxes on my form, like....... my_check_box_monthly....... my_check_box_yearly.
I have 2 scenarios, so based on scenario, i hv to select either of the check box, as below
if scenario_1
make/display my_check_box_monthly with BLUE
else if scenario_2
make/display my_check_box_yearly. with RED
endif.
For text fields..... I know how to get i, its as below,
this.ui.oneOfChild.border.fill.color.value = "224,224,224";
Pls. let me know How to write the code for COLORING the check boxes in Java Script?
Thank youKindly check this code for changing border color of check box
If scenario1
this.ui.checkButton.border.edge.color.value = "0,0,255";
else if scenario2
this.ui.checkButton.border.edge.color.value = "255,0,0";
Thanks,
Anitha -
Hello All!
I am relatively new to creating forms within LiveCycle but I have learned quickly so bare with me on my question.
I have figured out how to highlight a field when a check box is clicked on, however, I cannot get it to remove the highlight when the check box is unchecked?
This is what I used for the highlight:
Subform1.fieldname.fillColor="255,255,0"
Can anyone provide any insight or suggestions on how I might fix this script issue?
Thanks in advance!
-LisaHi,
Script migth be something like this. Put it on Change event of the check box
if (this.rawValue == 1) { Subform1.fieldname.fillColor="255,255,0"
xfa.layout.relayout();
else
{ Subform1.fieldname.fillColor="255,0,0"
xfa.layout.relayout();
BR,
Paul Butenko -
Delete the rows if the check box is selected.
Dear all,
i have a block (not database block). i added a check box to the same block. now i want to delete the row against which the check box is selected.
i wrote the following code in when-button-pressed trigger.
IF Checkbox_Checked('CHK_DEL') THEN
delete from fa_01_11
where as_id = :as_id;
END IF;
commit;
but when i select only one check box it delete the all rows from the table if the condition is satisfied.
here is the data in my table
as_id year month
63 2006 4 0 -1183.92 1
63 2006 5 0 -1183.92 1
63 2006 6 0 -1183.92 1
63 2006 7 0 -1183.92 1
63 2006 8 0 -1183.92 1
63 2006 9 0 -1183.92 1
63 2006 10 0 -1183.92 1
63 2006 11 0 -1183.92 1
63 2006 12 0 -1183.92 1
what's the proble?
Regards:
Muhammad Nadeem
Message was edited by:
Muhammad NadeemYou need to run the code for each record and you need to find something which is unique. as_id is not unique.
untested:
declare
last_rec boolean := false;
deleted boolean := false;
begin
first_record;
loop
deleted := false;
last_rec := :system.last_record = 'TRUE';
IF Checkbox_Checked('CHK_DEL') THEN
delete from fa_01_11
where as_id = :as_id
and year = :year
and month = :month;
clear_record;
deleted := true;
END IF;
exit when last_rec;
if not deleted then
next_record;
end if;
end loop;
commit;
end; -
Help- check box on when the page is loaded first time have to show div tag
posted Yesterday 11:48 PM
Hi Friends,
I have a check box and the information of if it is checked or not comes from Actionform get, I want the div tag to be displayed when the jsp is first loaded and the check box is checked.
Can some one help me in sending the sample code for this.
with regards,
Bhargavi.Hi Scott,
Declare a SessionBean variable to hold the unique key field value for that table. Set that value when the user clicks on the button. Use the value to select only that row on the next iterattion of the page in RowSet.setCommand statement.. You will want to do some conditional initialization for this page depending upon whether or not this seesion bean variable has been initialized. -
Enable the check box in change layout in a report
Hi all,
I have a requirement ie after i run a repot we get a change layout icon in that icon there r tab's in it like coloums, sort order....,display.
In the dispaly tab i have a check box named printout with date,title and page number .so i would like to enable the check box .
can anybody tell me how can i do it using ALV's
Thanks,
Sricheck FM Reuse_alv_grid_display.
i_SAVE = 'A/U/'.
FU REUSE_ALV_LIST_DISPLAY I_SAVE
Text
Variants can be saved
Description
Controls the storage mode
Prerequisite:
The IS_VARIANT parameter has the appropriate value.
See also the documentation of the IMPORTING parameter IS_VARIANT.
Value range
' ' = display variants cannot be saved
Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.
Changes can not be saved.
'X' = standard save
Display variants can be saved as standard display variants.
User-specific saving is not possible.
'U' = only user-specific saving
The user can only save display variants user-specifically
'A' = standard and user-specific saving
The user can save a display variant user-specifically and
as standard display variant. The user chooses in the display variant
save popup.
Default
SPACE
Function Module
REUSE_ALV_LIST_DISPLAY
Regards
Prabhu
Maybe you are looking for
-
Question about connection to firebird database
Hi I'm a new JDBC programmer. I picked firebird because the application I wanted to make needed a server-less database. The database was easy to set up (I'm using the classic version of firebird) with isql, and I am now trying to access it through th
-
Long time VZW customer. My New Every Two just came due about a month ago and I am researching new handsets. I love the iPod Touch and have been praying for a functional VZW iPhone for a long time now. Who knows if it will ever be... If I am lookin
-
Buffered Reader question.
I am writing a program that reads data from multiple text files. When the program would need to read data from a different file I just reasigined the Buffered Reader object. For example: reader = new BufferedReader(new FileReader(new File(<name of fi
-
Re-sizing problem - DVPAL for internet delivery
I'm editing a package for internet delivery, the final pixel size will be 320 x 240. The stuff has not been filmed very well so it needs a 10% crop to cut out the nasties around the edge of the picture. I changed the settings of my sequence to 75% of
-
Does Spotlight search the information in a contacts "notes" field? Mine does not and Im not sure of thats a bug or if that how it works? Any suggestions? Thanks, Jim