Discussion:
EP DAX 2009 ValidateWrite on table side: works only once?
(too old to reply)
Curious
2010-07-19 19:21:23 UTC
Permalink
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?
unknown
2010-07-20 13:59:30 UTC
Permalink
perhaps you need to use:
if ((!(this.Name)) || (this.Name>=""))
{...
}



Curious wrote:

EP DAX 2009 ValidateWrite on table side: works only once?
19-Jul-10

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 have added code in ValidateWrite method on CustTable tabl

if (! this.Name

ret = checkFailed("Name is mandatory."); //ep tes


Now I want to create new customer on porta
I navigate to customers.aspx, then choose "New customer
/EPCustomerEdit.aspx pages open

I select customer group, currency and language, but I do not specify custome
nam
After that I click "OK" and have "Name is mandatory." in infolog
That works fine, but after that I click "OK" again and I am redirected t
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?

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Excel Identifying which formulas are slowing down workbook recalaculation
http://www.eggheadcafe.com/tutorials/aspnet/917072d4-8194-4f18-8455-75b2ebe359f0/excel-identifying-which-formulas-are-slowing-down-workbook-recalaculation.aspx
Curious
2010-07-21 12:32:54 UTC
Permalink
Unfortunately that does not help
it seems that EP calls validateWrite only once, very strange
Post by unknown
if ((!(this.Name)) || (this.Name>=""))
{...
}
Mirjam Kroonder
2011-02-08 12:30:14 UTC
Permalink
Did you ever resolve this? I'm having the same problem.
Post by Curious
I have a problem with Enterprise Portal DAX 2009 development.
ValidateWrite seems to work very strange!
I have 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 do not 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 am 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?
Post by unknown
if ((!(this.Name)) || (this.Name>=""))
{...
}
Post by Curious
Unfortunately that does not help
it seems that EP calls validateWrite only once, very strange
Submitted via EggHeadCafe
WCF Generic DataContract object Serializer
http://www.eggheadcafe.com/tutorials/aspnet/59ae2b9e-a3be-4cd5-a0ef-939a7abbdc3a/wcf-generic-datacontract-object-serializer.aspx
Loading...