How to read checkbox value
hi experts,
I have a reqiurement .If i select certain records by using the check box and press execute(push button) ,these records must be displayed in next screen but i am facing problem in getting the selected records as the status of checkbox is not getting saved in my internal table.
LOOP AT IT_MAKT INTO WA_MAKT.
WRITE: / WA_MAKT-CHECK AS CHECKBOX,
WA_MAKT-MATNR,
WA_MAKT-MAKTX.
ENDLOOP.
Please guide me.
hi,
Write code as under:
At user-command [if you want to read check box values based upon button click]
do.
read line sy-index.
[ This will store line contents into sy-lisel ]
if sy-lisel+1(3) = 'X' [ Check box]
process it.
endif.
if sy-index > 1 and sy-lisel = space.
exit.
endif.
lv_message = 'Processed successfully'
modify line sy-lilli field value wa_xxxx from lv_message
[ if you want to assign any message after processing]
clear sy-lisel.
enddo.
Similar Messages
-
How to read all values of a queue
Hi All,
In Message mapping I am checking condition for field value based on incoming value.
In test cases i can see the second or third occurence is getting supressed and first value fails the condition and mapping node not created.
I would like to know how to read multiple values from queue and check condition for each value and if correct value present condition should pass.
I tried all possible context changes but no luck.
Any ideas how to read all values coming .
Thanks.<?xml version="1.0" encoding="UTF-8"?>
<msg version="" dbName="">
<rowOp isLast="" cmitLSN="" cmitTime="" authID="" correlationID="" planName="">
<updateRow subName="" srcOwner="" srcName="" intentSEQ="" rowNum="" hasLOBCols="">
<col name="END_RSN_CDE" isKey="852369" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
<col name="SVC_USER_SDT" isKey="789654" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
</updateRow>
</rowOp>
</msg> -
How to Read Variable Values in WAD 7.0 Using JavaScript
I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
I get a Javascript error:
bics.getElementsByTagName is not a function
vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
Thats my script:
function currency()
var varnm = "SFS_CP_CURR"; // Name of the variable to be read
root = document.childNodes[0]; // <HTML>
body = root.getElementsByTagName("BODY")[0]; // <BODY>
xml = body.getElementsByTagName("XML")[0]; // <XML>
bics = xml.childNodes[0]; // <BICS_VIEW>
vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
for ( i = 0; i <= varl.length; i++ ) // Loop one by one
vari = vars.getElementsByTagName("VARIABLE")<i>;
varnam = vari.attributes[0].text; // get variable name
mem = vari.getElementsByTagName("MEMBER")[0];
varval = mem.attributes.getNamedItem("name").value; // read variable value
if (varnam == varnm) //check varname in loop needs to be read
if (varval == "ZMON") // check for value1 and fire command1
SFS_CP_M();
if (varval == "ZKON") // check for value2 and fire command2
SFS_CP_K();
break;
Where's the mistake?I'm afraid I haven't made my question understood clearly.
What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
Please advice.
Thanks in advance,
Shady -
How to read the value of Non-Linear Transforme​r ?
Hi there !
I know that we could make "modified" transformer for special purpose (with Vsec=5V for example). But, instead of make a new transformer, it might be more easier if we could know how to read the value of those transformer. For example, NLT_PQ_4_120 or NLT_PQ_4_10. To be narrowed, what is the meaning of 4_120 and 4_10 ?
Anyone ?
Ghost Recon Team LeaderTo understand the models you mentioned you need to understand XSPICE. I suggest you use the virtual transformer instead because it is easy to change the turn ratio, you can double clicking on the component and enter what ever ratio you want. This component is found by selecting the menu PlaceàComponent
Group: Basic
Family: Basic Virtual
Component: TS Virtual
Tien
Tien P.
National Instruments -
BOL: How to read the value of an attribut
Hiii experts,
I'm new in ABAP programming.
My intention is to read the value of a context attribut.
This attribut ist not in form of a struct attribut. To read an struct attribut, I know to get the value, for example:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
But my problem is, that I have an attribut, which you can not find in the BOL browser, because it is not in form of a struct.
Can anybody help me, how to read the value of this kind of attributs.
Thank you very much in advance fpr your help,
JohnHii Clemens,
first of all, my concern deals with WebUI.
I expect to read the value of an attribut. I know how to read the value of an attribut, which can be found with the same description in the bol browser, as you know you can read it with:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
Now, I have an attribut of an context node which has a different name as in bol browser. If I want to read the value with the code above I get an error message. Thatswhy I referenced a collection of the context node to read this attribut.
Can anybody say me how the value of the attribut, can I use the methode get_property ?
greetings,
J -
How to get Checkbox Value from Flex in PHP.
Hi,
I need to know how to get a checkbox value from flex in PHP-POST/GET because I don't know what is the value property of a checkbox in flex.
Please Help.Hi,
It is very simple. Follow the steps below to achieve the solution,
1. Write a check-box change event to capture the value of the check box. Store this value in a variable(say bolChkSelected:Boolean).
2. In step 1 you got the value of the check box. Now your aim is to send the value to php. Declare a httpService in your flex application(i think you are aware of using it).Ok..im writing it
<mx:HTTPService id="sampleService" resultFormat='e4x' url='http://yourdomain/file.php' result='handleResult()' fault='handleFault()'>
</mx:HTTPService>
3. Now the actual solution... u need to send the shcStatus in to php..
Declare an object to hold the data
var objparameters:Object={};
objparameters['CheckBoxdata'] = bolChkSelected;
--in the above line... 'CheckBoxdata' is used as a parameter to php..you shud have the same variable name while accessing in php file also..
in php file..
checkboxstatus = $_POST[''CheckBoxdata''];
echo checkboxstatus
thats it.. -
How to Get checkbox value when List value changed in classic report
hi ,
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
regards
AhmedHi Ahmed,
>
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
>
You should not create checkboxes like this. Either use the APEX_ITEM.CHECKBOX2 API or change the Column Type to Simple Checkbox.
>
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
>
name="f01" returns an array, what you need is single element value.
Try
<script type="text/javascript>
function test(pThis) {
var f01_value = $v(pThis);
alert('#SEQ : '+ f01_value);
</script>
{code}
{quote}
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
{quote}
Depends in how you are invoking/triggering the change event. Are you using DA or have you written an "onchange" event on the element?
Cheers, -
How to retrieve checkboxes values?
I am using a few checkboxes
<form method="post" action="testgetPara.jsp">
<input name="termcond1" type="checkbox" value="1" id="termcond" checked>
<input name="termcond2" type="checkbox" value="2" id="termcond" >
<input name="termcond3" type="checkbox" value="3" id="termcond" >
<input type ="submit" name ="submit" value ="submit">
</form>
and hope to retrieve the "checked" values from these boxes
so i do this
<%int i = 0;
//chkno is used only to retrieve the number of checked checkboxes
String chkno[] = request.getParameterValues("chkdelbook");
//using a while loop to retrieve the value + execute it to the database.
while (i < chkno.length)
String isbn = request.getParameter("termcond");//get the specific array item
out.println(isbn);
//increment the i counter
++i;
%>
but it doesn't seem to be working
it return me with
An error occurred between lines: 2 and 16 in the jsp file: /testgetPara.jsp
Generated servlet error:
C:\jakarta-tomcat-4.0.3\work\localhost\Testing\testgetPara$jsp.java:69: [] can only be applied to arrays. It can't be applied to java.lang.String.
String isbn = request.getParameter("termcond")[i];//get the specific array item
^
1 error
this error
may i know how to solve it?but it give me a java.lang.NullPointerException
i have same id for my checkboxes, different name and
values for them
but it just doesnt work.NPE might be because tehere is no parameters named 'hobbies'
having same ID is not same as having same NAME (see the difference ID vs NAME)
if you had
<form>
<br>java<input type="checkbox" name="hobbies" value="java">
<br>haskell<input type="checkbox" name="hobbies" value="haskell">
<br>prolog<input type="checkbox" name="hobbies" value="prolog">
<input type="submit">
</form>
and it would appear something like this:
java [X]
haskell[X]
prolog[_]
[submit]
then you could probably write some code for it like this:
String[] hobbies = request.getParameterValues("hobbies");
for (int j = 0; j < hobbies.length; j++) {
%>
Your hobby is: <%= hobbies[j] %><br>
<%
}and it's output would hopefully look somewhat like this:
Your hobby is: java
Your hobby is: haskell
of course i have not tryed that code nore looked methods up from API recently, so it might have some minor bugs. -
How to read the value of Inputfield in WAD in JAVA script?
Hi Experts,
I have a requirement in WAD .
I have put an Input Field (text box), a button and a script control in the web template.
In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
Thanks in advance.
Regards
akshayHi,
To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
Hope the above helps.
Regards,
wira -
How to read the value of OLAPDataGrid cell/s from external object
Hi,
I have an OLAPDataGrid control in an Adobe flex application,
and I am using the cutom renderer to render the cells of the
OLAPDataGrid ,
any Idea how I can read the value of each cell at the
renderer , so I will be able to decide about the actions for each
cell at the renderer?"j_shawqi" <[email protected]> wrote in
message
news:gkqgdl$539$[email protected]..
> Hi,
> I have an OLAPDataGrid control in an Adobe flex
application,
> and I am using the cutom renderer to render the cells of
the OLAPDataGrid
> ,
> any Idea how I can read the value of each cell at the
renderer , so I will
> be
> able to decide about the actions for each cell at the
renderer?
I'm thinking that you'll need to look at the listData
property. I'm not
sure what you get in an OLAP Grid that orients you to your
cell position,
but I'd set a break point in the listData override of your
renderer and see
what you actually have, or look at the docs for the data type
of the
listData object that the default renderer expects to get.
HTH;
Amy -
How to remember checkbox values for each image
The situation is this: i have a horizontal list which i
populate with images loaded from xml. After i click on any of the
images, popup windows is displayed with checkbox. The same popup is
displayed for all of the images after i click on them. I need to
remember checkbox values (on/off) for each one of the images in
horizontal list but i don't know how to do that? How can i know
which one of the images (they are different) inside horizontal list
i clicked on in the first place?
thank youI am sorry but i don't quite follow you, i am not sure what
you are saying so i would really appreciate it if you could explain
it to me a little bit further. I have the following mxml code where
i define my HorizontalList:
<mx:HorizontalList height="326" width="935" id="imageList"
itemRenderer="mx.controls.Image" columnWidth="427" rowHeight="320"
itemClick="popUpWindow()" backgroundColor="#4A4A4A"
borderColor="#444242" themeColor="#000000" verticalCenter="166"
horizontalCenter="0">
</mx:HorizontalList>
and following "popUpWindow()" function which i call when
image in HorizontalList is clicked:
//previously i populate horizontal list with images from an
array "slidePathAC"
imageList.dataProvider = slidePathAC;
public function popUpWindow():void{
trace ("\npopUpWindow function")
var tw:TitleWindow = new TitleWindow();
tw.showCloseButton = true;
tw.setStyle("borderAlpha",0.9);
mx.managers.PopUpManager.addPopUp(tw, MainPanel, true);
tw.width = 500;
tw.height = 500;
mx.managers.PopUpManager.centerPopUp(tw);
tw.addEventListener("close",removePopUp);
Thank you very much for your help -
How to Set CheckBox values in Before Headr Process
In my Before Header process I read a database table that contains a code field that I would like to use to have my checkbox values checked if the field contains one of the values.
Example the database file my have "LWR"
On the form the Check box is
L - For Loading
W - For Waiting
R - Relase
P - Posted
J - Job
.....etc
So when I read the record for my above example I would like L, W, and R checked.
What is the best method to do this?
THanks.Are you storing the values with their ":" separators (like 'L:W:R')? If so, the checkbox code does the transformation logic. In which case, there is no need to code insertion of the : when populating the checkbox. No need to remove them before saving the values.
Howard -
How to read -Dname=value pair command line arguments
Hi
iam running one program called report.java as given below
compile:
javac report.java
run:
java report -Djava.path=home/arao/jaava1.5/bin
my problem is how to read name and value pair given in command line argument.
System.getProperty("java.path");//not working can anybody help how to read name and value
pair of -D optionIf you put that string after the name of the class you are running, then it's a command line parameter. Your main() method can look at args[0] to see it. However it would be better if you just put it before the name of the class, where it's supposed to go if you want it to be treated as a system property.
-
How to update CheckBox value change in report in DB table
Hi;
I have created a tabular form & added a check box in my Select statment...also i created a procedure On Submit to update my table according to the checkbox values..
My problem is that the update statment is updating the whole records in the form not only the changes which i done
Any one can give me the key for the update statment?
Regards;
EhammadDid any one tried to implement the same example of dkubicek?!! i tried to do the same code but i have problem (f011) should be identified!!!
does any1 have any idea about kind of this error?
Regards; -
How to read enumerated values from an OPC server via Datasocket
Hi Labviewers,
I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
Many thanks in advance
DimitrisHi Sarah,
With the input type as variant I get the following response:
1 <-This is the current numeric value of the parameter
4 Attribute(s):
'Quality' -> 192
'TimeHigh' -> 29861723
'TimeLow' -> -665408304
'Timestamp' -> 39.238E+3
With the Input set to Enum constant I get no values or strings coming back. With the Input set to Ring constant I just get the numeric value
Dimitris
Maybe you are looking for
-
I have the "open in low resolution" box checked by default and I can not uncheck it because it is shaded out. I already tried the "uninstall Acrobat, delete the 'com.adobe.PDFAdminSettings.plist' file, and reinstall" solution, but it did not work. I
-
Mail no longer working properly after update
Since the recent mail update, my work email (which is run by google) has been a disaster (believe me, that's not hyperbole). Deleted emails, emails with a different person indicated in the inbox but when you open it it's a completely different email
-
External Hard Drive -- What do you recommend plase
I use super duper and do not have the backup drive on except when doing a backup. I need a capacity in the 750 to 1 TB size. When I look at Amazon or other ratings they are all over the place. One size is good and another is bad for the same manufact
-
I brought my iphone in Thainland. Can I use it in Paris with a Paris sim card company?
I brought my iphone in Thainland. I"ll be going to Paris, France, next week and I would love have a phone with internet capablility. Can I use my Iphone from Thialand in Paris with a Paris sim card company?
-
How do I put mp3 files on a generic mp3 player
I have a generic mp3 player that I would like to let my 7 year-old daugther use. I have transfered music to it before from a mac but converted the audio files to mp3 first. Now on my new macbook pro I can only find a way to burn mp3 files on to a c