enable buttons after the query [message #203707] |
Thu, 16 November 2006 01:55 |
cong
Messages: 25 Registered: June 2006
|
Junior Member |
|
|
Hi! I need to enable buttons only if there are records fetched. I tried putting the set_item_property statements in post_query but it fires only after I go to the 2nd record. How do I go about it?
|
|
|
Re: enable buttons after the query [message #203776 is a reply to message #203707] |
Thu, 16 November 2006 05:08 |
pchircop
Messages: 4 Registered: November 2006
|
Junior Member |
|
|
Hi,
Append a "KEY-ENTQRY" at form level
set_item_property('your_button',ENABLED,PROPERTY_FALSE);
ENTER_QUERY;
set_item_property('your_button',ENABLED,PROPERTY_TRUE);
set_item_property('your_button',NAVIGABLE,PROPERTY_TRUE);
Hope it helps!
Regards
|
|
|
|
|
|
|
|
|
|