Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EP DAX 2009 ValidateWrite on table side: works only once?

30 views
Skip to first unread message

Curious

unread,
Jul 19, 2010, 3:21:23 PM7/19/10
to
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?

maevekennedy

unread,
Jul 20, 2010, 9:59:30 AM7/20/10
to
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 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?

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

unread,
Jul 21, 2010, 8:32:54 AM7/21/10
to
Unfortunately that does not help
it seems that EP calls validateWrite only once, very strange
Message has been deleted
0 new messages