At 10:11 AM 4/11/2014, Rehan Wyne wrote:

I am trying to enable / disable menu items programmatically for my
application menus created with Application Designer.

To achieve this, I do the followings in application designer:
1. created main menu then sub menu items.
2. created an action and set Component ID='accounts'
I used following property commands to disable the action which will
eventually disable the relevant menu item but does not work.

PROPERTY rba_form|accounts enable 'false'
and
PROPERTY accounts enabled 'false'

Note: I have also tried to enable and disable menu items of a menus
created in a form, this works.

Can someone guide me to achieve this using application designer?


Hello Rehan,

First, welcome to R:BASE World!

In order to execute any R:BASE Application Designer properties,
make sure that all start-up property commands are used as
"On After Start Action".

Here's how ...

Application Designer | Properties | [On After Start Action]

-- Example 01
   PROPERTY RBA_FORM|Accounts ENABLED 'FALSE'
   RETURN

-- Example 02
   IF (CVAL('NetUser')) NOT IN (Administrator,Rehan) THEN
      PROPERTY RBA_FORM|Accounts ENABLED 'FALSE'
   ENDIF
   RETURN

Hope that helps!

Please feel free to reach out to me with further questions.

Very Best R:egards,

Razzak

www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to