How to control layer visibility dynamically

hi
i want to show a button at some specific condition
i search till i found that the layer has visibility property
i put the button on that layer
i try to control it by form posted variable to control the
visibility.. but the layer didn't changed !!!
if there is any way to make some place on the page visible
and unvisible other than this i need it
thanks in advance.

What server model is your dynamic variable using (ASP, CF,
etc.)?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"macnux" <[email protected]> wrote in
message
news:erbb5n$1i9$[email protected]..
> hi
> i want to show a button at some specific condition
> i search till i found that the layer has visibility
property i put the
> button
> on that layer
> i try to control it by form posted variable to control
the visibility..
> but
> the layer didn't changed !!!
>
> if there is any way to make some place on the page
visible and unvisible
> other
> than this i need it
>
> thanks in advance.
>

Similar Messages

  • How to control the visibility of image items on a layer?

    I want to control the visibility of image items on the layer. Some items will be visible and others will be hidden on the same layer.
    Can anyone tell me how can I achieve this using SDK APIs.

    Hi,
    You can try following facade function. And set the Opacity value to 0 for hidden the images or set greater then 0 value for visiablity of image.
    IXPAttributeFacade::SetOpacity (const UIDList &itemList, PMReal opacity);
    I hope it will resolve your problem.
    Regards,
    Jitendra Kumar

  • Can you control layer visibility via AS 3.0 ?

    I am new at flash.. but I can't seem to find this answer. I
    am building an app with 2 panels. A control/preferences panel and
    the main panel for the app. How can I control the visibility of
    each panel via AS 3.0 ? So if a user
    hits a button, up comes the preference layer. user closes
    this window. then back to the main layer.
    thanks a ton!
    mike

    Layers mean nothing to Actionscript -- they are merely a tool
    to help organize authortime created content. At publish they are
    use by the compiler to assign things to depths and then they go
    away. In a publish file there are no layers.
    The dominant paradigm in Flash (with respect to Actionscript)
    was the MovieClip. Now it is more the DisplayObjectContainer and
    the various classes that decend from there -- Sprite and MovieClip
    being most likely. I'm not as up on my AS3 as my AS2, so I might
    overlook a bit, but that is the general idea.
    So if you have a "panel" (we can't tell you what that is, you
    have to ell us!) and it is something distinct that needs
    controlling you should probably make it a MovieClip (if it has a
    timeline) and a Sprite if it is AS generated. Also each distinct
    type of those would maybe need its own external class to give it
    the methods and properties you would need to control and interact
    with it.

  • Screen Personas: Create or control button visibility dynamically

    Hi,
    In Screen Personas, would it be possible to do the following with use of scripting functionality,
    1. Dynamically create controls e.g. buttons and assign actions to them
    2. Control Field Visibility( for GUI fields or Persona fields) at runtime
    Regards,
    Jeron

    Hi Tobias,
    Thanks for clarifying. We are currently evaluating Screen Personas for use in SAP DMS.
    Scenario we are trying to simplify is the workflow process in DMS. A DIR(Document) in DMS, has a status field with various values such as
    1. Initial Draft
    2. Submit for Approval
    3. Approved
    4. Rejected
    5. Archive
    6. Retire etc...
    Users, have to pick right status values from an F4 pop-up to pass document along the business process. This is not very intuitive and we would like to provide buttons on screen corresponding to each valid status that can be selected at that point in time. When a button is selected say, "Approve" or "Reject" the corresponding status value should be filled up in the standard status(hidden) field.
    We have numerous doc types and too many status values. Hence, the static approach of defining buttons in Personas does not scale up and is not support friendly.
    I hope i have been able to explain the scenario correctly. If required, i am open to having a call and can elaborate this in detail.
    Regards,
    Jeron

  • How to control the visibility of column in ALV

    Hi,Expert,
    I'm using class CL_GUI_ALV_GRID to dispaly informations,but I want to hide
    some columns using code,how could I achieve that?
    Thanks a lot

    Hi Ray,
    Herewith a portion of sample code to hide the columns.
      DATA : wa_fieldcat_alv TYPE LINE OF lvc_t_fcat ,
                 it_fieldcat_alv TYPE lvc_t_fcat .
        Create ALV Field Catalog utk Header
          CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
            EXPORTING
              i_structure_name = 'ZP119H'
            CHANGING
              ct_fieldcat      = it_fieldcat_alv[].
          LOOP AT it_fieldcat_alv[] INTO wa_fieldcat_alv.
            CASE wa_fieldcat_alv-fieldname .
                 WHEN 'HIDE1'.
                        wa_fieldcat_alv-no_out = 'X'.
                 WHEN 'HIDE2'.
                        wa_fieldcat_alv-no_out = 'X'.
                 WHEN 'HIDE3'.
                        wa_fieldcat_alv-no_out = 'X'.
            ENDCASE.
            MODIFY it_fieldcat_alv FROM wa_fieldcat_alv.
          ENDLOOP.
    Rgds,
    TS WINEDYA

  • Have a list of radio buttons control layer visibility

    Any help would be appreciated, I am very new to scripting for PDF actions in Acrobat XI Pro
    I have 4 different sets of radio buttons that a user has to answer yes or no to.  When certain sequences of radio buttons are selected it should set one of 4 text fields' visibility to on.  
    For example, if the sequence is
    No, Yes, Yes, No
    then I want only the 3rd text box made visible and the other ones to remain hidden. 
    There are 9 different combinations that need to turn on one of 4 fields at a time.  Is this possible?
    Thank you very much in advance.

    Thanks GKaiseril
    I have spent a little time trying to learn this and what I have so far is not working. 
    I have 4 Radio Button Groups set up named: "Group1", "Group2", etc
    I also have a Text box which is what I want to be visible or not called: "TextBox"
    Here is my script:
    if (Group1.rawValue == "1" and Group2.rawValue == "2" and Group3.rawValue == "3" and Group4.rawValue == "4") {
    TextBox.presence = "visible";
    else {
    TextBox.presence = "invisible";
    Thanks again!

  • How to access the visibility of layer comps in indesign through scripting? [JS][CS5.5]

    Hi,
    I'm pretty new to scripting in adobe, but I thought this should be a simple one (think again...):
    I wanted to go over an array of all the psd-images in a selection or on a page in indesign, and then try to set their layer comp to a specific one (like "Diffuse".
    In photoshop I could make an action that would do this for me, but it seems that there are no easy ways in Indesign to do this.
    There also seems no way to change the layer comp or layer visibility for multiple selection...
    If anyone knows if it is possible at this moment to use layer comps in scripting (and how) or some kind of action for Indesign, I'll try to tackle the rest of the problem myself (and be forever grateful).
    If it isn't possible, I how it will be in CS6.
    Thanks to anyone interested,
    Mattaias
    ps: currently trying to solve this in JavaScript for CS5.5.

    Thanks for the information so far, but I've been looking at the links you added and haven't found anything about the scripting of layer comps...
    Here is the adjusted sample of your code:
    function Main() {
        var mySelection = app.selection;
        for(var n=0;n<mySelection.length;n++){
            if(mySelection[n].graphics.length === 1 && mySelection[n].graphics[0].imageTypeName === "Photoshop"){
                //Do your stuff on the selected frame or on the individual placed PSD file:
                // Adjusted Sample code:
                mySelection[n].images[0].graphicLayerOptions.graphicLayers.itemByName("Heat").currentVisib ility = true;
                alert(mySelection[n].images[0].graphicLayerOptions.graphicLayers.itemByName("Heat").curre ntVisibility);
    but what I actually need is more like
    mySelection[n].images[0].graphicLayerOptions.graphicLayerComps.itemByName("Heat").currentVisibility = true;
    It seems a bit strange (or I am looking on the wrong places) but there is no way to access layer comps in Indesign.
    Do I have to change the file in PhotoShop and save to get the result I need? Looks a bit strange that there isn't a more logical way then...
    The reason I want to script this, is because when there are 100 PSD's on one page and they should al get the same Layer Comp... you have to do this manually for every image.
    I like to use this feature to build texture-atlasses and have a dynamic result, but at this moment it would take at least 10 seconds for every picture... for 3 pages, and that for 7 files (and even more in the future).
    If anybody has ever scripted something with LayerComps, please let me know. (and something like recording Actions in photoshop is equally usefull)
    Otherwise I guess the Adobe programmers just didn't want to share this feature yet in CS5.5.

  • How to get Layer's visibility status?

    Ii I know the class name & UID of an item on a indd file, how can i get it's visibility status?
    I tried to do it like this as shown in a nexample,
    InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());
    if(spreadLayer != nil)
    bool visibleFlag = spreadLayer->IsVisible();
    but above code gives 'true' even for invisible items.
    please let me know what is the wrong?
    Thanks

    Hi Dirk,
    Thanks for your rich reply.......
    I agree with you, before get in to SDK we should have a better knowledge on that. I've gone through programming guides as much as pssible. but still have a lot more to know..
    My requirement is to get layer's visibility(that is shown from 'eye' symbol in layer panel).
    when i use'
    InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());
    if(spreadLayer != nil)
    bool visibleFlag = spreadLayer->IsVisible();
    It  shows only 'Layer1' status, But I can't get Layer1's item's(root items or child items) status. Do you have any idea about how to get root item's layer visibility status?

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How to Controll Dynamic Checkbox Groups

    i want to create checkbox groups dynamically. Each group will have at least one child checkbox. if i select parent check box all child checkboxes should be checked.if i uncheck parent checkbox all child checkboxes should be unchecked.
    that check box group name also coming dynamically. i am trying to pass group name dynamically but it's not recognizing that name in javascript.
    pls help me on this how to controll dynamic checkbox groups.

    recognizing that name in javascript.Are you dynamically creating checkboxes with JSP?

  • I have a plot with two cursors - how can I control the "visible" attribute of the second cursor?

    I have a waveform graph with multiple plots and two cursors. I can use the "cursor->visible" property to control cursor #1 but I cannot seem to find a way to control the visible attribute for cursor #2. Is there a way to do this?
    Thanks,
    RGA

    There's an "Active Cursor" property that allows you select which cursor the following actions operate on. Remember that property nodes "execute" from top to bottom...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to save combinations of layer visibility

    Is there a way in Illustrator (CS4 Win7) that you can save various combinations of layers set to visible/not visible?  For example, save one setting that has layers 1 3 and 5 visible, and another that has layers 2 4 and 6 visible, to facilitate printing an updated print showing certain groups of layers after they have been updated?

    Is there more information on how to implement a visibility variable somewhere? The Help files tell you how to make a variable and then . . . I can't get any further.
    So once you have the variable defined how do you get your document to return to the state of visibility that the variable represents?
    Where is a list of variables or variable states to choose?
    For that matter how do you create a second variable? I created a "variable 1" then reselected a different group of layers for visibility and can't create a variable 2 representing this stage of visibility. Basically nothing happens.
    Links to more detailed information about how to implement this greatly appreciated!!
    Alternatively, hints on how to create a reliable way to return to complicated states of visibility would be also appreciated. Memorizing seems to be an unreliable method.
    Thanks.

  • How to control the canvas of the ADF Read-Only Form

    Hi
    Could you give an idea of how to control the canvas of the fields in ADF Read-Only form. My requirements are as follows
    1) ALL the labels has to left justified irrelevant of their length
    2) ALL the values also has to left justified and should be wrapped if it exceeds some length.
    3) I want to show the results in more than one column with proper alignment as mentioned above.
    Thanks in advance.
    Sivaji.......

    Sivaji,
    There is a "rendered" attribute on the af:table component. You can write EL to pragmatically control the evaluated value of expression to set the visibility.
    Assuming you are using BC for your middle layer you can do something like the following:
    <af:table ...
    rendered = #{YourDetailViewObject.somestring.inputValue != null}
    ..>
    Z

  • Saving layer visibility as views does not work - CS5 for Windows

    I've read about it multiple places, even watched a video where it supposedly works. But when I toggle layer visibility and save as a new view, it doesn't seem to work.
    Here's the video: http://layersmagazine.com/illustrator-different-views.html
    Any ideas?

    Layer Visibility Variables – A short introduction
    1. Open a new document and name Layer 1 "Cyan"
    2. Add three main layers and name them "Magenta", "Yellow" and "Black"
    3. On each layer draw a shape and colour it according to the Layer's name.
    4. Save the file as "My_first_Variables.ai"
    5. Target Layer "Cyan" (click the circle at the right hand of the Layer's name)
    6. At the bottom of the Variables Palette click the Make Visibility Dynamic button
    Now you've created your first Layers Visibility Variable. Continue with
    7. Target Layer "Magenta" and click the Make Visibility Dynamic button in the Variables Palette
    8. Target Layer "Yellow" and click the Make Visibility Dynamic button in the Variables Palette
    9. Target Layer "Black" and click the Make Visibility Dynamic button in the Variables Palette
    Done. You have created four Layers Visibility Variables. The next step is to define the Data Sets:
    1. Layers Palette: Show Layer "Cyan" and hide all other layers
    2. Variables Palette: Click the Capture Data Set button (the camera icon)
    3. Layers Palette: Show Layer "Magenta" and hide all other layers. Now in the Variables Palette the first Data Set becomes italic indicating that you can create an new Data Set. So click the Capture Data Set button to define Data Set 2.
    4. Layers Palette: Show Layer "Yellow" and hide all other layers
    5. Variables Palette: Click the Capture Data Set button to create Data Set 3
    6. Show Layer "Black" and hide all other layers. Click the Capture Data Set button to create Data Set 4
    7. Show all layers and click the Capture Data Set button to create Data Set 5
    Done. You have created five Data Sets. Just play around by toggling them in the Variables Palette (Next/Previous Data Set button or via Popup menu/Flyout menu) and see one feature among other things: The Variables Palette as a remote control of the Layers Palette. If you like, rename the Data Sets according to the Layers names for instance.
    Now it's time to create some simple Save/Export actions in order to Batch save/export Layers as single files. For example:
    Export as PSD
    1. Open any file
    2. Actions Palette: Create new action and name it "Export Layers as PSD"
    3. File > Export as PSD. Choose any destination folder, the desired options in the Photoshop Options dialog and hit Enter
    4. Click the Stop Recording button in the Actions Palette and disable the Show dialog icon (on the left hand of the action's name)
    Save as PDF
    1. Open any file
    2. Actions Palette: Create new action and name it "Save Layers as PDF"
    3. File > Save as PDF. Choose any destination folder, the desired options in the PDF Options dialog and hit Enter
    4. Click the Stop Recording button in the Actions Palette and disable the Show dialog icon (on the left hand of the action's name)
    Now start the Batch command:
    1. Switch to the original "My_first_Variables.ai"
    2. Actions Palette Flyout menu: Batch
    3. In the Play Area choose the Export Layers as PSD action
    4. Choose Data Sets as the source
    5. In the Destination Area enable the Override Action Export Commands option and choose any destination folder
    6. Choose an option for the File name and hit Enter to start the Batch
    Done. All four Layers plus the fifth Data Set have been exported as single Photoshop files. Repeat the Batch with the Save Layers as PDF action (don't forget to enable the Override Action Save Commands) and, of course, create your own actions, experiment with other file formats, figure out some harmless bugs especially in conjunction with the PDF compatible AI format when placing in InDesign.

  • How to create alv table dynamically by performing action on the button.

    Hi all,
    my requirement is to create alv table dynamically.
    that is i will create two buttons
    1) show alv table
    2) close alv table
    if user selects show alv table then the alv table should be displayed.
    and if user selects clsoe alv table then the alv table should be closed.
    to create alv table dynamically  i have followed this procedure.
    under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
    with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      lo_cmp_usage->create_component( ).
      endif.
    to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      else.
      lo_cmp_usage->Delete_component( ).
    endif.
    Thanks & Regards,
    Naveen
    Edited by: naveen.webhelp on Feb 10, 2011 5:52 AM

    Hi
    ALV table will be shown in the viewcontainerUI element.
    it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
    SALV_WD_TABLE.
    and if you are not getting the table filled in the first place.
    then check have you mapped the DATA node to some node in the comp controller
    wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
    there are many ways to do so.
    best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
    create an attribute of type WDUI_VISIBILITY name say VIS.
    now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
    then in the showalv grid button's eventhandler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '02'
    and in the wddoinit and delete alv grid button's event handler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '01'
    thanks
    sarbjeet singh

Maybe you are looking for

  • Infinite reboot: Windows Server 2008 R2 Standard SP1

    Windows server has been running without issues up until this weekend: Two updates were installed; KB3020370 April 25 & KB3048761 April 26 From looking at the logs, it seems that the server started its infinite reboot loop April 25th.  I want to be ab

  • Why are some pictures blurred in IMovie slideshow

    I have used IMovie to make slideshows mixed with videos for years. I have even made one recently which was perfect. Suddenly, some of the photos, though crystal clear in the timeline are blurred when set in motion. Certain transitions seem to cause t

  • IOS Backup Questions

    If there is a better place for my issue, please tell me. Yesterday I performed a Restore on both my iPhone 5 and iPad3.  The settings on both were for iCloud backups.  With the iPhone, I got options to choose from several iCloud backups.  I got what

  • How to import MySQL Driver in Jbuilder

    I am creating a GUI application using swing with the help of JBuilder. I have used MySQL as Database. For connection it to java I've used MySQL J-Connector Driver. But I am not being able to import that driver(classes) in jbuilder. When i run the app

  • Excel to Adobe losing characters

    Hi all This has just started happening and was intermittent but now all the time? When I preview or print an Excel doc it looks ok, but when I choose Adobe PDF printer driver it previews (and prints) with text chopped off on the far right side. Can a