Referencing a property

Hi folks. Here's what I've got:
a class with a nice long list of properties of the int data type.
a function from which I want to reference the values contained in the properies to validate them.
in other words:
public class Whatever {
protected int num1;
protected int num2;
protected int num3;
protected int num4;
protected int num5;
....setter and getter methods...
public boolean isNumberValid(String propertyName) {
boolean isValid = false;
// I want some code here that will check the properties for validity, but how do I reference them
// based on the propertyName that I pass to this method?
Any assistance is greatly appreciated!

Instead of individual variables, you may want to consider using a Map to hold all the properties. In that way you can directly look them up by name.

Similar Messages

  • How does referencing a property of top-level control effect a sub-VI's timing?

    I've got a Graphic User Interface (GUI) with some buttons and text controls. First I bundle the references to these controls into a cluster and send it to a utility sub-VI where the cluster is saved in a switch register (the process called functional global). Then I have a 10 Hz loop in the GUI VI to monitor the controls locally. In a separate loop, I start a sub-VI that eventually leads to the utility sub-VI with the control references. When I use these references with the "Property | Value" it seems to effect the timing of the sub-VI.
    Currently I'm running the entire application using LabVIEW's default priority and execution system. It appears that when the sub-VI encounters the Property Node reference to an external control, the sub-VI loses its place at the head of the CPU queue, thus allowing other VI's to process.
    I'm considering assigning the utility sub-VI a higher priority and/or execution system but I'm not sure of the ramifications. I've read Application Note 114, "Using LabVIEW to Create Multithreaded VIs for Maximum Performance and Reliability", but it's dated July 2000 and does not seem to cover Property Nodes.
    Is there a connection between using Property Nodes for external controls and system timing or is my testing flawed?

    Property nodes and the VIs which use them all are forced to run in the User Interface execution system. This is what causes the change in your VI timing.
    To change the value of an indicator without "moving" the subVI to the UI execution system, try passing the data to the GUI VI by means of a queue. This should allow updates without waiting for the subVI to finish and without causing the slowdown. The Enqueue qnd Dequeue functiosn are quite fast so the added ovehead should have minimal effect on your timing.
    Lynn

  • Unable to resolve DB adapter runtime error for setMaxRaiseSize property

    I am writing files to DB in flowN activity using merge operation and getting merge operation failed error. Then I set the following 2 properties in .jca file:
    <property name="setMaxRaiseSize" value="100"/>
    <property name="setmaxTransactionSize" value="1000"/>
    Later I found that these are inbound properties and removed from .jca file, but still I am getting the following error with reference to the property setmaxTransactionSize.
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'merge' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBWriteInteractionSpec due to: Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setMaxRaiseSize is not defined for oracle.tip.adapter.db.DBWriteInteractionSpec Please verify the spelling of the property. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setMaxRaiseSize is not defined for oracle.tip.adapter.db.DBWriteInteractionSpec Please verify the spelling of the property. </detail></part><part name="code"><code>null</code></part></bindingFault></bpelFault>
    I dont know from where it is still referencing the property. Please help me on how to identify and resolve this error.
    Thanks.
    Regards
    Shyam
    Edited by: Shyam Patibandla on Sep 5, 2012 2:32 AM

    Hi,
    Please do following settings.
    1. Increase the consumer threads for file adapter.
    2. Increase the concurrency in receiver communication channel.
    3. Set poolWaitingTime in receiver communication channel.
    Refer SAP Note: 821267
    Regards,
    Gouri

  • Unable to bind to property

    Here is a snippit from my main.MXML.
    <mx:DataGrid id="StructGrid"
    dataProvider="{ArrayofStructs}" x="322" y="293" editable="true"
    itemEditEnd="processData1(event);">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="NAME"
    />
    <mx:DataGridColumn headerText="Last Name"
    dataField="LASTNAME" />
    <mx:DataGridColumn headerText="Age" dataField="AGE" />
    <mx:DataGridColumn headerText="Sex" dataField="SEX"
    itemEditor="valueObjects.HumanSex" sortable="false">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text selectable="false" width="100%"
    text="{data.SelectedSEX}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    Here is my HumanSex.mxml:
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300">
    <mx:ComboBox id="comboBox"
    selectedItem="{data.SelectedSEX}">
    <mx:dataProvider>
    <mx:String>Male</mx:String>
    <mx:String>Female</mx:String>
    <mx:String>Other</mx:String>
    </mx:dataProvider>
    </mx:ComboBox>
    </mx:VBox>
    Why do I keep getting this waring when I am running in
    Debug?
    unable to bind to property 'SelectedSEX' on class 'Object'
    (class is not an IEventDispatcher)

    You're referencing a property SelectedSEX on an object called
    'data'. Where is this property defined? I don't see it in your
    snippet.
    Tim

  • Unable to resolve DB adapter runtime error

    I am writing files to DB in flowN activity using merge operation and getting merge operation failed error. Then I set the following 2 properties in .jca file:
    <property name="setMaxRaiseSize" value="100"/>
    <property name="setmaxTransactionSize" value="1000"/>
    Later I found that these are inbound properties and removed from .jca file, but still I am getting the following error with reference to the property setmaxTransactionSize.
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'merge' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBWriteInteractionSpec due to: Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setmaxTransactionSize is not defined for oracle.tip.adapter.db.DBWriteInteractionSpec Please verify the spelling of the property. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setmaxTransactionSize is not defined for oracle.tip.adapter.db.DBWriteInteractionSpec Please verify the spelling of the property. </detail></part><part name="code"><code>null</code></part></bindingFault></bpelFault>
    I dont know from where it is still referencing the property. Please help me on how to identify and resolve this error.
    Thanks.
    Regards
    Shyam

    #include"FileSystem.h"//cannot include FileSystem.h
    The file is present in the projects folder of the working directory.
    Still couldnt resolve intellisence error. Kindly help!
    Perhaps it's getting confused because filesystem is the name of a compiler-supplied header.
    https://msdn.microsoft.com/en-us/library/hh874694.aspx
    What happens if you change the name of your header from filesystem.h to something else?
    - Wayne

  • How can I get path from af: inputFile or a uploadedFile

    Hi, there,
    I am getting error messages while sending attachment.
    I firstly tired getting the attachment from <af:inputFile> and attach it to the email. It failed. Then I put the file name directly into my code, still choose the same file from the <af:inputFile>, it failed again. However, from the code you can see, I can get system out println to print the file name, even the file content.
    I realized that I might need the file path, but I don't konw how I do get the path, should I write code in the backing bean of uploadedFile or in the send() in the Application Module ? How can I get the path?
    any advice is welcome and thank you very much!
    The system.out.println result is
    08/05/09 11:56:38 2javax.activation.FileDataSource@1674b36
    08/05/09 11:56:38 2.1 jkljlj
    08/05/09 11:56:38 2.2New Text Document.txt
    But the error message still says :
    nested exception is:
    class javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.io.FileNotFoundException: New Text Document.txt (The system cannot find the file specified)
    Here is my code:
    ViewObject issueView = getIssueView1();
    Row x = issueView.getCurrentRow();
    String fileName = "New Text Document.txt";
    System.out.println("1 " + fileName);
    System.out.println("1.5 " + x.getAttribute("attachmentName"));
    // msg.setText(body);
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(body);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // String attachmentName = (String)x.getAttribute("attachmentName");
    //if (attachmentName != null) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    DataSource source = new FileDataSource(fileName);
    System.out.println("2" + source);
    System.out.println("2.1 " + x.getAttribute("attachment"));
    mbp2.setDataHandler(new DataHandler(source));
    //mbp2.setFileName(source.getName());
    mbp2.setFileName(fileName);
    System.out.println("2.2" + fileName);
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    // send the message!
    getDBTransaction().commit();
    Transport.send(msg);
    System.out.println("\nMail was sent successfully.");
    } catch (Exception e) {
    System.out.println("Error: " + e.getMessage());
    }

