Trying to use a an object value which is dynamic

Hi,
I created a function to create components while the system
loop over all the categories of products it can find in a
ArrayCollection. Everything is fine to display the information but
while I was trying to put a bit of style to the component itself, I
got myself into a hole of knowledge.
Here is the concept:
I have 1 HBox at 100% of width which include 2 HBox (1 for
the icon and 1 for the label of the current category of product).
What I want is when the mouse is over the main HBox, to make an
ALPHA effect. But when I passed over the icon or the label, I will
not be able to reproduce the same effect as I do not have the
reference of the main HBox. In fact, I just don't know how to do it
but I am sure there is a method (or a best practice) to do it.
If anybody have an idea, please let me know.
You can find the code of the functions concerned by this
issue below.

Ah, ok, I get it now. Here's info on passing more than one
arg with an event listener:
Because the second parameter of addEventListener() is a
function, you cannot specify parameters of that function in the
addEventListener() call. So, to pass additional parameters to the
listener function, you must define them in the listener function
and then call the final method with those parameters.
Full text is here:
http://livedocs.adobe.com/flex/3/html/help.html?content=events_06.html
hth,
matt horn
flex docs

Similar Messages

  • I am trying to use sites on the internet which require Adobe Flash Player, but when I click on the free download, it says that Apple does not support this application, so I cannot use it.  This stops me viewing quite a few interesting things.  Any ideas?

    I am trying to use sites on the internet which require Adobe Flash Player, and when I click for a free download it says that "it is not available for your device because of restrictions that Apple has put in place".  Any suggestions on how to overcome this?

    Flash is not, and probably never will be, supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/ . Plus it would be up to Adobe to make a version of their flash player that works on iOS devices, something which they have never managed to do and which they have now given up on trying to do.
    Browser apps such as Skyfire, iSwifter and Puffin 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store, so your could try checking there for your sites (and there is the built-in YouTube app).

  • I have bought an Iphone 4 for my daughter from the apple store, I am trying to use a giff gaff sim which has been activated and has credit on it but the phone does not recognise the sim card

    I bought an Iphone 4 for my daughters birthday from the Apple shop, I am trying to use a Giff Gaff sim card which has been activated and has credit on it but the phone keeps giving me the message  "please use a compatable sim"

    Read here:
    http://support.apple.com/kb/HT5014

  • How to set a object value bound to a session to JavaScript variable

    In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.

    I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
    1.get the data to a javabean from database;
    2.convert the data to variable of the JavaScript as a String ;
    3.store the object in a HttpSession or Httprequest ;
    4.use in Jsp get the String (variable of the JavaScript )
    YourBean bean = (YourBean) request.getAttribute("model");
         if (bean != null) out.println(bean .getJsCode())
    convert function,(this is only for the matrix):
    public static String formatJsCode(Vector vector) {
    String sJsCode = "";
    //get js head
    sJsCode = getJsHeader();
    //define js array;
    sJsCode += "var data=new Array();\n";
    Vector v = null;
    String sTemp = "", sLine = "";
    for (int i = 0; i < vector.size(); i++) {
    v = (Vector) vector.get(i);
    sLine = "";
    for (int j = 0; j < v.size(); j++) {
    sTemp = (String) v.get(j);
    //replace " to \"
    sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
    //escape Html Tag
    //sTemp = StringUtil.escapeHTMLTags(sTemp);
    //replace \r\n to <br>
    sTemp = sTemp.replaceAll("\r\n", "<br>");
    if (j != 0)
    sLine += ",";
    sLine += "\"" + sTemp + "\"";
    sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
    //get js foot
    sJsCode += getJsFooter();
    return sJsCode;
    public static String getJsHeader(){
    return "<script language=\"JavaScript\">";
    public static String getJsFooter(){
    return "</script>";
    }

  • I  cannot   download i tune updates or do a reinstall as I get a message  saying that the faciity I am trying to use cannot be located    can anyone please help?

    I have problems when I try to install an updated version of  I tunes or when I try to uninstall I tunes. In both cases I get a message which says that the facility that I am trying to use is not available, a second message says that the path I am trying to use cannot be found. Can anyone please advise me how to sort this out?  thanks

    In both cases I get a message which says that the facility that I am trying to use is not available, a second message says that the path I am trying to use cannot be found.
    Which particular .msi file is the message mentioning? (Several different .msi files might be referenced in this context: itunes.msi, bonjour.msi, AppleSoftwareUpdate.msi, etc.)

  • Trying to use Web LCID property to get the List name in client object Model

    Hi ,
    I am trying to change the "Personal Documents" list NoCrawl property under MySite using SharePoint Client Object Model. As we use  web.Lists.GetByTitle("Personal
    Documents"); method to get the list,but here problem is :for different language List name is in their language.So I tried to use LCID property of the WEB and
    have taken key-value pair (PersonalSiteOnet_List_PersonalDocuments) from the resource file for that language from 14 hive.
    Example:I have selected Spanish language .there are so many LCID for Spanish language but Microsoft has given only one language pack for Spanish.
    Then,My Question is that
    "All LCID for Spanish language are using same Spanish language pack dictionary file OR something else"
     

    Hi,
    According to your post, my understanding is that your requirement is getting list in different language.
    Here are two ways for your reference:
    1. We can use getById method instead, so that we can avoid the language issue.
    2. We can use an array to store the different list name in different language in you JavaScript code, then use the code snippet below to get the list:
    var userLcid =_spPageContextInfo.currentLanguage;
    var localizedStrings = {
    ListName: {
    _1033: "EnglishName",
    _3082: "SpanishName"
    var listName=localizedStrings.ListName["_" + userLcid];
    var list=web.Lists.getByTitle(listName);
    More information:
    http://msdn.microsoft.com/en-us/library/hh670609.aspx
    http://wellytonian.com/2012/11/language-packs-sharepoint-2010/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Using a Circle object which has been created outside a Group

    Hi all!
    I have one trouble:
    I create a Circle object outside a Group object.
    I trying to use th Circle in the Group and I have got compilation error.
    It's my code:
    * testfx.fx
    * Created on 24.03.2009, 21:19:00
    package testfx;
    import javafx.scene.effect.*;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.*;
    import javafx.scene.text.*;
    import javafx.scene.control.*;
    import javafx.scene.transform.*;
    import javafx.stage.Stage;
    var MyCircle : Circle = Circle{
        centerX: 200
        centerY: 200
        radius: 15
        fill: Color.BLUE
    function run(){
        Stage {
            title: "Button"
            width:400
            height:400
            scene: Scene{
                fill: Color.BLACK
                content:[
                    Group{
                        content:[
                            Rectangle{
                                x: 125
                                y: 175
                                width: 150
                                height: 50
                                arcHeight: 5
                                arcWidth: 5
                                stroke: Color.GRAY
                                fill: LinearGradient{
                                    startX: 0.0
                                    startY: 0.0
                                    endX: 0.0
                                    endY: 1.0
                                    proportional: true
                                    stops:[
                                        Stop{offset: 0.0 color: Color.WHITE},
                                        Stop{offset: 1.0 color: Color.BLACK}
                            MyCircle                           <------- (SIC!)    
                        effect: Reflection{
                            fraction: 1.0
                            topOffset: 3
                            topOpacity: 0.8
                            bottomOpacity: 0.2
    }My error:
    Note: The following error is an internal error in the OpenJFX compiler (1.1.0).
    Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem. Thank you.
    Where is my mistake here?
    I'm sorry for my English, I have not enough knowledge in it at the moment.
    //Best regards!
    //Alexander

    Try this:
    package testfx;
    import javafx.scene.effect.*;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.*;
    import javafx.stage.Stage;
    var myCircle : Circle = Circle{
    centerX: 200
    centerY: 200
    radius: 15
    fill: Color.BLUE
    Stage {
    title: "Button"
    width:400
    height:400
    scene: Scene{
    fill: Color.BLACK
    content:[
    Group{
    content:[
    Rectangle{
    x: 125
    y: 175
    width: 150
    height: 50
    arcHeight: 5
    arcWidth: 5
    stroke: Color.GRAY
    fill: LinearGradient{
    startX: 0.0
    startY: 0.0
    endX: 0.0
    endY: 1.0
    proportional: true
    stops:[
    Stop{offset: 0.0 color: Color.WHITE},
    Stop{offset: 1.0 color: Color.BLACK}
    myCircle
    effect: Reflection{
    fraction: 1.0
    topOffset: 3
    topOpacity: 0.8
    bottomOpacity: 0.2
    By the way, you could define the Circle inline, like this:
    package testfx;
    import javafx.scene.effect.*;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.*;
    import javafx.stage.Stage;
    Stage {
    title: "Button"
    width:400
    height:400
    scene: Scene{
    fill: Color.BLACK
    content:[
    Group{
    content:[
    Rectangle{
    x: 125
    y: 175
    width: 150
    height: 50
    arcHeight: 5
    arcWidth: 5
    stroke: Color.GRAY
    fill: LinearGradient{
    startX: 0.0
    startY: 0.0
    endX: 0.0
    endY: 1.0
    proportional: true
    stops: [
    Stop{
    offset: 0.0
    color: Color.WHITE
    Stop{
    offset: 1.0
    color: Color.BLACK
    Circle{
    centerX: 200
    centerY: 200
    radius: 15
    fill: Color.BLUE
    effect: Reflection{
    fraction: 1.0
    topOffset: 3
    topOpacity: 0.8
    bottomOpacity: 0.2
    Thanks,
    Jim Weaver
    JavaFXpert.com (Learn JavaFX blog)
    Edited by: JimWeaver on Mar 25, 2009 1:15 PM
    Edited by: JimWeaver on Mar 25, 2009 1:17 PM

  • How to Get Resource value which are referred in code behind file using IResourceProvider

    Hi Everyone,
    Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider. I created a CustomResourceProvider project using ResourceProviderFactory and able to get the resource values from DB which
    are used in aspx page.
    But i'm not able to get the values which are referring from code behind file.
    Ex: Label1.Text = Resources.Common.Car; // This is still coming from resx file.
    Can any one please let me know how to get the value from DB instead of resx file which are referred in cs file.
    Appreciate your help. 
    The below code uses the ResourceProviderFactory which calls this method and gets it from DB. Please let me know if you need any more info.
    public class DBResourceProviderFactory : ResourceProviderFactory
            public override IResourceProvider CreateGlobalResourceProvider(string classKey)
                return new DBResourceProvider(classKey);
            public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
                 // we should always get a path from the runtime
                string classKey = virtualPath;
                if (!string.IsNullOrEmpty(virtualPath))
                    virtualPath = virtualPath.Remove(0, 1);
                    classKey = virtualPath.Remove(0, virtualPath.IndexOf('/') + 1);
                return new DBResourceProvider(classKey);
    Regards, Ravi Neelam.

    Hi Ravi Neelam.
    >>Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider.
    Based on this message, your issue related to web application, questions related to Asp.Net should be posted in
    Asp.Net forum.
    Please reopen a new thread in that forum. You will get more efficient response.
    Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SharePoint 2013 implement simple logout button which do not redirect to default sign out page using JavaScript client object model

    I am using windows authentication in my web application.
    My requirement is to implement a sign out button which will sign out the user without having him to close the browser and application should not ask him to login again.
    I tried following two options:
     1. Redirecting the user to default signout.aspx page " /_layouts/15/SignOut.aspx "
     2. Using "Sign In as a different user" URL " /_layouts/15/closeConnection.aspx?loginasanotheruser=true "
    In first case, user is redirected to default sign out page but he can press "Go Back to Site" link to revisit the site. Another major issue is that the user has to close the browser to sign out from the application completely, which is not desirable
    in my project requirement.
    In second case, the the current user is signed out of the application but if the user has saved the password in browser, he gets signed in automatically to the application.
    I also came across the solution where we replace the default sign out page with a custom sign out page, but I am not sure whether it can be implemented using JavaScript Client Object Model of SharePoint.

    Hi 
    I'm basically looking for the exact answer for the query.
    Meanwhile you need to go through the link mentioned below in order to understand how to do it.
    Debugging and Logging Capabilities in SharePoint 2010
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • CAML Query to get specific item in folder based on dropdown value using Javascript client object model

    Hi,
    I am using the Javascript Client object model.
    I have a custom list and a custom document library.
    Custom list contains 2 columns - dlName , dlValue
    The document library contains 2 folders - "folder1" ,  "folder2" and contains some images.
    The image name starts with the "dlValue" available in the custom list
    I am using a visual webpart and using javascript client object model.
    I am trying to achieve the below functionality:
    1) Load a dropdown with the custom list.
    2) set the image based on the value in dropdown.
    I have achieved the first option, I have set the dropdown, but not sure how to query the folder and set the image.
    Below is the code i have used so far:
    //In Visual webpart
    <select id="ddlTest" >
    </select>
    <br/>
    <div id="PreviewLayer">
    <img id="imgPlaceHolder" runat="server" alt="Image" title="imgPlaceHolder" src=" " />
    </div>
    // In Javascript file
    function RenderHtmlOnSuccess() {
    var ddlTest = this.document.getElementById("ddlTest");
    ddlTest.options.length = 0;
    var enumerator = this.customListItems.getEnumerator();
    while (enumerator.moveNext()) {
    var currentItem = enumerator.get_current();
    var dropdownValue = currentItem.get_item("dlValue");
    ddlTest.options[ddlTest.options.length] = new Option(currentItem.get_item("dlName"), dropdownValue);
    setImage(dropdownValue); // Not sure how to query the folder and set the image based on value.
    // Also if dropdown value is changed, corresponding image should be shown
    How to query the folder and based on dropdown value, show the image? Also, how to handle the dropdown value change?
    Thanks

    Hi,
    Here are two links for your reference:
    Example of how to Get Files from a Folder using Ecmascript \ Javascript client object model in SharePoint 2010
    http://sharepointmantra.wordpress.com/2013/10/19/example-of-how-to-get-files-from-a-folder-using-ecmascript-javascript-client-object-model-in-sharepoint-2010/
    SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively
    http://sharepoint.stackexchange.com/questions/70185/sp2010-jsom-client-object-model-how-to-get-all-documents-in-libraries-including
    In SharePoint 2013, we can also use REST API to achieve it.
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge

    Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge is missing, so not clear how to import. Overall it seems unstable. Am I doing something wrong? Trying to evaluate before buying so working on a trial version (14 days left), but a bit concerned with Captivate 8 Performance. Please help! :-

    Hi Vikram and Lilybiri,
    Thanks for your responses :-)
    I'm working on Windows 8.1... I think that I may have found the issue... I was saving the file in a project directory rather than the default My Captivate Projects folder...
    Perhaps Captivate was struggling to find resources it needed?
    It hasn't crashed for a while now, though it is struggling - I'm working with a 54 slide PPT presentation that is linked and it takes a very long time to interact.
    Sometimes it says that I've removed slides, which I haven't?
    Best,
    Christy.

  • How can I hold a value of voltage, which can be used as a numeric value

    Hi, I'm trying to read in a voltage value and then hold it when i press a button. This value should then be able to be used as a numerical value, e.g. I can divide it or add constants etc. I realise this is probably a totaly remedial question, but it's for my dissertation at uni and my tutor thought it would be a great idea to program part of it in Labview, which NOONE in the uni knows how to use, and we've never been taught it.
    Any help would be awesome,
    Grant

    Thanks JoeLabView, but maybe I should start by describing the purpose of the program.
    I'm reading the voltage going into a DC motor (max 200V) so i'm using a 10:1 voltage divider to reduce the voltage seen by my labjack since it can only measure up to 20V. I read the voltage seen at the voltage divider, e.g.  20V at 200V and then, in labview, multiply this by a multiplying factor to get it back to 'actual' voltage. e.g. 20*10 = 200. But since resistors aren't made perfect, (especially not 5A ones) my divider actually works out at something like 9.8756:1. Therefore I have to set the voltage to the motor to something known (e.g. 100V), then tell labview that value, it reads the voltage input to it through the labjack, and MultFactor = UserInputVoltage/LabjackVoltage.
    Using the multiplying factor, I can then display the 'Actual' voltage over the motor.
    The motor is also being controlled by LabView, but this is simply using a slider, attached to an analogue_out VI for the LabJack, so shouldn't be too consequential.
    Now to answer your questions.
    1) The LabJack is a USB device which 'instantaneously' reads the voltage, so as the voltage input to it changes, so does the value output by its VI in LabView. It changes in real time.
    2) I will need to continue to use the input from the LabJack once I have generated the mulitplying factor, multiplying the LabJack input by the multiplying factor in real time, so I can plot a graph of the change in voltage with 'real' values.
    3) Do you mean what does my program do just now when i release the button, or what i want it to do?
    4) I don't know how to structure the program, but hopefully what i've said above should help.
    5) The interface will include;
    Numeric Control to set the 'actual' input voltage
    A button to tell the program when to generate the mulitplying factor
    A waveform chart displaying the 'actual' voltage (0-200V)
    A slider that I can use to control the motor. (this part i can do myself, it's a reference for a PWM circuit connected to a buck converter)
    Thanks again man, hope this is what you need.

  • The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or

    I have taken the cfdump for tmpqry and it shows all data for
    the range ( No error at this step ) . But when we exceute this
    dbquery we get below mentioned error .
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    senerio:
    I am using createobject to create a reference for component
    and call MDArraySort function in the cfc and getting this error .
    'The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null pointer is undefined.... '
    i am using this code in a cfc file.
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    var tmpqry = Querynew(arguments.colNames);
    var qRow = QueryAddRow(tmpqry, Arraylen(arguments.colArray)
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    sIndexinSensorIDs = colArray[qRowIndex]["SENSOR"]&"##";
    Temp_readin_code =
    colArray[qRowIndex]["READING_CODE"]&"##";
    QuerySetCell(tmpqry, 'SENSOR', sIndexinSensorIDs,
    qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',javacast('String',colArray[qRowIndex]["TYPE"]), qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(colArray[qRowIndex]["TIMESTAMP2"]), qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',javacast('String',colArray[qRowIndex]["ORDER_BY_PARAM"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',Temp_readin_code ,
    qRowIndex);
    QuerySetCell(tmpqry,
    'READING',javacast('String',colArray[qRowIndex]["READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',javacast('String',colArray[qRowIndex]["PK_READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',javacast('String',colArray[qRowIndex]["ALARM_STATUS"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    javacast('String',colArray[qRowIndex]["DURATION"]), qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',javacast('String',colArray[qRowIndex]["DESCRIPTION"]),
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    It is working fine for some date range and and getting above
    mentioned error in sone situation .

    Hi All ,
    Thank you for your support ,
    Finally i have fix the issue using some changes in my
    function in cfc .
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    //Declare variable collection used in function as local
    --->
    var tmpqry =
    Querynew(arguments.colNames,"CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_DATE,CF_SQL_VARCHAR,CF_ SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR");
    var qRow = QueryAddRow(tmpqry,
    Arraylen(arguments.colArray));
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    // Populate the query table
    QuerySetCell(tmpqry, 'SENSOR',
    colArray[qRowIndex]["SENSOR"], qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',arguments.colArray[qRowIndex]["TYPE"], qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(arguments.colArray[qRowIndex]["TIMESTAMP2"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',arguments.colArray[qRowIndex]["ORDER_BY_PARAM"],
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',
    colArray[qRowIndex]["READING_CODE"] , qRowIndex);
    QuerySetCell(tmpqry,
    'READING',arguments.colArray[qRowIndex]["READING"], qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',arguments.colArray[qRowIndex]["PK_READING"],
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',arguments.colArray[qRowIndex]["ALARM_STATUS"],
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    arguments.colArray[qRowIndex]["DURATION"], qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',arguments.colArray[qRowIndex]["DESCRIPTION"],
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    Rajesh
    SCMS
    India

  • How do I use a bean to determine which message bundle value to use?

    Is there a way to use a bean to determine which message from my message bundle I use? I want to be able to call my bean in JSF/JSP page, have the bean return a String, and use that String to pick a message from my message bundle properties file. Now I can do this:
    <h:outputText value="#{bundle.messageA}" />or this:
    <h:outputText value="#{bean.messageName}" />where I have a method on the bean like this:
    public String getMessageName(){
         if(someTest == true){
              return "messageA";
         } else {
              return "messageB";
    }I want to combine the two so my bean determines which message I pick. I want to do this because I want to keep all the text a user sees in the message bundle file. However, based on the state of the bean, I want to display different messages.
    Thanks in advance,

    Ah this way. So you want that much of nasty if statements in the bean instead? ;)
    Then make use of the fact that you also can access Map values using the brace notation. E.g.
    <h:outputText value="#{bundle[bean.messageKey]}"/>Where getMessageKey() returns the message key, e.g. 'messageA' or 'messageB' and so on.

  • I have an apple ID, I'm trying to use this to update and download apps etc. however, whenever I try this, it keeps asking me to use my old ID, which is attached to an email that no longer exists! I can't download or update anything! Help!

    I have an apple ID, I'm trying to use this to update and download apps etc. however, whenever I try this, it keeps asking me to use my old ID, which is attached to an email that no longer exists! I can't download or update anything! Help!

    You can log out of the currently logged in account by taping on the id in Settings > Store (Settings > iTunes & App Stores on iOS 6) and you can then log back in.
    If you updated your existing account with a new email address then that shoud 'refresh' it on it
    If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can redownload its content and download updates to its apps. You should be able to update an account's email address via this page : http://appleid.apple.com

Maybe you are looking for

  • How do i update

    How do I update my nano

  • Supress Mandatory field for Service Entry Sheet Creation

    Hi, I am using BDC for Service Entry Sheet creation as BAPI cannot fulfill the Business needs. During Recording when I click on Service Overview and click on Service Selection we provide the Model Service Specification Number there I can see the Serv

  • Importing .pst files from Outlook to Enourage2004

    Hi everyone, I am looking for the easiest way to help my mother-in-law transfer over her PC files to her brand new MacBook (1.83Ghz Intel Duo)- she is a first time Mac user. I personally have little experience using Entourage, so I am trying to find

  • Lightroom 5 not installing

    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2 error(s) ----------- Payload: AdobeLightroom

  • Unlock the background layer?

    Why does Elements automatically lock the background layer? Is there no way to unlock it? Sometimes I like to modify the background layer, move it around, and make other alterations to it. As it is, if I want to move the background, I must copy it ont