Validation for select at least one
Hi,
I have a table which is sortable and selectable, now I want to put select at least one row for any action. As these checkboxes are dynamically coming, I can't get the handle for them. How to go about this please help.
IDMNovice
You need to write a java script action in "selectAll" radio box filed like "onChange" or "onClick"
--sFred
Similar Messages
-
Error: Select at least one user or group for provisioning
Hi all,
In Hypeion shared services, I haved choosen User for provision but it show error "Select at least one user or group for provisioning". I don't know why, plx help me.
Thanks.When you say you have chosen a user, did you highlight the user in the left box then click the arrow to move that user to the right box?
What step are you at? What system and what version are you on?
Are you selecting a user to provision roles? Are you selecting users in an application to provision security classes? -
Hi, I'm using SP13 and InfoPath2013.
I created a custom form and published it to SP13 document library. This form has many MSLB. Depending on the checkboxes selected in the 1st MSLB, the other MSLB will either hide or show. Each MSLB is in its own section. The requirement
is to have each MSLB to have at least one checkbox selected. Well, the problem is that when that MSLB isnot checked in the 1st MSLB it is not visible and shouldn't require any checkbox to be selected. However, the form can't get submitted instead
an error dialog would pop up and ask user to make a selection for MSLB that is not even displayed. Is there any way to fix this besides unchecking all MSLB to be not required at least one selection? Thank you.Eric,
I follow your reply post here and still doesn't work. I also noticed your screen shot of selecting a field is not the same as what I see in InfoPath 2013.
Here is what I did,
1.Check At least one selection required for
these Multiple-selection List Boxes
as you want .
2.Create a Formatting rule for the 2nd
Multiple-selection List Box.
3.Add a Condition as below:
4. I get a validation error if I don't
select at least one checkbox in the hidden MSLB control when submitting.
I think I'm following all the steps correctly
but please let me know if I'm not. -
How to do validations for select-options
Hi gurus,
can you suggest me
how to do validations for select-options
Thanks&ragards,
Kals.HI,
TABLES: BKPF.
TYPES: BEGIN OF TY_BKPF,
BUKRS TYPE BUKRS, "COMPANY CODE
GJAHR TYPE GJAHR, "FISCAL YEAR
MONAT TYPE MONAT, "FISCAL PERIOD
DATA: T_BKPF TYPE TABLE OF TY_BKPF,
W_BKPF TYPE TY_BKPF.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_CODE FOR BKPF-BUKRS,
S_YEAR FOR BKPF-GJAHR,
S_PERIOD FOR BKPF-MONAT.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN *
IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
MESSAGE E000(0) WITH 'ENTER VLAUES'.
ENDIF.
SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
IF SY-SUBRC <> 0.
MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
ENDIF.
reward if useful
thanks and regards -
need help in validaiton for select-options.
Hi..,
could u paste ur selection screen declarations here !!!
check this..
*"Selection screen elements............................................
select-options :
s_vbeln for vbak-vbeln, " Sales document number
s_vkorg for vbak-vkorg, " Sales organization
s_erdat for vbak-erdat . " Run date
AT SELECTION-SCREEN ON EVENT *
*Validation on Sales document number range...
at selection-screen on s_vbeln.
Perform to validate Sales document number range...
perform f0000_validate_vbeln.
AT SELECTION-SCREEN ON EVENT *
*Validation on Sales Organization range...
at selection-screen on s_vkorg.
*Perform to validate the Organization number user input...
perform f0100_validate_vkorg.
AT SELECTION-SCREEN ON EVENT *
*Validation on Creation date range...
at selection-screen on s_erdat.
*Perform to validate the Creation date of the sales documents...
perform f0100_validate_erdat.
*& Form f0000_validate_vbeln
This subroutine validates the user input - Sales document *
number range *
There are no interface parameters *
form f0000_validate_vbeln.
select vbeln " Sales Document number
from vbuk
up to 1 rows
into vbak-vbeln
where vbeln in s_vbeln.
endselect.
check sy-subrc ne 0.
message e001(zsls640) with s_vbeln-low s_vbeln-high.
endform. " Form f0000_validate_vbeln
*& Form f0100_validate_vkorg
This subroutine validates the user input - Sales Organization *
range *
There are no interface parameters *
form f0100_validate_vkorg.
select vkorg " Sales Organization
from vbak
up to 1 rows
into vbak-vkorg
where vkorg in s_vkorg.
endselect.
check sy-subrc ne 0.
message e002(zsls640) with s_vkorg-low s_vkorg-high.
endform. " Form f0100_validate_vkorg
*& Form f0100_validate_erdat
This subroutine validates the user input - Creation date of the*
Sales documents *
There are no interface parameters *
form f0100_validate_erdat.
select erdat " Creation date
from vbak
up to 1 rows
into vbak-erdat
where vkorg in s_erdat.
endselect.
check sy-subrc ne 0.
message e003(zsls640) with s_erdat-low s_erdat-high.
endform. " Form f0100_validate_erdat
<b>regards,
sai ramesh</b> -
Validation for selection screen
hi all,
can anyone help me on the particular issue for adding f4 functionality based on selection criteris.i am using the code below but i am not able to get the selection.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_MBLNR LIKE MKPF-MBLNR OBLIGATORY, "Customer Number
P_WERKS LIKE MSEG-WERKS OBLIGATORY.
SELECTION-SCREEN:SKIP 2.
SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
PARAMETERS: RAD1 RADIOBUTTON GROUP RAD DEFAULT 'X',
RAD2 RADIOBUTTON GROUP RAD.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
DATA: BEGIN OF I_MBLNR OCCURS 0,
V_MBLNR LIKE MSEG-MBLNR,
V_BWART LIKE MSEG-BWART,
END OF I_MBLNR.
IF NOT P_MBLNR IS INITIAL.
IF RAD1 = 'X'.
SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
WHERE BWART = '541'.
ELSEIF RAD2 = 'X'.
SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
WHERE BWART = '551'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = MSEG-MBLNR
RETFIELD = IT_HEADER-MBLNR
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_HEADER.
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDIF.HI NAVNEET ,
thanks for replying actuallty i have n internal table it_header which i have used it for my program but this interna table i have used only for selection criteria. can you plz see the portion of my code which i have used for selection criteria.please find below
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
DATA: BEGIN OF I_MBLNR OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
END OF I_MBLNR.
IF NOT ( P_MBLNR IS INITIAL ).
refresh i_mblnr.
clear i_mblnr.
IF ( RAD1 = 'X' ).
SELECT MBLNR INTO I_MBLNR FROM MSEG
WHERE BWART = '541'.
ENDSELECT.
ELSEIF ( RAD2 = 'X' ).
SELECT MBLNR INTO I_MBLNR FROM MSEG
WHERE BWART = '551'.
ENDSELECT.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'MSEG'
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MBLNR'
VALUE_ORG = 'S'
CALLBACK_FORM = SY-REPID
TABLES
VALUE_TAB = I_MBLNR
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
Creating Transaction code for selection screen of one ztable
Hi ,
i have one Ztable in order see the data in it , he wants one new transaction . by executing tht transaction he wants to view the data inside the table.
i have created one transaction code by taking the transaction type as report transaction and program name i gave the selection screen program of tht table.
when i executed tht t code selection screen of table contents should come and on executing it i have to get data.
but im not getting data on executing tht selection screen .
why? for this scenario which tcode type i have to select.Hi Pavan,
Check this,
Step 1
Create parameter transaction (i.e. via SE93)
Select the fourth options
Step 2
Enter transaction details. Within the Proposed values section there are a number of value which
can be setup, simply use drop down menu to view the list. The 2 values assigned in the following
example are as follows:
VIEWNAME: Set table name to maintained
UPDATE: Open table for update
Mohinder -
Validation for Select-Option - Issue
Hi Experts!!
I have a select-option s_field on which I have written a validation under AT SELECTION-SCREEN. Now, the problem is that, if validation fails in second line of s_field, then to change it when we click on Extension, it's not allowing to enter but is throwing error message again and again as AT SELECTION-SCREEN is called.
Suppose, I have entered 2 single values as C001 and F001. s_field will have 2 entries. Now, C001 is a valid value but F001 is not. PFB my code:
LOOP AT s_field.
SELECT SINGLE *
FROM ztable INTO ls_field
WHERE field EQ s_field-low.
IF sy-subrc NE 0.
" Error Message
ENDIF.
ENDLOOP.
Now, for C001, sy-subrc will be 0. But for F001 sy-subrc is 4 and hence will throw an error. Now, to correct this, I am trying to enter into extension, but as this will be called again, I am unable to. Hope I explained it clearly.
I do not see any possibility to correct this. Can anybody please suggest if any workaround can be implemented?
Your help is highly appreciable.Hi,
You can try the following:
AT SELECTION-SCREEN on s_field.
LOOP AT s_field.
SELECT SINGLE *
FROM ztable INTO ls_field
WHERE field EQ s_field-low.
IF sy-subrc NE 0.
MESSAGE s398(00) DISPLAY LIKE 'E' with 'ERROR MESSAGE'.
ENDIF.
ENDLOOP.
I hope this works as per your requirement.
<<point-begging removed>>
Edited by: micky prasad on Jan 6, 2012 1:00 PM
Edited by: kishan P on Jan 9, 2012 1:40 PM -
On Sales Order form Validation for selection tax category as Form C
Hi All Experts,
Please help me out for the Validation on Sales Order Form that if CST (Central Sale Tax) Sales Tax code Selected in the transaction form should not get added (Posted into the system) till the Tax Category in the Tax Tab is not selected with Form C.
Thanks in advance...
Arinjay Shahhi,
In sales order,you can manually update transaction category even after adding document,
Why there is need for validaion,If u requires validation use approval procedure,since it
can be activated only at header level.
Use this query to trigger approval procedure
Select DISTINCT 'True' Where $[RDR12.TransCat] IS NULL OR $[RDR12.TransCat] = ' '
Jeyakanthan -
"must choose at least one" validation in dataTable?
Hello, group,
How do you validate a set of checkboxes, one per table row, in which the user must select at least one?
We have a page containing a dataTable, each row of which represents an object, one of whose attributes is "active". Our requirement is that at least one object must be selected as "active" by the user.
How do we validate this?
I'm considering the following:
(1) Put a validator on each checkbox that simply increments a count in a request-scoped bean if the checkbox is checked (and always returns success).
(2) Put a validator on a hidden field at the bottom of the form that requires the count be greater than zero.
Is there a better way? (Will this even work at all? :) )
Thanks.
John.Looks interesting, thank you very much.
I would actually need the multiple row selector, I think, since the requirement is at least one. I see there's no "validator" attribute, but I assume we could just hang a f:validator off of it (or write our attribute and submit a patch!).
That jenia component set looks good for some other requirements we have.
John. -
You are not authorized to display the panel for selecting a power plan
I'm running Windows 7. Installed "Power Manager" via System Update 4.0 last night (10/23/2009). Getting this error when hitting FN+F3.
You are not authorized to display the panel for selecting a power plan.
Furthermore, I'm unable to see any of the default power schemes. Finally, I created two new power schemes, neither of them display for selection.
Any one else experiencing this issue?!?!?Welcome to the forum!
Hmm... That seems odd. Does the userid that you're using have admin rights to the machine?
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество
Jane
2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
I am not a Lenovo Employee.
I AM one of those crazy ThinkPad zealots!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! -
Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?
Here is one solution:
// mouse up action for submit button;
function GetField(cName) {
// get field object for cName field with error checking;
var oField = this.getField(cName);
if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
return oField;
} // end GetField function;
var oPhone = GetField("phone");
oPhone.required = oPhone.value == oPhone.defaultValue;
var oEmail = GetField("email");
oEmail.required = oEmail.value == oEmail.defaultValue;
if(oPhone.required && oEmail.required) {
app.alert("Missing required fields.", 1, 0);
} else {
app.alert("Submitting form", 3, 0);
// additional code for submission; -
Needed selection screen validation for all entries in the range
Hi all,
I'm using the below code for Material validation in selection-screen.
SELECT SINGLE MATNR FROM MARC INTO MARC-MATNR
WHERE MATNR IN S_MATNR.
IF sy-subrc NE 0.
MESSAGE e000(su) WITH text-035. "Invalid Material Number
ENDIF.
This validation is working only for one record in the range.
If I give multiple material numbers in the range having a record which doesn't exist in MARC, its not throwing the error.
Seems like loop should be placed at s_matnr. Is that correct procedure or any pointers on the same would be of great help.
Regards,
Vamsee Priya.Hi priya
Use this way,
REFRESH IT_LIPS. CLEAR IT_LIPS.
SELECT VBELN
POSNR
MATNR
WERKS
LFIMG
ARKTX
VGBEL
VGPOS
BWART
FROM LIPS INTO TABLE IT_LIPS
WHERE PSTYV IN
('ZZTC', 'ZTAD', 'ZMVN', 'ZCVA', 'ZCVB', 'ZCVC') AND "ASR 18721
WERKS IN ('1140', '1143', '1149').
IF IT_LIPS[] IS INITIAL.
MESSAGE E000 WITH TEXT-005.
endif.
revert back if you need any help..
Help us to help you, Manas -
Check if a license exists for at least one day in each month
How to check if a license exists for at least one day in each month for a given period ? Example : If we have a review period from Jan 25 2009 to Aug 15 2009. How to check if there is license for at lease one day in every month.
Hi,
Welcome to the forum!
(1) construct a table or result set that has one row per month in the review period. [This thread|http://forums.oracle.com/forums/thread.jspa?messageID=3651350?] has a similar problem.
(2) outer-join your actual data to that result set
(3) use the aggreagate COUNT (x) function (where x is some column from your table) to see if there were any matches in each month. GROUP BY months.
For a more specific answser, ask a more specific question.
Post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
It never hurts to say what version of Oracle you're using.
Edited by: Frank Kulash on Jul 28, 2009 1:54 PM
Maybe something like:
WITH all_months AS
SELECT ADD_MONTHS ( TRUNC ( &period_begin_date
, 'MM'
, LEVEL - 1
) AS month_date
FROM dual
CONNECT BY LEVEL <= 1 + CEIL ( MONTHS_BETWEEN ( &period_end_date
, &period_begin_date
SELECT m.month_date
, CASE COUNT (l.license_date)
WHEN 0 THEN 'Nothing this month'
ELSE 'Some licenses issued'
END AS summary_txt
FROM all_months m
LEFT OUTER JOIN license_table l ON m.month_date = TRUNC (l.license_date, 'MM')
AND l.license_date BETWEEN &period_begin_date
AND &period_end_date
GROUP BY m.month_date
ORDER BY m.month_date
;Untested -
Enter at least one number for the business partner
Hi Experts,
SRM 5
Classic scenario
R/3 4.6c
I am trying to execute users_gen transaction for integrating the user with the org. structure. However upon doing so I get an error message "Enter at least one number for the business partner"
Please provide pointers on the cause for this and how it can be rectified.
Thanks.
Regards,
AmishHi Muthu,
I am integrating a single user at a time - through users_gen.
Infact I am getting the same error message while moving the users within the org. structure.
Steps -
1. Execute users_gen
2. Select the user to be integrated
3. Click execute check mark
Please provide any pointers.
Regards,
Amish
Maybe you are looking for
-
Adding new event in Month view
I had a problem in ical two days ago and now I can't double click on one day in month view to start a new event. I have to go to the tool bar or press the "+" Why did I lose this nifty feature? I have Lion 10.7.4
-
Reg XML generation from java objects using SAX 2.0
i'm using java 1.6 and i've imported following class to generate XML from java objects import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.internal.serialize.XMLSerializer; the following class has been imple h
-
Problem with audio shortcut buttons (windows 7), especially mute
I some severe issues and had to do a clean install of windows 7. I lost all the preloaded lenovo applications. I cannot get the short cut mute button to work. The up/down volume buttons work, but they don't show the change in volume (green bars on th
-
New iTunes 6.0.3
I just downloaded the new iTunes as said above. The installation was fine but when it was done and I opened iTunes the music store or ministore wouldn't work and I got a network timeout message. I have checked my internet connection and restrictions
-
I have a new iTouch. I'm having trouble downloading iTunes. I keep getting the error message: "Apple Application Software was not found. Apple application support is required to run iTunesHelper. Please uninstall iTunes, then install iTunes again. Er