"Holy Crap Batman - I actually got it to work!"

In actuality Peter - I got this thing working shortly before I received
this e-mail reply from you.

I thought I had already tried this particular coding before - but, this
minor change seems to have done-the-trick!

So - within the DynamicCurrentControl for that column - I set it to:
        IIF(menu_pass2.Sub_OPT, "Sub_Opt", "Dummy_Txt")

And that did it! Man was it exciting to finally see it working - after
wasting so much time on it - and doing LOTS of trial and error!!!

:-)
One Happy Camper...
-K-

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Peter Cushing
Sent: Thursday, July 23, 2009 12:02 PM
To: [email protected]
Subject: Re: Password Util, Grid & Buttons...


Kurt Wendt wrote:
> Hey folks,
>
> I never got this to work (and I've been sidetracked with other
projects
> for the past week).
> I now created a cursor(Menu_pass2) that represents the next level down
> in the menu system, and has a boolean field called Sub_OPT. For the
> column in the Grid within question - I initial set the Control to be
the
> Text box instead of the Button. Then, with the Form Init I have the
> following code:
>
> thisform.GrdSubMenu.SetAll("DynamicCurrentControl", ;
>          "IIF(!Menu_pass2.Sub_OPT, ;
>               'Thisform.GrdSubMenu.Column3.Dummy_Txt', ;
>               'Thisform.GrdSubMenu.Column3.Sub_Opt')", "Column3")
>
> However, when the Form runs - the column continues to ONLY show text -
> and no buttons - and the content is True if it's a Sub-Menu option.
> Where as - if its True - then I actually want it to change and show a
> Button instead of the Text.
>
>   
Hi Kurt,

Here's one I use in my code

thisform.grdTo.SetAll("DynamicBackColor","IIF(source='1',RGB(255,255,128
), 
RGB(255,255,255))", "Column")


One difference you have is "Column3" instead of "Column" at the end.

In the true bit of the IIF you need to set the .CURRENTCONTROL of the 
column you want to change.

Thisform.GrdSubMenu.Column3.currentcontrol = dummy_txt  (not sure if you
need quotes round the dummy_text)
or
Thisform.GrdSubMenu.Column3.currentcontrol = sub_opt

dummy_txt and sub_opt must be the names of the objects in column3

Never actually tried to do that before so don't know if it will work.

Cheers

Peter




----------------------------------------------------------------



Rajan Imports has changed - we are now Whispering Smith Ltd.  For more
information see our website at www.whisperingsmith.com


Please update your address book with my new email address:
[email protected]

.

This communication is intended for the person or organisation to whom it
is addressed.  The contents are confidential and may be protected in
law.  Unauthorised use, copying or 
disclosure of any of it may be unlawful.  If you have received this
message in error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700
Fax:0161 831 3715
London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/289ea162f5642645b5cf64d624c66a1405578...@us-ny-mail-002.waitex.net
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to