Element Visibility and FormInDialogue

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Element Visibility and FormInDialogue

Postby Morley » Wed Jan 12, 2005 6:44 pm

Is there a syntax available to make an element on a form invisible AFTER having displayed a FormInDialogue?

I have a method which calls a string of existing methods ending in display of an existing form in FID. With this particular method I want to hide a particular button.

This code does NOT work:
Code: Select all
            forms.peoDetails.newCR_BTN(); // calls a FormInDialogue
            forms.crNewCR.elements.cancel_btn.visible = false;
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby Morley » Wed Jan 12, 2005 6:47 pm

Answering my own question. This works:
Code: Select all
            forms.crNewCR.elements.cancel_btn.visible = false;
            forms.peoDetails.newCR_BTN(); // calls a FormInDialogue
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada


Return to Programming with Servoy

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron