Disabling an Required Item [message #347177] |
Wed, 10 September 2008 23:45 |
dev88
Messages: 15 Registered: September 2008 Location: SAN JOSE
|
Junior Member |
|
|
Hi Gurus,
I am working on a requirement on developing custom form, where i have few required fields in it and a button. The functionality of the button is when button pressed a separate window will open with view only data. Issue is when the first time form is opened and if i go and click the button directly, it is always asking user to enter mandatory fields first. I tried SET_ITEM_PROPERTIES/ SET_ITEM_PROPERTIES to Disable / Inset allow to FALSE but no use. If the required fields are entred and after the button is clicked its working.
Did any one faced this type of requirement and have any clue to over come this. Please let me know.
Thanks
DD.
|
|
|
|
Re: Disabling an Required Item [message #347291 is a reply to message #347177] |
Thu, 11 September 2008 04:37 |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
First, why should they be mandatory if they may be empty?
Second, is the data block in the first form a database block? and is any field bounded? If this is not the case, I think there is no need to make them mandatory when leaving the 'separate window', so that you make them initially NOT mandatory and forget about them.
|
|
|
|
Re: Disabling an Required Item [message #347536 is a reply to message #347177] |
Fri, 12 September 2008 01:03 |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
hehe, LOL! I liked that !! .
But still,Quote: | The functionality of the button is when button pressed a separate window will open with view only data
|
Since the separate window will show data to view only, I think that the first data block is a control block just to enter the parameters, and the second is a database block where the data is fetched.
So in the where clause of the second data block, the parameters of the first will interfere. And if this where clause does not take into consideration that these parameters can be null, then no data will be retrieved if no parameters are provided.
Briefly, I think there's no need to make the parameters mandatory, and when the button is pressed, the separate window will be empty.
I hope this is the case, and this is a small hint to solve the problem.
[Updated on: Fri, 12 September 2008 01:05] Report message to a moderator
|
|
|
Re: Disabling an Required Item [message #347678 is a reply to message #347177] |
Fri, 12 September 2008 12:09 |
dev88
Messages: 15 Registered: September 2008 Location: SAN JOSE
|
Junior Member |
|
|
Hi Gurus,
Thank you for your replies. I did fixed the issue, with simple move . Since the button is in the same block of required field it was behaving like that. I have created a new block and moved the button onto new block . It is working fine now.
Thanks
DD.
|
|
|