Making a control invisible at runtime

Hello,
I wnat to write a control that is invisible at runtime - like the history component.
How can a control recognize if it is in a design- or a runtimeenvironment?
Regards,
Nico

Hi Nico,
This is in the SDK release notes, you create a helper function like this in your component:
* Returns true if this SWF is running in Xcelsius at design time, false if not.
public static function isInCanvas():Boolean
     // TODO: remove this function when this gets exposed in the Xcelsius 2008 Component SDK API.
     var globalStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
     if (Boolean(globalStyle.getStyle("inCanvas")) == true)
          return true;
     return false;
Then you can use isInCanvas() to find out if the component is in Xcelsius at design-time or not.
So in your case in the constructor you could do something like this:
visible = ! isInCanvas();
Regards
Matt

Similar Messages

  • [svn:osmf:] 13116: Making the control bar's 'stop' button optional ( and toggled off by default).

    Revision: 13116
    Revision: 13116
    Author:   [email protected]
    Date:     2009-12-21 04:50:52 -0800 (Mon, 21 Dec 2009)
    Log Message:
    Making the control bar's 'stop' button optional (and toggled off by default).
    Modified Paths:
        osmf/trunk/apps/samples/framework/WebPlayer/html-template/index.template.html
        osmf/trunk/apps/samples/framework/WebPlayer/src/Configuration.as
        osmf/trunk/apps/samples/framework/WebPlayer/src/WebPlayer.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • While making field invisible at runtime in FPM_FORM_UIBB that row is coming as blank

    Hi All,
    In one of the requirement we are making one of the fields indivisible at runtime in the method -  GET_DATA  of the class - CL_HRESS_PER_DETAIL.
    But row in which the filed is made invisible is coming as blank .
    Is there any way to change the row number of the fields at run time .
    Thanks
    Amol

    We don't have option for specifying the row / column options at runtime.
    In structure FPMGB_T_FIELDUSAGE We have only Mandatory/Visibility/Read-only/Enabled options to set for any field.

  • Making Portal Content Visible/Invisible at Runtime

    Hi SDNers,
    I'm having a Portal Content Hierarchy which goes till 5 levels. The hierarchy includes roles, subroles, worksets, pages etc at different levels.
    Now, the scenario is, not all the subroles should be visible to every user. I would like to make some WorkSets, Pages invisible for some user according to the specified role.
    Means if a user doesnt have authorizations to do certain operations, those Pages, WorkSets should not be visible.
    A Solution would be to prepare multiple Hierarchies according to the specified role. But those combinations are so many that I'm not feeling comfortable with the approach of making all the hierarchies statically.
    I tried to find the solution with "Portal Content Permissions" but unfortunately couldnt come up with one.
    Please let me know if anyone has any ideas for the same.
    Thanks in advance,
    Mausam

    Hi,
    Use PCDFilter, which can be used to filter role and workset content depending on the users.
    Check this for more:
    How to restrict the Users at Page level
    Greetings,
    Praveen Gudapati

  • Way to change database control connection at runtime

    Is there a way to change the database connection (the @jc:connection data-source-jndi-name) at runtime? I want to build only one database control and be able to use it against different connections.

    Hi,
    There is no way to do this as of now.
    Ejbcontrol and service control has a method setJndiName and setEndPoint(wsdl url) respectively to do so. But database control doesn't and is a good enhancement.
    Thanks a lot,
    Vimala

  • How to resize JDialog after making some fields invisible?

    Hi,
    I have many fields in a JDialog box. And I am making some of them invisible (based on some logic).
    Even though I am using invisible, the dialog size is not resized automatically.
    I can see so much space and it is not good.
    Is there any way so that I can resize this dialog?
    Regards,
    Praveen

    Praveen_Kumar_Jayaram_1985 wrote:
    But I am not using any layout manager. It is free design. Is there any way to achieve my requirement without using layout manager?But this is what layout managers are made for. Why not use the correct tool for the job? Also, please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders.

  • Workset Visible/Invisible during runtime

    Hi Experts,
    I have a requirement where Iview is assigned to Page, Page is assigned to workset, workset is assigned to Role. The Iview consists of  reports fetched from the backend . The end user has to see the workset if he has reports in the Iview if not the workset should be invisible.
    Is there a way where I can Visible/Invisble the workset during runtime  based on the content fetched from R/3 system in Iview.
    Regards,
    Madhan

    Hi Madhan,
    Visiblity of workset can't be changed at runtime in current exisitng features.
       In practical situatrions I dont think, bakcend report iViews change so much frequently that, you have to decide visibility of workset based on iView report availbility.
    So please check this.
    Regards,
    Ganga

  • How to make  a particular field in table control invisible?

    i have a field in my table control but im not able to make it invisible
    im using the following code
    PBO
    LOOP AT itab_ctrl INTO wa2_ctrl WITH CONTROL ztabctrl
        CURSOR Ztabctrl-current_line.
        MODULE modify_scrn_100.
      ENDLOOP.
    module modify_scrn_100.
    LOOP AT SCREEN.
       IF SCREEN-NAME = 'WA_CTRL-ZITEM'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
       ENDIF.
         ENDLOOP.
    endmodule
    ...here WA_CTRL-ZITEM is my table control field name
    ...even if i make invisible = 1 or 0 the field is not getting invisible

    Hi,
    Check the Demo Program <b>RSDEMO02</b>.here you can have option to make the column invisible.
    also check these..
    How to Hide a entire column in a Table Control?
    Hiding table control columns along with header
    Hiding of Table control
    Regards
    Vijay

  • Disable / enable table control field at runtime

    hi ,
    i am working on a custom transaction in which i have a table control...depending on a table value i have to disable an input field inside the table control...
    i know in a normal field we use
    loop at screen.
    if screen- name = 'XXX' or screen-group = 'XXX'
    screen-output = 0.
    endif.
    but inside a table control field how to modify it.
    Regards
    Harish Ramakrishnan

    All you need to do is put some code in a module of your PBO.     This will change the cell attribute of a single row.
    PROCESS BEFORE OUTPUT.
    * PBO FLOW LOGIC FOR TABLECONTROL 'I_INTRCON'
    * MODULE I_INTRCON_CHANGE_TC_ATTR.
    * MODULE I_INTRCON_CHANGE_COL_ATTR.
      LOOP AT   I_INTR
           WITH CONTROL I_INTRCON
           CURSOR I_INTRCON-CURRENT_LINE.
    <b>    MODULE I_INTRCON_CHANGE_FIELD_ATTR.</b>
      ENDLOOP.
      MODULE SET_CURSOR_FIELD.
      MODULE STATUS_0200.
    module i_intrcon_change_field_attr output.                                                                               
    modify i_intr index i_intrcon-current_line.                                                                               
    if i_intr-check = 'X'.                                    
        loop at screen.                                         
          if screen-name = 'I_INTR-RCVQTY'.                     
            screen-input = '1'.                                 
          endif.                                                
          modify screen.                                        
        endloop.                                                
      endif.                                                                               
    endmodule.                                                  
    Regards,
    RIch Heilman

  • Conditionally making a field invisible.....

    XMLP Gurus,
    Some of the values in a column has dots(.). Conditionally i have to make it invisible.
    I tried replacing null value for a dot using decode function, but in this case the other column values are shifting themselves up by taking place of null values thus losing sync with other columns.
    After the decode statement i want the null value to remain null in sync with the other columns instead of replacing the null value with a value below it (shifting up)
    Thanks in advance.

    Hi venkat,
    Thanks for the reply.
    Originally the problem persisted with the null values in the column and it is getting shrinked when the statement goes to the second page.
    This template is already created and I need to modify it. There are six different columns in the template and each column has its own for each and END for each (similar grouping for all say G_XYZ).
    Say in the 5th column if the first row in the second page(continuation from first page) is null then it is shiftng itself up losing sync with the other columns.
    To over come this I used decode in the 5th column field. I replaced the null value with a dot. It is working fine now(shrinking problem is nailed) but the users dont like the dot in place of null value.
    I tried to make the dot invisble using:
    <?if:AMOUNT_DUE=''?><xsl:attribute xdofo:ctx="block" name="background-color">white</xsl:attribute><?end if?>
    But it is throwing error: " XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context." .
    It does not like ctx="block" and if I replace block with line or inline, it is working as expected.
    The solution I am looking for now is to avoid shrinking of null values at first place. If not then substitute this null with some value that is invisible (say invisible dot) and avoid shrinking.
    Any help is highly appreciated.
    Thanks.......

  • Making the request invisible in CUP 5.3

    Hello Everyone,
    we are using GRC 5.3 on SP 8.1 , We would like to make the Request type field unavilable in Request access Screen
    I cannot make invisble in End user Personlization  coz as Visiblie field (to be ste to YES or NO is greyed out) I presume as this was used in several  requests processed
    the request type is being used in intiators and CAD's .
    Any thoughts how to make this invisible form the request screen , any imput would be much appreciated
    Regards

    thanks you guys Julius , simona nd venky
    I cannot make it defualt quite yet because the fields are greyed out ! but howeer the issue is fixed in SP9
    Request reason and Request type in End user personalization shows as "NO" in field mandatory but when click on change, it shows "YES" in the mandatory field
    I will apply SP9  and hopefully i make it to default .
    thanks & Regards

  • Making the fields invisible or etc. at the item overview screen

    At the header data of the sales documents, there exist incoterms and payment terms. I want to make those invisible at the item overview screen (under Billing Document tab). I just want those data root from the header data, not from the item data. I don't want to enter data (about payment terms or incoterms) on the item overview screen.

    Thank you for your consideration but can you please explain step by step.
    Also to be more clear; the incoterm datas of the sales document's items come from the customer master data. Person can change or enter data about incoterms although there may exist different incoterm data at the header. That's why I want to hide or make unchangeable the incoterm field at the billing document tab of item data.
    Thanks in advance.

  • Making a button invisible with ActionSctript 3?

    I have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
    thanks

    Couldn't wait, eh!... kidding... btnName.visible = true;  btnName.visible = false;

  • Making a component invisible...

    Hi,
    I'm trying to make a component in my movie invisible using
    the instance._visible = false ActionScript command. It's a button
    that was converted to a symbol from a series of filled rectangles
    and ovals. It will not go invisible although I can use the same
    script on a simple, independent text-box and it works fine. Am I
    missing something?
    Thanks in advance - Jim.

    Thanks for responding. It's working. But I still have some
    minor questions.
    1) When I put the code within the onMotionFinished function,
    it doesn't work. But when I place it at the very beginning (before
    the tweening), it works. Why is this?
    2) Also, what is the difference between using:
    this._visible = false; versus
    this.red_mc.triggerBox_red_btn._visible = false; or just
    red_mc.triggerBox_red_btn._visible = false;? The latter 2 do
    not work. Why is this?
    thanks you very much for your help.
    Here's the modified snippet with the new code:

  • Making Credit control area filed mandatory in F-29

    Hi
    Our customers give advances. We have three credit area depending on 3 separte business lines.
    When any users post advances to customers, user forgets to enter credit control area in F-29. So i want to make credit control area field mandatory in F-29.
    I do not find this field in field status variant. So that option is gone.
    I also tried with SHD0. But SAP tells that SHD0 cannot be used for parameters transactions.
    I tried with Validations. Its working fine. But i am keen to explore above two options.
    Please help.
    Edited by: Deepak Agrawal on Dec 22, 2011 1:56 AM

    Hi:
    In GGB0 it is possible to make
    KKBER mandatory for data
    entry in more data button for
    customer recon a/c line item
    F-29. I have myself done it. Please proceed as
    follows
    Go to GGB0 Financial
    Accounting..Line item
    Create validation name
    Go to step----Prerequisite
    write
    ( BKPF-TCODE = 'FBA1' ) AND
    ( BSEG-KOART = 'D' )
    Go to check now and write
    BSEG-KKBER = '123' (you can mention as many as credit control area here)
    Go to message
    Create an error message and assign
    to the validation you
    created.
    For BSEG-KKBER = '123' i
    wrote 123 as dummy you
    can mention as many credit
    control area as have defined
    in SD area over
    here.Validation check is
    created now go to OB28 and
    assign it there. I bet it will work. Revert back if
    you feel any difficulty.
    Regards

Maybe you are looking for