Curious
2010-07-19 19:21:23 UTC
I have a problem with Enterprise Portal DAX 2009 development.
ValidateWrite seems to work very strange!
I have the following example for standard web page Customers.aspx:
I've added code in ValidateWrite method on CustTable table
if (! this.Name)
{
ret = checkFailed("Name is mandatory."); //ep test
}
Now I want to create new customer on portal
I navigate to customers.aspx, then choose "New customer"
/EPCustomerEdit.aspx pages opens
I select customer group, currency and language, but I don't specify customer
name
After that I click "OK" and have "Name is mandatory." in infolog.
That works fine, but after that I click "OK" again and I'm redirected to
customer list page, no error message in infolog.
It seems that validateWrite works only once!
Have anyone met that kind of web form behavior?
How I can solve such a problem?
ValidateWrite seems to work very strange!
I have the following example for standard web page Customers.aspx:
I've added code in ValidateWrite method on CustTable table
if (! this.Name)
{
ret = checkFailed("Name is mandatory."); //ep test
}
Now I want to create new customer on portal
I navigate to customers.aspx, then choose "New customer"
/EPCustomerEdit.aspx pages opens
I select customer group, currency and language, but I don't specify customer
name
After that I click "OK" and have "Name is mandatory." in infolog.
That works fine, but after that I click "OK" again and I'm redirected to
customer list page, no error message in infolog.
It seems that validateWrite works only once!
Have anyone met that kind of web form behavior?
How I can solve such a problem?