Variable validation using i_step = 3
Hello,
We have a requirement such that when the user enters coverage code = B and location type as any one out of 1,2,3,4,5,6 then system should give a pop up saying "Select all location types". So we have used i_step = 3 and it works fine when the user enters code as B and loc types as 1;2; or 2;3 or 2;3;4 (any combination) but when the user enters the range i.e. 1 - 6 , then too the system pops up the message which is not correct since the range 1 - 6 includes all loc types.The technical properties of loc type variable is Mandatory and Selection option. I have also tried creating another variable on loc type with technical properties as Mandatory & Interval but still the same issue comes up.
Can you please suggest how to solve it?
Thanks in advance.
run this in your RSRT t code in BW and see if happens again? if it does open a note with SAP as it should work.
you could also create a drop down to show all the values.
Similar Messages
-
Variable Validation i_step = 3 and pop up
Hi Friends,
We have 2 variables for different Characteristics WEEK and MONTH (Are User Entry / Ready for Input).
If user gives input to more than 1 variable then a pop should come and say "FILL IN ANY ONE".
The below code is not working and the report is displaying the data even we enter both variables.
IF I_STEP = 3.
BREAK-POINT.
V_COUNT = 5.
CLEAR l_s_range.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZPOP_WEEK' or 'ZPOP_MONTH'.
if loc_var_range-low is not initial.
v_count = v_count + 1.
endif.
IF V_COUNT > 5.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'BRAIN'
I_TYPE = 'S'
I_NUMBER = '000'
I_MSGV1 = 'msg 1'
I_MSGV2 = 'msg 2'
I_MSGV3 = 'msg 3'
I_MSGV4 = 'msg 4'
EXCEPTIONS
DUMMY = 1
OTHERS = 2
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.
ENDLOOP.
endif.
Please help.
Many Thanks,
Ram.ram,
please below code
IF I_STEP = 3.
BREAK-POINT.
V_COUNT = 0.
CLEAR l_s_range.
read table i_t_var_range INTO loc_var_range with key vnam = 'ZPOP_WEEK'.
if sy-subrc eq 0.
v_count = v_count + 1
endif.
read table i_t_var_range INTO loc_var_range with key vnam = 'ZPOP_MONTH'.
if sy-subrc eq 0.
v_count = v_count + 1
endif.
IF V_COUNT ge 2.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'BRAIN'
I_TYPE = 'E' "shd be E
I_NUMBER = '000'
I_MSGV1 = 'FILL IN ANY ONE'
I_MSGV2 = 'msg 2'
I_MSGV3 = 'msg 3'
I_MSGV4 = 'msg 4'
EXCEPTIONS
DUMMY = 1
OTHERS = 2
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. -
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 -
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]+)$" -
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 -
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 -
To get the list of queries in which a particular variable is used - urgent
Hi Friends,
I have a list of variables which were used in some queries, now I need to know list of queries in which the given variable is used.
for example: There is a variable called ZVBASMNT and used in some queries, I want to get the names of the queries in which it was used.
please give some short method for this, if there is any table or Tcode for this please provide, its bit urgent.
Thanks & points will be given for the helpful answer
Regards...
GaneshDear Ganesh,
Yes, You can find.
Goto Metadata Repository in RSA1.
Click on Query
Selct / Click on a Query which uses your variable ZVACITY
Click on your variable
Just observe the USED BY list.
Regards,
Ram. -
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. -
Non-static variable being used in static context
I am currently attempting to write a basic user login system using basic applets. I have two JTextFields named "userText" and "passText".
What i am attempting to do is use the ".getText()" method to get the text out of the JTextField and verifying the string against a string already in a file using the bufferedReader, etc.
However when i try to compare the string in the file with the one in the text field using the following code:
if ((line.compareTo(username)) == 0)
i get the following error...
"non-static variable being used in a static context"
Any ideas?The static method doesn't know about instances of the class instead you pass the instance to the method:
static public void myMethod(MyClass instance, String var) {
if(instance.line.compareTo(var))
And then the call would be:
MyClass.myMethod(anInstance, userName); -
Passing Script variable to Package variable, ultimately used as fileName
Following an excellent post by Geplaatst door Joost, I put together a script which SHOULD populate a package variable, then use that variable as a file name.
The Script code is as follows:
public class ScriptMain : UserComponent
string iScriptVar;
public override void PreExecute()
base.PreExecute();
public override void PostExecute()
base.PostExecute();
Variables.ExtractName = iScriptVar.ToString();
public override void Input0_ProcessInputRow(Input0Buffer Row)
if (!Row.CUSIP_IsNull)
iScriptVar = Row.CUSIP.ToString();
A Windows message box (put in as debug, but removed for brevity here) shows the correct value is being set to iScriptVar at all points it was inserted.
The "ExtractName" variable is checked as a ReadWriteVariables for the Script properties.
But, the "ExtractName" package variable is not being passed to the Expressions for the FlatFile Connection properties, which is set to: @[User::ExtractName].
Where have I gone wrong?Why not to provide the link to the post already?
iScriptVar
is a local to script variable this explains why it did not you need the full wiring
e.g.
Dts.Variables["User::iScriptVar"].Value = iScriptVar
Arthur
MyBlog
Twitter -
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 -
Where used list where variable are used in queries
Hey All
Is there a sample program or standard program where I can identify where variables are used in cell definitions, structures and queries?
I have been given RSD1 and table rszeltdir and rszeltxref. But hoping for an easier solution.
thanksHi,
Also try
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
Hope this helps.
Thanks,
JituK -
Variable is used in description text Task description, but does not exist
Hi,
I am getting following error in the standard task 207914 ERMS_DECSN.
Workflow Error
Variable &REQREQ.REQUISITIONERUSER.ITSDESTINATIONSY& exists in description text Task description, but not in the container
Message no. 5W146
Diagnosis
Variable is used in description text Task description, but does not exist in the container.
System Response
The task could cause workflow errors.
Procedure
Correct description text Task description or add the variable to the container.
Can anybody please guide step by step process to correct this error.
Regards,
DeepakHi Deepak,
I face a similar issue,Task description contains an element which is available in container, but during Check, it throws below error.
Variable &ZINFO.REASON& exists in description text Task description, but not in the container
but variable "&ZINFO.REASON&" is not accessed in Task description.
suggest any ways to check the binding or adjust binding between workflow/task.
Please provide a solution to fix this error or advice if this error can be ignored? -
Formula node forbid to run VI when undefined variable is used
On all LabVIEW version, we can use Formula node to evaluate mathematical formulas.
We can define input and output variable freely and calculate using some variety of formula.
But when we use undefined variable as output, can execute VIs with no errors.
We think it is a problem because when programmer makes a typo, they cannot notice the mistake.
When undefined variable is used as output variable, LabVIEW should forbid to run VI.I think you are going to get the same (or similar) answers than to my suggestion(s) to make VI outputs potentially "required" and the same for some functions (built-in VIs):
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-required-outputs-in-VIs/idc-p/3157058
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/quot-Function-terminal-not-connected-quot-detection-plus/idi-p/1858573
In general, I agree with you, there is a potential for problems. Not really for the reason you are mentioning, because a typo will break the VI (unless you have two output variables with very similar names - unlike in your example - such as y and y0). But it could make for some frustrating debugging session.
Maybe you are looking for
-
Unable to load DLL 'librfc32.dll' (Exception from HRESULT: 0x8007007E)
Unable to load DLL 'librfc32.dll' (Exception from HRESULT: 0x8007007E) Hi! We would like to hold the account balance data from EMPTOR to SAP and have the following error: Unable to load DLL 'librfc32.dll' (Exception from HRESULT: 0x8007007E) We use
-
Labview logging program crash windows after 2 days
I am using Labview 8.0, and running the executable the program. What this program does is that it acquires data and then writes to hard drive. Each set of data is small but it writes also every second. It will create a new file every day so the file
-
ALV list out by microsoft excel
when I use mirosoft excel to output some standard ALV list (CtrlShiftF7) , there will be something lost in the last line. Why does it happen and how can I resolve it?
-
Basic Security & form printing questions.
Hi, I am not an Oracle Forms developer yet, just gathering info, but I have 2 probably simple questions for you forms experts out there that maybe you can help me with. Lets say that this new application will have 10 users and I create a main menu wi
-
I'm trying to increase the performance of my OLAP Cube and i thought placing the CUbe entirely in RAM can solve this problem. can anyone please answer me , if this can be done using Traditional BI i.e SSAS and how?