on 03-10-2008 7:24 AM
Hi ,
My form is accessed through portal.
I want a warning message to be displayed when there is no data in the dropdown.
The message can be given
1. At the start when the form opens up Or
2. When the user clicks on the dropdown.
Please help me with this.
Points will be rewarded for useful answers.
Thanks.
Thomas,
Lets say you have a field called ddMonth then add the following on its initialize event and change the value to JavaScript.
if(this.rawValue == null || this.rawValue = "")
{
xfa.host.messageBox("Month is empty");
}
Hope this helps.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thomas,
In the initialize event of your drop-down put following code.Change language to javascript.
var DataBinding = this.bind.ref;
// the data binding may contain "$data.<root data name>" instead of $record
DataBinding = DataBinding.replace("$data."+xfa.record.name,"$record");
DataBinding = DataBinding.replace("$record.", "");
var itemNode = xfa.form.resolveNode("xfa.datasets.data."+xfa.record.name+".sap-vhlist."+DataBinding.replace(/(\.)/g,"\\.").replace(/(\[\*\])/g,""));
var size = 0;
try
{
size = itemNode.nodes.length;
xfa.host.messageBox("Size is :"+size);
if(size == 0)
{
xfa.host.messageBox("Month is empty");
}
}
catch(e)
{
xfa.host.messageBox("Error");
}
Hi,
Please check the message box method in the adobe designer help.
You may script the necessary message and the error type in the function.
Thanks and regards,
Antony John Isacc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.