Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
setVisibility
System
Hello,
Anyone already succeeded in hiding a button (cgi-callout) in a DCT ?
I am trying this but the button is always visible
...
<script>
<![CDATA[
testButton.setVisibility(false);
]]>
</script>
...
<item name="testButton">
<hidden>
<cgi-callout label="Test Button" />
</hidden>
</item>
...
Find more posts tagged with
Comments
Adam Stoller
Try:
<script>
<![CDATA[
testButton.setVisibility(false);
IWDatacapture.redraw();
]]>
</script>
and see if that helps (I'm assuming that testButton is a valid item reference) ...
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Still visible...
Adam Stoller
<script>
<![CDATA[
var testButton = IWDatacapture.getItem("/testButton");
testButton.setVisible(false);
IWDatacapture.redraw();
]]>
</script>
or
<script>
<![CDATA[
IWDatacapture.getItem("/testButton").setVisible(false);
IWDatacapture.redraw();
]]>
</script>
Notes:
You need to have an IWItem object in order to set visibility (and other such attributes)
It's
setVisib
le
not
setVisib
ility
Try one of the above out and see if that helps.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Thanks for correcting my mistakes... I think i really need some holiday!
I tried both your solution but still the button shows up
Adam Stoller
Hmm - you appear to be correct - the process I showed works just fine for things like text fields - but doesn't seem to have any effect on cgi-callout buttons.
You might have to check with support and have a feature request opened if this is important for you.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Not sure if what you want to hide is the button or the field associated with it. Probably not the best idea, but if you can get "get" the button you can probably inactivate it.
Edited by john on 07/30/04 07:46 AM (server time).
Migrateduser
I'll do something else then.
At least now I know hiding buttons is not (yet) supported.
Thank you all!
Migrateduser
im trying to do the same thing...any updates? i need to hide the following item but it doesnt work!
var o = IWDatacapture.getItem("/Virtualize");
o.setVisible(false);
<item name="Virtualize" rowcontinue="f">
<label></label>
<description></description>
<database deploy-column="f" />
<hidden>
<cgi-callout url="/iw-bin/virtualization.cgi?templ=commentaryLeaf" label="View Web page" window-features="width=610,height=500,resizable=yes,toolbar=no,scrollbars=yes"/>
</hidden>
</item>
In Por Ylem
Join the most popular player-run UO shard
Bjorn
I think this is an existing feature request, but don't quote me on that. I've tried to hide the callout button in about a dozen different ways, and always ended up in the same place I began.
Migrateduser
I didn't succeed either...
Finally I did hack teamsite code to change the behaviour of the preview button (datacapture_buttonframe.jsp).
It's working fine.