× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Simon,

Your example did the trick. The syntax in the book did not use the double
quotes.

Thanks,
Erick

-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of Simon Coulter
Sent: Wednesday, May 26, 1999 7:00 PM
To: MIDRANGE-L@midrange.com
Subject: Re: UIM Conditional Menu Options


Ð
Hello Erick,

A sample of your code would be helpful however this should not be too
difficult.  You need to
define a UIM condition to control the menu item.

:COND NAME='LIBEXIST' EXPR='CHKOBJ("QSYS","*LIB")'.

Then you reference that condition on the menu item.

:MENUI COND='LIBEXIST' HELP=...  ACTION=... OPTION=2.Do something

Be careful with the trailing full-stop (period) and I have found the UIM
parser to be sensitive
to extraneous spaces in comma-separated values -- note the above example
does not have spaces
before or after the comma in the CHKOBJ function.

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
//--- forwarded
letter -------------------------------------------------------
> X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
> Date: Wed, 26 May 99 10:53:16 -0700
> From: "Erick Garske" <erick@formationmg.com>
> To: "'Midrange List'" <midrange-l@midrange.com>
> Reply-To: MIDRANGE-L@midrange.com
> Subject: UIM  Conditional Menu Options
> Importance: Normal

>
> Ras anyone here been able to get the conditional menu options to work
> correctly? I am trying to enable a conditional call based on an existance
of
> a library in a UIM menu. There is an example of this in Unleash the Power
of
> UIM, but I have not been able to get this to work correctly.
>
> Thanks in advance for your help.
>
> Erick

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.