    I wish you and others like you would say what you are trying to do, not how you are trying to do it. That would save those who would like to help the trouble of figuring it out. However, I'm going to make a guess at what you are doing. Tell me if I'm right.
    You are writing a page that lets a user construct an e-mail message. I assume that the page has fields like: addressee, subject, and message. It also has a field, defined as an <af:inputFile> component for getting a file to be added as an attachment to the e-mail.
    You will want to look at forum posts and tutorials about how to upload a file. You will see that the "value" attribute of an <af:inputFile> will normally contain EL referencing a property of a backing bean which has the UploadedFile class. This class has methods for getting the filename, MIME content type, and an InputStream containing the data in the uploaded file. These pieces of information are all you need to add an attachment to an e-mail. You don't need the file's path, which is a good thing, since that information is not available to you.
    I've never used Javamail, so I can't tell you exactly how to use it, but I do understand the basics of sending e-mail. What you are going to do is create a multi-part message. The first part will be the message itself. Subsequent parts are the attachments. Each attachment can have it's filename and MIME content type set. Then you read the file through it's InputStream and write it to the message content. If the file contains binary data, you will need to pass it through a filter that will encode it to the Base64 format - which represents your data as 7 bit bytes.
    You will NOT be using the database connection or anything from the data controls to send an e-mail, unless you also need to save a copy to the database. The connection that is needed for e-mail is a connection to an SMTP service. Ask your e-mail administrator for some help with this.
    You MIGHT want to write most of this code in your Model project as a business component. Then your backing bean would probably just pass the fields as parameters.

  • How to use Create input request Activity

     Hi,
     I want to get inputs from the users .
     I want to display a form were user can select a input from drop down list.
     That selected item i want to store it in a variable and use across the flow.
     How to do that using create input request or is there any other way to do that.

    You should be using "Input Request" to do what you are trying to do.
    Add "Create Input Request" to your workflow
    Configure the question you want the user to see in the Web Console. For example, "Select make of your dream car"
    Add "questions" to your input request. For the "drop-down" selection, chose to add new question of type "Select". This will bring up the dialog box that will allow you to configure the unique ID for your question, the free form text (label) and the list of selection choices to show in the drop-down.
    In the activities that follow "Create Input Request" you can retrieve the actual values that the user chose/typed by looking at the values in the [Workflow.Create Input Request.Task.Questions] table property. It has several columns: Id, Question, Value (that correspond to the fields you've configured)
    If you have Input request with several questions, you can use Select from Table activity to choose the specified question (by ID) that you want the value for. If you have only one question in the input request, you can get to the value (entered by the end user) by referencing this property [Workflow.Create Input Request.Task.Questions.First Row.Value]

  • Stacked canvas dimentions problem

    Hello
    Why if i had used an inherited stacked canvas and tried 2 change the height and width of it ...
    it doesn't change it remains with the same size,can any body answer me why it behaves like this...!?
    Thanks in advance,
    Regards,
    Abdetu...

    Abdetu,
    am getting a compilation error says: identifier 'viewport_width' Must Be Declared I must apologize, I misread the Forms Help which lists "VIEWPORT HEIGHT" and "VIEWPORT WIDTH". What I failed to recognize was that there was no underscore "_" between the words. Therefore, these are Properties of the stacked canvas that can only be set through the property palette - not the SET_VIEW_PROPERTY built-in. Sorry! :8}
    1. You have a Stacked Canvas that has a property class assigned to it or you subclassed the canvas into your form when you copied it from another form (like a template form).what is the difference i would like to know ?
    >
    The difference is where the source of the referenced propertes (property class) exist. For example, if you subclass the property class from a source Form (such as a template.fmb or an Object Library.olb) then the set of properties are dependent on the source object (.fmb or .olb) and you have to ensure the source object is in the FORMS_PATH. If you manually create the property class in the form there is no dependency on other objects. For the record, it is "Best Practice" to subclass Property Classes from a common source so you can standardize and reuse common sets of properties (as well as other shared objects).
    Vertically half of The content of the canvas wasn't seen the other half was blank gray ...!!! e.g. can't scroll horizontally to see the rest of it...!!! So it is cutting off some of the items on the stacked canvas? For example:
    Stacked canvas when viewed in Layout Editor
    |---------------------------------------|
    | Item 1[              ]                |
    | Item 2[              ]                |
    | Item 3[              ]                |
    | Item 4[              ]                |
    |---------------------------------------|
    Stacked canvas when viewed during runtime
    |---------------------------------------|
    | Item 3[              ]                |
    | Item 4[              ]                |
    |                                       |
    |                                       |
    |---------------------------------------|Have you tried to copy the stacked canvas instead of subclass it just to what happens?
    Craig...

  • Problem Transporting Web Forms

    Hi Experts,
    I have been trying to export the custom web forms from POC server to Dev server. But then i'm not able to find the web form in the target server..
    For exporting i followed this method..
    Content Administration  KM Content  Export  Pending Exports in the portal... n then i include the xml, xsl and even the whole of wpcconfig folder in the package .
    And on importing i fnd the xml and xsl file in the styles and types folder of 'etc'.. but then i do not find the web form .
    Can somebody please help me in this matter.
    Thanks,
    Archana.

    Thanks Vishal for the reply.
    i exported the xsl and xml files through content admin- km content admin- export. and
    I exported all the config changes that i had made while creating the web forms . But when i import the config changes on the tranget system .. it says.. there are errors..
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Cannot migrate the configuration object id "config://local/cm/ui/uicommand/NewsDisplayGroup_Sample" from configuration class "config://local/cm/ui/uicommand/UIGroupCommand" (step 2) as its values cannot be set
         Inner exception is:
         InvalidEntryException: Invalid commands: rating_2
         Inner exception is:
         ConfigException: Cannot migrate the configuration object id "config://local/cm/ui/uicommand/NewsDisplayGroup_Sample" from configuration class "config://local/cm/ui/uicommand/UIGroupCommand" (step 2) as its values cannot be set
              Inner exception is:
              InvalidEntryException: Invalid commands: rating_2
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/page/main_page" and property "allowedchildtypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/page/main_page" and property "allowedchildtypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_InfyA_DefaultPageTemplate" for the configuration object "config://target2/cm/wpc/page/main_page" and property "defaultlayout"
         Inner exception is:
         InvalidCheckConfigException: Cannot find configuration object "wpc_InfyA_DefaultPageTemplate" referenced by property "defaultlayout" of configuration object "configurable_[Archana_A03]_config://target3/cm/wpc/page/main_page" in folder "/cm/wpc/layout/layouts".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_InfyA_DefaultPageTemplate" for the configuration object "config://target2/cm/wpc/page/main_page" and property "defaultlayout"
              Inner exception is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_InfyA_DefaultPageTemplate" referenced by property "defaultlayout" of configuration object "configurable_[Archana_A03]_config://target3/cm/wpc/page/main_page" in folder "/cm/wpc/layout/layouts".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "iView,wpc_arch_article,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/containers/wpc_container_def_cell_A1" and property "allowedrestypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedrestypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "iView,wpc_arch_article,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/containers/wpc_container_def_cell_A1" and property "allowedrestypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedrestypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/compound/wpc_page" and property "allowedchildtypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/compound/wpc_page" and property "allowedchildtypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    can u please help me.??
    Thanks,
    Archana.

  • Error when trying to change CC list of email item in SP 2010 workflow

