|
|
Re: A button has to be disabled in Query mode(F11) [message #549787 is a reply to message #549773] |
Tue, 03 April 2012 17:18 |
owais_baba
Messages: 289 Registered: March 2008 Location: MUSCAT
|
Senior Member |
|
|
@littlefoot explained u in a good way
Try this
For prevention item from queried
you can use the
SET_ITEM_PROPERTY('itemname',
query_allowed,
property_false);
-------------------------------------------------
if :SYSTEM.MODE = 'ENTER-QUERY' then
go_item('itemname');
set_item_property('empno',
query_allowed,
property_false);
end if;
ENTER-QUERY;
and offcourse disabled button
regards
baba
[Updated on: Tue, 03 April 2012 17:19] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: A button has to be disabled in Query mode(F11) [message #549862 is a reply to message #549859] |
Wed, 04 April 2012 05:45 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
The go_block is invalid (why is itemname there?) and pointless, why do you need to change block?
There's no reason why the set_item_property shouldn't work. However it is in the wrong place for what the OP asked for.
They want the button disabled in enter-query mode.
If the OP has moved their code to the correct trigger, after Littlefoot pointed out the mistake, then that'll hopefully solve the problem.
|
|
|
|
|
|
|
|
Re: A button has to be disabled in Query mode(F11) [message #549869 is a reply to message #549865] |
Wed, 04 April 2012 05:54 |
owais_baba
Messages: 289 Registered: March 2008 Location: MUSCAT
|
Senior Member |
|
|
I think sir @maggy_Ashee question was this here he was talking about trigger key-exeqry that's why posted this code and fmb file as well
I have below code in KEY-EXEQRY however its not working as expected. Please advice.
It query's RECORD however SUMBIT button is not disabled.
execute_query;
go_item('blockname'.order_number');
set_item_property('blockname.SUBMIT', disabled , property_true);
[Updated on: Wed, 04 April 2012 05:55] Report message to a moderator
|
|
|
|
Re: A button has to be disabled in Query mode(F11) [message #549871 is a reply to message #549870] |
Wed, 04 April 2012 05:59 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
owais_baba wrote on Wed, 04 April 2012 11:54I think sir @maggy_Ashee question was this here he was talking about trigger key-exeqry that's why posted this code and fmb file as well
I think you need to read the whole thread:
maggy_ashee wrote on Tue, 03 April 2012 17:21
I have a block with 5 Items and one button(SUBMIT). [b]When I go in query mode (F11),[b] SUBMIT button to be disabled.
F11 is enter-query not execute-query.
|
|
|