Visibility false or true
How do I change the visibilty from true to false with 1 of 3
dynamic text fields in a movie clip that is looping. The problem is
when you hit the button that would hide the text field, it
instantly appears again because the movie clip the text field is in
is looping. I need to keep the text fields where they are because
of the way my movie is structured. Otherwise I would put them
inside their own movie clips. Any way to get it's visibilty to stay
at false?
on (release) {
_parent.frontFields.topTextArch.ph2TopTextBrush._visible =
false;
That is the script attached to my button. I can see the text
flash for a second when I push the button but it does'nt go away
because the looping movie clip just continually goes back to the
first frame and makes the ph2TopTextBrush text field visible again.
I think I know what your saying. Your saying to attach a
script to the first frame of the looping movie clip that would
check to see which of the 3 dynamic text fields are visible. That
would be perfect but I'm not sure how to do it.
What would the script that I place on my button look like?
What would the script in the first frame of the looping movie clip
look like?
Similar Messages
-
Class display objects visible=false
Hi there,
I have an app that displays XML as items. I am taking the createLayout() and trying to create a class that i can call from my custom component rather than having tons of code in the same file. The issue i am having is that when i call it, and run/debug, the display objects (text,links,date..) all have their visible property set to false. This happens even though I set the property to true in my code. Please help!
package com.ryancanulla.utils
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.text.TextFormat;
import mx.collections.XMLListCollection;
import mx.containers.Canvas;
import mx.containers.HBox;
import mx.containers.VBox;
import mx.controls.CheckBox;
import mx.controls.ComboBox;
import mx.controls.LinkButton;
import mx.controls.Text;
public class CreateLayout extends Sprite {
// Display Vars
private var vBox:VBox;
private var hBox:HBox;
private var titleText:LinkButton;
private var itemInfo:Text;
private var abstract:Text;
private var archive:CheckBox;
private var rateItem:ComboBox;
private var category:ComboBox;
private var container:VBox;
private var clickURL:Text;
private var canvas:Canvas;
private var titleFormat:TextFormat;
public function CreateLayout(listCollection:XMLListCollection)
listCollection = listCollection;
container = new VBox();
var categoryLabels:Array = new Array("Health","Industrial","Emerging Tech","Food & Ag");
var rateLabels:Array = new Array("Positive","Neutral","Negative");
for(var i:int=0; i<listCollection.length; i++) {
canvas = new Canvas();
hBox = new HBox();
titleText = new LinkButton();
titleFormat = new TextFormat();
itemInfo = new Text();
abstract = new Text();
archive = new CheckBox();
rateItem = new ComboBox();
category = new ComboBox();
clickURL = new Text();
titleText.label = listCollection.getItemAt(i).title;
titleText.addEventListener(MouseEvent.CLICK, getURL);
titleText.width = 400;
clickURL.text = listCollection.getItemAt(i).clickurl;
clickURL.visible = false;
clickURL.includeInLayout = false;
itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
itemInfo.y = 25;
abstract.text = listCollection.getItemAt(i).abstract;
abstract.y = 42;
abstract.visible = true;
abstract.includeInLayout = true;
abstract.width = 400;
abstract.height= 60;;
archive.label = "Archive";
category.prompt = "Category";
category.dataProvider = categoryLabels;
category.rowCount = categoryLabels.length;
category.visible = false;
category.includeInLayout = false;
category.width = 95;
category.height = 20;
rateItem.prompt = "Rate";
rateItem.dataProvider = rateLabels;
rateItem.visible = false;
rateItem.includeInLayout = false;
rateItem.width = 95;
rateItem.height = 20;
canvas.addChild(titleText);
canvas.addChild(clickURL);
canvas.addChild(itemInfo);
canvas.addChild(abstract);
canvas.addChild(hBox);
hBox.addChild(archive);
hBox.addChild(category);
hBox.addChild(rateItem);
hBox.y = abstract.y + 60;
hBox.percentWidth = 80;
hBox.percentHeight = 80;
//archive.addEventListener(Event.CHANGE, toggleArchive);
container.addChild(canvas);
container.x = 10;
container.y = 10;
container.visible = true;
addChild(container);
// Called when someone clicks on the titleLink. This function pulls the
// origional website URL up in a seperate browser window
private function getURL(e:MouseEvent):void {
var link:LinkButton = e.currentTarget as LinkButton;
var canvas:Canvas = link.parent as Canvas;
var clickURL:Text = canvas.getChildAt(1) as Text;
var url:URLRequest = new URLRequest(clickURL.text);
navigateToURL(url);
trace(clickURL.text);
Where I instantiate the class. List collection is an XMLListCollection which contains XML data.
private var createLayout:CreateLayout;
createLayout = new CreateLayout(listCollection);container is from the Vbox class so I don't see that here and there might be something in there that is causing some problem.
But I don't think that is the only problem. I think this seems like the same problem that you have going in your other post.
I don't see anyplace that you addChild your CreateLayout instance. container has been added to your CreateLayout instance, but where is the CreateLayout instance added to some other display list.
Also it looks like almost everything you add to canvas is set to be invisible. So without knowing what is in a Canvas instance it is hard to know what would show up anyways. -
Hi all visible false udf in marketing document
hi all,
i want to visible false udf in the marketing document.but field not show in the forms object.
how is possible.thanks to replr but i haven't got udf in the active form event.
If pVal.FormType = "142" Then 'Purchase Order Form
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And BubbleEvent = True And FLAG = False Then
oFormAPOrder = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
'Form = SBO_Application.Forms.ActiveForm
Dim oItem As SAPbouiCOM.Item
oItem = oForm.Items.Item("U_UIN")
oItem.Visible = False
end if
end if
i read in forum that u have to catch form with -142 then u get the udf of the form.
but i tried my problem not solved.
Regards
Rajkumar -
Link Button.Visible = false refresh problem.
Hi,
Who knows why what to do when you make your LinkButton.Visible = false and some pixels around the arrow remain on screen. Its very ugly.
I did try a Form.Refresh() but a Refresh() never word for me anywhere so
I'm looking for some kind of trick to completely hide the arrow !
Any idea ?Hi Marc
Try this out
oForm.Freeze(True)
LinkButton.Visible = false
oForm.Freeze(False)
oForm.refresh()
Hope it helps
Regards
Aris -
$ie.visible = $false
I use the following to assign text and search ok if set $ie.visible = $true. But the text cannot be assigned if set $ie.visible = $false. The text box is still empty after run $ie.Document.getElementById('TextBox_ID') = 'This is'.
Is there a way to fix it? Thank
$ie = New-Object -COM "InternetExplorer.Application"
$ie.visible = $true
$ie.Navigate('http://searchtext.com')
While ($ie.busy) { Start-Sleep -Seconds 1 }
$ie.Document.getElementById('TextBox_ID') = 'This is'
$ie.Document.getElementById('Search_ID').click()What is this line supposed to do" "ie.Document.getElementById('TextBox_ID') = 'This is'"
An ID cannot have a space in it.
You cannot directly assign a value in that way. You need to assign the value member.
A web page that I not vivible can very easily not behave as expected. It all depends on the design of the web page.
if($tb=$ie.Document.getElementById('TextBox_ID')){
$tb.Value='This is the new value'
}else{
# textbox not found
¯\_(ツ)_/¯ -
Set the visibility false on click PopUp
Hi,
I want to set the visibility false of my component on the click of popup
but the problem is when i generate the Pop Up on Page then it lost the control of all the child's on that Page and when i set the visibility false of component then it is not set
Please guide.
Thanks,You could use PopupFetchListener - to set the visibility of the button to false.
Here, is a sample based on your use-case.
Sample.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<f:facet name="footer"/>
*<af:commandButton text="CommandButton" id="cb2"*
*binding="#{SampleBean.button}"/>*
*<af:commandButton text="Show Popup" id="cb1" partialSubmit="true">*
*<af:showPopupBehavior triggerType="action" popupId="p1"/>*
*</af:commandButton>*
</af:panelFormLayout>
*<af:popup id="p1" popupFetchListener="#{SampleBean.popupFetchListener}"*
*contentDelivery="lazyUncached">*
*<af:dialog id="d2" title="Sample Dialog">*
*<af:outputText value="Popup Contents" id="ot1"/>*
*</af:dialog>*
*</af:popup>*
</af:form>
</af:document>
</f:view>
</jsp:root>
*SampleBean.java:*
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.adf.view.rich.event.PopupFetchEvent;
public class SampleBean {
private RichCommandButton button;
public SampleBean() {
public void setButton(RichCommandButton button) {
this.button = button;
public RichCommandButton getButton() {
return button;
*public void popupFetchListener(PopupFetchEvent popupFetchEvent) {*
*this.getButton().setVisible(false);*
*AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();*
*adfFacesContext.addPartialTarget(this.getButton());*
Thanks,
Navaneeth -
RZ11 - sapgui/user_scripting - effects if we change from FALSE to TRUE
Hi Gurus,
While executing eCATT in produciton system, I need to make pre requisite settings like in RZ11- sapgui/user_scripting I need to change value to TRUE. But as It is related to "Scripting", can somebody explain me effects of making this value from FALSE to TRUE. Does that affect somewhere as such.. in other programs or other codes or etc..
I would really appreciate if you reply <removed by moderator>
thanks in advance
regards
Amol
Edited by: Thomas Zloch on Aug 8, 2011 2:57 PMHi,
GuiXT is a client-server based software technology that provides user interface customization solutions to SAP applications.
It takes existing functionality in SAP t-codes and allows us to redesign the layout and business process to match the customer needs. One important thing to be noted is that it already comes installed with SAP GUI. Since it comes with SAP GUI, GuiXT can help us customize just about any transaction in SAP.
TRUE : Enabling scripting on front end.
on each user machine, we have to activate the GUIXT .
Thanks,
Anitha A -
Forms - Can't set a required field to visible=false
Hi,
I want to set a required field to visible=false but OIM 9.1 gives an error saying it is not possible.
Has anyone overcome this issue?
Thanks in advanceI guess, it should work; instead of html:submit, try with button.
-
Set visible=false in Label not removing its space in screen
Hi All,
I have three labels ony by one having width=100% for all.
For some reason, now I want to make 2nd label invisible in
the screen.
So I set visible="false" for the 2nd label. Now I cannot the
see the text displayed by the 2nd Label, but I can see the space
occupied by the Label.
I mean that, now i am getting the first label text, and have
blank row which has the text earlier, but not now and thrid row
with 3rd label text.
Also I checked that, if I set the height of the 2nd Label to
0 then also its not completely removing the 2nd row, only
possibility I found was completely comment the code for the 2nd
Label is the only way to hide the 2nd row :)
Any help would be appreciated.Hi Sujit,
Thanks for giving an useful tip which is new to me. But still
I can see a little space between the first and 3rd label.
Now this little space comes from the default space between
the controls. After few trials I found that there is a property
called "verticalGap" for the containter which holds these 3 labels.
I set the value to 0(zero) for verticalGap. Now the issue resolved
Thanks for a useful post -
Making Visible-False to Business Partner's Tabs
Dear ALL
I Would like to disable some tabs in Business Partner ,how ever am able to do it but when i navigate ,disabled fields are blinking and showing and finally it comes to disabled position but how ever i have put freeze(False),Please provide a solution ASAP
Regards
ZubairHI,
itemevent and menuevent can handle this
itemevent
If pVal.FormTypeEx = "134" Then
If pVal.EventType = BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False Then
Dim oBpForm As SAPbouiCOM.Form = sbo_application.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
oBpForm.Items.Item("4").visible = false
End If
End If
menuevent
If pVal.BeforeAction = False Then
If sbo_application.Forms.ActiveForm.TypeEx = "134" Then
Dim oBpForm As SAPbouiCOM.Form = sbo_application.Forms.ActiveForm
oBpForm.Items.Item("4").Visible = False
End If
End If
it is always works....
regards,
J. -
Make a column visible false?
Hi ppl
How do I make column visible false? Tried all kind things without any luck?Hi all,
hmmm...
To remove a Column you only have to save the removed column into a list. When you want to see the column again, only add it to the TableColumnModel.
For example:
public YourTable extends JTable{
private Hashmap deletedColumns;
public void removeColumn(Object columnIdentifier){
TableColumnModel columnModel = getColumnModel();
int index = columnModel.getColumnIndex(columnIdentifier);
TableColumn column = columnModel.getColumn(index);
if(deletedColumns == null)
deletedColumns = new Hashtable();
deletedColumns.put(columnIdentifier, column );
columnModel.removeColumn(column);
public void addColumn(Object columnIdentifier){
TableColumnModel columnModel = getColumnModel();
TableColumn column = (TableColumn )deletedColumns.remove(columnIdentifier);
if(column != null)
columnModel.addColumn(column);
}NOTE: I didnt compile the code, but this is the way to do it.
Take care, because the default models takes String as identifiers for the headers. That isnt right, because all Objects wich have a implemetation of the "toString" will be returned as a String... -
Datagridcolumn visible=false acting weird
Hi everybody!
I have problems with a few columns that shows up again when I
do send to the httpService that is the dataProvider to the
datagrid. The stay hidden if I use a repeater, but not when I use
the httpService. I downloaded the hotfix hoping for a solution, but
that didn't not solve it.
Is there a work around, or do I have to wait for next
hotfix?I have experienced several issues with this issue. Although
the latest version addressed most of them, there seems to be
certain instances where it still happens.
Try this.
Create a function like.
public function setHiddenColumns():void {
LastActivityDate.visible = false;
OwnerName.visible = false;
Then call the function on CreationComplete and after your
remote object result.
Also, I have noticed some different results with how your
DataGrid columns are ordered in your code. Try putting a field that
is always visible as the last column. So, make sure you don't have
a hidden column as your last column. It fixed my issue. -
Set item property to false and true
when i set item to false and then set item property to true. The item is displayed but its gray out and not enabled. Am i missing something
Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_FALSE);
and then
Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_TRUE);Check the Forms online help on Set_Item_Property, near the bottom in the usage notes. Lots of things happen when you set visible to False:
Setting DISPLAYED to False:
sets the Enabled and Navigable item properties to False
sets the Updateable item property to False
sets the Update_Null item property to False
sets the Required item property to False
sets the Queryable item property to False
So you may need to set more of them back to true in your code when you want to make it re-display. -
Issue with af:tree's visible=false on IE
Hello,
I have an ADF page containing two af:tree components. For both rendered is set to true and visibility is set to false. For both the trees height has been set to 500px. Based on selection criteria either of the two trees has to be made visible. No issues on Firefox. However on IE, both the trees are occupying space even though visibility is set to false. When I try to show the second tree, it shows up down below after 500px of white space. So, even though first tree is not displayed, it still occupies the space. Please let me know the solution.
Thanks,
Lalitha.Hi,
sounds like a bug to me. You can try an af:switcher component, though it only shows one tree at a time then
Frank -
i have jtable and one more frame
in frame there r buttons
i want to make that when i clicked on button jtable visibility became false
how to do thatimport javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
class classmaster
JFrame f;
JPanel p;
JLabel lclass,lclass1;
JTextField tclass,tclass1;
JButton badd,bedit,bdelete,bexit;
String edclass;
classtable1 ct=new classtable1();
boolean flag=true;
public void master()
f=new JFrame("Class Master");
f.setBounds(200,150,400,160);
p=new JPanel();
p.setBackground(Color.WHITE);
p.setLayout(null);
f.getContentPane().add(p);
lclass=new JLabel("Class Name");
lclass.setBounds(15,10,100,20);
lclass1=new JLabel("Existing Class Name");
lclass1.setBounds(15,50,120,20);
p.add(lclass);
p.add(lclass1);
tclass=new JTextField();
tclass.setBounds(150,10,150,20);
tclass1=new JTextField();
tclass1.setBounds(150,50,150,20);
p.add(tclass);
p.add(tclass1);
badd=new JButton("Add");
bedit=new JButton("Edit");
bdelete=new JButton("Delete");
bexit=new JButton("Exit");
badd.setBounds(25,100,80,20);
p.add(badd);
bedit.setBounds(115,100,80,20);
p.add(bedit);
bdelete.setBounds(205,100,80,20);
p.add(bdelete);
bexit.setBounds(295,100,80,20);
p.add(bexit);
lclass.setEnabled(false);
tclass.setEnabled(false);
lclass1.setEnabled(false);
tclass1.setEnabled(false);
f.setVisible(true);now this code for table
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;
import javax.swing.table.DefaultTableModel;
public class classtable1//tableDemo
JFrame f;
JTable table;
public void demo()
final classtable1 ct=new classtable1();
//final tableDemo app=new tableDemo();
// if(!app.err)
javax.swing.SwingUtilities.invokeLater
new Runnable()
public void run()
ct.drawWindow();
ct.activateDatabase();
private boolean err=false;
private Vector columnNames=new Vector(0,1);
private Object queriedDataRow[]=new String[2];
private MyDefaultTableModel dtm=new MyDefaultTableModel();
private void activateDatabase()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:srpinfo","sa","sa");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("SELECT * FROM classmaster");
while( rs.next() )
queriedDataRow[0]=(Object)rs.getString("classname");
//queriedDataRow[1]=(Object)rs.getString("col2");
dtm.addRow(queriedDataRow);
rs.close();
st.close();
catch(Exception e)
System.out.println(e);
err=true;
public void drawWindow()
table=new JTable(dtm);
JScrollPane scrollPane=new JScrollPane(table);
scrollPane.setPreferredSize(new Dimension(200,600));
JPanel pane=new JPanel();
pane.add(scrollPane);
f=new JFrame("Table");
//f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(pane);
f.pack();
f.setVisible(true);
public class MyDefaultTableModel extends DefaultTableModel
String colNames[]={"classname"};
public int getColumnCount()
return colNames.length;
public String getColumnName(int col)
return colNames[col];
public boolean isCellEditable(int row,int col)
return false;
public Class getColumnClass(int col)
return getValueAt(0,col).getClass();
public void close()
f.setVisible(false);
}
Maybe you are looking for
-
Just downloaded Firefox 4. It replaced the older version on my mac but will not work with my current version of OSX. I cannot find where I can download the older version so now I do not have Firefox. Can you help>
-
Background colour in pages document
Is there a way of having white as my background colour for my document and using white script?
-
Special settings for funds management in 4.6C?
Hi experts, Our client wants to implement funds management with 4.6C and plans to upgrate to ECC6.0 in the future. What points should be recoginzed when configuring FM in view of upgrade? The company code currency is different with the FM area curren
-
Is there anyway to keep an incremental counter in an XSLT stylesheet? I would like to append this counter to several element names to maintain uniqueness. Thanks Kathy
-
My ipod touch 5 is stuck in recovery mode
ive tried every thing on youtube except dowloading softwares bc im 12 years old and i have an ipod touch 5 and an ipad mini i am very happy with the apple companys service but i dont like getting stuck at a dead end