CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 set "DeleteAllowed" dinamically

Print topic Send  topic

Author Message
texwiller

Posts: 2
Posted: 01/25/2011, 8:13 AM

for your use, if you need to set DeleteAllowed based on a field value, you have to put this code on the
"AfterExecuteSelect"

example:
Function rec_DataSource_AfterExecuteSelect(Sender)

rec.DeleteAllowed = not isempty(rec.datasource.Recordset.Fields("<FIELDNAME>"))
...

End function

by!
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 01/27/2011, 2:27 PM

¿what´s the purpose of this code?


Quote texwiller:
for your use, if you need to set DeleteAllowed based on a field value, you have to put this code on the
"AfterExecuteSelect"

example:
Function rec_DataSource_AfterExecuteSelect(Sender)

rec.DeleteAllowed = not isempty(rec.datasource.Recordset.Fields("<FIELDNAME>"))
...

End function

by!

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.