Check value in inputfield
Hi,
I have created an editable alv in webdynpro.
One of the columfields is editable and after editing a cell I want to check the entered value.
I have read the pdf's:
- Programming the ALV Configuration Model in Web Dynpro for ABAP and
- Web Dynpro for ABAP Official Documentation.pdf
But I do not understand how to do this.
- First i have set the data check on 'cell event':
lref_table_settings->set_data_check( if_salv_wd_c_table_settings=>data_check_on_cell_event ).
- I have created a method ON_DATA_CHECK wich handles the event ON_DATA_CHECK in the interface controller.
But it does only trigger the event when changing data AND after pressing the RETURN button on the keyboard. But in the documentation I have read that this event should also be triggerd when you click on anothers cell after editing.
Does anyone have a solution to this problem?
Thanks in advance.
Minda
If you dont want to use javascript I always write a generic validate method (returning Boolean) called with a hashtable of fields to check. For JSP you can call this method in doProcessBeforeOutput or onSubmit (or any event that involves a round trip) if the fields don't have the correct values return a false and in your main method decide whether to proceed with processing the form or set the field to invalid and the state of the form back to edit mode for the user to correct the field value.
Regards
Daniel
Similar Messages
-
What is KCV (Key Check Value) in 3DES used for?
Hi Friends..
I want to know what is KCV (Key Check Value) used for?..
i found that 3DES operation (2Keys length or 3Keys length) sometimes needs KCV (Key Check Value)..
As far as i know the KCV itself computed as Follows :
3DES(Keys, IV(all zeroes), Data (8byte zeroes)
Please correct me if i'm wrong..
ThanksLeonardo Carreira wrote:
sabre150 wrote:
Leonardo Carreira wrote:
Could you suggest me what is the good book for "learning the concept of cryptography"?..Errr ... I thought I had done that!Yes you're right, you had suggested the book for me..
And i don't found the KCV (Key Check Value) usage in the book..
So, i ask this question, sorry if my question is sounds boring to you, sorry for this inconvenience.. :(
thanksKCV has at least two different meanings. I suspect you are interested in the one outlined in http://www.cryptographyworld.com/key.htm. -
FI13 - 'Check' value in SU24 appearing in PG
Hi Experts,
FI13 tcode has been included in a role. We find that auth. object S_TABU_DIS has 'CHECK" value in check indicator(SU24). But in PG S_TABU_DIS value is appearing with values 02,03 for the activity field.
My query is eventhough the value of auth. object S_TABU_DIS is maintained as check in SU24, how is it appearing in PG. Please provide me details of the logic behind it.
Version: SAP ECC 5.0
Thanks for your time in advance.
Regards,
NagendranHi,
Transaction FI13 is a parameter transaction which calls transaction SM34, which is used to maintain tables. Object S_TABU_DIS is a checked (value yes) for SM34. Hence it is appearing in the role. Also that is the reason it is not showing any values in authorization group field. If you would like to use FI13, then you should have object S_TABU_DIS with below values
Activities: 02,03
Authorization group: VC
Please goto transaction SE93 and click on display. You can see the details for FI13 which has been using transaction SM34.
Regards,
Gowrinadh -
Bad check value found during dbv on Datafiles
Hi,
We just received new DB, that return a "Bad check value found during dbv" on DBVerify.
So, we can Open & Use this DB... perhaps until crash if we use the "bad block", but we can't save it by Rman (ORA-19566: exceeded limit of 0 corrupt blocks for file xxx) !
And best thing is... Previous DB owner don't have any save (Rman or other) of this DB !!!
Are there solution(s) about this problem... or this DB is definitively dead ?
Sorry for my english,
Thank for your help,
J Sourti.Hi;
What is DB version?
Please see below note(also referance part) and below link which at least show u some way
Rman Reports An Ora-19566: Exceeded Limit Of 0 Corrupt Blocks From Backup [ID 457422.1]
http://oraclespin.wordpress.com/2009/07/03/how-to-find-and-fix-block-corruption-using-rman/
Regard
Helios -
How to Access Radiobutton Check Value
Hi all,
I'm using Oracle 10g Forms Developer and I want to know how to access radio button check value, that means how to know that the current radio button is checked or not. Thanks in advanceyou assign each button the representing value in the properties.
So you can just check if the radiogroup-item has the value you assigned the button, something like:
IF :BLOCK.RADIOBUTTONITEM='A' THEN
... -
Check value from Backend and update SC
Hi,
I am using SRM 5.0 and I have an requirement where I need to check value of SC or PO with backend system and accordingly update one custom field in SC/PO .
Can anybody let me know exact place to perform this coding ?.
Thanks,
SachinTo update SC/PO at transaction time, you should use BADI "BBP_DOC_CHANGE_BADI" (Vadim is right). Indeed this BADI is called very often. It is recommended to filter your code using table sy if you are executing complex coding or remote call. You can use sy-ucomm, sy-tcode...
Try to identify the right moment to call your remote function and check sy table in debugging.
Axel -
How check value befor commit my form
hi master
sir
how check value befor commit my form if that value right than commit otherwise show message box and not save
please give me idea
thanking you
aamirHave you not tried using When-Validate-Item Trigger.
Like if i have an Item Which can only take dates between sysdate and sysdate-3 your code in when-validate of the item should be
If :BlockName.ItemName NOT BETWEEN SYSDATE-3 AND SYSDATE THEN
MESSAGE('Pleaes Enter valid date);
RAISE FORM_TRIGGER_FAILURE;
END IF;
This will fire, and commit will fail. -
How to check the default checked value for radio button on jsp for struts
Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
<html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
<html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
<html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
<html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
In the above case you can write the code as follows in the perticular form of this jsp.
public void reset(ActionMapping mapping, HttpServletRequest request) {
super.reset(mapping, request);
sale = "permanent";
This will show the first check box default selected when the first time the page is loaded. -
How to get check value in DB based on java
hi,
anybody know how to get check value in DB based on java?
TQThis should be a custom java class containing that method.
Try on java or jdbc forum - Java Database Connectivity (JDBC) , Java Programming -
Generating check value for put key
hi
in globalPlatform doesn't exist anything about check value for put key command.
how can i generate it and change initial key for my java card?s.fallahdoost wrote:hello
in other topic, i saw that you used these commands
for put-key:
cm> set-key 2/1/DES-ECB/ffeeddccbbaa99887766554433221100 2/2/DES-ECB/ffeeddccbbaa99887766554433221100 2/3/DES-ECB/ffeeddccbbaa99887766554433221100
cm> put-keyset 2
*=> 84 D8 00 81 4B 02 80 10 AE 25 9D AE 8A 7F 23 37 ....K....%....#7*
*7F CF AD 42 5C B8 C3 EC 03 F3 9C 09 80 10 AE 25 ...B\..........%*
*9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC 03 F3 ....#7...B\.....*
*9C 09 80 10 AE 25 9D AE 8A 7F 23 37 7F CF AD 42 .....%....#7...B*
*5C B8 C3 EC 03 F3 9C 09 69 54 47 5D 25 8A AA 36 \.......iTG]%..6*
*00 .*
*(259100 usec)*
*<= 02 F3 9C 09 F3 9C 09 F3 9C 09 90 00 ............*
Status: No Error
i know that AE 25 9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC
is your new key and F3 9C 09 is the first 3 bytes of tripleDES with key
ffeeddccbbaa99887766554433221100.
i have a question:
what is ffeeddccbbaa99887766554433221100?!!
how can i calculate it?ffee..00 is the plain text key. Sensitive data encryption is required for the 3 CM keys in the PUT KEY command. I first set off-card the keys I want to be included in the PUT KEY command, and JCOP Tools encrypts it with the DEK key of the current secure channel session. On-card the first the C_MAC is validated, then the keys are decrypted and compared to the key check value. -
Checking value and displaying blank instead of null
Hi,
I was wondering how do I check in the code if the value is null then display a blank as suppose to displaying the word null??
what I have now is:
column1 column2
24 null
want
24
I've tried:
if ("".equals(string))
out.println(" ");
if (string.equals(""))
if (string.equals(null))
thanks,
WillUse s == null to test if the String s is null, then if yes, replace it with the blank string "". See the code bellow:
class MyString {
String[][] sa={{"column1", "column2"},
{"24", null},
{"want", "24"},
public String toString() {
String result = "";
for (int i=0; i < sa.length; i++) {
for (int j=0; j < sa.length; j++) {
if (sa[i][j] != null) {
result += sa[i][j];
else {
result += "";
result += "\t";
result += "\n";
return result;
public static void main(String[] args) {
MyString ms = new MyString();
System.out.println(ms.toString()); -
How to get all checked values from a chaeck box
Hello
In my app i have a checkbox called P10_CID with static lov like
STATIC2:one;1,two;2,three;3,four;4,six;6
my question is when i check more than one option
i can not get that value.
How is it possible to see all the values of the check box that are checked ?
Regards
ArisHi Aris,
Do you have to have checkboxes? Can you use a multiselect list instead?
If you can, then the following excerpt from the user guide may help you:
Using HTMLDB_UTIL.STRING_TO_TABLE to Convert Selected Values
Suppose you had a report on the EMP and DEPT tables that is limited by the
departments selected from a Department multiple select list. First, you create the
multiple select item, P1_DEPTNO, using the following query:
SELECT dname, deptno
FROM dept
Second, you return only those employees within the selected departments as follows:
SELECT ename, job, sal, comm, dname
FROM emp e, dept d
WHERE d.deptno = e.deptno
AND instr(':'||:P1_DEPTNO||':',':'||e.deptno||':') > 0
Regards
Andy -
How can save only the checked values in a record as a string?
I have a question on form where the user can choose multiple checkboxes. Due to the type of form that it is there will only be one record written. I am using Access as a comprehensive form as opposed to a database in this instance.
Once industry submits this application (form) to us I upload some data to Oracle database which works fine. Now, I need to upload some of the data to a workflow software. I figured out how to do everything except the following:
In this record there are over 20 checkboxes. Each check box has a name/Record source such as SA (Surface Area), SC (Surface Contour), SS (Sleep Slope), ect. The user will select several of these checkboxes. I need to look at each chk box field. If the value
= true, write the fullname of each field to a table as a string with each field seperated with a comma. For instance,
If SA, SC and SS were checked on the form Surface Area,Surface Contour,Sleep Slope would be added to the Procedure_Value field in a table (see function ExportTable). Next I convert the table into a text file
Function ExportTable
dim rst As DAO.Recordset
dim strSQL1 As String
strSQL1 = "SELECT tblExport1.* FROM tblExport1;"
Set db = CurrentDb()
Set rst = db.OpenRecordset(strSQL1, dbOpenDynaset)
With rst
.AddNew
rst!Procedure_Value = "Surface Area,Surface Contour,Sleep Slope"
.Update
End With
rst.Close
Set db = nothing
Set rst = nothing
End Function
jim nealIf I understand you correctly you have one table with a bunch of yes/no values (SA, SC, SS, etc.). Then for each record in that table you want to output a string listing all the fields from the first table which = yes (i.e are checked). Perhaps
the following code would get you started:
Sub JimNeal()
Dim strProcedure_Value As String
Dim rst As DAO.Recordset
Dim rstOut As DAO.Recordset
Set rst = DBEngine(0)(0).OpenRecordset("TableWithCheckboxes")
Set rstOut = DBEngine(0)(0).OpenRecordset("OutputTable")
Do Until rst.EOF
strProcedure_Value = ""
If rst!SA Then strProcedure_Value = strProcedure_Value & "Surface Area,"
If rst!SC Then strProcedure_Value = strProcedure_Value & "Surface Contour,"
'... etc
If rst!SS Then strProcedure_Value = strProcedure_Value & "Steep Slope,"
rst.MoveNext
' Strip off final comma
If Len(strProcedure_Value) > 0 Then strProcedure_Value = Left(strProcedure_Value, Len(strProcedure_Value) - 1)
' Output the string to your output table
rstOut.AddNew
rstOut!Procedure_Value = strProcedure_Value
rstOut.Update
Loop
rst.Close
rstOut.Close
Set rst = Nothing
Set rstOut = Nothing
End Sub
-Bruce -
Hi,
I am using a UDF to take substring of my value from source (source value is of format abcd/xyz). Now I want to check if there exists any value before "/" i.e. I want to check if there is any value before "/" . I tried using the .length function, but due to some reason I am not able to get it working. So please tell me how to get the below UDF working:
public String getUser1Id(String Id, Container container) throws StreamTransformationException{
String logName = Id;
int len = logName.indexOf("/");
logName = logName.substring(0,len);
return logName;
Id is the input from the source (abcd/xyz) into the UDF.
Thanks.Hi,
your code is working if you have "/" in your ld parameter. Another point is your function returns left of '/' in your input. Is this your requirement or returning true or false depending on the existence of anything before '/'?
Kind Regards, -
Problem: Value in Inputfield empty
Hello,
I use the htmlb:tableView and defined one column as editable where a dropdown-list is assigned (by iterator).
In the "OnInputProcessing" I read the new selected value of the edit-column and write this value to my internal table.
Here the Coding of this:
Get Data for tv_cols, the current edited row, and update table
DATA: tab_view TYPE REF TO CL_HTMLB_TABLEVIEW.
DATA: tab_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
DATA value TYPE STRING.
DATA: inputfield TYPE REF TO CL_HTMLB_INPUTFIELD.
FIELD-SYMBOLS: <row> TYPE ZSEM_0APPR_REQU_1.
tab_view ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'tableView'
id = 'tab_APPR_REQU_status' ).
get changes into internal table
get changes into internal table
IF NOT tab_view IS INITIAL.
tab_data = tab_view->data.
IF NOT last_selected_rowIndex IS INITIAL.
READ TABLE gtab_APPR_REQU_1
INDEX last_selected_rowIndex
ASSIGNING <row>.
value = tab_data->GET_CELL_ID(
row_index = last_selected_rowIndex
column_index = '3' ).
inputfield ?= CL_HTMLB_MANAGER=>GET_DATA(
request = request
name = 'inputField'
id = value ).
IF inputField->value is not initial.
<row>-STATUSIQMS = inputField->value.
ENDIF.
ENDIF.
last_selected_rowIndex = tab_data->SelectedRowIndex.
ENDIF.
Now my problem:
If I select a new line in the tableView the value of the line selected before is in the variable "inputField->value" and everything is working fine.
But if I had selected a line and changed the editable column and then push an save-button on the BSP-Site the variable "inputField->value" is empty. Though the "inputfield" itself was assigned correct.
What's going wrong here? How can I get the new value of last changed line?
Thanks in advance
ChristianWhenever you select a new line the OnInputProcessing fires and you can read the value and store it then when the screen is rendered again the value is there and they are now on the new line to edit.
When you build the element into your table it is assigned the [tablename]_[cell]_[row] and if you know those items then you can do a simple get_form_field call.
Then you have the value and you can do a table UPDATE to save the value.
Maybe you are looking for
-
IPhoto '11 (version 9.4) Is Not Working With "My Photo Stream"
OS X 10.8.2 iPhoto '11 version 9.4 (701.64) iOS 6 on iPhone 4 and third generation 64 GB WiFi iPad All iCloud services I require are enabled on all three devices - most important for this issue being Photo Stream on my MBP (and, of course, my iPhone
-
10g installation error... Need help
I launched the ./runInstaller comman, met all the installer requirements, and then this:... [oracle@localhost database]$ Exception in thread "main" java.lang.InteranalError: Can't connect to X11 window server using 'localhost.localdomain:0.0' as the
-
When upgrading from OS 10.8.6 to 10.9.2 I lost my MS Office 2004 Student Teacher editon software. This included Word, Excel, Power Point and Entourage. Is this because 9.2 does not support this older Office program? Do I need to up grade Office or
-
Strategy for managing edited photos
I have never used a non-destructive editor before. So I am wondering what a good strategy would be for managign allthe originals plus the edited versions. It seems to me that could get out of control very quick. I am using version 5 and I mostly inte
-
Does anyone know if I can synchrionse my laptop and pc in elements 9. So when i work on one I can update the other over my network.