Home » Developer & Programmer » Forms » Data Field Attributes (Forms)
Data Field Attributes [message #475297] Tue, 14 September 2010 05:04 Go to next message
eight8ball@gmail.com
Messages: 20
Registered: February 2010
Junior Member
Hi,

Pretty new to forms and was wondering:

If I have a form which basically has fields which the user enters as search criteria, they then click on a find button which displays the data.

This all works.

I would now like to, depending on one of the fields values, set certain other fields attributes (such as editable etc).

problem I have is with when I click on a record in the dataset it changes the all rows (using WHEN-NEW-RECORD-INSTANCE trigger).

I would only like it to change the specific rows field attributes .

Is there a easy way to do this....

Thanks
Re: Data Field Attributes [message #475299 is a reply to message #475297] Tue, 14 September 2010 05:14 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Use set_item_instance_property.
Re: Data Field Attributes [message #475301 is a reply to message #475297] Tue, 14 September 2010 05:33 Go to previous messageGo to next message
eight8ball@gmail.com
Messages: 20
Registered: February 2010
Junior Member
can you give an example
Re: Data Field Attributes [message #475303 is a reply to message #475301] Tue, 14 September 2010 05:48 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Form builder help gives examples for everything - have a look.
Re: Data Field Attributes [message #475304 is a reply to message #475303] Tue, 14 September 2010 05:53 Go to previous messageGo to next message
eight8ball@gmail.com
Messages: 20
Registered: February 2010
Junior Member
i dont want the code to set an item property, i want to know if its possible to set item attributes to different values within the same data block
Re: Data Field Attributes [message #475306 is a reply to message #475304] Tue, 14 September 2010 05:56 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Yes, some of them anyway, using set_item_instance_property.
What's the problem?
Re: Data Field Attributes [message #475431 is a reply to message #475304] Wed, 15 September 2010 01:53 Go to previous message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

eight8ball@gmail.com wrote on Tue, 14 September 2010 10:53
i dont want the code to set an item property, i want to know if its possible to set item attributes to different values within the same data block


You don't want the code? So why you use WHEN-NEW-RECORD-INSTANCE?

The only way to set the property (not to set all rows) is using set_item_instance_property. And you have to put CODES there.
Previous Topic: Image item
Next Topic: File Upload Show No Record
Goto Forum:
  


Current Time: Thu Sep 19 13:01:03 CDT 2024