Conditional Validation using JSLink
I have a User field and a Choice field in a list. When the Choice field has the option "A" selected I want the User field to be mandatory. Validation formulas in lists cannot use User field data types so this is not an option. Is
JSLink the way to go? If so how would I implement conditional validation? I can find examples of simple regex validation but nothing that helps to do conditional validation.
Caroline
Hi,
According to your post, my understanding is that you want to set the User field automatically when the Choice field select a value.
We can use jQuery to achieve it. Using jQuery .Change() method to monitor the choice, then set the value for the User field.
The following articles for your reference:
http://runnable.com/Ue9c4krQF7VjAAAP/how-to-get-selected-option-using-jquery
http://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support
Similar Messages
-
Conditional Validation using Spry
When are we going to see things like conditional validations in DW using spry?
I am by no means a developer and enjoy using DW for its simplicity but I have a situation at the moment wherby I need to make a text box required if a checkbox group or radio button group is ticked and on top of this I also need to make another textbox required if any of a number of groups are answered 'yes'
If anyone has any help they can give me to achieve my goal I would be very grateful.
Also if anyone from Adobe has an answer to my opening question then that would be great
Thanksblandad1976 wrote:
When are we going to see things like conditional validations in DW using spry?
I am by no means a developer and enjoy using DW for its simplicity but I have a situation at the moment wherby I need to make a text box required if a checkbox group or radio button group is ticked and on top of this I also need to make another textbox required if any of a number of groups are answered 'yes'
If anyone has any help they can give me to achieve my goal I would be very grateful.
Also if anyone from Adobe has an answer to my opening question then that would be great
Thanks
Seek and ye shall find! See here http://forums.adobe.com/message/2978837#2978837
Gramps -
Join condition validation error in owb 10gR2
Hi friends,
When I tried to validate the join condition in the mapping im getting the below error like
an error occurred during expression validation, bad expression return type
When I googled for the above error, I got the below link mentioning like a bug for that join condition validation problem
https://forums.oracle.com/thread/717194
In which it is mentioned like a BugNo: 7417869 for that issue.
Is there any fix for that bug??
Thanks in advance.
Brgds,
MiniDear Allan,
Happy to get reply from you and sorry for my late reply as im been stuck with other work
Like you said, I downloaded the required patch 4898608 for the validation bug in mapping with owb 10.2.0.4. By viewing the readme.txt file of the patch I followed the below steps like
Set the ORACLE_HOME environment variable to point to the OWB Home
Add $ORACLE_HOME/OPatch in the PATH
Stopped the runtime service using the supplied SQL*PLUS script stop_service.sql as a rep_owner
OWB_HOME/rtp/sql/stop_service.sql
After the above three steps I applied the opatch like below in cmd prompt
C:\orahome\10gR3_1\OPatch>opatch version
Invoking OPatch 10.2.0.4.9
OPatch Version: 10.2.0.4.9
OPatch succeeded.
C:\OraHome_1\OPatch>opatch apply
Invoking OPatch 10.2.0.4.9
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : C:\OraHome_1
Central Inventory : C:\Program Files (x86)\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.4.9
OUI version : 10.2.0.1.0
OUI location : C:\OraHome_1\oui
Log file location : C:\OraHome_1\cfgtoollogs\opatch\opatch2013-06-24_18-14-27PM.
log
Patch history file: C:\OraHome_1\cfgtoollogs\opatch\opatch_history.txt
Failed to load the patch object. Possible causes are:
The specified path is not an interim Patch shiphome
Meta-data files are missing from the patch area
Patch location = C:\OraHome_1\OPatch
Details = PatchObject constructor: Input file "C:\OraHome_1\OPatch\etc\config\
actions" or "C:\OraHome_1\OPatch\etc\config\inventory" does not exist.
ApplySession failed: PatchObject constructor: Input file "C:\OraHome_1\OPatch\et
c\config\actions" or "C:\OraHome_1\OPatch\etc\config\inventory" does not exist.
System intact, OPatch will not attempt to restore the system
OPatch failed with error code = 73
C:\OraHome_1\OPatch>
Im not sure why the above error is occuring, kindly help me with that error.
Thanks in advance.
Brgds,
Mini -
Conditional validation for drop down list
Hi all,
I have been working on getting the conditional validation for drop down list to work but no luck. Here is my situation. I have a page with 'time' and 'source' drop down which contains a list of values along with null value. I have two buttons 'save' and 'close'. when a User clicks on 'Save' button, no checking should occur and the values filled in the form should be stored into the database. When a user clicks on 'Close' button, validation should occur and messages should be displayed saying 'values should be filled' . After the user fills each drop down list and hits close button, changes should be saved to the database. I used the technique posted by Jayashri and wrote the validation code in 'Close button action method'
Here is my code
public String btnClose_action() {
// TODO: Replace with your code
try {
if (ddlTime.getSelected() == null || ddlTime.getSelected().equals("")) {
FacesMessage message3 = new FacesMessage("Please select a value");
message3.setSeverity(FacesMessage.SEVERITY_ERROR);
getFacesContext().addMessage(ddlTime.getClientId(getFacesContext()), message3);
return null;
if (ddlSourceReq.getSelected() == null || ddlSourceReq.getSelected().equals("")) {
FacesMessage message4 = new FacesMessage("Please select a value");
message4.setSeverity(FacesMessage.SEVERITY_ERROR);
getFacesContext().addMessage(ddlSourceReq.getClientId(getFacesContext()), message4);
return null;
sendMail("close");
} catch (Exception ex) {
return null;
public String btnSave_action() {
// TODO: Process the button click action. Return value is a navigation
// case name where null will return to the same page.
sendMail("save");
return null;
I did not set the 'required' property of both the drop downs and I dont have any message components in the page. How do I get this to work. Please help.
Thanks,
SHi,
Try this
HTP.p('
function validate_form_fields()
var validation = true;
if (document.forms[0].fld_1.options[document.forms[0].fld_1.selectedIndex] == null )
validation = false;
alert("Selection of FLD1 is mandatory.");
if (document.forms[0].fld_2.options[document.forms[0].fld_2.selectedIndex] == null )
validation = false;
alert("Selection of FLD 2 is mandatory.");
return validation;
');If the above does not work, it could be the definition of the your fld_1 select - options. Looks like they allow null values, and if null is not the first option then selectIndex = 0 will be a not null option by default.
Moreover, the below has redundant condition as ==0 and < 1 amount to the same thing. selectIndex cannot be negative.
if ((document.forms[0].fld_1.selectedIndex == 0 ) || (document.forms[0].fld_1.selectedIndex < 1 ))Regards, -
Mass change Condition valid to dates into Info record
Hi,
is there any mass changes for condition validity to dates into purchase info record?????
i have check into MEMASSIN, there is field for conditions valid to Date,
Pl. guide .
Regards,
DevendraHi,
It is not possible to change validity date using MEMASSIN - Mass Maintenance t code.
You need to create LSMW with recording method to achieve this. we are doing the same.
It is very easy. And take care that while recording select the validity button and click executive to record the do not double click on the validity tab.
Reg -
Hi,
I have the scenario whereby a vendor give a rebate, for a selected period. within that perios they may grant additional rebate ie agreement over 1 year - but for august they give higher rebate value. how can i set this up ? Im using A002 condition but i cant enter condition validity periods.
any help appreciated. No vague answers please.
cheers
GrahamAmy,
Do you mean to say, you can see the rebate conditions in the item conditions of the invoice before it was released to accounting and after releasing to accounting they disappeared from the item conditions ?
I'm sure it shouldn't happen. If it disappears it should disappear irrespective of the release to accounting.
Analyze the pricing at the item condition level why the rebate conditions doesn't show up.
If it didn't' work please let me understand your problem..
Regards,
Aj. -
Not able to run validation using validation.xml & validator-rules.xml
Hello Friends,
I am not able to run validation using validation.xml & validator-rules.xml.
Entire code in running prefectly but no error messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
</form-beans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
</global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
</action>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
} else {
results = service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come from a real data
source such as a database. */
private static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees.getName().toUpperCase().indexOf(name.toUpperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.Hello Friends,
I am not able to run validation using
validation.xml & validator-rules.xml.
Entire code in running prefectly but no error
messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
ans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
tion>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in
className="org.apache.struts.validator.ValidatorPlugI
">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
/form>
</formset>
form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new
EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria
was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
else {
results =
service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access
by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come
from a real data
source such as a database. */
ivate static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if
(employees.getName().toUpperCase().indexOf(name.toU
pperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.
Hi,
Your error message are not displaying because u does not made Message-Resoucrce property file (Resource Bundle) when you make it .
give it entry in
struts-config.xml
<message-resources parameter="ApplicationResources" />
and
define key and corresponding error message to key in this ApplicationResources i.e
#Error Resources
label.search.ssNum=Plz Enter correct ssNum -
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
How do I do validation using SDK.
How do I do validation using SDK.
We have created different warehouses for the client business operations.
For eg:
1. Inspection Stores
2. Rejection Stores
3. Main Stores
In Goods Return & A/P Credit Memo, other than RejectionStores is
selected, we want to generate a warning message.
How do I do this through SDK.
I need the code sample for the following activity:
1. Reading the data available at each row of the current form (Goods
Return/ A/P Credit memo)
2. Validate the data with a paricular warehouse
3. Generate warning message.
I could not find any samples related to this.There is a method called MessageBox for the Application object. Have a look at
the documentation, everything is there. -
In the icloud settings, I am told I need to accept the terms and conditions to use icloud. However, when I click on "Terms and conditions", I get a message "unable to connect to server". This has been happening for a week now since I upgraded to iOS 7.06. There is no problem with my wifi or cellular connectivity, all other applications work perfectly. P.S.I have never used icloud before, but wish to do so now. How do I overcome this problem?
Have you turned the iPad off then back on? That often helps with problems.
-
Struts2 - Dynamic values in expression while doing validations using annota
Hi,
I am using Struts2. I am doing validations using annotations in action class.
I have many forms having same type of fields say zip code.
I am adding validations like below in each action class having zip code field
@Action(value = "/saveData")
@Validations(
regexFields = {
@RegexFieldValidator(fieldName = "databean.zipCode", expression = "^([1-9]{1}[0-9]{4}(-[0-9]{4})?)$", key = "errors.zipcode.format", message = "errors.zipcode.format")
public String saveData() throws Exception {
Now, in case if I need to change the expression for zip code validations, then I need to modify the same in each action class.
I would like to know if there is any way to use java variable or property for expression so that i only need to change at one place (value of variable) and all actions get modified.
I want something like below
private static final String ZIP_CODE_FORMAT_EXPRESSION = "^([1-9]{1}[0-9]{4}(-[0-9]{4})?)$"
@Action(value = "/saveData")
@Validations(
regexFields = {
@RegexFieldValidator(fieldName = "databean.zipCode", expression = "${ZIP_CODE_FORMAT_EXPRESSION}", key = "errors.zipcode.format", message = "errors.zipcode.format")
public String saveData() throws Exception {
Thanks
Krishan BabbarThanks
That is working..
I defined my expression as constant in my another file and it is working fine....
One more question i need to check space in expression but its not working... I tried following:
expression = "^([a-zA-Z0-9@_.-\\s]+)$" and expression = "^([a-zA-Z0-9@_.-\\\\s]+)$" -
Pre-validation using JavaScript cannot work in JSF?
Sometimes we need to do pre-validation using JavaScript in some senarios that data need be entered and validated at client site before it reaches to Web Application Server. Remind that JSF is a server validation. Creator seems not to allow Developers to do pre-validation using JavaScript for any editable input fields in form. I will illustrate an example and hope anyone can help me to solve it out.
Assume that if we write the a new web page that allows User enters Name and Phone. The pre-validation function called test() is written in JavaScript for validating field Phone. For simplicity, the below HTML/JavaScript without nested in table is a simple one for HTML form.
<html>
<body>
<script language="JavaScript">
function test(){
if (form1.phone.value == "")
alert("Please enter phone number in digits.");
return false;
</script>
<form name=form1>
<input id="phone" type="text" size=20><Br>
<input id="name" type="text" size=20><Br>
<input type="submit" id="submit" onclick="test()" value="Submit">
</form>
</body>
</html>
Now, we consider using Java Studio Creator to generate the same form as describing above. The script is shown below:
<?xml version="1.0"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<html>
<head>
<title>testForm Title</title>
</head>
<body rave-layout="grid">
<h:form binding="#{testForm.form1}" id="form1">
<h:inputText binding="#{testForm.textField1}" id="phone" style="position: absolute; left: 192px; top: 96px; width: 168px; height: 23px"/>
<h:inputText binding="#{testForm.textField2}" id="name" style="position: absolute; left: 192px; top: 144px; width: 168px; height: 23px"/>
<h:commandButton binding="#{testForm.button1}" id="submit" style="position: absolute; left: 192px; top: 216px" value="Submit"/>
</h:form>
</body>
</html>
</f:view>
</jsp:root>
After running Script that Creator created, the HTML is generated and reduced (for simplicity) as follows:
<f:view>
<html>
<body rave-layout="grid">
<form action="/rave/rave" id="form1" method="post">
<input id="form1:Phone" type="text"></input>
<input id="form1:name" type="text"></input>
<input id="form1:button1" value="Submit" onClick="test()"></input>
</body>
</html>
</f:view>
Take a look carefully at <input> elements. We see the syntax for naming for each "input" element that there is a semi colon added between form1 and phone or form1 and name. This syntax is generated from built-in JSF components. Hence, I rewrite the test() JavaScript function to match with the naming that Creator generated as follows:
<script language="JavaScript">
function test(){
if (form1.form1:Phone.value == "")
alert("Please enter phone number in digits.");
return false;
</script>
Clearly, this JavaScript cannot be worked because of a semi column that Creator has named it.
I have tried to work arround for this but cannot find a solution except changing the name such as: from <input id="form1:phone" ...> to <input id="form1_phone" ..>. But I could not change or modify the scripts because it is generated from JSF components when running it under browser.
I guess to solve this problem, the naming for elements in form should be reconsidered in the next release of Java Studio Creator.Hi Marie,
I currently sucess in client pre-validation using JSF. I found a way to do it.
Please take a look of how javascript has been added in the following scripts:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<html lang="en-US" xml:lang="en-US">
<head>
<meta content="no-cache" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>
<title>login Title</title>
</head>
<body style="-rave-layout: grid">
<h:form binding="#{login.form1}" id="form1">
<h:outputLabel binding="#{login.componentLabel1}" for="componentLabel1" id="componentLabel1" style="position: absolute; left: 216px; top: 72px">
<h:outputText binding="#{login.componentLabel1Text}" id="componentLabel1Text" value="Application System Name"/>
</h:outputLabel>
<h:panelGrid binding="#{login.gridPanel1}" columns="3" id="gridPanel1" style="position: absolute; left: 72px; top: 168px; width: 504px; height: 100px">
<h:outputLabel binding="#{login.componentLabel2}" for="componentLabel2" id="componentLabel2">
<h:outputText binding="#{login.componentLabel2Text}" id="componentLabel2Text" value="User Name: "/>
</h:outputLabel>
<h:inputText binding="#{login.textField1}" id="textField1" onclick="" style="width: 149px; height: 22px"/>
<h:outputText binding="#{login.outputText1}" id="outputText1"/>
<h:outputLabel binding="#{login.componentLabel3}" for="componentLabel3" id="componentLabel3">
<h:outputText binding="#{login.componentLabel3Text}" id="componentLabel3Text" value="Password: "/>
</h:outputLabel>
<h:inputSecret binding="#{login.textField2}" id="textField2" style="width: 147px; height: 22px"/>
<h:outputText binding="#{login.outputText2}" id="outputText2"/>
<h:outputLabel binding="#{login.componentLabel4}" for="componentLabel4" id="componentLabel4">
<h:outputText binding="#{login.componentLabel4Text}" id="componentLabel4Text"/>
</h:outputLabel>
<h:commandButton action="#{login.ok_action}" binding="#{login.button1}" id="button1" onclick="return checkUserIdentity(this.form)"
style="width: 90px; height: 25px" value="OK"/>
<h:outputLabel binding="#{login.componentLabel5}" for="componentLabel5" id="componentLabel5">
<h:outputText binding="#{login.componentLabel5Text}" id="componentLabel5Text"/>
</h:outputLabel>
</h:panelGrid>
</h:form>
</body>
<script type="text/javascript">
function checkUserIdentity(form){
var userName = form["form1:textField1"].value;
var userPassword = form["form1:textField2"].value;
if (userName == "") {
alert("Please enter User Name.");
form["form1:textField1"].focus();
return false;
if (userPassword == "" ){
alert("Please enter password.");
form["form1:textField2"].focus();
return false;
form.submit();
return true;
</script>
</html>
</f:view>
</jsp:root>
The key for getting data value from Form based on Javascripts is var userName = form["form1:textField1"].value;
Thanks,
VTT_ -
i have some confusion on cin
what are condition types used in cin with details
and where will assign TAXINJ and TAX INN please give me full details with example if any documents available please send to [email protected]
advanced thanks<b>TAXINN:</b>
JEXP IN: A/R BED %
JEXQ IN A/R BED
JEAP IN A/R AED %
JEAQ IN A/R AED Qty
JESP IN A/R SED %
JESQ IN A/R SED Qty
JASS IN A/R Assessable Va
JIN1 IN A/R CST
JIN2 IN A/R LST
JLST IN A/R LST
JMAN IN Manual excise
JMOD IN A/R BED ..............................
Regards,
Rajesh Banka
Reward points if helpful. -
Condition type used for invoice list
Hello Gurus,
following condition type used for invoice list, why do they exit in invoice list:
RL00 MW15. LR00 RD01Hi,
Please go through the below document
When you work with invoice lists, you need to be familiar with the following concepts:
Prerequisites for invoice lists
Relationship to Pricing
Structure of an Invoice List
Changing header and item data
Integration with financial accounting (FI)
Prerequisites
You can only process invoice lists if the following prerequisite data is defined by your system administrator in Customizing for Sales:
Condition type RL00 (factoring discount) must be maintained and, if required, also the condition type MW15.
An invoice list type must be assigned to each billing type that you want to process in invoice lists. The standard version of the SAP R/3 System includes two types of invoice lists: LR for invoices and debit memos, LG for credit memos.
Copying requirements must be defined (for example, the payer, terms of payment and other fields that must be identical in the documents to be included in the invoice list)
In addition, before you process an invoice list, you must maintain the following master data:
A customer calendar must be defined, specifying the time intervals or dates on which invoice lists are to be processed.
The customer calendar must be entered in the Billing Sales Area view of the customer master record.
Pricing condition records for the condition type RL00 and, if necessary, (e.g. in Germany) the condition type MW15 must be maintained.
Output condition records for condition types LR00 and RD01 must be created.
Relationship to Pricing
The system processes factoring discounts in invoice lists in exactly the same way as other kinds of pricing elements. The data for the factoring discount is stored in condition records. Controlling during document processing is carried out via condition types, pricing procedures and access sequences. This control data is defined in Customizing for Sales by your system administrator.
For further information, see Conditions and Pricing.
Structure of an Invoice List
An invoice list represents an individual billing document. It consists of a document header and document items. Each item represents a billing document that you have included in the invoice list. The header contains an overview of summary information, such as the net value of all documents in the invoice list, the value of the factoring discount, details of taxes, and so on. It also contains information on partners and output.
Changing Header and Item Data
You can change some of the header data - for example, the billing date - when you process the invoice list. You can change an item - either an individual or collective invoice - and display document details. However, you cannot change any data in individual billing documents once they are part of an invoice list.
It is possible, however, to make certain global changes to output in all items in an invoice list.
For further information on output, see Communication in Sales and Distribution Processing.
Integration With Financial Accounting (FI)
The documents that you want to combine within an invoice list must already have been billed and forwarded to Financial Accounting. Here the billing documents intended for an invoice list are blocked for normal dunning transactions.
The dunning block on FI documents is lifted as soon as you create an invoice list and transfer it to FI . The system then calculates the new dunning date for the invoice on the basis of the invoice list date.
In addition, the system enters invoice list numbers in the FI documents as reference numbers. Invoice list numbers can then be entered for incoming payments.
When you save the invoice list, the system automatically creates an accounting document for the factoring discount and possible taxes and posts it to the corresponding G/L account in FI.
Regards,
Murthy -
Same condition type used in MM , error?
Hi ,
I am (SD) using the same condition type which is used by MM and maintained different condition records in VK11. when I created STO , MM condition value is posting right , But with relevant to STO and Del , I create billing document , here The condition records what I maintained in vk11 are missing. I have check each and every step. where could be the error exists? cant we use the same condition type used by MM , though we maintained different acceess seq and condition records in VK11?
Thank you,
Kanna Palle.Hi,
I copied the condition type and changed the name , but its already used by MM. Its a STO process .STO to DEL to IV Billing.I maintained condition records in vk11.In the combination of plant and material , I find different field name for material (but its still named as material and the data element is different from what MM material field). Its confusing I think.
Precisely , I created access seq for plant and material , they field names are z123 and zabc. when I maintained condition records in vk11 , condition record saved in ZAAA and ZBBB fields. now at the time of Billing document , system throws an error saying, * condition record is missing * The system checks z123 and zabc for condition records , which are not there becos they are in the fields ZAAA and ZBBB.
At the time of Acc Seq creation , I tried to pick the same field which it shows in billing document.but that is not available in SD , its available only in ALLOWED FIELDS in MM. Pls Throw some light on this.
Thanks,
Kanna Palle.
Any updates on this Pls?
Maybe you are looking for
-
How do i upload an image to a server and put the name into a database table
Ok, i found a php image upload script that im using for a cms image gallery on my site. But for it to work the way i need to i have to have certain information submited into a mysql table at the same time. I could just make it so the user types the n
-
The G72Gx-RBBX09 has been out of stock online for a long time and I went to one of the stores and they said they don't have it in the store and that It's only available online. When is it going to be back in stock?
-
ALV Grid - Subtotal & total to be shown at the top of the table
Hi, I am using function module 'REUSE_ALV_GRID_DISPLAY' to display a table, and I count subtotals and total for some fields. The total is always shown at the bottom of the table, and subtotals are always shown after the rows that subtotals are calcul
-
Rearrange Music Within a Playlist
Probably a dumb ?, but after I have added songs to a playlist, how do you change the order of the items within the playlist?
-
ok so my life is slowly coming to a end. My Iphone 3G that I have had for little over a year has gotten water damaged and is not working. I logged on a few days ago and set up an appointment with the nearest apple store for friday. I have looked at s