Main GUI method argument


Not sure that this help and I do not remember exactly how or where, but I found in some cases, that the application be started with "gui", when I did not actually specify this.

If my recollection is correct, it was when I got the car application started by interaction with a card or something else in the system, where I said that the operating system to start my app.

As a general rule always specify gui for the start of the icon and I always specify it.

Tags: BlackBerry Developers

Similar Questions

  • Do not see the whole entirety of CFC method argument

    I'm puzzled. I call a method in a CFC that accepts two arguments.  The first is of type integer and the second is a string.

    Here is the snippet of code where I instantiate the CFC and then then call the method in question.

    < component cfobject = "feedback" name = "UserFeedback" >
    ...
    < cfset empty = UserFeedback.send_feedback_rec (33312, ' [email protected]') >

    The error I get is:

    "The argument passed to the function send_feedback_rec URLID is not integer. If the component name is specified as a type of this argument, its possible that a definition of the component file is not found or is not accessible. »

    Why an entire explicit value does not get recognized as integer type in the method?

    cfcoder2 wrote:

    Why an entire explicit value does not get recognized as integer type in the method?

    "Integer" is not built in cfargument type.  You might think 'digital '?

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=Tags_a-b_6.html

  • ProcessMode method SendMessage argument ignored in the workflow

    Hello

    I'm doing a workflow to send the e-mail notification using SendMessage outbound Communications, Business Service Manager. The problem is that when it is called from workflow, this method always executes in asynchronous mode (it creates a server job), even when I put the ProcessMode method argument to the local value. When simulating Business Service, it works well and emails are sent immediately. It is Siebel 8.1.1.8.

    Please suggest, what don't get me.

    Thank you

    Hi user,

    Please follow the documentation on configuring outbound

    How to configure the Siebel Workflows to send outgoing Emails? (Doc ID 473858.1)

    For troubleshooting, you can follow this document

    Troubleshooting guidelines for Siebel Workflow (Doc ID 478275.1)

  • Run VI GUI, don't wait for it

    Hello. I'm using Labview 9.03f. I have a loop of events that deals with the interaction of the user. When the user selects a menu item, I want to run a VI that has its own UI, but I don't want to wait until she finishes execution (to be held until all of the interaction of the user). Basically, I want the new VI floating on top, but the user to always be able to interact with the main GUI.

    I'm looking by using a reference of VI with the RunVI method, and wait until a parameter set to false. What is the right way to go on this subject?

    Thank you!

    psssttt...

    Ref call will wait for the vi calng to return.

    You can use the invoke node ctrl val.set method to pass data before starting.

    Ben

    PS I made this capture for the granddaughter of screen but I never thought there ' All so with me giving license might help.

  • is mail blocking gui after hibernation

    When Thunderbird is open, and the computer goes into hibernation, when he wakes blocks Thunderbird when I press 'Get Messages'. The mailbox is enabled, I get a ringing sound when mail arrives and the pop-up window is displayed, but the popup is empty and no. messages in the main GUI. So I can't get any response to clicking in the GUI or the pop-up window and have close Thunderbird and try again.
    This problem has happened after that I'm the most recent upgrade to V 38.2.0.
    I use Win7sp1 on mem 8 GB Intel Core i5-3470cpu (64-bit).
    I had absolutely no problem with Thunderbird, since I started to use more than 4 years ago, but this last update started this lock problem.

    We anticipate that this will be fixed in a week or two with Thunderbird version 38.3.0. Please update this section when you have the updated version

  • getModulus (byte [] buffer, offset short): confused by arguments

    Hi all!

    I don't really understand the parameters to the functions getModulus (byte [] buffer, offset short) and getExponent (byte [] buffer, offset short).
    Let's say, I generate the rsa key pair and extract the public key like this:
    rsa_keys.genKeyPair(); // generate RSA key pair
    RSAPublicKey rsa_pu_key = (RSAPublicKey) rsa_keys.getPublic(); // extract Public key
    What are the byte [] buffer and what is off? I don't understand! There are no arguments to these functions in standard java.

    Thanks in advance
    / L

    And we went far from the "I don't understand this question of method arguments.

  • Extract method

    Hello

    I call a Web service and get a response like this
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <ServiceRequest_CreateResponse xmlns="http://ABC/">
          <ServiceRequest_CreateResult xsi:type="xsd:string">&lt;?xml version=&quot;1.0&quot;?&gt;
    &lt;ServiceRequest_CreateResult xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; 
    xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
      &lt;Error 
    xmlns=&quot;http://www.systems.com/ServiceRequestCreateResponse.xsd&quot;&gt;
        &lt;Description&gt;Object Property ExternalReference has not been 
    provided&lt;/Description&gt;
      &lt;/Error&gt;
    &lt;/ServiceRequest_CreateResult&gt;</ServiceRequest_CreateResult>
        </ServiceRequest_CreateResponse>
      </soap:Body>
    </soap:Envelope>
    In the XML GET the i preceding tags as gt and lt and not as true symbols, so I m extraction and then by doing an entity_decode,.

    my statement stmt is like that
    SOAP_RESPOND :=XMLTYPE(SOAP_RESPOND).EXTRACT('/soap:Envelope/soap:Body/ServiceRequest_CreateResponse/ServiceRequest_CreateResult/text()','xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/",xmlns="http://ABC/"').GETCLOBVAL();
    and I m hurry of method argument NULL SELF is not allowed and I don't see where I m wrong.

    so I want to decode like this
    Xml_Result :=XMLTYPE(DBMS_XMLGEN.CONVERT (SOAP_RESPOND, DBMS_XMLGEN.ENTITY_DECODE));
    to make me the real XML tags instead of lt and gt characters.

    Can anyone tell me what the problem is in my snippet statement.

    Thank you

    S

    Hello

    Looks like one of those old (and weird) bugs related to mapping of namespace string :)
    I'm always reproduce the problem on 11.2.

    Try adding a space between declarations of namespace:

      soap_respond := XMLTYPE(soap_respond).extract(
                        '/soap:Envelope/soap:Body/ServiceRequest_CreateResponse/ServiceRequest_CreateResult/text()'
                      , 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/", xmlns="http://ABC/"'
                                                                    /*          ^
                                                                                here */
                      ).getclobval();
    
  • two main() in a project

    Hi guys,.

    I can create more than 1 main() method in different classes or a project can cause more than 1 main() method? If I can why I might need to do this? advantages and disadvantages of it?

    Thank you.

    Published by: Garibanus on August 16, 2011 02:19

    Garibanus wrote:
    Thanks.but what happens if im done with the project and gave it to the users that they will click on the program icon (or I don't know maybe it's something else) how the user will specify which class he wants to start? or how can I say JVM when userwill run program you will start with this (also main()) class first? in this case how JVM will know which hand () it will start?

    Generally, if it is a stand-alone program, so only give us write main in the class that loads everything first. Other classes are instantiated in it. For example;

    class Add //which does addition
    class Multiply //which does multiplication
    
    class Perform //main class which gets load on project start/load
    {
        //in this class you 'll write the main method and based on requirement the other classes are instantiated. like
        public static void main(String st[])
        {
                 Add obAdd = new Add();   //like this.
    
        }
    
    }
    

    Avoid us the main write method in web applications.

  • Public Shared Sub main

    I'm working on java for the last 6 months... But I'm still confused public Shared Sub main (args [] method) of channels.
    Can anyone suggest this topic in a practical and detailed way? It would be appreciated :-)

    Manon says:
    I read that the JVM is responsible for loading the class who knows the 'main' method (the program entry point). Right?
    If this is the case, then when we use private or protected instead of public, why he gives runtime error? While I think that it must produce the error in compiling.

    As regards to Java language is, main() is just another method like any other. There is nothing special about this. Is the Java runtime that exactly looking for public Shared Sub main (String []). The language and the compiler do not know or care anything on this subject.

  • Is why my persist() method JavaServiceFacade receives the NULL object

    My version of jDeveloper is 11.1.1.3.0

    I have a jspx in which I want to enroll an employee in my DB click on the "submit" button.

    I did an entity object (Employee.java) made from an EMPLOYEE table. Then, I exposed this entity using a JavaServiceFacade bean. The JavaServiceFacade class has a method with the signature persistEmployee (Employee employee).

    In my UI, I did made a Submit button by dragging the method persistEmployee() of my palette of DataControls on my jspx, and linking actionListener for it is = "#{bindings.persistEmployees.execute}".

    Now when I click on the button send, the persistEmployee() method throws an exception that is below...
    _ java.lang.IllegalArgumentException: object: null is not a known entity type___

    I found that the persistEmployee() method receives an object used as an argument that makes this error is thrown.

    Can someone guide me pls on what could be the problem.

    BELOW THE CODE OF VISITS I'VE USED.

    .. key code in my jsp...
    < af:commandButton text = "Submit".
    Binding = "#{backing_LdapUserCreation.CB5} '"
    ID = "cb5".
    actionListener = "#{bindings.persistEmployees.execute} '"
    Disabled = "#{!}" Bindings.persistEmployees.Enabled}"/ >


    .. .method code, which resulted in the javaservicefacade... (here the employee argument received by the first row is NULL)...
    public employees persistEmployees (employees) {}
    System.out.println ("IS used NULL? = "+ employees);
    return (Employees) (employees) _persistEntity;
    }

    .. .binding code in my pagedefinition...
    < methodAction id = "persistEmployees" RequiresUpdateModel = "true".
    Action = 'invokeMethod' MethodName = "persistEmployees."
    IsViewObjectMethod = 'false' DataControl = "EmployeeService".
    InstanceName = "EmployeeService.dataProvider"
    ReturnName = "EmployeeService.methodResults.persistEmployees_EmployeeService_dataProvider_persistEmployees_result" > "
    < NamedData NDName = "employees" NDType = "model.test.Employees" / > "
    < / methodAction >

    Hello

    When you dragged the persist from the DataControls Panel method, a dialog box opens that in its lower part shows the argument that the method expects. This argument should be pointed | currentRow | data provider. To do this, click in the value field in the method argument, and then click the button on the right to display the editor of EL. Then, expand the iterator node under the node links. Expand currentRow, then select dataProvider.

    You can do after having created the tying method as well. Select the PageDef file in the Application browser and open the window of the Structure. Expand the persist method: there must be a child element. Select the child element and in the property inspector, set its NDValue property

    Frank

  • Unemployment insurance and threading issue

    I read this Article

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_setup...

    I want to do the same thing but not alternate entry point

    i.e.

    In my static main method, I want the same code as follows

    Public Shared Sub main (String [] args) {}
    If (args! = null & args.length > 0 & args [0] .equals ("gui")) {}
    initialization of the application code
    theApp.enterEventDispatcher ();
    } else {}
    code to start the background thread}
    }
    }

    As this example of another entry point but I want this in one application

    Problem:

    As I went from gui in arguments is that it runs, if one party, it is instantiated not on the other hand, this thread does not run

    I want the first thread is running

    It's easy to do, in fact I think it is a better approach that do what most people do and try to use another entrance to the same treatment. You should be cautious about the State of the system so that you begin to create your resources in the screen (that your users will see when they bring the Application to the foreground) until the unit is ready for it.

    The following articles should help you do this.

    How - to display a graphical interface to the BlackBerry device to start

    Article number: DB-00539 http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    Replace the requestForeground by a requestbackground to keep your screen in the background.

    How to - write safe initialization code

    Article number: DB-00696 http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/832062/How_To _...

    Note that you also to attention that your application does not use System.exit (.) as leading to the background processing is stopped.

    But just to confirm, you will create your screen and your background Thread at the same time - there is only a single path through you main() routine and it should do both.

  • Ribbon icon and icon overview do not appear

    Msg edited

    I followed the thread of spookendiesel and articles related but cannot get this to work. No icon appears on the home screen, just the default icons. The app does not throw any exceptions or errors. Everything works as expected, except the icons of reversal and the Ribbon is not displayed.

    My development environment is Eclipse 3.4.2 with Blackberry JDE for the eclipse.

    In summary, I created a 'main' project (RolloverIcon) that displays a screen with the title by a LabelField. This project includes a res folder that contains the overview icon (iconFocus48x36.png). I added the res folder on the way of the construction. I put the properties of the project at the request of CLDC, module system, autorun at startup feature.

    Then, I created a new project in the same workspace called AltEntryRolloverIcon. This project includes a folder that contains the ribbon icon (icon48x36.png), but no code source. I put the project properties of Entry Point of CLDC Application replacement pointed to the RolloverIcon project with the main "gui" argument In the tab "resources" of the properties of the project of Blackberry, I added icon Ribbon as a file icon and made sure its containing folder is on the java build path.

    As far as I know, I followed all directions to implement an icon of overflight and the other entry point. I don't know what else to do. I don't have the skills necessary to interpret the raw project files and to understand the problem. I am including information as much information that I see here in the hope that someone sees something obvious to solve this problem.

    Thanks in advance.

    Here is the source code of the "main" project

    package rollover;
    
    import net.rim.blackberry.api.homescreen.HomeScreen;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class RolloverIcon extends UiApplication {
    
        public RolloverIcon() {
            LabelField title = new LabelField("RolloverIcon");
            MainScreen screen = new MainScreen();
            screen.setTitle(title);
            pushScreen(screen);
        }
    
        /**
         * @param args
         */
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                RolloverIcon ri = new RolloverIcon();
                ri.enterEventDispatcher();
            }else{
                Bitmap rolloverIcon = Bitmap.getBitmapResource("iconFocus48x36.png");
                HomeScreen.setRolloverIcon(rolloverIcon,1);
            }
        }
    
    }
    

    RolloverIcon.jad

    Manifest-Version: 1.0
    MIDlet-Version: 1.0
    MIDlet-Jar-Size: 2948
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Jar-URL: RolloverIcon.jar
    RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_bb_framework_api
    RIM-MIDlet-Flags-2: 0
    RIM-MIDlet-Flags-1: 0
    RIM-COD-Module-Name: RolloverIcon
    RIM-COD-Size: 1372
    MIDlet-Name: RolloverIcon
    RIM-COD-Creation-Time: 1263318798
    MIDlet-2: ,icon48x36.png,gui
    MIDlet-1: ,,
    RIM-COD-URL: RolloverIcon.cod
    RIM-COD-SHA1: 85 6f 21 c3 b3 40 d7 9a 93 cb c7 94 85 35 d8 7a 65 23 45 fc
    MicroEdition-Profile: MIDP-2.0
    MIDlet-Vendor: RolloverIcon Vendor
    

    RolloverIcon.jar

    META-INF/
    META-INF/MANIFEST.MF
    RolloverIcon.cod
    RolloverIcon.csl
    RolloverIcon.cso
    iconFocus48x36.png
    rollover/
    rollover/RolloverIcon.class
    

    Content of RolloverIcon.rapc

    MIDlet-Name: RolloverIcon
    MIDlet-Version: 1.0
    MIDlet-Vendor: RolloverIcon Vendor
    MIDlet-Jar-URL: RolloverIcon.jar
    MIDlet-Jar-Size: 0
    MicroEdition-Profile: MIDP-2.0
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-1: FooRolloverIcon,,
    RIM-MIDlet-Flags-1: 3
    MIDlet-2: ,icon48x36.png,gui
    RIM-MIDlet-Flags-2: 0
    

    AltEntryRolloverIcon.jdp

    ## RIM Java Development Environment
    # RIM Project file
    #
    # This file is generated and managed by BlackBerry developer tools.
    # It SHOULD NOT BE modified manually.
    #
    AddOn=0
    AlwaysBuild=0
    [AlxImports
    ]
    AutoRestart=0
    [ClassProtection
    ]
    [CustomBuildFiles
    ]
    [CustomBuildRules
    ]
    [DefFiles
    ]
    [DependsOn
    ]
    EntryFor=RolloverIcon
    ExcludeFromBuildAll=0
    [Files
    icon48x36.png
    ]
    HaveAlxImports=0
    HaveDefs=0
    HaveImports=0
    [Icons
    icon48x36.png
    ]
    [ImplicitRules
    ]
    [Imports
    ]
    Listing=0
    MidletClass=gui
    Options=-quiet
    OutputFileName=AltEntryRolloverIcon
    [PackageProtection
    ]
    RibbonPosition=0
    [RolloverIcons
    ]
    RunOnStartup=0
    StartupTier=7
    SystemModule=0
    Type=3
    Vendor=RolloverIcon Vendor
    Version=1.0
    

    RolloverIcon.jdp

    ## RIM Java Development Environment
    # RIM Project file
    #
    # This file is generated and managed by BlackBerry developer tools.
    # It SHOULD NOT BE modified manually.
    #
    AddOn=0
    AlwaysBuild=0
    [AlxImports
    ]
    AutoRestart=0
    [ClassProtection
    ]
    [CustomBuildFiles
    ]
    [CustomBuildRules
    ]
    [DefFiles
    ]
    [DependsOn
    ]
    ExcludeFromBuildAll=0
    [Files
    res\iconFocus48x36.png
    src\rollover\RolloverIcon.java
    ]
    HaveAlxImports=0
    HaveDefs=0
    HaveImports=0
    [Icons
    ]
    [ImplicitRules
    ]
    [Imports
    ]
    Listing=0
    Options=-quiet
    OutputFileName=RolloverIcon
    [PackageProtection
    ]
    RibbonPosition=0
    [RolloverIcons
    ]
    RunOnStartup=1
    StartupTier=7
    SystemModule=1
    Title=FooRolloverIcon
    Type=0
    UserData=|src;res
    Vendor=RolloverIcon Vendor
    Version=1.0
    

    Ribbon icon imported into 'hand' of the project folder res and added the following two lines to the main method of the RolloverIcon class. The fixed.

       public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                RolloverIcon ri = new RolloverIcon();
                ri.enterEventDispatcher();
            }else{
                Bitmap ribbonIcon = Bitmap.getBitmapResource("icon48x36.png");
                HomeScreen.updateIcon(ribbonIcon,1);
                Bitmap rolloverIcon = Bitmap.getBitmapResource("iconFocus48x36.png");
                HomeScreen.setRolloverIcon(rolloverIcon,1);
            }
        }
    
  • Enry Point on Storm application error

    I spent some time getting my application to work correctly with multiple entry points.  After the articles, I have now a main GUI application and also an autostart module which, among other things, updates the main icon.  I use the technique of the call launch() with some settings special (like "updateIcon") to get the correct behavior. Things work well.

    So I'm now doing a lot of testing in-depth on different platforms and a mysterious error arises.  When the storm running Simulator and the installation of the app the OTA (not just the race to Eclipse) method, I get an error when the installation is complete: "untrapped Exception. Module with handle [6952] and [0] index has no application entry point '. '.  After a reboot, everything works fine, I do not see the error, and the icon is updated in the background, OK.

    It's the offending section:

    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run()

    If I comment the line below, I don't see the error at all.

    HomeScreen.updateIcon(bitmap,0);
    }
    });

    I am currently taking the low road and just trapping the IllegalArgumentException around updateIcon appeal, but I do not like this solution.

    Why this ugly error does not only appear during installation?

    Thank you

    Jim

    I might have found a solution!

    An idea that I had was that the other point of entry that runs at startup (and apparently starts right after installation) could start before the main entry point (0) is installed/related in / ready to go/etc.  I tested it by putting Thread.sleep (1000) as the first thing that the other point of entry, and it seems to work!  I don't know the details under the hood on how these modules get installed or started, but the notion of a race condition critical could explain both what I'm seeing and why its not appear in other platforms and/or any from methods (eg. no problems during the eclipse everything starts up).

    I will test some more and it keep it open for a comments for a few days before marking as resolved.

    Thank you

    Jim

  • Problem with push the screen of an application

    Hello

    I developed an application with another point of entry. I have the main GUI application and an application that listens for push notifications. The background listener auto starts when the unit is turned on and tuned to push. When it receives the push message, it displays a popupscreen with the options 'launch' and 'Cancel '. By pressing 'start' should open the graphical application by pressing the main screen of the application. However, I get "ClassCastException" and I have no idea why.

    I looked around and the process is similar to what I did, but somehow, it does not work for me. Can someone explain or show me how to push a background application screen?

    See you soon!

    Welcome to the forums!

    I guess as you push a display context global [and maybe modal] 'launch' and 'Cancel' buttons. When you press 'start', then, you should not just push a screen - you should actually run the main application!

    To do this, you must create an application with the appropriate settings and say ApplicationManager descriptor to run it. Take a look at the documentation ApplicationManager, especially the section "running an application with different arguments. Make sure the arguments are according to the needs of your main application, not the bottom one.

    Only one problem: what happens if your application is already running but reduced? Don't worry - you try to run the same application with the same arguments will activate one already running!

    Good luck!

  • Problems of implementation of VLANS on Cisco SG 300-28 comments

    Hello

    I'm mainly curious if the configuration that I explained below is actually possible, and if so how do I implement. I know that this isn't the easiest configuration and I need to put in place without buying any equipment more if possible.

    I have a SG Cisco 300-28 with three Setup VLAN

    Vlan1 (company) - 192.168.10.0 - switch IP 192.168.10.254

    VLAN2 (VOIP) - 192.168.20.0 - switch IP - 192.168.20.1

    VLAN3 (guest) - 192.168.30.0 - switch IP - 192.168.30.1

    Default gateway is 192.168.10.1 (Netgear router)

    I have a wireless network setup (Netgear WMS and WAP 2) configured with TWO VIRTUAL (1 and 3) networks. They enter ports on the Cisco SG 300 - 28 which are marked on the two VIRTUAL networks. The wireless carriers has worked well, but the guest network is not reout on the Internet.

    After some troubleshooting I realized that the reason wasn't the guest was because there was no path routing of the internet to the router.

    The router I have is not really ideal, it is a Netgear DGN2200, but I managed to create a static route to 192.168.30.1 with a metric of 2, 192,168,10.254 being the jump.

    Success, the connection worked, the only problem is that now my guest network can see my business network because the corporate network uses the static route on my router to router on the guest network (due to the limitations of this device I can't do anything about it)

    So basically, what I have is

    Network Guest can connect to Business VLAN switch. I guess that's because the router is on the VLAN of Business and the default gateway is the router. As they are on the same network the Guest inevetably network can see the network and the server of the company.

    The network of the company can return to the network invited through the router using my static route, I created. The static route is really basic and I can't create a firewall on the router rule to prevent the business network addressing network comments because there is only one LAN - WAN firewall and this connection is LAN - LAN.

    What I need, is...

    somehow stop all traffic from the 192.168.30.0 network routing to what anyone on the 192.168.10.0 network, apart from the router to 192.168.10.1.

    Is this possible? I have this setup at several different site, the only difference is that I have a router from CIsco security on the latter with the VLANS configured so that I don't have this problem. Because I have a Netgear DGN2200 rather limited, I cannot configure the VLAN correctly, and as such, I need to see if I can do this on the switch somehow.

    Any help would be appreciated.

    It is my first post says in the way, so if I missed something that anyone would help then please let me know.

    Kind regards

    David

    Hi David,

    Why not apply an access list to filter incoming traffic in the SG300 switch such as, via the command line or GUI.

    Here is an example below, certainly not comprehensive, just an example

    ,

    Remember, we use the reverse masking of the ACE;

    config

    restrictGuest extended IP access list

    deny ip 192.168.30.0 0.0.0.255 192.168.20.0 0.0.0.255
    deny tcp 192.168.30.0 0.0.0.255 any 192.168.30.1 0.0.0.0 www
    deny tcp 192.168.30.0 0.0.0.255 any 192.168.30.1 0.0.0.0 telnet
    deny ip 192.168.30.0 0.0.0.255 192.168.10.0 0.0.0.255

    allow an ip

    output

    interface gigabitethernet1

    Service-acl input restrictGuest

    output

    Don't forget to save the configuration with the following command and respond to the prompt.

    To write

    or do it via the GUI method

    Step 1.  Create an ACL name

    step 2, add the ACE base port which is the list of filters.

    step 3.   Apply or binding the list to a port so that the port can watch and filter pattern matches to detect traffic in the switch.  I gave you an example of an ACE list above, you can be more creative in what you refuse.

    step 4. Now add or copy the entry in other ports on the switch.

    Be sure to save your changes to the configuration.

    I hope this helps.

    Best regards, Dave

Maybe you are looking for