Check box group
Hi experts,
I am new to webdynpro, i want to add one more check box in a check box group,
can anyone help me,(but default it is coming 3)
thanks in advance
Hi,
if it is limiting to three what you can do is create a two views with three check boxs each and create a view conatiner element in one view and embed the second view inside the view conatiner element.
so by doing this you can have more than three checkbox
cheers
Similar Messages
-
Setting tab order in a check box group
I am running a 508 accessibility test on forms created in Adobe. The issue that I am having is that when I verify the tab order, it skips the second or any other check boxes in a check box group. Does anyone know where to set it to recognize all the boxes in a check box group?
Paul,
Thank you. You were correct, it was a version issue. When I opened the form in Reader 9 with JAWS 10, I was aable to arrow through all of the check boxes with correct identification of each field. Thanks again for all your help. -
How to create a message check boxes group dynamically in OA Framework
Hi all,
I am developing a custom OAF page. It is a master-detail page. And I am having some difficulties to build that.
Firstly, I need to create a dynamic message check boxes group. These check boxes will get the prompt from a standard database table's column. Let's say I have table X with description column and it has 7 rows. Values of description column are A,B,C, ...etc. Then my master region on the page will have 7 check boxes with the prompts of A,B, C... Check box number will depend on the row/rows that this table has.
The other requirement is to create master and detail rows that depends on the number of any checked check boxes. If 2 check boxes are checked then we need to create 2 rows of master data and detail data too.
Does any of you have any ideas or suggestions to do that?
It is urgent, any help would be appreciated.
Thanks in advance and regards
PS: Is it possible to do that? Can anyone put some light on this thread please?
Edited by: user1742330 on Aug 12, 2012 4:23 PMPlease help me out with this issue...
I am in a very urgent situation. Any idea about this thread??? -
Re: Retrieving data from the check box group.....
Hi all,
I am new to webdynpro Java. I'm facing a problem while retrieving data from the check box group..
I've taken a simple type "Status" and Node with value attribute named status and set the property of that attribute as the simple type. This attribute is bound to the checkboxgroup.The cardinality of the Node is 0..n
But i am unable to read the checked items of the group.
Please help me out in solving my problem........Hi,
Use the following
for (int x=0; x< wdContext.nodeTest().size(); x++)
if( wdContext.nodeTest().isMultiSelected(x) )
// Selected Element
IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);
nodeElement.setAttributeValue("<Your Attribute> ", <Value>);
//Ex setting value for attribute called Name
nodeElement.setAttributeValue("Name", "Test");
Regards
Ayyapparaj -
Refreshing the 'Check Box Group' UI element
Hi ,
The requirement is the 'Check Box Group' UI element should be refreshed automatically . I am dynamically creating the 'Check Box Group' UI element and want to refresh it once I transfer the checked values from the Check Box group.
How this can be realized !!!
Best Regards
SidHi Sid,
CheckBoxGroup UI element`s content is done by binding property <i>texts</i> with appropriate attribute in context node. So, if you change data node and node elements, this will affect UI element immediately.
Best regards, Maksim Rashchynski. -
I am setting up a form to use the Spry check box field and
need to have a check box grouping to have a minimum and maximum
number of check boxes that can be selected. How is this done. I
have got individual spry check boxes with their own spry fields but
can't seem to find any documentation which shows me how to set up a
spry check box group. Could someone please tell me how to do this?
Thanks.Hi,
You can use the following code.
String[] monthNames = new String []
"January", "February", "March", "April",
List Year = new ArrayList();
for (int i = 0; i < monthNames.length; ++i)
IPrivateWebdyn_tableView.IYearElement month = wdContext.createYearElement();
month.setAtt1(monthNames<i>);
Year.add(month);
wdContext.nodeYear().bind(Year);
Bind the Checkbox group element to the node attribute.
Thanks,
Madhavi A. -
Hi,
I have created a check box Group
texts = Mydata.Interest.Interests
Mydata is a node , Interests is of type Simple type Interests.
It has 3 enumerations.
But when i run, I am able to only one check box with out any text.
Where am i wrong?Hi you cannot use symple type to name the check boxes.
create a node(Say CheckBox) of cardinality 0..N
with a context variable(Say CheckValue) of type String. Bind this attribute(CheckValue) to "texts" property of CheckBoxGroup.
Now, to add 5 checkboxes from code, use the following code
IPrivate<View>.ICheckBoxNode lNode=wdContext.nodeCheckBox();
IPrivate<View>.ICheckBoxElement lEl;
for(int i=0;i<5;i++)
lEl=lNode.createCheckBoxElement();
lNode.addElement(lEl);
lEl.setCheckValue("Text"(i1));
xxxxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on May 21, 2008 7:58 PM -
Radio Button or Check Box Group
Hi,
I built a form based on a query. There is a flag column, only one of queried records is allowed to be "Y" in this column. The rests must be null.
Most ideal thing is to have a radio button group, only one of them can be selected.
Another way is to have a group of check boxes also allow only one checked. Once another check box is selected, the previously selected box must be unchecked.
Does anybody have idea of how to do it?
Thanks,
nullYou have the save the number of the current ("checked") record in your data block.
After that you can launch a trigger which will scan every record in your data block (there are enough built-ins like FIRST_RECORD, LAST_RECORD, NEXT_RECORD, Current_record property, etc.)to allow you to do this. The trigger will set the check item property to "unchecked" if it is not the saved "checked" record.
Joseph
null -
Automate check box group selections.
Hello there,
Is there a way to programmatically select checkbox group items and save them into the context.
Thanks
SrinivasHi Srinivas,
You are doing the selection part completely wrong.
wdContext.nodeCheckbox_GroupList().setSelected(adminOfficeIndex, true);
The above code will not select a check box. This is used to select elements in a table.
First you have to check to which attributes the checkboxes are bound in the context. Let us know the context structure.
You should also know that Checkbox will take data only from the lead selected element of the context node. For instance you have a context node Checkbox_GroupList. The node should have a cardinality 1:1. If you have six checkboxes then you need to have six attributes of type boolean in that node. Each checkbox's checked property need to be bound to an attribute in the node Checkbox_GroupList node.
For selecting the checkbox the code should be some thing like this.
wdContext.nodeCheckbox_GroupList().currentCheckbox_GroupListElement().setCheckBox1(true);
Like wise all the six attribute values need to be checked.
In your case I guess you are comparing the attribute value with the contents of an array. If you know exactly what the names in officeList array is going to be then you can name the context attribute with the exact name then use your code like this,
String[] officeList;
officeList = wdContext.currentUser_Search_ResultsElement().getOffice_List().split(",");
int adminOfficeIndex = -1;
while(finalCheckbox.hasNext()){
adminOfficeIndex++;
String adminOffice = finalCheckbox.next().toString(); ;
IPublicRepNetAdminComp.ICheckbox_GroupListElement officeNames =
wdContext.createCheckbox_GroupListElement();
wdContext.nodeCheckbox_GroupList().addElement(officeNames);
officeNames.setGroup_Names(adminOffice);
//loop through user group to compare, if present make the selection
for(int i =0; i < officeList.length ; i++){
if(adminOffice.trim().equalsIgnoreCase(officeList<i>.trim())){
wdContext.nodeCheckbox_GroupList().currentCheckbox_GroupListElement().setAttributeValue(adminOffice.trim(), Boolean(true));
break;
Make sure that you make the node Checkbox_GroupList cardinality 1:1 and name the attributes exactly the values in officeList.
Sanyev -
How to create a field with combo or check box group in a form
1 - i created a database table messages (sender_name , date , message_type , message_body)
message type accept only COMPLAINT , SUGESSTION OR OPENION
2 - I created a form which has a field called message_type
3 - i want the message type appear in the runtime as a checkbox group or as combo box (with values COMPLAINT , SUGESSTION OR OPENION)
PLEASE GUIDE ME STEP BY STEP TO DEVELOP IT
Regards
Mohamed HammedHi,
You can create another table to hold the unique values COMPLAINT, SUGESSTION and OPINION. You can then dynamically query this table in a Dynamic Page & construct the HTML code within a function like this :-
CREATE OR REPLACE FUNCTION FN_GET_RADIO_OPTIONS
RETURN VARCHAR2
AS
ln_return_html VARCHAR2(32767);
BEGIN
FOR rec IN ( SELECT ROWNUM,MESSAGE_TYPE FROM SCOTT.MESSAGES_TYPES )
LOOP
ln_return_html := ln_return_html || '<INPUT TYPE=RADIO NAME=rd'||rec.ROWNUM||' VALUE='||rec.MESSAGE_TYPE||' />';
END LOOP;
RETURN ln_return_html;
END;
/You can then get something out of Dynamic Page like this :-
<ORACLE>
DECLARE
ln_SQL VARCHAR2(32767);
BEGIN
ln_SQL:= FN_GET_RADIO_OPTIONS;
HTP.P(ln_SQL);
END;
</ORACLE>Of course, you do the same in a million other ways - using Java, etc - this is just an example to give you an idea.
Regards,
Sandeep -
Check boxes not responding correctly in form.
I've created a form in forms central. Then I used XI to edit more fields. I have 7 check boxes grouped together. They are required and have a min. of 1 and max of 7. They are allowed to check as many as they wish. But when they hit the submission of the form it is allowing it to be submitted with those boxes left empty. What else can I do?
This is probably due to the following user preference: Acrobat > Preferences > Page Display > Rendering > Enhance thin lines
You should deselect it. -
hi guys,
I have a check box group one of the two check box's are never displayed, im having a problem with the label of that hidden checkbox, ive checked the page source and the label seems to have the same ID as the element itself and im unsure of how to assign the an id for that particular check box, any ideas, thanks
StefanHi Stefan,
You mention "+im having a problem with the label of that hidden checkbox+". Is the problem that the checkbox is hidden but it's associated label is still being displayed? Have you tried creating a dynamic action to hide that particular checkbox option? I'm not sure if this is what you're looking for, it will result in the checkbox & label being hidden. As you've said, you've checked the page source, so you know the ID of the checkbox option you wish to hide. For example, your page source may look as follows:
<input type="checkbox" id="P20_CHECKBOX_4" name="p_v11" value="50" /><label for="P20_CHECKBOX_4">50</label></td><td>Now, to hide this option of a checkbox, you could create a Standard Dynamic Action, specifying the event to fire action e.g. Page Load. Then in the True Action, set the Action to Hide, set the Affected Elements 'Selection Type' to jQuery Selector, and in the jQuery Selector text field you'd enter the following: #P20_CHECKBOX_4. Now when you run the page, the checkbox option & its associated label are hidden.
I hope this helps.
Regards,
Hilary -
I need to identify a series of single-response checkbox variables and display the ones selected (as a group) in a text field in an appended (comma, space) format. Last week, you provided a great little script for a similar need using List Box (multiple response) variables. This time I need to know how to formally identify the checkbox variables and, I presume, use a similar script to display the results in a comma, space format.
You've been of great help.
ThanksHere's the script adapted to this situation. It assumes there are ten check boxes named cb1, cb1, cb2, ...cb10.
// Custom Calculate script for text field
(function () {
// Initialize the string
var v, s = "";
// Loop through the check boxes to build up a string
for (var i = 1; i < 11; i++) {
// Get the value of the current check box
v = getField("cb" + i).value;
if (v !== "Off") {
if (s) s += ", "; // Add a comma and a space if needed
s += v; // Add the selected value
// Set this field value to the string
event.value = s;
You'll have to change the field name and starting/ending numbers to match your form. -
How to disbale a group of checkboxes when i select one check box WEBDYNPRO
Hi Friends,
Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
Thank you..
SaiHi
In the context tab , create 2 context attributes ca_attr1 and ca_attr2 of type WDY_BOOLEAN under a context node cn_node
now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
create a action for ur Checkbox , for the OnToggle property of ur checkbox
in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
// if ca_attr2 is 'X'
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr2.
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* get single attribute
lo_el_cn_node->get_attribute(
EXPORTING
name = `CA_ATTR2`
IMPORTING
value = lv_attr ).
// if lv_attr2 is 'X' , use set_attribute method for ca_attr1
IF lv_Attr EQ 'X' .
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr.
* navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* set single attribute
lo_el_cn_node->set_attribute(
EXPORTING
name = `CA_ATTR1`
value = ' ').
ENDIF.
regards,
amit -
How to Select each check box values in a group of records
Hi,
I have a requirement in forms 10g. In that form there are 10 records are displaying each record has one check box is there if i click the check box on record number one and record number three and do some changes in the text field(adjustment field is number data type) then finally I want to see the total on one field called total amount.
In this my question is how to select particular records in a group of records? and finally these selected records are inserted into one table.
Because I am not able to fetch these records at a time.
Is there any Array to define a record group to fetch each of them individually for example Rec[1],Rec[2]...like that if yes please suggest me the steps how to do this.
Thanks in advance
Prasanna
Edited by: user10315107 on Dec 17, 2008 11:44 PMI'm sorry, but i didn't get your requirement in detail.
Do you want to do the summing of the selected records in forms ? Or do you just want to know which records are selected and then process them?
If you want to process the selected records in sql you could use an object-type to store the list of id's (of whatever primary key you use), loop over the block to fill it, and then afterwards process them.
For this approach, first create an object-type in the database:
CREATE OR REPLACE TYPE ID_LIST AS TABLE OF NUMBER;
/Then, in forms you could do something like this to fill a list of id's:
DECLARE
lIds ID_LIST:=ID_LIST();
BEGIN
GO_BLOCK('MYBLOCK');
FIRST_RECORD;
LOOP
EXIT WHEN :SYSTEM.RECORD_STATUS='NEW';
IF :BLOCK.CHECKBOXITEM="CHECKEDVALUE" THEN
lIds.EXTEND(1);
lIds(lIds.COUNT):=:BLOCK.PRIMARYKEYITEM;
END IF;
EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
NEXT_RECORD;
END LOOP;
-- Now you can use the object-list in SQL like :
INSERT INTO MYNEWTABLE (cols..)
SELECT (cols..)
FROM MYOLDTABLE
WHERE ID IN (SELECT COLUMN_VALUE FROM TABLE(lIds));
END;Edited by: Andreas Weiden on 18.12.2008 18:17
Maybe you are looking for
-
How can I limit the number of simultaneous downloads on my Mac?
Hi Everyone, I'm using an old Powerbook G4 runnnig 10.4.11. Whenever I'm downloading a large number of files simultaneously, my OS insists on downloading them all at the same time. When I've got 50+ files coming in, it gets kind of messy and makes it
-
How can I delete addresses in a received email before forwarding?
I want to clean up a message before forwarding it to someone on my iPad. Cannot find out hoe to delete sections of received email before sending on. Read a double tap would give me a delete option but it does not. So much for buying books. Also h
-
XI 3.0 Installation Problem: no central managment server running
Hi, I am totally new to BO our company just purchased the application and I have installed XI 3.0 on one of our server. I have setup the DB and the installation finished successfully. However I can't find CMS anywhere on the server. It seems like all
-
Getting error while backing up database on a USB hard drive
Hi I have run oracle 10g database installed on a Redhat linux AS4.I ran out of space so i tried to backup my database on a USB hard drive with RMAN. I got this error in the middle of backup process. ORA-19502: write error on file "/media/OneTouch_4/b
-
Playlists not syncing properly
Hi Ive posted this question before and had no luck with an answer I have modified a few playlists on my iphone 5 ie created new ones, deleted old ones and rearranged others. The changes are not coming up properly in my other devices like my ipad and