Check Box in a table
Hi
I have two tables each with 2 columns.First Column is a check box and the second column is Name field.Am getting User and group names from UME API into the name field of the first table.
Now if i check a single box and click on a button the selected check box value should be populated in the Name field of the Second table.
Similarly if i check multiple check boxes all the Names for the checked boxes should be populated in the Second table on click of a button.
Also on click of another button and selection of single checkbox in the second table the selected value (note not the check box value but the Name column value in the same row as the selected check box) should be removed from the second table.
Similarly multi selection of check boxes.
Any help immediately is highly appreciated.
Thanks in advance
Solved on my own !!!
Similar Messages
-
How to insert check box value in table?
Hi all
kindly help me how to insert check box value in database. what code i have to use as i am new in programing.
thanx in advanceHi,
There is no "Check box" in a table, a check box is a GUI (Graphical user interface) item.
What you want is to store a boolean value in a table. For that you can use the varchar2(1) datatype and store Y or N. (or anything else)
(you cannot define boolean as a datatype for a column).
If you're using a front-end application like apex then it might be useful for you to read the documentation about chekc boxes :
http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/check_box.htm#CHDDFBFH
(for the rest if it's Oracle Forms then everything is already said).
Edited by: user11268895 on Aug 17, 2010 10:44 AM -
Check box in a table view column
Hi,
I want to have a check box in a table (htmlb for java) for one column. In the table header when checked should automatically check all the check boxes in that column.
Also let me know how to read the column if it is checked or not.
Promise to reward you with points. Thanking u in advance.
Subu.Hi ,
just add the following code in your jsp page---
for (int i = 1; i <= no_of_rows ; i++){
for (int j = 1; j <= no_of_columns ; j++){
if(i%2!=0){
mytableView.setStyleForCell(i , j, TableCellStyle.GROUP_LEVEL2);
else{
mytableView.setStyleForCell(i , j, TableCellStyle.GROUP_LEVEL3);
as it is obvious,this code is to set different colors in alternative rows.
myTableView is the id of TableView.
Refer this link for different colors...
http://help.sap.com/saphelp_nw2004s/helpdata/en/26/f79241e9129f09e10000000a155106/frameset.htm---
Hope this helps.
Regards,
Swarna
Message was edited by: SwarnaDeepika -
How to add unique id to check box in a table
Hi Experts,
I have a static table in which more than 500 records appears in the table, so vertical scroll is displaying in the table. In each row, check boxes and text boxes displays with the data. When the check box is selected, I will do the calculation based on the selected check box and displays the calculated value to text control of respected row. To achieve this, I am triggering the event iterating the loop over the context to find which check box is selected. When the page gets refreshed, cursor moves to first record.
Since all the check boxes having the same id, I am not able to get from which check box this event has got triggered.
Is there a way to assign unique id to each check box so that I can assign parameter to the control and get from which check box event got triggered. I have tried to generate the table dynamically, even there I couldn't assign id to each check box.
Please through light on this request
Thanks
MurthyIt is not specific to any platform but common in all whether is CE or 7.0 follow the given procedure
1. Create a common onLeadSelect of table say it selectedRow
2. Assign the same event in onToggle selectedRow of checkbox.
3. Now loop it in such a way that
if (wdContext.nodeAppinvoiceData().getLeadSelection() >= 0)
wdContext.currentAppinvoiceDataElement().setIsPreviewSelected(true);
if (wdContext.currentAppinvoiceDataElement().getIsSelected())
wdContext.currentAppinvoiceDataElement().setIsSelected(false);
for (int i = 0; i < wdContext.nodeAppinvoiceData().size(); i++)
boolean flag = wdContext.nodeAppinvoiceData().getAppinvoiceDataElementAt(i).getIsSelected();
if (flag)
break;
else
else
wdContext.currentAppinvoiceDataElement().setIsSelected(true);
wdContext.currentAppinvoiceDataElement().setIsPreviewSelected(false);
wdContext.nodeAppinvoiceData().clearSelection();
wdContext.nodeAppinvoiceData().setLeadSelection(-1);
BR
Satish Kumar -
How to use check box in a table
i have a field in a internal table in which i have to put "X" if the user checks on a check box, for a particular row.
please provideme with the required code .
Thankyou.
UpendraHi upendra
There are slight changes in the sivas code.Where is the data coming into the table.If its from a Model Node then iterate each element of the source node get that value compare and set the corresponding value in the element of the node binded to table.
Create a boolean attribute "select" in the table node and bind it to checked property of the check box.
for(int i=0;i<wdContext.node<tablenode>()..size();i++)
if(wdContext.node<tablenode>().get<tablenode>ElementAt(i).select())
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(true);
else
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(false);
See the attribute is boolean so pass true or false as a values in setter methods.
Regards
Kalyan -
How to put check box in a table format at the out put ? Urgent issue...
Hi,
I am working an assignment to assign multiple roles for multiplr user.
In selection screen we have to enter mutiple EMPNO from ..to
1) in second screen we will get the empno, First name, last name, Position,
From date, To date, Sap user ID, Email id in the table formate with first
column with Check box.
2) In second screen below the table I have to place the multiple roles just like in
the step loop format and below this one Execute button should be there.
If we select the multiple employees or single employee and place the multiple roles or single roles and if I click the execute button then the multiple roles will be assigned to the multiple employees. The empno and roles will come from table and step loop to internal table and the same will pass to the BDC.
For this requirement I prepered recording for Transaction PFCG. But I can't understand how to design the second screen that table format and the step loop format. Can anybody give any idea or any coding to design the second screen.
and how to meet the requirement. This is urgent issue. Good SDN points will be reworded.
Witing for kind response.
Thanks in advance.
BansidharHi upendra
There are slight changes in the sivas code.Where is the data coming into the table.If its from a Model Node then iterate each element of the source node get that value compare and set the corresponding value in the element of the node binded to table.
Create a boolean attribute "select" in the table node and bind it to checked property of the check box.
for(int i=0;i<wdContext.node<tablenode>()..size();i++)
if(wdContext.node<tablenode>().get<tablenode>ElementAt(i).select())
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(true);
else
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(false);
See the attribute is boolean so pass true or false as a values in setter methods.
Regards
Kalyan -
How to Create Check Box in Dynamic Table
Hi Friends,
I've Created one Dynamic Table there i want to display 2 columns as Check Box.
How to Add this check box as column cell variant.
Looping the columns. In this One method SET_TABLE_CELL_EDITOR is ter. But i'm getting how to use this method. Kindly help in this Issue.
Regards,
jack.Hi upendra
There are slight changes in the sivas code.Where is the data coming into the table.If its from a Model Node then iterate each element of the source node get that value compare and set the corresponding value in the element of the node binded to table.
Create a boolean attribute "select" in the table node and bind it to checked property of the check box.
for(int i=0;i<wdContext.node<tablenode>()..size();i++)
if(wdContext.node<tablenode>().get<tablenode>ElementAt(i).select())
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(true);
else
wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(false);
See the attribute is boolean so pass true or false as a values in setter methods.
Regards
Kalyan -
Check box in a table not being read on auto read by JAWS(Screen Reader)
Hi Experts,
I am working on Accessible pages in ADF. Check box in table is not being read on "Auto Read" function by jaws. Auto read is a function that allows the user to start the screen reader at the top of the page and read the entire thing that is provided by JAWS. I have even specified label property for af:selectBooleanCheckbox. Can anyone help me regarding this issue.
Regards,
Santosh.
Edited by: 930871 on Jun 13, 2012 6:54 AM
Edited by: 930871 on Jun 13, 2012 7:25 AMCan anyone help me on this issue. This is really urgent.
-
How to enable a check box using the table LVC_S_FCAT
hi,
I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.Hi Preethi,
try to set default the check-box with the
value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
'-' field is not shown, ' ' and 'X' is normal)
and see the differences.
Hope it helps.
Regards, Dieter
Sorry, i thought you meen enable not editable.
Message was edited by: Dieter Gröhn -
Hi experts ,
I have a requirement of having one of the table field as checkbox .when i kept it as checkbox it is not getting reflected in sm30 .i need to have a check box displayed in the field of the table in sm30 .Hey i too came across this problem and i guess changing Screen could be a troublesome task.
Other option is:
First Regenerate that particular table.
TCODE: SE14 --> Enter table name --> Click on Activate and adjust database button.
If it wont works then last option is:
Delete the Table Maintenance generator for that particular table and again create it with same details, make sure you dont change anything while recreating it (even the screen number must be same).
Open table in (Change mode) --> Utilities --> Table maintenance generator --> Delete it and again create with same parameters.
This will surely work,
<REMOVED BY MODERATOR>
Regards Pankaj.
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:31 PM -
How to enable/disable check boxes in a table.
hi Gurus,
i am new to webdynpro for abap.
the problem i have is.
i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
thanks in advance.
SreeHi
Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
for that i declare atrribute of type CHECKBOX.
And i write the following code.
lr_column_settings ?= l_value.
lt_columns = lr_column_settings->get_columns( ).
loop over table - in each loop another column can be modified
LOOP AT lt_columns INTO ls_column.
IF ls_column-id = 'CHK_BOX'.
CREATE OBJECT lr_chk_box
EXPORTING
checked_fieldname = ls_column-id.
lr_chk_box->set_read_only( ABAP_FALSE ).
lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
ls_column-r_column->set_cell_editor( lr_chk_box ).
even i cant able to get checkbox in my ALV.
IT is displaying as general field.
Regards,
Ravi -
Issues aligning Check Boxes in a table in LiveCycle Forms
Hi, I've created a form in LiveCycle which includes a table. In the table I want to insert two columns of tick boxes and center align them. I've managed to insert them ok but don't seem to be able to control the alignment at all (they just stay right aligned). I've tried setting the column alignment to centered and also tried a couple of basic commands in the xml source, but without any success. Has anyone got any ideas? Ta
Excellent, thanks - just need to do a few adjustment in the measurements
of the margins and it works perfectly.
This e-mail is confidential and may contain information subject to legal
privilege. If you are not the intended recipient please advise us of our
error by return e-mail then delete this e-mail and any attached files.
You may not copy, disclose or use the contents in any way.
The views expressed in this e-mail may not be those of Gallagher Group
Ltd or subsidiary companies thereof. -
How to add a check box to a table?
I'm new to the Swing portion of Java. Most of the stuff we write is for backend processing and does not require any GUI's. However, I need to write a screen that needs to have a table and that table needs to have a checkbox. How do I add a checkbox for a column in the DefaultTableModel? Does anyone have any examples?
Thanks[http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
If the TableModel's column class is Boolean, you'll get the column rendered with checkboxes. Take a look at some of the examples in the tutorial. -
How to keep the 14 check boxes in a table format in 2 columns and 7 rows
List lst = LookUpBean.getAllLookUpCodes(LookUpBean.ELESE_USER_ROLES);
Iterator lucIter = lst.iterator();
while ( lucIter.hasNext() ) {
LookUpCode lc = (LookUpCode)(lucIter.next());
result.append(EleseHTMLUtils.checkbox("User Role",lc.getDescription(), true) + lc.getDescription()+"<br>");
}Not sure if i understand the question but is this by any chance a question related to creator? If so,
creator forum:
http://swforum.sun.com/jive/forum.jspa?forumID=123
how to put checkboxs inside a table column:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51652 -
Display check box in a Table Control in MPP Programs
Hi,
I need to display checkbox in my table control in my MPP screen, can any body help.
Regards,
SrinivasHi ,
just add the following code in your jsp page---
for (int i = 1; i <= no_of_rows ; i++){
for (int j = 1; j <= no_of_columns ; j++){
if(i%2!=0){
mytableView.setStyleForCell(i , j, TableCellStyle.GROUP_LEVEL2);
else{
mytableView.setStyleForCell(i , j, TableCellStyle.GROUP_LEVEL3);
as it is obvious,this code is to set different colors in alternative rows.
myTableView is the id of TableView.
Refer this link for different colors...
http://help.sap.com/saphelp_nw2004s/helpdata/en/26/f79241e9129f09e10000000a155106/frameset.htm---
Hope this helps.
Regards,
Swarna
Message was edited by: SwarnaDeepika
Maybe you are looking for
-
Is there any way to create or move around folders on the main menu?
For example, I know how to add things like Clock, and take out things like pictures.. but is there a way I could create another option to put notes or photos in? Like a new folder on the main menu that you could go into and it would have maybe my pho
-
Now I can't access my Time machine and it has not backed up since 3 months. I am stuck as i don't know how to get back to my old OS and basically ignore the Yosemite download until I figure out what is wrong with my SSD. I successfully replaced the H
-
Need help removing hard drive from Time Machine exclusion list
I have a 1TB Western Digital Essential hard drive with about 500Gb of music, movies and other assorted data tethered directly to my iMac. I also have a 1TB Time Capsule that serves as my wireless router and connects to my iMac over the wireless netwo
-
Backing Bean method not invoked - h:selectOneRadio
Hi, I am trying to invoke a method in the backing bean when a radio button is selected, but for some reasons the method is not getting invoked, any idea why is it so? copying the code for reference. I have a command button in this jsp which when clic
-
Dears, i use TLF in flash files, it make the file has a big size. for example classic Text size is 2-3 k and TLF size is 56 k, sure without the external tfl file which is exported during the publish. So, How can i reduce and control this difference i