Solved

apex

Posted on 2012-03-28
4
753 Views
Last Modified: 2012-04-03
in my application
i have a home page where date column is there if the date column is not null
then all items in other pages should be disabled(locked)not updatble only can view
but if date column is null then all items in pages are updateble.

how to disable some items in pages when i select with some condition
0
Comment
Question by:vsarma50
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:gatorvip
ID: 37778747
For those items, change their Read-Only condition to Value of Item/Column in Expression 1 is NOT NULL and set the Expression 1 field to your date column
0
 

Author Comment

by:vsarma50
ID: 37797318
Hi
this is working only for one column
but i have condition with 4 columns
1) date
2) anothercolumn1
3) another column2
4) another column3
in this column 1 to 3 should be null and the date should match with date in the first page
then the fields are locked
but now with this solultion iam able to check only one
expression 1 is not null
how can i do this please advice.
thanks.
0
 
LVL 20

Accepted Solution

by:
gatorvip earned 500 total points
ID: 37797879
>>this is working only for one column

Yes, because that is what you asked for in the original question. My answer was correct for what you stated initially: "where date column is there if the date column is not null"

Now you are asking about 4 columns and there's an additional requirement for a date match. In the future, please ensure to give the correct details or post a new thread with the new question.

What you probably want to do in this case is to change the Read-Only condition to PL/SQL Expression, then change the Expression 1 field to something like:
:P_COLUMN1 is not null
and :P_COLUMN2 is not null
and :P_COLUMN3 is not null
and :P_DATE_FIELD1 = :P_DATE_FIELD2  

Open in new window

The date condition his is where you need to be more specific as to what you actually have on your pages. You can add a separate validation to ensure that the date fields actually contain a correct date.
0
 

Author Closing Comment

by:vsarma50
ID: 37802562
Thanks very much it worked for text columns but if it is a report column how can I change the read only property. please advice.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now