How to add values of checkboxs to a numeric field?
I have 5 checkbox which I assigned values to: Excellent 5 , Satisfactory 4, Needs Improvement 3 , and so on. When I check a check box , lets say the Excellent one, I want it to put the value 5 in another numeric field. How do I do this?
Hi,
For the checkboxes you can set the On value and the Off value. See the Object > Binding palette. You would just set the Excellent check box to an On value of 5. Then it is just a matter of adding the checkboxes together.
See a few examples here: http://assure.ly/omsURE, http://assure.ly/uiKS6f and http://assure.ly/iitzNJ.
Niall
Similar Messages
-
How to add values to drop down list in adobe forms
how to add values to drop down list in adobe forms
Hi,
If you are using WD Java following are steps of filling values in DD Box:
1 Create a simple type in the Dictionary.
2 Create an attribute "CountryNew" in the Context of type created by you.
3 Write following code in the init method of the form:
IWDAttributeInfo countryinfo =
wdContext.nodeEmployee().getNodeInfo().getAttribute("CountryNew");
ISimpleTypeModifiable Country = countryinfo.getModifiableSimpleType();
IModifiableSimpleValueSet countryValueSet =
Country.getSVServices().getModifiableSimpleValueSet();
countryValueSet.put("IN", "INDIA");
countryValueSet.put("US "USA");
4 Add a Enumrated DD box in the form and bind it to the attribute "CountryNew"
Hope this helps
Amit -
How to Add Values in INVOICE SUB-TYPE field at the Invoice Header Forms
Hello,
Does any body knows how could I add/modify values in the INVOICE SUB-TYPE field at the Invoice Header Forms?. This values are related to the Globalization, in this case for the Chilean Localizations.
Thanks,
Alejandro R.It gives any error or just does nothing?
Have you tried making another simple form with just one block and one or two items?
You can do this type of testing in these conditions.
Which version of forms are you using? -
Webdynpro " How to add values in Drop down list By Key"
Hi experts ,
i want to create a drop down list by key, i don't know how to assign values to it ( i.e. add list entries ) . Please help me on this ..
With regards ,
James..
Valuable answers will be rewarded ....Hi,
To fix values to the drop down key at runtime in the webdynpro application you can use the following code:
DATA:
lr_node_flightinfo TYPE REF TO if_wd_context_node,
lr_nodeinfo_flightinfo TYPE REF TO if_wd_context_node_info,
l_scarr type scarr,
lt_value_set TYPE TABLE OF wdr_context_attr_value,
lw_value_set like line of lt_value_set.
get nodeinfo of node flightinfo
lr_node_flightinfo = wd_context->get_child_node( name = 'FLIGHTINFO' ).
lr_nodeinfo_flightinfo = lr_node_flightinfo->get_node_info( ).
get value set (VALUE = CARRID , TEXT = CARRNAME)
select carrid carrname from scarr into table lt_value_set.
clear lw_value_set.
lw_value_set-value = 'AI'.
lw_value_set-text = 'Air India'.
append lw_value_set to lt_value_set.
sort the value set by the describing TEXT
SORT lt_value_set BY text.
set value to context attribute
lr_nodeinfo_flightinfo->set_attribute_value_set(
name = 'CARRID' value_set = lt_value_set ).
Here CARRID is a drop down by key field on the screen.
in The context it is an attribute in the node FLIGHTINFO.
Please give Reward Points if this piece of code helps
Regards,
Manish -
How to add values in the combobox that I have added in the Grid?
Hi all,
I have added a combobox to a Grid, i need to add values to that Combobox, how can i do it, Can anybody help
Regards
Cool IceHi Cool Ice,
I'm use this code to add value to my combobox in my grid :
string sQuery = "SELECT CRD1.Address FROM CRD1 WHERE CRD1.AdresType='S' AND CRD1.CardCode='" + oGrid.DataTable.Columns.Item("U_IFC_PP").Cells.Item(pVal.Row).Value.ToString() + "'";
SAPbobsCOM.Recordset oRec;
oRec = (SAPbobsCOM.Recordset)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
oRec.DoQuery(sQuery);
SAPbouiCOM.ComboBoxColumn oCBB;
oCBB = (SAPbouiCOM.ComboBoxColumn)oGrid.Columns.Item("U_IFC_ADR");
oCBB.DisplayType = SAPbouiCOM.BoComboDisplayType.cdt_Value;
while (!oRec.EoF)
oCBB.ValidValues.Add(oRec.Fields.Item("Address").Value.ToString(), "");//, oRec.Fields.Item("Address").Value.ToString());
oRec.MoveNext();
Hope it's help you
Regards
Michael -
How to add value in service header
Hi,
Following is the portion of service header which I am sending to my Trading Partner-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd">
<ServiceHeader>
<ProcessControl>
<ProcessIdentity>
<GlobalProcessCode></GlobalProcessCode>
<GlobalProcessIndicatorCode>3A4</GlobalProcessIndicatorCode>
<initiatingPartner>
I want to add value "Request Purchase Order" in tag "GlobalProcessCode". So this portion of service header should be like this-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd">
<ServiceHeader>
<ProcessControl>
<ProcessIdentity>
<GlobalProcessCode>Request Purchase Order</GlobalProcessCode>
<GlobalProcessIndicatorCode>3A4</GlobalProcessIndicatorCode>
<initiatingPartner>
Can anyone tell that where exactly I should add "Request Purchase Order" value in my B2B configuration so that I get the required service header value?
Thanks & Regards,
Anuj DwivediHi Anuj,
Guess you are using RNIF 1.1.
Please ensure to provide the collaboration code while creating collaboration.
Regards,
Dheeraj -
How to add an editable checkbox to an alv grid
Hi..
I need to add an editable checkbox to a alv grid.
I wouls appreciatet it if anyone could provide some sample code.
The standard example BCALV_EDIT_05 is an oops example... I need a simple example
Please help
thanks
Karenhi
after you pass a field as checkbox in fieldcat
then in layout populate edit
ex wa_layout-edit = 'X'.
try the following code
REPORT ZALV5.
TYPE-POOLS: slis.
tables: mara.
DATA: begin of it_mara OCCURS 0,
matnr like mara-matnr,
mbrsh like mara-mbrsh,
matkl like mara-matkl,
meins like mara-meins,
ersda like mara-ersda,
ernam like mara-ernam,
W_CHK type c ,
END OF it_mara.
*data: it_mara like mara occurs 0 with header line.
data:it_feildtab type slis_t_fieldcat_alv,
wa_fieldcat type slis_fieldcat_alv.
*DATA: i_private TYPE slis_data_caller_exit,
data: i_selfield TYPE slis_selfield,
W_exit(1) TYPE c.
PARAMETERS: p_title TYPE sy-title default 'ALV'.
START-OF-SELECTION.
SELECT matnr mbrsh matkl meins ersda ernam FROM mara
INTO corresponding fields of table it_mara.
wa_fieldcat-col_pos = '1'.
wa_fieldcat-fieldname = 'W_CHK'.
*wa_FIELDCAT-KEY = 'X'.
*wa_fieldcat-tabname = 'IT_MARA'.
*wa_fieldcat-seltext_s = 'units of measure'.
wa_fieldcat-checkbox = 'X'.
APPEND wa_fieldcat TO it_feildtab.
CLEAR wa_fieldcat .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = '2'.
wa_fieldcat-tabname = 'IT_MARA'.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-key = 'X'.
wa_fieldcat-hotspot = 'X'.
wa_fieldcat-seltext_s = 'no'.
APPEND wa_fieldcat TO it_feildtab.
CLEAR wa_fieldcat .
wa_fieldcat-col_pos = '3'.
wa_fieldcat-fieldname = 'MBRSH'.
*wa_FIELDCAT-KEY = 'X'.
wa_fieldcat-tabname = 'IT_MARA'.
wa_fieldcat-seltext_s = 'Ind.sec'.
APPEND wa_fieldcat TO it_feildtab.
CLEAR wa_fieldcat .
wa_fieldcat-col_pos = '4'.
wa_fieldcat-fieldname = 'MATKL'.
*wa_FIELDCAT-KEY = 'X'.
wa_fieldcat-tabname = 'IT_MARA'.
wa_fieldcat-seltext_s = 'Description'.
APPEND wa_fieldcat TO it_feildtab.
CLEAR wa_fieldcat .
wa_fieldcat-col_pos = '5'.
wa_fieldcat-fieldname = 'MEINS'.
*wa_FIELDCAT-KEY = 'X'.
wa_fieldcat-tabname = 'IT_MARA'.
wa_fieldcat-edit = 'X'.
wa_fieldcat-seltext_s = 'units of measure'.
APPEND wa_fieldcat TO it_feildtab.
CLEAR wa_fieldcat .
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = p_title
i_selection = 'X'
i_zebra = 'X'
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
i_checkbox_fieldname = 'W_CHK'
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'IT_MARA'
i_structure_name = 'IT_MARA'
IT_FIELDCAT = it_feildtab
IT_EXCLUDING =
I_CALLBACK_PROGRAM =
I_CALLBACK_USER_COMMAND =
IS_PRIVATE = I_PRIVATE
IMPORTING
es_selfield = i_selfield
e_exit = w_exit
TABLES
t_outtab = it_mara
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE i000(0k) WITH sy-subrc.
ENDIF.
LOOP AT it_mara WHERE W_CHK = 'X'.
WRITE: / it_mara-ersda, it_mara-ernam.
ENDLOOP.
reward if helpful
prasanth -
How to Add Dynamic af:inputText or UI comp fields in JSPX pages?
i want to add one <af:inputText> Field in my jspx page.
it is based on MaxQuantity (af:inputText field). Say if value of MaxQuantity >3 it should add one UI component next to MaxQuantity field.
How to achieve this ? will that be produced in Backing Bean or should be Partial rendering ?
need URGENT REPLY
ThanksProblem still exists. with almost similiar results.
with config --> #{bindings.CreateNewEquip_AccMaxQty==6} it gives
javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: Attempt to coerce a value of type "oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding" to type "java.lang.Long"
with Config --->#{bindings.CreateNewEquip_AccMaxQty=='6'} it produces similar action as before i.e. no rendering for EquipName component -
How to see values (null, 0) instead of blank fields
Hi.
I search the forum but only found messages about users who want to show fields blank, when value is null.
I have the problem other way around. I work with DevSuite 10g and have a xml-Report.
I have fields and for some the query returns null (no value). Than the report shows nothing for this fields. Neither a blank line nor a value like 0.
The problem is, that the other values afterwards the blank ones, slip above.
For Example:
field 1
field 2
field 3
field 4
The Query returns null for field 2 and 3.
Then on the report I see:
field 1
field 4
But what I want to see is:
field 1
field 4
or:
field 1
0
0
field 4
But all I tested doesn´t work. I set a value for "when null" in the attribute inspector and the horizontal elasticity of "fix" (I thought it maybe it "slip together" so it is not shown).
Has anyone a idea how I can show a (blank or 0 value) instead of nothing, so that fields afterwards doesn´t slips up?
Thanks for your suggestions
Message was edited by:
ulfkHej MLA.
I think it was from query, but it is anyway if it is from query or from form (it´s not from column).
@Brad
Thanks for your suggestion.
We solve this problem in a similar way.
We put a field under/over the other. We give the field we want to show a white background. So it is "sitting" over the other and the underlaying one is not shown (because the overlaying one has a white background).
If the overlaying one is blank it is not shown (so it can´t has a white background) and we see the underlaying field.
But to use triggers is a better solution.
I solve it on the same way as explained above but using triggers also.
But I have to leave a statement about Oracles Report Builder. Sorry but it is more than horrible program. I never have seen such a (also new and) bad programmed program. It is more than hard to work with it ... it cost me every hour I use it more and more power to stay quite ...
Here are the things I really wish to change at reports bulder directly:
- more than one step back (undo)
- there is a difference between the output in reports bulder on the paper output, what is shown when you print it on a paper (from reports bulder) and from what is shown in a PDF file produced with a reports server (that is really annoying, you never now if it is correct what you see in reports builder!)
- better editing and better selectable of the text-boxes and fields
- a way to hierarchically objects that are on the same layer (frame) so that you can really bank on it, that one object is ever behind another one
- not only moving and scaling of fields and boxes on a fix gutter (free transforming and moving would be great) because sometimes a text or a box with line around is not on the right place (out of order; above another object/text a.s.o.) and when it is (why I don´t really know) is not on the right place and the distance to the other object is less than the fix gutter-distance you can´t move it in such a way, that the two objects are flush with/on a fix line/place. It´s because the fix gutter. The distance is lower than the gutter, if you move it, it is not makeable to move it this less-than-the-gutter-distance to be flush with the other object. You can only move it in the fix gutter-distance and than it can´t be flush with the other objects.
It looked really bad and amateurish!
- a tool (a button or something) where you can marked object to flush all together on the same line, so that all objects for example are flush together on one start-line or ends (horizontal or vertical flush).
It would be great and would the work so really easier and better. -
How to add a structure in 500 series table field catalog
Hi,
can any one tell me how to add fiels in field catalogue of 500 series table.
thanks & regards
naveenfield catalogue of 500 series table
please elaborate..
Sumit -
Hi All,
PARAMETERS: cust_dbt(3)
AS LISTBOX VISIBLE LENGTH 20
DEFAULT 'yes'.
Above code shows only 'yes' value when we click on drop down list box.
How to assign both 'yes' & 'No' values to the drop down list box.Hi
Use the fun module VRM_SET_VALUES to get the multiple values for that LIST BOX
see the sample code
Input : p_char = 'J'.
Press: enter
List Box of Month = January, June , July.
REPORT ZLIST_VALUES.
TYPE-POOLS vrm.
tables:
spfli.
parameters: p_char type c.
parameters:
p_month(12) as listbox visible length 20,
p_year as listbox visible length 20 .
DATA:
t_table TYPE STANDARD TABLE OF vrm_value,
t_table1 TYPE STANDARD TABLE OF vrm_value,
vrm_values1 LIKE LINE OF t_table.
DATA:
t_year TYPE STANDARD TABLE OF vrm_value.
data: w_year(4) type n value '2000'.
at selection-screen output.
vrm_values1-key = 'a'.
vrm_values1-text = 'January'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'p'.
vrm_values1-text = 'February'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'q'.
vrm_values1-text = 'March'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'r'.
vrm_values1-text = 'April'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 's'.
vrm_values1-text = 'May'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 't'.
vrm_values1-text = 'June'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'u'.
vrm_values1-text = 'July'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'v'.
vrm_values1-text = 'August'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'w'.
vrm_values1-text = 'September'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'x'.
vrm_values1-text = 'October'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'y'.
vrm_values1-text = 'November'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'z'.
vrm_values1-text = 'December'.
APPEND vrm_values1 TO t_table.
t_table1[] = t_table.
delete t_table1 where text+0(1) <> p_char.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_month'
values = t_table1
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
do 10 times.
add 1 to w_year.
vrm_values1-key = sy-index.
vrm_values1-text = w_year.
APPEND vrm_values1 TO t_year.
enddo.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_year'
values = t_year
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
start-of-selection.
write: p_month.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to add value in standard table
Hi
i need to add one field in standard table VBAK so i have added one field ( for eg i have added status as field in VBAK ) in that standard table through append structure
than i used one user exit USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ
in this i get values in the structure XVBAK
than i moved the 'X' in that status field shown below
XVBAK-STATUS = 'X' .
after that sales order get generated
but when i open table VBAK and enter that VBELN or sales order no. i dont find any value in that status
so pls tell how can i find value of that field in table VBAK .
Thanks
Taranafter moving the value did u append the table.
Check it. -
How to set value of checkbox 'Checked/On' in AD Resource form.
Hello ,
We have a checkbox on one field (Change password at next logon) in AD Resource form. We’ve set its value as ‘True’ in Create User process task .
But the checkbox is not getting set as Checked. We need to set this check box ON when a new a user account is created in AD.
How can we set its value ? Do we need to make a prepopulate adapter for this or any process task?
Kindly throw some light on this.
ThanksThats what we did earlier.
'Password never expires' value was '0' and 'Password Must Change' value was '1'. Even then also I was not able to get the checkbox On.
It should have worked that way but I am not able to get the clue. -
How to add Value Table or Search Help for a field which is on Standard SAP?
Hi All,
I have a field HERST (tcode IE01) which doesnt have any value table or search Help. I have the same field in a Z table which I should display for the standard screen field in tcode IE01. So Pls suggest me on this.
Thanks in advance.
Regards
Jaker.Hi, Tamas,
I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
The correct code is like:
CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
Xin -
How to get values against checkbox from table
hi all,
how can i get column values from database against multiple check boxes,
is there array in oracle to store multiple values?
i stored value of check boxes in column named checkid, in table named information.
now i want to get value of infoid against these chekid column where checkid=1 from this table and want to store infoid against it in another table named handing,
i want to do like this
-----Table handing-------
HID value1 value2
1 abc xyz
1 abc xyz
1 abc xyz
2 ccc ddd
3 bbb aaa
3 bbb aaa
i wrote code
DECLARE
var_id number;
CURSOR my_cur is
select infoid from information
where CHECKID = 1;
BEGIN
open my_cur;
fetch my_cur into var_id;
CLOSE my_CUR;
insert into handing
(hID,
value1,
value2)
values
(var_id,
:handing.value1,
:handing.value2);
COMMIT;
SAVED_ALERT;
end;
but i know that var_id data type is number it must be array, this codd does not works what should i do? should i use loop but how??? please help me.
regarsHello Wreesha,
you can enhance your chance to get an answer in several ways.
- Use {noformat}{noformat} Tags around your code examples to make them more readable and to preserve white space
- Provide CREATE and INSERTS for sample data (We still don't know how your information table looks like and what date it has)
- The expected result (also formatted)
- Don't use words like "immediate" or "asap". We don't get paid for answering questions.
Regards
Marcus
Maybe you are looking for
-
Unable to paste volume from expanded audio
When I try to paste attribute and paste the audio attributes it only pastes the volume for the clip globally and not any adjustments I have made to the individual expanded audio tracks. I have clips with two audio tracks (lav on left, boom on right).
-
I backed up my old phone to my computer, but how do i get all the info onto the new phone
i got my new phone. i backed up the old phone onto the competer. everything is in itunes. but when i plugged the new phone and did the sync it didnt back up any newer stuff. just older stuff. i dont wanna lose any pics or info. its acting as if
-
Ok here's the problem and I know it's my fault but some help would be so nice. I have an iPhone 3GS and I just downloaded the new 4 software off a friends computer(big mistake) but I don't have the computer I usually sync to so I was desperate. Now t
-
Output an exact sized canvas in PS CS5 for magazine advert?
Hi I began in PS CS5 by setting up a canvas 4 x 7" and begun designing. It didn't seem right to me so I decided to print a draft of my partially finished project and discovered it is in fact HUGE. I need to output an advert for a trade magazine whi
-
What on earth is the third button down for one of the small ones third down. I don't understand x