Setting Visible False to Canvas

Hi,
In WHEN-NEW-ITEM-INSTANCE-TRIGGER i am writing a code and in a particular event another canvas gets opened.
How to i restrict in moving to the canvas
Is there any way out???
Regards
Saugata

Solved it.
the autolayout property of a canvas must be set to false while resizing it, so the datagrid and other constrained components do not resize and the animation gets really smooth.

Similar Messages

  • 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

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • 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 advance

    I guess, it should work; instead of html:submit, try with button.

  • 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

  • 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.

  • FRM-41014: Cannot set attribute of null canvas

    Hi all,
    Whenever i am opening the Distributions window in Invoices in my home system, I am getting the following Pop Window telling :
    "FRM-41014: Cannot set attribute of null canvas item D_SUM_PROMPT.ORDER_BY1"
    Can anyone please throw some light as i am getting the error everytime i open and its really eating my brain.
    Regards
    Ramki

    the item named : D_SUM_PROMPT.ORDER_BY1 has its canvas property set to null or none. in the property palette of this item, select a valid canvas, then goto the physical->visible poperty to false.
    Francois

  • Jabber 9.2 and StartCallWithVideo set to false not taking

    The StartCallWithVideo option doesn't seem to working in Jabber 9.2 (tried 9.2.0 and 9.2.2). Tried false and FALSE for value.
    The jabber-config file downloads fine and has all the settings below on PC and the DockedWindow is not visible so the settings are working, but the calls start with video still and on the Jabber GUI under call section the start calls with video is selected.
    When I make call to someone else it starts with video unless I manually set to not start calls with video.
    Not finding any bugs on this.
    Anyone seen this before or know how to get it working if it isn't a bug?
    <?xml version="1.0" encoding="utf-8"?>
    <config version="1.0">
    <Client>
    </Client>
    <Directory>
      <DirectoryServerType>UDS</DirectoryServerType>
    </Directory>
    <Options>
      <StartCallWithVideo>FALSE</StartCallWithVideo>
      <Start_Client_On_Start_OS>true</Start_Client_On_Start_OS>
      <DockedWindowVisible>FALSE</DockedWindowVisible>
      </Options>
    <Policies>
    <Screen_Capture_Enabled>true</Screen_Capture_Enabled>
      <File_Transfer_Enabled>true</File_Transfer_Enabled>
      <Disallowed_File_Transfer_Types>.exe;.msi;.rar;.zip;.mp3</Disallowed_File_Transfer_Types>
      <Video_Disabled>false</Video_Disabled>
    </Policies>
    </config>

    Anyone have fix to this issue with IM&P 9.1.1, I have UC Service profile setup right and the setting set to false and my client is getting current XML file but still starts calls with video. I've tried both upper case and lower case for the false value. Other settings from my jabber-config file are working just fine. 
    FALSE
    I've been thru the links above and documentation again but not seeing a option anywhere on CUCM UC profile pages or IM&P to disable this.

  • Maybe Flex SDK bug: Setting visible of DataGrid item renderers

    Hi all, I'm still a noob at flex but this looks a bit strange to me.
    I've been trying to hide a button renderer in a DataGrid but it just wouldn't hide.  I've been setting visible inside the mxml and also in the the class that extends buttonbut it just wouldn't hide.  I then overloaded the visible property set/get and traced what was setting the property to true and found that inside DataGridBase.as the function setupColumnItemRenderer always sets visible of the renderes to true.
    DataGridBase.as
    protected function setupColumnItemRenderer(c:DataGridColumn, contentHolder:ListBaseContentHolder,
                        rowNum:int, colNum:int, data:Object, uid:String):IListItemRenderer
            var listItems:Array = contentHolder.listItems;
            var item:IListItemRenderer;
            var rowData:DataGridListData;
            item = listItems[rowNum][colNum];
            if (!item || itemToUID(item.data) != uid
                || columnMap[item.name] != c)
                item = createColumnItemRenderer(c, false, data);
                if (item == null)
                    return null;
                if (item.parent != contentHolder)
                    contentHolder.addChild(DisplayObject(item));
                // a space is used if no data so text widgets get some default size
                columnMap[item.name] = c;
                if (listItems[rowNum][colNum])
                    addToFreeItemRenderers(listItems[rowNum][colNum]);
                listItems[rowNum][colNum] = item;
            //[Matt] moved from inside the block above to outside because
            //the item definitely exists at this point, and always needs
            //its data refreshed
            rowData = DataGridListData(makeListData(data, uid, rowNum, c.colNum, c));
            rowMap[item.name] = rowData;
            if (item is IDropInListItemRenderer)
                IDropInListItemRenderer(item).listData = data ? rowData : null;
            item.data = data;
            item.visible = true;
            if (uid && colNum == 0)
                contentHolder.visibleData[uid] = item;
            return item;
    Why does it do this?  Shouldn't it respect the visible property already set for the renderer in mxml and not force it to true on init?

    Renderers use the visible property for recycling.  Invisible renderers are not supported.  The hit detection logic would find it the cell it belongs to even if it was invisible.  You can set alpha=0, but it won't stop the hit detection logic.
    Why are you trying to hide a renderer?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • FRM-41014: Cannot set attribute of null canvas item PO_REQ_HDR.ATTRIBUTE8

    I am Doing Form Personalization on Dff in Requisition Headers form. My Requirement is
    requirement is like this
    Segment1 : Requsition Type
    Segment2: Project ID
    Segment3: CAF ID
    ATTRIBUTE7 will have two values
    1. Capex
    2. Opex
    if user selects Capex.. then ATTRIBUTE8 and ATTRIBUTE9 are manadatory
    otherwise optional
    i did personalization
    In Condition Tab:-
    I took Trigger Event as When-Validate-Record
    Trigger Object as PO_REQ_HDR
    Condition :PO_REQ_HDR.ATTRIBUTE7='Capex'
    When i validate it gives The Condition evaluates to false
    In Action Tab:-
    Type Property
    Language All
    Object Type Item
    Target Object Po_REQ_HDR.Attribute8
    Property Name :Required
    Value:True
    then i Pressed Apply Now then It fires Error:: FRM-41014: Cannot set attribute of null canvas item PO_REQ_HDR.ATTRIBUTE8
    Can Any one please sujjest what is the Cause of this Error.
    I am Using 12.0.4 application version.

    Please see these threads.
    Re: Personalization Problem
    How can I make a DFF segment diappear?
    Thanks,
    Hussein

  • 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

  • $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
    ¯\_(ツ)_/¯

  • What are the side effects of setting "_object_statistics=false"?

    Hi,
    On a 10.2.0.3.0, due to frequent ORA-04031 errors, we have been recommended to set objectstatistics=false in init.ora and bounce the database.
    Metalink Bug ID: 3519807
    Going through the available documentation on net, I found that this parameter would have same effect as setting STATISTICS_LEVEL=BASIC or even worse.
    Documentation (for statistics_level) says following options are affected.
    * Automatic Workload Repository (AWR) Snapshots
    * Automatic Database Diagnostic Monitor (ADDM)
    * All server-generated alerts
    * Automatic SGA Memory Management
    * Automatic optimizer statistics collection
    * Object level statistics
    * End to End Application Tracing (V$CLIENT_STATS)
    * Database time distribution statistics (V$SESS_TIME_MODEL and V$SYS_TIME_MODEL)
    * Service level statistics
    * Buffer cache advisory
    * MTTR advisory
    * Shared pool sizing advisory
    * Segment level statistics
    * PGA Target advisory
    * Timed statistics
    * Monitoring of statistics
    We have daily schema statistics gathering schedule in place so I feel query performance should not be affected (of course, this is my assumption).
    I just wanted to know what else would be affected due to this.
    Thanks in advance.
    Regards,

    Please let me know your ideas/inputs.

  • [svn:osmf:] 14823: Fix bug where canPause was not set to false for live streams.

    Revision: 14823
    Revision: 14823
    Author:   [email protected]
    Date:     2010-03-17 10:51:40 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Fix bug where canPause was not set to false for live streams.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestVideoElement.as

    Thanks for looking at this post. We have resolved the issue for ourselves by working with our DBAs to narrow down where the problem actually started. We found that the particular SQL we were looking at was not the issue. In a chart on a subsequent page (via a click through), we were actually running into where apex was starting to consuming memory but we were catching it later.
    What we found was that when we had a chart query that was SQL containing a pipeline function, the memory usage went up. And within 10 minutes, the server would crawl to a halt. To release the memory, the DBAs would have to bounce the Apex instance. When I changed the query to be a function returning SQL, the problem stopped. I don't know what the correlation was between SQL and moving to a PL/SQL function returning SQL.
    I am not even 100% positive of the pipeline function being the cause. I only know that this started happening about the same time as when I implemented the pipeline function. I understand you are leery of a one-second function/query running up that kind of utilization. No one here believed me either (including me really). We figured it HAD to be a coincidence. But once I changed the query from SQL to a function returning PL/SQL, our problem went away.
    Thanks to all who looked at and thought about this.
    Walter

  • To set Visibility for KM Documents

    Hi
    I uploaded some documents in knowledge Management. Now i want to set visibility for those documents, country wise. That country name is not in the list. How can i add the particular country?
    Thanks,
    Kusuma

    Hi,
    When you create repository to upload documents in knowledge management administration there are certain features are displayed which you can define for your repositories. So, please check there if country option is available. I would prefer to create different repositories for different country as administration will becomes eaiser.
    Thanks
    Sunny

Maybe you are looking for