Quick Module Question

I have a link bar component that is linked to a ViewStack
component, which has four stacks. I want to use modules in the last
three stacks and my question is: Will the modules load when the
user clicks on that particular stack, or will all of them be loaded
even if the currentView property is set to 0?

I think that that has to do with the "creation policy" and
can be set either way.

Similar Messages

  • Hi all .hope all is well ..A quick trim question

    Hi all
    Hope all is well ......
    I have a quick trim question I want to remove part of a string and I am finding it difficult to achieve what I need
    I set the this.setTitle(); with this
    String TitleName = "Epod Order For:    " + dlg.ShortFileName() +"    " + "Read Only";
        dlg.ShortFileName();
        this.setTitle(TitleName);
        setFieldsEditable(false);
    [/code]
    Now I what to use a jbutton to remove the read only part of the string. This is what I have so far
    [code]
      void EditjButton_actionPerformed(ActionEvent e) {
        String trim = this.getTitle();
          int stn;
          if ((stn = trim.lastIndexOf(' ')) != -2)
            trim = trim.substring(stn);
        this.setTitle(trim);
    [/code]
    Please can some one show me or tell me what I need to do. I am at a lose                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    there's several solutions:
    // 1 :
    //you do it twice because there's a space between "read" and "only"
    int stn;
    if ((stn = trim.lastIndexOf(' ')) != -1){
        trim = trim.substring(0,stn);
    if ((stn = trim.lastIndexOf(' ')) != -1){
          trim = trim.substring(0,stn);
    //2 :
    //if the string to remove is always "Read Only":
    if ((stn = trim.toUpperCase().lastIndexOf("READ ONLY")) != -1){
       trim = trim.substring(0,stn);
    //3: use StringTokenizer:
    StringTokenizer st=new StringTokenizer(trim," ");
        String result="";
        int count=st.countTokens();
        for(int i=0;i<count-2;i++){
          result+=st.nextToken()+" ";
        trim=result.trim();//remove the last spaceyou may find other solutions too...
    perhaps solution 2 is better, because you can put it in a separate method and remove the string you want to...
    somthing like:
    public String removeEnd(String str, String toRemove){
      int n;
      String result=str;
      if ((n = str.toUpperCase().lastIndexOf(toRemove.toUpperCase())) != -1){
       result= str.substring(0,stn);
      return result;
    }i haven't tried this method , but it may work...

  • Quick script question

    Hi all,
    Could anyone advise me if i can add anything within - header('Location: http://www.mysite.co.uk/thankyou.html'); in the script below so as the page
    re- directs back to the main index page after a few seconds ?
    Thankyou for any help.
    <?php
    $to = '[email protected]';
    $subject = 'Feedback form results';
    // prepare the message body
    $message = '' . $_POST['Name'] . "\n";
    $message .= '' . $_POST['E-mail'] . "\n";
    $message .= '' . $_POST['Phone'] . "\n";
    $message .= '' . $_POST['Message'];
    // send the email
    mail($to, $subject, $message, null, '');
    header('Location: http://www.mysite.co.uk/thankyou.html');
    ?>

    andy7719 wrote:
    Mr powers gave me that script so im rather confused at this point in time
    I don't think I "gave" you that script. I might have corrected a problem with it, but I certainly didn't write the original script.
    What you're using is far from perfect, but to suggest it would lay you open to MySQL injection attacks is ludicrous. For you to be prone to MySQL injection, you would need to be entering the data into a MySQL database, not sending it by email.
    There is a malicious attack known as email header injection, which is a serious problem with many PHP email processing scripts. However, to be prone to email header injection, you would need to use the fourth argument of mail() to insert form data into the email headers. Since your fourth argument is null, that danger doesn't exist.
    One thing that might be worth doing is checking that the email address doesn't contain a lot of illegal characters, because that's a common feature of header injection attacks. This is how I would tidy up your script:
    <?php
    $suspect = '/Content-Type:|Bcc:|Cc:/i';
    // send the message only if the E-mail field looks clean
    if (preg_match($suspect, $_POST['E-mail'])) {
      header('Location: http://www.example.com/sorry.html');
      exit;
    } else {
      $to = '[email protected]';
      $subject = 'Feedback form results';
      // prepare the message body
      $message = 'Name: ' . $_POST['Name'] . "\n";
      $message .= 'E-mail: ' . $_POST['E-mail'] . "\n";
      $message .= 'Phone: ' . $_POST['Phone'] . "\n";
      $message .= 'Message: ' . $_POST['Message'];
      // send the email
      mail($to, $subject, $message);
      header('Location: http://www.example.com/thankyou.html');
      exit;
    ?>
    Create a new page called sorry.html, with a message along the lines of "Sorry, there was an error sending your message". Don't put anything about illegal attacks. Just be neutral.
    By the way, when posting questions here, don't use meaningless subject lines, such as "Quick script question". If you're posting here, it's almost certain to be a question about a script. It doesn't matter whether it's quick. Use the subject line to tell people what it's about.

  • Order the FAQ module questions

    I am trying to order the FAQ module questions in Business Catalyst.
    It puts them in alphabetical order by default so I numbered them. But once it gets to 10 it obviously goes out of order.
    And the client does not want to put a letter in front. ie A, B, C
    Any ideas on how to acheive this?
    Thanks in advance.

    Try leaving numerical gaps in your weighting scheme so you have future flexibility.
    For example, I like to use the weightings of 1000, 900, 800, 700 and so on.
    Then I have a LOT of wiggle room to add new information and sort my information the way I like.
    Tricia

  • Quick kernel module question

    MODDESTDIR := /lib/modules/$(KVER)/r8180
    install: modules
    mkdir -p $(MODDESTDIR)
    install -p -m 644 $(MODULES_LST) $(MODDESTDIR)
    /sbin/depmod -a
    I have a feeling MODDESTDIR is wrong should be more like /usr/src/'kernel' ?
    At the moment I have to rebuild module after reboot .....
    TIA

    it's correct. modules are installed in /lib/modules/, take a look.
    James

  • Training and Event module questions.

    Hi .
    I have some questions regarding Training and Event Management module.
    1. IS there a way to configure a custom attendee type for this module ?
    2. If no is there a way to rename a existing attendee type. I have a requirement to create a group of attendees type of External Person. I know i can use Company attendee type for grouping external person. But i need to change this Company to Group for displaying purposes. I know i can change the Company via T7778O table but won't it lead to bad consequences ?
    3. Is there a way to hide tabstrips on PVOO screen ? i have a requirement to keep only Company tabstrip others are not relevant for my scenario.
    That's all for now.
    Thanks in advance.
    Edited by: kernel.panic on Dec 22, 2010 8:47 AM

    Hi,
    thanks this one is ok, the one which I can not find is the info message for when the maximum capacity of the attendee list is reached:
    'Optimum capacity reached, only essential or wait list bookings possible' This one I want to change into a warning message.
    br,
    Ovidiu
    And I have a new question as well
    In the Attendee List layout is it possible to add columns which are not in the column set from customizing e.g. Personnel subarea,
    Employee subgroup, Employee group etc?
    Thanks
    br,
    Ovidiu
    Edited by: Ovidiu Moldovan on Apr 20, 2010 3:51 PM

  • Urgent help with quick translation questions

    Hello,
    I am somewhat new to Java. I have a translation to hand in in a few hours (French to English). Argh! I have questions on how I worded some parts of the translation (and also if I understood it right). Could you, great developers, please take a look and see if what I wrote makes sense? I've put *** around the words I wasn't sure about. If it sounds strange or is just plain wrong, please let know. I also separated two terms with a slash, when I was in doubt of which one was the best.
    Many thanks in advance.
    1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.
    Since these exceptions have an excessively broad meaning, ***the calling layers will not know how to
    distinguish the message sent from the other exceptions that may also be passed to them.***
    2) The use of the finally block does not require a catch block. Therefore, exceptions may be passed back to the
    calling layers, while effectively freeing resources ***attributed*** locally
    3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).
    Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
    the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
    perspective.
    4) Use “inlining.”
    Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
    copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
    In the example below, the "inline" code will run twice as fast as the ***method call***
    5)tips - ***Reset the references to large objects such as arrays to null.***
    Null in Java represents a reference which has not been ***set/established.*** After using a variable with a
    large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
    memory allocated*** for the variable
    6) TIPS Limit the indexed access to arrays.
    Access to an array element is costly in terms of performance because it is necessary to invoke a verification
    that ***the index was not exceeded.***
    7) tips- Avoid the use of the “Double-Checked Locking” mechanism.
    This code does not always work in a multi-threaded environment. The run-time behavior ***even depends on
    compilers.*** Thus, use the following ***singleton implementation:***
    8) Presumably, this implementation is less efficient than the previous one, since it seems to perform ***a prior
    initialization (as opposed to an initialization on demand)***. In fact, at runtime, the initialization block of a
    (static) class is called when the keyword MonSingleton appears, whether there is a call to getInstance() or
    not. However, since ***this is a singleton***, any occurrence of the keyword will be immediately followed by a
    call to getInstance(). ***Prior or on demand initializations*** are therefore equivalent.
    If, however, a more complex initialization must take place during the actual call to getInstance, ***a standard
    synchronization mechanism may be implemented, subsequently:***
    9) Use the min and max values defined in the java.lang package classes that encapsulate the
    primitive numeric types.
    To compare an attribute or variable of primitive type integer or real (byte, short, int, long, float or double) to
    ***an extreme value of this type***, use the predefined constants and not the values themselves.
    Vera

    1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.***inherit from***
    ***the calling layers will not know how to
    distinguish the message sent from the other exceptions that may also be passed to them.***That's OK.
    while effectively freeing resources ***attributed*** locally***allocated*** locally.
    3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).***statements***, but go back to the author. There is no such thing as a 'constant declaration section' in Java.
    Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
    the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
    perspective.Again refer to the author. This isn't true. It will make hardly any difference to the performance. It is more important from a style perspective.
    4) Use “inlining.”
    Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
    copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
    In the example below, the "inline" code will run twice as fast as the ***method call***Refer to the author. This entire paragraph is completely untrue. There is no such thing as 'inlining' in Java, or rather there is no way to obey the instruction given to 'use it'. The compiler will or won't inline of its own accord, nothing you can do about it.
    5)tips - ***Reset the references to large objects such as arrays to null.***Correct, but refer to the author. This is generally considered bad practice, not good.
    Null in Java represents a reference which has not been ***set/established.******Initialized***
    After using a variable with a
    large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
    memory allocated*** for the variableAgain refer author. Correct scoping of variables is a much better solution than this.
    ***the index was not exceeded.******the index was not out of range***
    The run-time behavior ***even depends on compilers.***Probably a correct translation but the statement is incorrect. Refer to the author. It does not depend on the compiler. It depends on the version of the JVM specification that is being adhered to by the implementation.
    Thus, use the following ***singleton implementation:***Correct.
    it seems to perform ***a prior initialization (as opposed to an initialization on demand)***.I would change 'prior' to 'automatic pre-'.
    ***this is a singleton***That's OK.
    ***Prior or on demand initializations***Change 'prior' to 'automatic'.
    ***a standard
    synchronization mechanism may be implemented, subsequently:***I think this is nonsense. I would need to see the entire paragraph.
    ***an extreme value of this type******this type's minimum or maximum values***
    I would say your author is more in need of a technical reviewer than a translator at this stage. There are far too serious technical errors in this short sample for comfort. The text isn't publishable as is.

  • Module Question.

    Hi all,
    My scenario is File->XI->R3
    Can I validate file information in a Sender Adapter Custom Module and if the validation fails then cancel the input so Integration Engine never gets the corresponding message? My question is how to cancel the procesing of the message in the adapter module?
    Thanks in advance,
    Diego.

    Chandu,
    my problem is that I want to validate data of an input file, so if the file doesn't contain certain fields, then it doesn't go to the XI Engine. (It's discarded before that.)
    So i thought to build a module for the sender adapter that do this validation, but I don't know how to discard the message at modules chain.
    I hope you could understand my english.
    Regards,
    Diego.

  • Quick NativeWindow questions.

    Hi,
    Two Quick Questions about native window actions (I am using AIR with HTML and JS):
    1. How do you "refer" to minimize button ? - So, when a user clicks minimize, it should do an action defined in javascript.
    2. How to define click event for System tray icon ? - So I can display something when my system tray icon is double-clicked.
    Thanks.

    1. Add an event listener to the window.nativeWindow object, listening for the NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING  or DISPLAY_STATE_CHANGE events.
    2. Add an event listener to your SystemTrayIcon object. You can listen for click, mouseUp or mouseDown events, but doubleClick events are not dispatched by this object.

  • Quick REGEXP_LIKE Question

    Hi everyone,
    Had a very quick question: so I need to retrieve all records that have values in this format "type:123;target_id:456". Note that the numeric value can be 1-6 digits long for either type or target_id.
    Can someone please help me with the regexp_like-ing this?
    Thank you,
    Edited by: vi2167 on May 27, 2009 2:06 PM
    Edited by: vi2167 on May 27, 2009 2:07 PM

    WHERE REGEXP_LIKE(val,'type:\d{1,6};target_id:\d{1,6}')SY.

  • 5B32 module question

    This is more of an equipment question, but I figure that thisis as good a
    place as any to ask.
    I've got about six 5B32 modules, and I need three. The problem is that
    four of the resistors that go with them are bad. I had as bad board,
    which I think might have screwed up the resistors. The resistors that
    Ihave that are good are reading about 20 Ohms of resistance, and the bad
    ones are 6 Ohms, 80 Ohms, 1.5 megaOhms, and 2.2 megaOhms.
    I have tried to buy some resistors from National Instruments and Analog
    Devices, but they don't know what they are (the part number doesn't come
    up at all). I hate to keep buying entire 5B32 modules when I only need
    the resistor. So, can I just go buy a 20 Ohm resistor at Radio Shack, and
    plug it i
    n, or is this thing that comes with it something special?
    Thanks in advance,
    Harry
    "Little Joe for the Big Heisman, '99"

    Absolutely - go down to Radio Shack and purchase some - The max current
    sould be 20 ma (since the 5B32 is a 4 - 20 ma current input module) so P =
    I^2 R , P = (.02)^2 * 20 = .008 Watts therefore a 1/4 or 1/2 watt resistor
    should be more than adequate.
    A 1/2 watt resistor has leads that would probably plug into the 5B01
    backplane nicely.
    Good Luck
    Harry King wrote in message <7q65an$[email protected]>...
    >This is more of an equipment question, but I figure that thisis as good a
    >place as any to ask.
    >
    >I've got about six 5B32 modules, and I need three. The problem is that
    So, can I just go buy a 20 Ohm resistor at Radio Shack, and
    >plug it in, or is this thing that comes with it something special?
    >
    >Thanks in advance,
    >Harry
    >
    >--
    >"Little Joe for the Big Heis
    man, '99"

  • STREAM module question

    Hi all,
    I am newbe in STREAM module development and this question might be a concept error. If so, please could you give me some clues?
    I would like to use the "libc" funcion "getpwuid()" in a kernel STREAM module.
    I have Solaris 7 64-bit kernel.
    �Can I do it? I have read that for 64-bit kernels, only dynamic libraries are available. Therefore in order ot use libc functions I would have to link dynamically the module relocatable object with the libc library in sparcv9. I have tried to link the kernel STREAM module with libc.so.1 (in /usr/lib/sparcv9) with no success so far. Everytime I trie to load the module it complains with the message: unknown symbol "getpwuid".
    If it is not possible, why? . Is it not possible to use libc functions such us: memcpy() etc..from the kernel context?
    Looking forward to hearing from you.
    Best Regards

    You cannot use user space libraries from within a kernel module. What exactly are you trying to
    do? What do you need password information for
    down in the kernel?
    Maybe ddi_get_cred() will help?
    Some functions like memcopy have kernel space equivalents (bcopy)....
    dan

  • Array Module Question

    Hi,
    I am currently working on designing phase for an Array Module. We are planning to track the Array information and store it's content to database. Currently I am finalizing the data model and I have following question.
    --We need to track the Geneology of the Sample through out the whole system (Especially the results of Transfers). Is it better to have all that relationship in one flat table with columns for location (like PlateWell, GelLane…..) and columns for Content (Column like . LocationType  LocationId   ContentType ContentId) or is it better to store all the content of location as a ArrayType? Or is there any other option available in the Market?
    In the first case database rows for that table will increate very very fast plus to find out the geneology of the location in Array , I have to use Connect By Prior which will take good amount of time(Is there any other option available?). I don’t have much idea about second option but I think retrieval individual content is going to be a problem.
    Any help is really appreciated.
    Thanks in Advance
    Raj

    Made a complete example:
    String searchKey = "Juice";
    TreeMap tm = new TreeMap();
    tm.put("soda", "coke");
    tm.put("Juice", "orange");
    tm.put("SODA", "7-up");
    Set set = tm.entrySet();
    Iterator iterator = set.iterator();
    while( iterator.hasNext() ) {
    Map.Entry entry = (Map.Entry)iterator.next();
    if(entry.getKey().equals(searchKey)){
    System.out.println("searchKey '"+searchKey+"' value is: "+entry.getValue());
    What do you think? Anything obvious that can be improved?

  • NM-16AM module question in my cisco 3660

    hi,
    I have 3 of these modules.
    with 1 module, when I configure a line and I connect to the line I get only a black screen.
    when I do the exact same thing with another module, (configure a line on the 2nd module) it works fine.
    my question is, how can I know if a module is broken or not functional. can this happen?
    any advice on how to find out if a module is broken or if I single modem in the module is dead.
    thank you.
    also when I use debug modem and I call a modem that works fine I get this
    11w6d: Modem 5/14 Mcom: in modem state 'Dialing/Answering'
    11w6d: Modem 5/14 Mcom: in modem state 'Incoming ring'
    11w6d: Modem 5/14 Mcom: in modem state 'Waiting for Carrier'
    but when I don't get this I know in advance that it's not going to work and that I'll get just a black screen.
    any advice please?
    thank you.

    To identify a functional module , we need to look at the front panel LED of 3660 router. If READY 0, 1, 2, 3 is blinking green it indicates,it indicates the functional module is installed in the slot.If this LED is OFF, it indicates the slot is empty or the module is not functional. For more info on 3660 MAR router, refer the following Link.
    http://www.cisco.com/en/US/products/hw/routers/ps274/prod_module_configuration_guide09186a00800d9e97.html

  • Robotic module Question

    Hi all
    i have some question about the robotic module.
    i already have a DH table for my robto arm.
    Now i am trying to input this DH parameters into Labview.
    I saw the example of inverse kinematis for puma 560.
    Also,I find that the "create PUMA 560 Modified.Vi" can let user to input their only DH parameters.
    But
    What is the Twist in Labview? angle about previous Z, from old X to new X.
    What is the Length in Labview? is it represent thelength of the common normal (r).
    What is the Offset in Labview?offset along previousZ to the common normal.
    What is the Joint Corrdinate Offseti? in Labview?offset along previousZ to the common normal.
    When i modify the DH paramters into "set kinematic parameter.vi",there show a error about -310040.
    Anyone can indicate which part i get worg?
    Thank you so much
    Tim
    Attachments:
    Inverse Kinematics for Puma 560 org Test.vi ‏34 KB
    Test_PUM_560_tim.vi ‏32 KB
    myrobotarm.jpg ‏98 KB

    Hi Tim,
    Thanks for your question. Are you attempting to modify the "create PUMA 560 Modified.vi" that you mentioned using your DH parameters, or are you modifying the "Test_PUM_560_tim.vi" example VI that you attached? The "Inverse Kinematics for PUMA 560 org Test.vi calls the "Test_PUM_560_tim.vi" so if you are using this example as a model, you would have to input your parameters (Length, Twist, Offset which you mentioned) into that VI.
    The particular error you are getting (-310040) corresponds to the following error message: "LabVIEW cannot converge to a solution in the number of steps you specified. Make sure that the serial arm can achieve the transform you desire." This could be due to the fact that the current constraints are over defined. 
    Here is a link to the Robotic Help Manual:
    http://zone.ni.com/reference/en-XX/help/372983D-01​/
    If you would like to give me some more information about your application, I would be happy to help further. Which version of LabVIEW are you using, and which version of the Robotics Module are you working with?
    Good luck!
    R. Brill
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Looking for a certain type of computer

    I need a computer that will handle my specific needs. I am in the market for a desktop specifically - I don't really need the bundle pack with the monitor and printer since I already have those, so I guess I am most interested in a tower only. I do a

  • How to set only one Index-group for a Search-iView as default?

    Hi Everybody, i have a lot of index ID's for searching in different folders. Is it possible to set only one index-group as default for a search iView? Until now i get all groups as default in every search. It's inconvenient for the users to use the l

  • Freeze during update

    Regarding my iPad2 32 wifi - 3G. During update of system iOS files today (approx 650mb), there popped up an error message in iTunes saying something like (error during update, and some more info i didnt see) before it left the screen. Now my ipad is

  • Strange behavior when using Labview to collect data from Tektronix tds8200 oscillosco​pe

    I have hit a wall in trying to figure this one out. The problem I am having is that my program does not start the oscilloscope when it should. I am using a Tektronix TDS8200 oscilloscope. My goal is to collect waveform data from the oscilloscope usin

  • Segment E1ADRM4 in idoc SHPMNT05 only allows 10 partners

    We have to post an extension of Idoc type SHPMNT05, with all the shipment and delivery information. For a concrete shipment, we have 15 different partners. However, segment E1ADRM4 doesn't allow more than 10 iterations. Why the system only allows to