Home » Developer & Programmer » Forms » Disabling a Particular record in a multi-record block (Oracle 9i,dev 6i)
Disabling a Particular record in a multi-record block [message #278014] Thu, 01 November 2007 07:54 Go to next message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member
hi all

I come across a problem with the disabling of a particular record in a multi-record block.

I have a block with the name of emp having 10 records.

With the help of execute_query, all emp name are under emp column.
I want the user to enter each employee salary against their respective employee name.


there is one name 'imran' whom the user cannot enter the salary.

i want to disable the whole record with the employee name of 'imran'.

so that the user cannot enter its salary.

Appreciate ur kind help
Re: Disabling a Particular record in a multi-record block [message #278019 is a reply to message #278014] Thu, 01 November 2007 08:22 Go to previous messageGo to next message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
You may use set_item_instance_property. Not sure though.

By
Vamsi
Re: Disabling a Particular record in a multi-record block [message #278122 is a reply to message #278014] Thu, 01 November 2007 21:48 Go to previous messageGo to next message
shankar muthusamy
Messages: 21
Registered: November 2006
Location: singapore
Junior Member
yes you can use set_item_instance_property in the postquery level.
Based on the condition use this property to disable all fields
which is visible in that block.
Re: Disabling a Particular record in a multi-record block [message #278163 is a reply to message #278122] Fri, 02 November 2007 03:13 Go to previous messageGo to next message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member
hi shankar

i have tried it before your reply
but the problem is that when i set the set_item_property to false under certain condition, it
will get whole column disable....
so no one can put any value in the record below it....

i want only one row to be disable in this multi-record block.
help me
Re: Disabling a Particular record in a multi-record block [message #278167 is a reply to message #278163] Fri, 02 November 2007 03:36 Go to previous messageGo to next message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
Quote:

set_item_instance_property
Quote:

set_item_property
Hope you can recognize the difference now.

By
Vamsi
Re: Disabling a Particular record in a multi-record block [message #278732 is a reply to message #278167] Mon, 05 November 2007 08:55 Go to previous message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member
Problem has been solved

Thanks for your cooperation and tolerance

Previous Topic: how to retrieve database values to a text items(in a separeate block)
Next Topic: How to runtime without the default Tool Bar?
Goto Forum:
  


Current Time: Sat Feb 15 16:39:55 CST 2025