Hi ,
I have a drop down with values new,change,close. And they are three sub forms also.Based selection of drop down the respective drop down needs to be visible and others need to be hidden .Initially all the sub forms are hidden from lay out .and i wrote the following script on change event of drop down but this is not working as expected.
if(this.rawValue!= null)
{
if (BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="New")
{
}
else if (BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Change")
{
}
else if(BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Close")
{
}
}
else
{
}
Please help me where i am going wrong!!
Thanks,
Bharathi.
Views
Replies
Total Likes
Hi,
Bharathi.
I also write the code in Change event of Drop Down List.But there is some error in Change Event.
So, I write the code in Validate event.It could solve that some error.
Please check my code, I think it can help you.
if(this.rawValue != null)
{
if (this.rawValue == "New"){
}else if (this.rawValue == "Change"){
}else if(this.rawValue == "Close"){
}}else{
}
Hope this Helps,
S,Candy.
Views
Replies
Total Likes
hello
Please write like following.
if (this.rawValue <> null)
then
app.alert("value is selected")
if (BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="New"))
then
app.alert("NEW");
BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="visible";
BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="hidden";
BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="hidden";
endif
if(BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Change")
then
app.alert("Change");
BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="visible";
BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="hidden";
BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="hidden";
endif
if(BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Close")
then
app.alert("Close");
BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="visible";
BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="hidden";
BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="hidden";
endif
else
app.alert("You have to select any one of the request Type");
endif
Views
Replies
Total Likes