    When I tried to change the CC list of an email in a workflow that involved removing a few email ids and adding another id to the list, on publishing it I get the following error : 
    (0, 0) Activity 'ID3737' validation failed: Path resolved to Referenced activity Property 'ReturnValue' whose PropertyType 'Microsoft.SharePoint.Workflow.SPItemKey' does not match with the Target Type 'System.Int32'.)
    (0, 0) Activity 'ID3732' validation failed: Path resolved to Referenced activity Property 'ReturnValue' whose PropertyType 'Microsoft.SharePoint.Workflow.SPItemKey' does not match with the Target Type 'System.Int32'.)
    The workflow was originally created in SharePoint 2007 and later migrated to SharePoint 2010. Also the newly added id is listed by the account name instead of the email address similar to the existing email-ids.
    Can someone please shed some light on what the error means and why I am encountering this particular error?

    Hi,
    Pls check this link
    https://support.office.com/en-us/article/Troubleshoot-workflow-errors-8fcf47e5-a410-4714-880b-2611b18a56ce#bm6
    <section class="ocpSection" style="color:#363636;font-family:'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;font-size:10px;line-height:normal;">
    Cause
    One or more actions used in the workflow reference assemblies are not listed in the safe list in the web.config file.
    One or more actions used in the workflow reference assemblies are listed as unsafe in the safe list in the web.config file.
    </section><section class="ocpSection" style="color:#363636;font-family:'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;font-size:10px;line-height:normal;">
    </section>
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Filter ArrayCollection by index

    What is the syntax to reference the index in an ArrayCollection? I know if you remove  any filterFunction from an ArrayCollection it will be automatically ordered by index, but I want to explicitly refer to the index in a filterFunction:
    private function filterUsingIndexNum(item:Object):Boolean{
                           if(item.index < someValue) return true;
                           else return false;     
    // item.index is not referencing a property of the data in the ArrayCollection, I am actually trying to reference the index numder of the items in the ArrayCollection.
    Thanks.

    I just figured out the solution; actually, the correct syntax:
    private function filterUsingIndexNum(item:Object):Boolean{
                           if(theArraCollection.getItemIndex(item) < someValue) return true;
                           else return false;    

  • Applescript: Problem Using Load Script File. Please Help :-!

    My setup: file 1 is a script object and file 2 is the script that uses the script object in file 1. This seems straightforward, but I'm getting runtime errors when tryig to use the script object, whether looking at its properties or calling its handlers. The whole thing just doesn't work. What am I doing wrong?
    Question 1: Is the 'load script' statement correct in file 2? It took forever and looking at many examples to not get an error in that statement. I don't understand why the path string is 'as alias'.
    Question 2:  When loading a script and specifying its path, is there a way to start with the current path (of the executing script file). All the scripts are stored together, but so far, I've only seen commands for absolute paths or user or desktop, etc. how can I get the path of the currently running script?
    Question 3: Is the cURL syntax ok? I can't even get the script to run to that line, so I don't know if it will even execute.
    Thanks a million, in advance.
    Cheers,
    Mark
    File 1: this is the script library file
    script AR_Redeye
      -- IR Command URLs
              property outside_lights_ON : "http://..."
              property outside_lights_OFF : "http://..."
              on do_command(command_url)
              -- execute the url using cURL
                        set command_status to (do shell script "/usr/bin/curl -s -S  " & command_url) as string
              -- the url (when opened in a web browser) displays 'success' or 'fail'
                        return command_status
              end do_command
    end script
    File 2: The script that calls the handlers in the library file
    set arRedeye to load script (("Macintosh HD:Users:...:AR Redeye Class.scptd") as alias)
    tell arRedeye to do_command("http://...")

    If I may indulge you again, I've cleaned up the scripts according to your advice and made progress, but I am still receiving the following errors:
    Applescript Error:
    «script» doesn’t understand the do_command message.  (see below for where it occurs)
    I also get an error for referencing a property of the script object.
    Might you provide some insight as to why this is occurring?
    Still a little confused.
    Thanks,
    Mark
    =================================
    -- File AR_Redeye.scptd
    -- IR Command URLs
    property outside_lights_ON : "http://redeye..."
    property outside_lights_OFF : "http://redeye..."
    property all_AV_OFF : "http://redeye..."
    property airplay_all_rooms : "http://redeye..."
    on do_command(command_url)
      -- execute the url using cURL
              set command_status to (do shell script "/usr/bin/curl -s -S  " & (command_url as string)) as string
              return command_status
    end do_command
    -- End file
    ==================================
    -- Main Script File
    tell application "Finder" to set appPath to container of (path to me)
    set scriptPath to POSIX path of (appPath as text) & "AR Redeye Class.scptd"
    set arRedeye to (load script scriptPath)
    tell arRedeye to do_command(outside_lights_ON of arRedeye)
    -- the above line returns an error: «script» doesn’t understand the do_command message.
    -- also returns an error related to using the property outside_lights_ON of the arRedeye script object.
    -- Main Script File End

  • Target Unreachable, 'myPage' returned null

    Hi all,
    I am using Jdeveloper 11.1.1.0
    I have a page in adfc-config and when I run my application I have this error:
    Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'myPage' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    What's the problem?
    Thanks
    Andrea

    Andrea,
    we can't say without any knowledge about your page.
    All I see is that you are referencing a property myPage somewhere in your page which is not present in any bean or binding.
    Search the page for myPage and check if the bean is present.
    Timo

  • Missing Reference in textfield in BPM Presentation

    While creating a BPM presentation where a user needs to enter his details in textfield ,
    I am getting this error-"Missing Reference in textfield".

    Verify if the "referenced data" property is fullfilled in Properties dock, for that field.

  • Test-FederationTrust Failed to request delegation token

    When running the Test-FederationTrust cmdlet on a CAS server running Exchange 2010 SP1 (RU5v1) I get an error saying that there was an issue getting a delegation token.
    The actual output is here:
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : FederationTrustConfiguration
    Type : Success
    Message : FederationTrust object in ActiveDirectory is valid.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : FederationMetadata
    Type : Success
    Message : The federation trust contains the same certificates published by the security token service in its federat
    ion metadata.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : StsCertificate
    Type : Success
    Message : Valid certificate referenced by property TokenIssuerCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : StsPreviousCertificate
    Type : Success
    Message : Valid certificate referenced by property TokenIssuerPrevCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : OrganizationCertificate
    Type : Success
    Message : Valid certificate referenced by property OrgPrivCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : TokenRequest
    Type : Error
    Message : Failed to request delegation token.
    I re-ran the cmdlet with the 'verbose' parameter and got the following:
    VERBOSE: [12:49:06.110 GMT] Test-FederationTrust : Beginning processing &
    VERBOSE: [12:49:06.110 GMT] Test-FederationTrust : Instantiating handler with index 0 for cmdlet extension agent "Admin
    Audit Log Agent".
    VERBOSE: [12:49:06.110 GMT] Test-FederationTrust : Current ScopeSet is: { Recipient Read Scope: {{, }}, Recipient Write
    Scopes: {{, }}, Configuration Read Scope: {{, }}, Configuration Write Scope(s): {{, }, }, Exclusive Recipient
    Scope(s): {}, Exclusive Configuration Scope(s): {} }
    VERBOSE: Testing Federation Trust
    VERBOSE: [12:49:06.110 GMT] Test-FederationTrust : Resolved current organization: .
    VERBOSE: [12:49:06.126 GMT] Test-FederationTrust : Searching objects "extest_5580e4a3ff4a4" of type "ADUser" under the
    root "$null".
    VERBOSE: [12:49:06.126 GMT] Test-FederationTrust : Previous operation run on global catalog server
    'server.domain.net'.
    VERBOSE: [12:49:06.141 GMT] Test-FederationTrust : Requesting Federation Metadata from
    https://nexus.microsoftonline-p.com/FederationMetadata/2006-12/FederationMetadata.xml.
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Parsing Federation Metadata:
    <fed:FederationMetadata>
    <SNIPPED>
    </fed:FederationMetadata>
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Retrieved Token Issuer Uri from Federation Metadata:
    urn:federation:MicrosoftOnline.
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Retrieved Token Issuer Certificate from Federation Metadata:
    B02FEAAC45742783AA61FC8DB7D0C5E0FF415239.
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Retrieved Token Issuer Previous Certificate from Federation
    Metadata: 089D50FCF27AE9642BFCD95384FD0BB9C14427A4.
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Retrieved Token Issuer End Point from Federation Metadata:
    https://login.microsoftonline.com/extSTS.srf.
    VERBOSE: [12:49:06.704 GMT] Test-FederationTrust : Retrieved Web Requestor Redirect End Point from Federation Metadata:
    https://login.microsoftonline.com/login.srf.
    VERBOSE: [12:49:07.423 GMT] Test-FederationTrust : Failed to request delegation token. Reason: <S:Fault
    xmlns:S="http://www.w3.org/2003/05/soap-envelope"><S:Code><S:Value>S:Sender</S:Value><S:Subcode><S:Value>wst:InvalidReq
    uest</S:Value></S:Subcode></S:Code><S:Reason><S:Text xml:lang="en-US">Invalid
    Request</S:Text></S:Reason><S:Detail><psf:error
    xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault"><psf:value>0x80048820</psf:value><psf:internal
    error><psf:code>0x80047867</psf:code><psf:text>Server received a SAML token from an unrecognized issuer.
    </psf:text></psf:internalerror></psf:error></S:Detail></S:Fault>
    Microsoft.Exchange.Net.WSTrust.SoapFaultException: Soap fault exception received.
    at Microsoft.Exchange.Net.WSTrust.SoapClient.Invoke(IEnumerable`1 headers, XmlElement bodyContent)
    at Microsoft.Exchange.Net.WSTrust.SecurityTokenService.IssueToken(DelegationTokenRequest request)
    at Microsoft.Exchange.Management.SystemConfigurationTasks.TestFederationTrust.GetDelegationToken(ADUser user, Uri
    target, SecurityTokenService securityTokenService)
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : FederationTrustConfiguration
    Type : Success
    Message : FederationTrust object in ActiveDirectory is valid.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : FederationMetadata
    Type : Success
    Message : The federation trust contains the same certificates published by the security token service in its federat
    ion metadata.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : StsCertificate
    Type : Success
    Message : Valid certificate referenced by property TokenIssuerCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : StsPreviousCertificate
    Type : Success
    Message : Valid certificate referenced by property TokenIssuerPrevCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : OrganizationCertificate
    Type : Success
    Message : Valid certificate referenced by property OrgPrivCertificate in the FederationTrust object.
    RunspaceId : 93c95e81-7679-4937-8c78-dc29e3bab37a
    Id : TokenRequest
    Type : Error
    Message : Failed to request delegation token.
    VERBOSE: [12:49:07.423 GMT] Test-FederationTrust : Admin Audit Log: Entered Handler:OnComplete.
    VERBOSE: [12:49:07.423 GMT] Test-FederationTrust : Ending processing &
    I have removed/deleted the federation and re-created it several times to no avail.
    Any suggestions?
    Regards,
    Luke 

    Hi All,
    I have faced the same issue in test-federationtrust, to solve this issue i have  tried mentioned links only. it works for me !!!
    Issue Description:
    Issue1:
    Id         : FederationMetadata
    Type       : failed
    Issue 2:
    Id         : TokenRequest
    Type       : Error
    Message    : Failed to request delegation token.
    http://russburden.wordpress.com/category/microsoft-federation-gateway/
    http://vanhybrid.com/2014/01/12/freebusy-in-a-hybrid-environment-fail-and-test-federationtrust-returns-error-failed-to-validate-delegation-token/
    http://support.microsoft.com/kb/2555008
    http://community.office365.com/en-us/f/158/t/5598.aspx
    First of all, we are facing this issue, where Internet connectivity of Exchange Hybrid Server is coming from Webproxy, so need to define Webproxy in Exchange Powershell
    First Exchange Powershell will be
    Set-ExchangeServer -Identity Exchhub01 -InternetWebProxy
    http://10.10.10.10:3120/
    Note: Change Exchange Servername and Proxy IP and Port no as per your enviornment.
    Second Command will be
    Get-FederationTrust | Set-Federationtrust -RefreshMetaData
    Third Command Will be
    Test-FederationTrust
    or
    Test-FederationTrust -UserIdentity <OnPremisesMailbox> -verbose
    Note: Test-federation trust will show you the status of Federation Certificate, it should be valid, it takes 5-8 hours to become valid from ExpiryThanks
    Kirpal Singh

Maybe you are looking for

  • Can't open project - incompatible format???

    I just did a project on DVD studio pro, and ultimately made a disk image of my final DVD (standard procedure for me.) Anyway, I opened up the disk image and was checking it out on the DVD player (on my Mac) and realized I forgot to set one of the but

  • Single tablespace or full database in 10g

    Hi, Which is the best regarding performance...what ever it may be...when doing hot backup...which is the best in all ways.. (a) putting single tablespace in backup mode and copying or (b) Putting total database in Backup mode and copying... can anybo

  • I have trying to have my contacts and calendar info transferred to my new 4s from my 3g

    Please help.  I have been trying to transfer my contacts and calendar info from my old phone 3GS which I had already updated to iCloud-to my new iPhone 4s.   I have one apple I'd for I tunes and now 2 apple is for me.com.  Thanks

  • Metronome BPM Doesn't Line Up

    The metronome on Logic Express 8 is completely off for me. If I import anything at a given tempo, and set the computer metronome to the same tempo, it doesn't line up. For example, I downloaded the Radiohead "Reckoner" remix stems, which listed the B

  • Cannot read form GLXSTBKS.fmx

    Hello, I have a R12 (Linux) Vision install on my machine. I am trying to view the Set of Books definition but the application says "Cannot Read Form GLXSTBKS.fmx". I looked in GL_TOP and I could not locate the fmx file, I also looked into AU_TOP and