BOM Validity Using ECM
Hello All,
We are currently reviewing the ECM functionality to assistn in BOM validity maintenance. I have made the necessary changes in SPRO to activate this functionality. My initial testing utilizing the Change Master and associating it with the BOM works fine. However, the question I had was more around having to make retroactive changes. I noticed that the system using the Entered or Created date from the transaction to determine the BOM validity. Is there anyway to influence the BOM validiy to look at document dateof the transaction instead of entered date? Has anyone run into this type of issue before?
Thanks for your help.
Gus
Dear Sir,
That is what I have done for a material.
Apart from making Routing again after deleting the BOM, do I need to take care of any other thing?
Thanks & Regards,
Rohit.
Similar Messages
-
BOM Validity - Using Engineering Change Management
Hello All,
We are currently reviewing the ECM functionality to assistn in BOM validity maintenance. I have made the necessary changes in SPRO to activate this functionality. My initial testing utilizing the Change Master and associating it with the BOM works fine. However, the question I had was more around having to make retroactive changes. I noticed that the system using the Entered or Created date from the transaction to determine the BOM validity. Is there anyway to influence the BOM validiy to look at document dateof the transaction instead of entered date? Has anyone run into this type of issue before?
Thanks for your help.
GusHi Krishna,
You can use change numbers to change independent (recipe) formula in the PLM-Recipe Management.
The object formula is assigned to the object type specification (type 60 of the change management).
For the object type specification the use of the object management record is not supported in the SAP standard.
Only the change documents are available.
Best regards,
Roland Freudenberg -
Hi friends
can we restrict the BOM validity period. ex: particular BOM validity should be from 23.06.2008 to 29.06.2008.
warm regards
sspHi
You can restrict the BOM validity using change number but the valid to date is always assigned as 12/31/9999. I do not know what is the real business requirement. Do you have valid BOM after 29/06/2008 which is valid to another validity period.
follow this process if it works for you.
Create a change number with valid from date 23.06.2208.
Make the changes in BOM using this change number , BOM will be changed with valid from date 23.06.2008 and valid to date 31/12/9999.
if you have new bom from 30.06.2008, create a new change number with valid from data 30.06.2008 .previous BOM will be valid till 29.06.2008.
Thanks
Sanjay
can we restrict the BOM validity period. ex: particular BOM validity should be from 23.06.2008 to 29.06.2008. -
Hi Gurus,
How to configure BOM validity from to to date ?
Before posing this question, I have gone through the threads in SDN.
As said, I tried to create BOM with ECM. Valid till date is not changing.
BOM-1 valid from 01.01.2008 to 31.12.9999 with ECM No
BOM-2 valid from 01.07.2008 to 31.12.9999 with ECM No
As per the configuration, BOM-1 must be valid till 30.06.2008 and in display mode dates must be 01.01.2008 to 30.06.2008.
regards
Ram KumarHi Ram,
This is not possible in Standard SAP.
Eevry time the Vaild to will be 31.12.9999 (this is system setting).
This is valid if you use ECM or Not.
But, will ECM you can control this..
With Revision level concept you can control the BOM explosion also..
Regards,
Siva -
Hi All
Is it possible to change the validity dates of the BOM ?
As, when I tried to change the "valid from" date of BOM using CS02, SAP doesn't allow me to do so.
The columns "Valid to" and "Valid from" are greyed out.
Can it be done as I want to change the "valid to" date from 31.12.9999 to tomorrow's date.
Are there some SPRO settings to be changed ?
Thanks in advance !!!
VineetHi
As per my knowledge, the Requirement can only mapped using ECM (Engineering Change Management).
1) Follow the link for the steps to configure ECM
[ECM|http://www.sap-img.com/pp007.htm]
2) Create Change no in CC01 and use the change no in CS01/CS02
Regards
Brahmaji -
Hi All,
In BOM creation, the validity of all the component are from current date to the max. of 31.12.9999 but I want to have
1. Specific Duration for Compenent of a BOM and
2. Specific Duration for that BOM
Can it be possible?
SekharDear Mr.Sekhar,
1.As far I know I dont think we can fix the Valid to Date for a BOM.
2.Even Using ECM you can not fix the Valid To Date for a BOM.
3.Using with or without ECM you can change the Valid From date of a BOM while
creation itself .
4.If you do so then the BOM will be valid only from the date which you entered
while creation.
5.ECM is used only to track the Changes that happened for BOM items along
with the date effectivity.BOM history can be obtained.
<b><u>If useful reward points.</u></b>
Regards
Mangal -
BOM validity by order batch (pharmacy)
Dear PP Gurus,
Currently we are implementing PP-PI in pharmacy.
There is one requirement that i think it is impossible in PP-PI
but maybe you can give me some idea about this.
My client want the BOM validity is by batch.
The change active is not by date but by batch
for example
this change of BOM is valid start from batch D000600
prior to D000600 still used old BOM
is it possible??
best regards,
Freddy HaHi Katti and Adler,
As we use strategy 40 we will user planned independent requirement.
in some point you are right Mr Katti (fo your command : it doesn't make any sense),
when we create planning we do not state the batch.
So MRP will run without clue which batch is it....
After production order created then batch is created.
I will look into parameter effective for BOM as Mr.Adler stated.
Parameter activity will only works with MTO strategy or Production by Lot only.
When we create SO for MTO / create lot for production then system will ask the batch.
So MRP will run according parameter activity from SO / from Lot.
Thanx once again for help.
Good day.
Best regards,
Freddy Ha -
BOM "valid from date" in transaction CSKB
The business process is like this -
1. We create sales order ( VA01)
2. In sales order, we enter configurable materials as items.
3. Then we freeze/change the BOM for sales order and line item through t-code CSKB.
The problem is in CSKB, "Valid from date" of order BOM components is defaulted using the "required delivery date" in Sales Order. We want to default current date (system date) as the "valid from date". Please suggest how it can be done.
Regards,
BijayShailesh,
While creating the BOM have you used the change number ...? if yes then display that change number and check wheather do you have any alternative date mention in it.
check validity date of change number as well as BOM validity.
another reason can be you need to apply SAP note 1278790.
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0001231930
check it out and revert back for further discussion.
Hope it helps you.
Regards
Ritesh -
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. -
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_ -
Valid Use of a Collection in SCCM
I've read the contents of this post with much interest and would like to ask about whether my particular requirement is possible.
When we build a server for the first time we need to ensure that it is not placed in collection with other production servers for obvious reasons. So I was thinking about creating a provisional collection
container where we can place newly built servers pending the QA of the build. The container will resemble the Production Collection in every respect except who has permissions to perform maintenance tasks on the objects in the collection. So if there is an
issue with the build and we need to delete the object or reset its maintenance flag, we don't risk inadvertently doing this to a normally functioning production server. That way we can also restrict who has the authority to maintain the collection to the build
teams. Only when the server is fully functioning and provisioned in AD and formally handed to the run teams, will it be moved to the Production Collection.
Is this a valid way to use Collections? If so is there any existing SCCM Task Sequence tool that will move servers between containers or do we need to develop one?
Many thanks....Hi,
It sounds like a valid use of Collections. There is no builtin tool to move a device from a collection to another, you could check out the Right Click tools for SCCM 2007 and see if there is one or, simply change one of the right click tools script to have
that feature.
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter
@ccmexec -
Hi,
I have an old script in visual basic 6 which I need to modify.
In the variables declaration I have the following:
Dim test as mscomm
and later I instantiate this variable in the following way:
set test = new mscomm
In the components I have selected the following:
Microsoft comm control 6.0
I must say that it works fine when I have this in an ocx but I would like to debug a piece of code. The error is in the line with the New and the error is: Not valid use of the New word.
Can anybody help me?
Thanks in advance. Regards.You can't have the "set" in VB.NET.
If you create a new project and copy-paste the old VB6 code into your file it will convert most of the code for you to be compatible with VB.NET.
I think MSComm might be a Shared class. If so you don't need "test = new mscomm"
You can just use "test.CommPort = 2" for example. I'm not sure about this because this is the only example I could find.
https://msdn.microsoft.com/en-us/library/aa259394(v=vs.60).aspx
Dan Randolph -
My Code Samples List
Maybe you are looking for
-
Windows 64-bit Mac Pro 1,1
With the latest boot camp 4.0 and 5.0 packages Apple went to extra lengths to make sure that 99.9% it would be impossible for me to install Boiot Camp x64. Why? all I want is the time to be right, a Startup Disk (Lion's does not see Windows 7 or 8 in
-
I have my computer set up, so that after 15 minutes of inactivity, it goes to sleep mode. Well when I decided to wake up the computer, the computer woke up, but not the monitor. I didn't know what to do so I tried shutting down. it didn't seem like i
-
SQL DATE format in SLT???
Hello, Is it possible to create a field of type SQL_DATE in SLT and fill in in the RULE ASSIGMENT? Thanks, Amir
-
Only happens when waking up for inactivity, sleep, or shut down. Must alt+F4 to close and gain control of browser.
-
Unlink shapes from vector mask in PS CS 6
Hi guys, Do you know how I can unlink the shape from vector mask like in Photoshop cs 4? cs6: cs4: This is especially interessting for if I want to move pattern overlay or something else. I hope you can help me. thx http://xd-artist.de