Dot notation in Forms6i ??

I would like to make a generic program unit that would loop through all the text items and change thier properties to show up with no BEVEL, blending into the background color and not being editable. This would be a query in report or display only mode (not a real Oracle Report, I don't want to maintain two different objects - a FORM for editing and a REPORT for display only). To EDIT I would have a button to change all the properties to the default or original ones.
I used to be able to do this in Power Builder, way back when, with dot notation.
WINDOW.FORM.BLOCK.TEXT_ITEM.NAME.PROPERTY := 'STRING';
and be able to change all the properties that were available for the TEXT_ITEMs in a loop of some kind.
Any information would be appreciated. Bill :)

All the information you need is available through GET_BLOCK_PROPERTY and GET_ITEM_PROPERTY etc.
You can obtain the next iten relative to the current item and so on - not as neat as dot notation but workable

Similar Messages

  • Dot notation in cfc

    Hi,
    Can someone help me with this?
    I have a directory that uses a dot in its name, like
    robedob.com as the name of the directory. in this directory I have
    a cfc directory. How can I use dot notation to invoke a cfc object
    like that:
    <cfobject component="dev.[directory name].cfc.Client"
    name="ObjClient"> if the directory name has a dot in it?
    Will this work? <cfobject
    component="dev.robedob.com.cfc.Client" name="ObjClient">

    I am confused. If in the base of your web site, you have a
    folder called
    cfcs/my/component.cfc. All you should have to do is call it
    by:
    cfcs.my.component or <cfobject name=MyObject"
    component="cfcs.my.component"/>
    Where ever the first index.cfm for your site is located (the
    home page) is
    the base of your site.
    I am on shared hosting and the path to my cfcs are
    pet/store/cfcs/. It comes
    up as www.mysite.com/pet/store/cfcs.
    The location to my component (myComponent.cfc) is then:
    <cfobject name="MyPetObject"
    component="pets.store.cfcs.myComponent"/>
    Does that help?

  • Email with dot notation help

    I recently made a new email address at google and it contained a dot notation, this seems to be the only difference between the two addresses, with the new address i can't login to the gmail pop server, the strange part it my origanal email will connect to the server fine. is this a mail problem or something on gmail's side. Thanks for your help.
    15" Powerbook G4   Mac OS X (10.4.6)  

    I use a dot in my gMail address without any problems.
    Make sure that you have set up Pop forwarding in your gmail account.
    Login to Gmail, click on settings, top right, Then click on POP and Forwarding, in the middle.
    Then in the POP Download section, select what you want to do.
    Will
    1GHz G4, 15" PowerBook, Airport Extreme & Express, 1G iPod Mini   Mac OS X (10.4.6)   Please help others by marking questions as Answered (+perhaps Solved or Helpful)

  • Problem with dot notation in wsdl-file

    Hello,
    I want to consume a soap web service that is created in the sap system within a ios app. I am generating the stub files with sudzc. Unfortunately sudzc is making classes with a dot in its name. This is caused by the wsdl-file:
    <wsdl:types>
    <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:simpleType name="RfcException.Message.Number">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    Does someone know how to delete the dot in RfcException.Message?
    Greetings, Vanessa

    Hi Vanessa,
    In WSDL file , value of tag "<wsdl:service name"  decides the Stub class name .
    Remove dot from this tag.
    Many Thanks,
    Jitendra

  • Known issue..?  dot notation in XSD..

    I have an HL7 exported schema.. very large 1.5 MB
    In my sample payload I have good data:
    <receiveInput_Read_Input>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ADT_A01">
    <ADT_A01 xmlns="http://www.edifecs.com/xdata/200" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" XDataVersion="2.0" Standard="HL7" Version="2.3.1" CreatedDate="2005-08-16T16:52:26" CreatedBy="ECXEngine_826" GUID="{1A2726C6-B00E-DA11-8F7A-080020C8D296}">
    <MSH>
    <MSH.1>|</MSH.1>
    <MSH.2>^~\&</MSH.2>
    <MSH.3>
    <HD.1>#Property(MessageSendingApp)#</HD.1>
    </MSH.3>
    <MSH.4>
    <HD.1>#Property(MessageSendingFacility)#</HD.1>
    </MSH.4>
    <MSH.5>
    <HD.1>#Property(MessageReceivingApp)#</HD.1>
    </MSH.5>
    <MSH.6>
    <HD.1>#Property(MessageReceivingFacility)#</HD.1>
    </MSH.6>
    <MSH.7>
    <TS.1>20050804162010</TS.1>
    </MSH.7>
    <MSH.8 xsi:nil="true" />
    <MSH.9>
    <MSG.1>ADT</MSG.1>
    <MSG.2>A01</MSG.2>
    </MSH.9>
    <MSH.10>10010</MSH.10>
    <MSH.11>
    <PT.1>#Property(ProcessingID)#</PT.1>
    </MSH.11>
    <MSH.12>
    <VID.1>2.3.1</VID.1>
    </MSH.12>
    <MSH.13 xsi:nil="true" />
    <MSH.14 xsi:nil="true" />
    <MSH.15>AL</MSH.15>
    <MSH.16>ER</MSH.16>
    <MSH.17>#Property(CountryCode)#</MSH.17>
    <MSH.18>ASCII</MSH.18>
    <MSH.19>
    <CE.1>ENG</CE.1>
    </MSH.19>
    </MSH>
    <PID>
    <PID.1>1</PID.1>
    <PID.2 xsi:nil="true" />
    <PID.3>
    <CX.1>A0000010</CX.1>
    </PID.3>
    <PID.4 xsi:nil="true" />
    <PID.5>
    <XPN.1>
    <FN.1>TEST, Patient 01_10</FN.1>
    </XPN.1>
    </PID.5>
    <PID.6 xsi:nil="true" />
    <PID.7>
    <TS.1>20001001</TS.1>
    </PID.7>
    <PID.8>F</PID.8>
    </PID>
    <PV1>
    <PV1.1>1</PV1.1>
    <PV1.2 xsi:nil="true" />
    <PV1.3 xsi:nil="true" />
    <PV1.4 xsi:nil="true" />
    <PV1.5 xsi:nil="true" />
    <PV1.6 xsi:nil="true" />
    <PV1.7 xsi:nil="true" />
    <PV1.8 xsi:nil="true" />
    <PV1.9 xsi:nil="true" />
    <PV1.10 xsi:nil="true" />
    <PV1.11 xsi:nil="true" />
    <PV1.12 xsi:nil="true" />
    <PV1.13 xsi:nil="true" />
    <PV1.14 xsi:nil="true" />
    <PV1.15 xsi:nil="true" />
    <PV1.16 xsi:nil="true" />
    <PV1.17 xsi:nil="true" />
    <PV1.18 xsi:nil="true" />
    <PV1.19>
    <CX.1>10010</CX.1>
    </PV1.19>
    </PV1>
    </ADT_A01>
    </part>
    </receiveInput_Read_Input>
    This is my input variable w/in my bpel proc. When I try to access that data via xPath, I get:
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <part name="summary">
    <summary>empty variable/expression result. xpath variable/expression expression "bpws:getVariableData('receiveInput_Read_Input','ADT_A01','/ns4:ADT_A01/ns4:MSH/ns4:MSH.7/ns4:TS.1')" is empty at line 48, when attempting reading/copying it. Please make sure the variable/expression result "bpws:getVariableData('receiveInput_Read_Input','ADT_A01','/ns4:ADT_A01/ns4:MSH/ns4:MSH.7/ns4:TS.1')" is not empty.</summary>
    </part>
    </selectionFailure>
    I am wondering if the '.' in the naming convention is causing it to choke.. I have tried an assign, xsl transformation, etc.
    Insight appreciated!!!!!!!!!

    I just tried a simplified version of your code and it worked fine.
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.1.item"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.1.item"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.2/client:level.2.item"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.2.level.2.item"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.2/client:item.2"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.2.item.2"/>
    </copy>
    </assign>
    I suspect it may be something else in the schema that is causing it to break.
    Can you see the input message in the BPEL console and verify that it is correct?
    Have you tried selecting /ns4:ADT_A01/ns4:MSH/ns4:MSH.1 to make sure you can get that?
    Have you tried selecting /ns4:ADT_A01/ns4:MSH/ns4:MSH.5/ns4:HD.1 to make sure you can get that?

  • Which IOS for BGP dot notation? (7206VXR)

    Hello there! I'm currently using a Cisco 7206VXR (NPE-G1) and need to begin peering with a BGP neighbour that is using a 4-byte ASN. It looks like the firmware I'm using is too old to support this (it's from 2006!) and am wondering what IOS release is best to be using. I'm currently using 12.4(9)T1 for the IOS. The bootloader and rommon look pretty old too. Will I need to upgrade those as well? Should I be jumping right into the 15.x releases or should I stick on 12.4 T releases? Here is an output from a "show version"
    Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 12.4(9)T1, RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2006 by Cisco Systems, Inc.
    Compiled Wed 30-Aug-06 20:48 by prod_rel_team
    ROM: System Bootstrap, Version 12.3(4r)T1, RELEASE SOFTWARE (fc1)
    BOOTLDR: 7200 Software (C7200-KBOOT-M), Version 12.3(23), RELEASE SOFTWARE (fc5)

    Hi,
    BGP was supported starting from the SP feature set (not in IP Base and IP Voice)
    Beginning from 12.4(4)T, BGP is supported with advance security feature set.
    Begining from 12.4(11)T, BGP is supported with even IP base and IP voice feature set.
    Please use Cisco Feature Navigator to find information about Cisco IOS software images and the supported features for your platform(s):
    http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp
    BR,
    Mohammed Mahmoud.

  • Using a dot "." in defining/scoping variables

    I've always felt it was a best practice to scope EVERY CF
    variable and still do. However, a new co-worker to me feels that
    using a DOT in variable names could cause problems. I completely
    disagree but would like others opinions. To me scoping variables is
    absolutely a best practice.
    She specifically referred to the article below but to me the
    point of this article was about using "primitive" variables such
    as: "var1.var2.var3".
    http://www.coldfusionmuse.com/index.cfm/2006/3/14/dot.operator
    Looking forward to others opinion especially seasoned CF
    folks from Adobe.

    NUHuskers65 wrote:
    > I've always felt it was a best practice to scope EVERY
    CF variable and still
    > do. However, a new co-worker to me feels that using a
    DOT in variable names
    > could cause problems. I completely disagree but would
    like others opinions.
    > To me scoping variables is absolutely a best practice.
    >
    I think this co-worker misunderstood the point of that
    article as
    surmised in its last paragraph, and I quote:
    "The solution is to avoid using dotted notation for primitive
    variables.
    Only use dotted notation for variable naming when you intend
    to create a
    structure."
    All variable scopes in modern, aka MX, aka Java Based,
    ColdFusion are
    structures. You use the dot [.] character to specify the keys
    of
    structures. So you are doing what you are supposed to do.
    This article refers to older versions of ColdFusion where all
    the
    variable scopes where *not* structures and you could get away
    with dots
    in your primitive, i.e. non-structure, variable names. It
    also tells
    how one can still do this by using array notation.
    This is a bad practice and should be avoided for the very
    reason that in
    modern ColdFusion, dots are meant to be interpreted as
    structures. It
    does not say to not even use dots for these structures where
    they are
    meant to be used.

  • Dont want to hard code the -Djava.class.path...notation question

    Hello everyone,
    I have a c++ program that is compiled into a DLL file. It calls the JNI_CreateJavaVM. I have the whole thing working but now I need to port it and the jar file to another machine.
    right now i am setting the options this way:
    #define USER_CLASSPATH "c:\\javaClasses\\intec.jar.zip" /* where PRLocalBridge.class is */
    #define PRCLASS "com/intec/intecapi/PRLocalBridge"
    bool PRLocalBridgeMain(){
         JavaVMOption options[1];
         options[0].optionString = "-Djava.class.path=" USER_CLASSPATH;
         vm_args.version = JNI_VERSION_1_4;//0x00010002;
         vm_args.options = options;
         vm_args.nOptions = 0;
         vm_args.ignoreUnrecognized = JNI_TRUE;
        /* Create the Java VM */
        res = JNI_CreateJavaVM(&jvm, (void**)&env,&vm_args);
        if (res < 0) {
         return (bool*)errorHandler('b', CANT_INVOKE_JVM);
        cls = env->FindClass(PRCLASS);
    }where USER_CLASSPATH is hardcoded directly to where the jar
    file is located. in other machines, it may not be loaded
    in that file structure. how do i softcode the path?
    ive put the jar in my classpath but that doesnt seem to work
    (unless i didnt have USER_CLASSPATH set properly). Thanks
    in advance :)
    txjump

    hi bschauwe,
    thanks for the suggestions! i was hoping you would reply. You have helped some others with classpath questions. :)
    since its a dll, can you pass it values?
    we do have an ini file that is already created but the file parser is in java so i would have to write another one in c. id like to stay away from that though. cause if it gets messed up or goes missing, clients wont be able to reach the java program, and in turn the database.
    the classpath environment variable sounds like a good idea...will check into that. eventually we plan to wrap our software up in installshield so that would really be nice. clients could be ignorant of environment variables and still be able to run everything.
    my solution for now has been to find my jar file by recursively searching the c drive. and use GetFilePath() to get the full path and pass that to JNI_CreateJavaVM. i did get it to work...just wondering if this is a good idea.
    i was thinking that if the dll is in the same folder as the jar file i could just use dot notation but that just doesnt seem like a good idea to make that assumption. but i think java does something similar 'cause Sun says not to move the java.dll file.
    thanks for your input,
    txjump

  • Creating view to get first row for each table !!

    I am having tables(more than 10) which are related using foreign key and primary key relationship.
    Example:
    Table1:
    T1Prim T1Col1 T1Col2
    Table2
    T2For T2Prim T2Col1 T2Col2 T2Col3
    (here T2For will have value same as T1Prim and in my design it has same column name i.e. T1Prim)
    Table3
    T3For T3Prim T3Col1 T3Col2 T3Col3
    (here T3For will have value same as T2Prim)
    and so on.
    The data in the tables is like For table1 there will be one record, for table2 there will be one record and for table 3 there are more than one records.
    Can i view either the first record for each of them or all records from each of them by writing the following view.
    I have written a view like this:
    Create or replace view test (T1Prim,T1Col1, T1Col2,T2Prim,T2Col1 T2Col2, T2Col3, T3Prim,T3Col1, T3Col2, T3Col3)
    As
    Select
    Table1.T1Prim,
    Table1.T1Col1,
    Table1.T1Col2,
    Table2.T2Prim,
    Table2.T2Col1,
    Table2.T2Col2,
    Table2.T2Col3,
    Table3.T3Prim,
    Table3.T3Col1,
    Table3.T3Col2,
    Table3.T3Col3
    From
    Table1,
    Table2,
    Table3
    where
    Table1.Prim = Table2.For
    and Table2.Prim = Table3.For
    When i ran the select statement on the view I am not getting any data. Whereas there is data when select is ran on individual table.
    Can someone please tell me where i am goofing.
    Thanks in the anticipation that i will get some hint to solve this.
    Eagerly waiting for reply.
    Thanks !!

    I mean use a collection :
    Collection Methods
    A collection method is a built-in function or procedure that operates on collections and is called using dot notation. The methods EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, NEXT, EXTEND, TRIM, and DELETE help generalize code, make collections easier to use, and make your applications easier to maintain.
    EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, and NEXT are functions, which appear as part of an expression. EXTEND, TRIM, and DELETE are procedures, which appear as a statement. EXISTS, PRIOR, NEXT, TRIM, EXTEND, and DELETE take integer parameters. EXISTS, PRIOR, NEXT, and DELETE can also take VARCHAR2 parameters for associative arrays with string keys. EXTEND and TRIM cannot be used with index-by tables.
    For more information, see "Using Collection Methods".
    Syntax
    Text description of the illustration collection_method_call.gif
    Keyword and Parameter Description
    collection_name
    This identifies an index-by table, nested table, or varray previously declared within the current scope.
    COUNT
    COUNT returns the number of elements that a collection currently contains, which is useful because the current size of a collection is not always known. You can use COUNT wherever an integer expression is allowed.
    For varrays, COUNT always equals LAST. For nested tables, normally, COUNT equals LAST. But, if you delete elements from the middle of a nested table, COUNT is smaller than LAST.
    DELETE
    This procedure has three forms. DELETE removes all elements from a collection. DELETE(n) removes the nth element from an index-by table or nested table. If n is null, DELETE(n) does nothing. DELETE(m,n) removes all elements in the range m..n from an index-by table or nested table. If m is larger than n or if m or n is null, DELETE(m,n) does nothing.
    EXISTS
    EXISTS(n) returns TRUE if the nth element in a collection exists. Otherwise, EXISTS(n) returns FALSE. Mainly, you use EXISTS with DELETE to maintain sparse nested tables. You can also use EXISTS to avoid raising an exception when you reference a nonexistent element. When passed an out-of-range subscript, EXISTS returns FALSE instead of raising SUBSCRIPT_OUTSIDE_LIMIT.
    EXTEND
    This procedure has three forms. EXTEND appends one null element to a collection. EXTEND(n) appends n null elements to a collection. EXTEND(n,i) appends n copies of the ith element to a collection. EXTEND operates on the internal size of a collection. So, if EXTEND encounters deleted elements, it includes them in its tally. You cannot use EXTEND with index-by tables.
    FIRST, LAST
    FIRST and LAST return the first and last (smallest and largest) subscript values in a collection. The subscript values are usually integers, but can also be strings for associative arrays. If the collection is empty, FIRST and LAST return NULL. If the collection contains only one element, FIRST and LAST return the same subscript value.
    For varrays, FIRST always returns 1 and LAST always equals COUNT. For nested tables, normally, LAST equals COUNT. But, if you delete elements from the middle of a nested table, LAST is larger than COUNT.
    index
    This is an expression that must yield (or convert implicitly to) an integer in most cases, or a string for an associative array declared with string keys.
    LIMIT
    For nested tables, which have no maximum size, LIMIT returns NULL. For varrays, LIMIT returns the maximum number of elements that a varray can contain (which you must specify in its type definition).
    NEXT, PRIOR
    PRIOR(n) returns the subscript that precedes index n in a collection. NEXT(n) returns the subscript that succeeds index n. If n has no predecessor, PRIOR(n) returns NULL. Likewise, if n has no successor, NEXT(n) returns NULL.
    TRIM
    This procedure has two forms. TRIM removes one element from the end of a collection. TRIM(n) removes n elements from the end of a collection. If n is greater than COUNT, TRIM(n) raises SUBSCRIPT_BEYOND_COUNT. You cannot use TRIM with index-by tables.
    TRIM operates on the internal size of a collection. So, if TRIM encounters deleted elements, it includes them in its tally.
    Usage Notes
    You cannot use collection methods in a SQL statement. If you try, you get a compilation error.
    Only EXISTS can be applied to atomically null collections. If you apply another method to such collections, PL/SQL raises COLLECTION_IS_NULL.
    You can use PRIOR or NEXT to traverse collections indexed by any series of subscripts. For example, you can use PRIOR or NEXT to traverse a nested table from which some elements have been deleted.
    EXTEND operates on the internal size of a collection, which includes deleted elements. You cannot use EXTEND to initialize an atomically null collection. Also, if you impose the NOT NULL constraint on a TABLE or VARRAY type, you cannot apply the first two forms of EXTEND to collections of that type.
    If an element to be deleted does not exist, DELETE simply skips it; no exception is raised. Varrays are dense, so you cannot delete their individual elements.
    PL/SQL keeps placeholders for deleted elements. So, you can replace a deleted element simply by assigning it a new value. However, PL/SQL does not keep placeholders for trimmed elements.
    The amount of memory allocated to a nested table can increase or decrease dynamically. As you delete elements, memory is freed page by page. If you delete the entire table, all the memory is freed.
    In general, do not depend on the interaction between TRIM and DELETE. It is better to treat nested tables like fixed-size arrays and use only DELETE, or to treat them like stacks and use only TRIM and EXTEND.
    Within a subprogram, a collection parameter assumes the properties of the argument bound to it. So, you can apply methods FIRST, LAST, COUNT, and so on to such parameters. For varray parameters, the value of LIMIT is always derived from the parameter type definition, regardless of the parameter mode.
    Examples
    In the following example, you use NEXT to traverse a nested table from which some elements have been deleted:
    i := courses.FIRST; -- get subscript of first element
    WHILE i IS NOT NULL LOOP
    -- do something with courses(i)
    i := courses.NEXT(i); -- get subscript of next element
    END LOOP;
    In the following example, PL/SQL executes the assignment statement only if element i exists:
    IF courses.EXISTS(i) THEN
    courses(i) := new_course;
    END IF;
    The next example shows that you can use FIRST and LAST to specify the lower and upper bounds of a loop range provided each element in that range exists:
    FOR i IN courses.FIRST..courses.LAST LOOP ...
    In the following example, you delete elements 2 through 5 from a nested table:
    courses.DELETE(2, 5);
    In the final example, you use LIMIT to determine if you can add 20 more elements to varray projects:
    IF (projects.COUNT + 20) < projects.LIMIT THEN
    -- add 20 more elements
    Related Topics
    Collections, Functions, Procedures
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_elems7.htm#33054
    Joel P�rez

  • Why would I get ReferenceError #1065: "Variable title is not defined."

    Well of course it's not defined.  It's a dynamic class, and strict mode compilation is turned off so that I don't have to declare the property to compile it.
    I've created a library item named "Page" with a single TextField instance named "title".
    Page's class is defined in an ActionScript file, and it's assigned to the library item in export for ActionScript.
    Page's ActionScript file defines the class as a "dynamic" class, so I should not be getting this runtime error.  I turned off strict mode compiling, since it seems to be designed to check the presense of property definitions at compile time for dynamic classes like MovieClip.
    public dynamic class Page extends MovieClip
        public function Page()
            super();
            var text:String = title.text; //title can be moused over in the debugger here and shows the correct value, but the flash player throws a runtime error when it tries to access it, but it shouldn't because this is a dynamic class.
    So why am I getting a runtime error for the field "title".  It makes no sense, because if I step to that line in the FlashDevelop debugger and hold the mouse over "title", it shows that it is in fact the instance of the TextField that I'm trying to access.  Yet the player throws an error when I actually try to access it.
    Is it a problem or limitation with the access style (i.e. would it work fine if I accessed it as "this.title" or "this["title"]"?

    Nevermind.  This was apparently a browser caching issue.   The Page base class is defined in the main interface swf, and is externally referenced through its swc in an external "lesson" file that declare a subclass of Page.  It was this custom subclass of Page which was throwing the error (basically the same as the simplified example I wrote for my post, where it simply tried to access "title" as a dynamic property of the Page).  What happened is the browser was caching an old version of the lesson file with the old definition of the class that was not declared as dynamic.  I had received the error before, then updated the class, then I was surprised to see the error persist.  It suddenly dawned on me that the browser was probably caching the old version, so I cleared the cache and it seems to work fine now.
    Actually, it is a problem after all.  I forgot I had updated it to use "this.title" syntax on the page I tested after clearing the cache, but the other pages that try to access title directly as "title" still throw the error.  So it seems to be some sort of quirk in how flash accesses properties of a dynamic class.  If you try to access them direclty, it must do so in a way that requires the property to be defined, but if you access it via "this.title" or this["title"], the it seems to resolve the property value without throwing the error.
    This sucks.  I was really trying to not have to write "this." for every property.  The entire display list is dynamically generated from some custom XML that allows me to call constructors and set complex type-safe properties, and during construction it was copying each item into a Dictionary by name.  This Dictionary was then assigned to the page class as "items", so I was accessing each display object as "item.name".  Then I got the brilliant idea of just making Page and its subclasses "dynamic" so that I could just add the DIctionary values on the Page instance itself.  I thought I would be able to access the dyamic properties just by their name such as "title", but lo and behold, Flash strikes again, and I have to use dot notation anyway.  What do you all think?  Any solutions?

  • How to use cfloop index value as part of another variable

    Hello,
    I have a RATE form that first asks "how many rates will you
    be adding?" that answer generates a series of form elements based
    on the answer. You then have a form grid to populate, 3 values for
    each rate (price, code, name).
    This part works fine. The issue is now I need to INSERT the
    values into the table, so I need to use the INDEX value of the
    cfloop to recreate the amount (and names) of the fields in the
    INSERT statement. How do I escape, or re-create the evaluated form
    elements ( in which their count is #i# as the loop goes) when I
    need to evaluate for #i# AND evaluate for #form.sku_i_name# at the
    same pass?
    I am passing, for example, #form.sku_2_Name# where that might
    equal "Half Page". The number 2 in that variable was assigned
    during the form creation by the current index of a cfloop. Since my
    action (insert) page does not know how many (out of 50 possible)
    sku's are coming, how do I use the skuCount (another hidden value
    passed as well) to create a proper INSERT SQL command when I need
    to eval the form element and the index at the same time?
    Obviously #sku_#i#_Name# does not work, and #sku_i_Name# does
    not either... I know this can be done, and that I am just doing it
    wrong.
    Thanks for any help!

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

  • Associative Array (Object) problems

    Here is the function i'm dealing with
    i'm reading in a delimited string and using indexed arrays to
    break them up and assign the keys and values to an associative
    array in a loop.
    i'm using variables in the loop and the array loads as
    expected in the loop
    but outside the loop, the only key is the variable name and
    the value is undefined
    this is true using dot or array notation, as well as literal
    strings for the keys
    any help is appreciated
    watchSuspendData = function (id, oldval, newval):String {
    //the incoming suspendData string is delimited by the
    semicolon;
    //newval is: firstValue=Yes;captivateKey=1
    var listSuspendData:Array = newval.split(";"); // convert it
    to a list of key/value pairs
    if (listSuspendData.length > 0){
    //line 123: listSuspendData.length is: 2
    for (i=0; i < listSuspendData.length; i++){ //for each
    key/value pair
    var keyValArray:Array = new Array();
    var myNameValue:String = listSuspendData
    //line 127: listSuspendData is: firstValue=Yes
    keyValArray = myNameValue.split("="); // split 'em on the
    equal sign
    var myKey:String = keyValArray[0];
    var myVal:String = keyValArray[1];
    //keyValArray[0] is: firstValue
    //keyValArray[1] is: Yes
    // store the key and the value in associative array
    suspendDataArray.myKey = myVal;
    trace("line 134: suspendDataArray is: " +
    suspendDataArray.myKey);
    // trace is line 134: suspendDataArray is: Yes on the first
    pass and 1 on the second
    //the below loop always returns one array key: myKey and the
    value as undefined
    for(x in suspendDataArray){
    trace("x is: " + x); //x is: myKey
    trace("the val is: " + suspendDataArray.x); //the val is:
    undefined
    } //end for
    return newval;

    on lines 12-13 i assign the key=value pair to string
    variables
    then on lines 17-18 i assign those values to the associative
    array using dot notation
    the trace seems to work there
    the problem is that when the procedure exits the for loop,
    the associative array only has one key (myKey) and no value
    (undefined)
    all the documentation i've read shows using these types of
    arrays with either non-quoted property names like:
    myAssocArray.myKey = "somevalue";
    or
    myAssocArray[myKey] = "somevalue";
    i tried assigning the key/value pairs directly from the
    indexed arrays, but the result was always undefined
    like this:
    suspendDataArray.keyValArray[0] = keyValArray[1]
    or
    suspendDataArray[keyValArray[0]] = keyValArray[1]
    i even tried building a string in the loop and trying to
    assign all the pairs at once using the curly brace
    this is pretty wierd behavior for actionscript or i'm missing
    something basic here
    thanks for looking

  • TCL scripting

    st1\:*{behavior:url(#ieooui) }
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    Network Scenario:
    We have a Client-Server enterprise network, and nature of servers is to broadcast some stats/info to all the clients.
    We are using two 6509-E at core with HSRP to provide the redundancy for servers. I have attached the network layout (not the real one) with some description with this thread. On both switches we have configured “ip helper-addresses” to forward the broadcast to multiple destinations(different VLANs). Every thing is working fine with respect to HSRP.
    Problem:
    Under normal circumstances, both ACTIVE and STANDBY hsrp switches generates broadcast which causing duplication of every broadcast packet and Client end receiving every packet twice. Cisco already claimed that standby switch will forward the broadcast. As an alternate TAC has advised to use the TCL script as a work around which we attempted to however no success at the end.
    Please let me know if some one can help me in modifying TCL script.
    ::cisco::eem::event_register_syslog occurs 1 pattern .*STANDBY.*STATECHANGE.* maxrun 90
    # EEM policy used to detect an HSRP state change. Once change is detected, analize the
    # type of change and modify the configuration about helper address.
    # The script looks for the DHCP server ip address in dhcp_server environment variable
    # and adds or removes the command 'ip helper-address dhcp_server' to the interface on
    # which HSRP status has changed.
    # April 2006, Cisco Europe & Emerging TME Team
    # Copyright (c) 2006 by cisco Systems, Inc.
    # All rights reserved.
    ### The script uses the following environment variables:
    #   $dhcp_server - ip address of the DCHP server in four octect dotted notation
    # 1. check if all the env variables we need exist and if not abort
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if {![info exists dhcp_server]} {
        set result "EEM Policy Error: variable dhcp_server has not been set"
        error $result $errorInfo
    # 2. Local procedure for CLI show commands
    # Pass a list of cli commands and it returns a list of outputs
    proc CLICmdProc {cmds} {
        if [catch {cli_open} result] {
            error $result $errorInfo
        } else {
            array set cli1 $result
        if [catch {cli_exec $cli1(fd) "enable"} result] {
            error $result $errorInfo
        foreach a_cmd $cmds {
            if [catch {cli_exec $cli1(fd) $a_cmd} result] {
                error $result $errorInfo
            } else {
                lappend cmd_output $result
        if [catch {cli_close $cli1(fd) $cli1(tty_id)} result] {
            error $result $errorInfo
        return $cmd_output
    # 3. Local procedure for CLI configuration commands
    # Pass a list of cli commands
    proc CLICfgProc {cmds} {
        if [catch {cli_open} result] {
            error $result $errorInfo
        } else {
            array set cli1 $result
        if [catch {cli_exec $cli1(fd) "enable"} result] {
            error $result $errorInfo
        if [catch {cli_exec $cli1(fd) "config terminal"} result] {
            error $result $errorInfo
        foreach a_cmd $cmds {
            if [catch {cli_exec $cli1(fd) $a_cmd} result] {
                error $result $errorInfo
            } else {
                set cmd_output $result
        if [catch {cli_exec $cli1(fd) "end"} result] {
            error $result $errorInfo
        if [catch {cli_exec $cli1(fd) "write mem"} result] {
            error $result $errorInfo
        if [catch {cli_close $cli1(fd) $cli1(tty_id)} result] {
            error $result $errorInfo
    # 4. query the information of latest triggered eem event
    array set arr_einfo [event_reqinfo]
    if {$_cerrno != 0} {
        set result [format "component=%s; subsys err=%s; posix err=%s;\n%s" \
            $_cerr_sub_num $_cerr_sub_err $_cerr_posix_err $_cerr_str]
        error $result
    set msg $arr_einfo(msg)
    # 5. we save the interface which triggered the event in interface
    regexp {(Vlan[0-9]{1,4}).*-> ([A-Z,a-z]*$)} $msg result interface action
    if {$action == "Active"} {
                  lappend clicmd "interface $interface"
                  lappend clicmd "ip helper-address $dhcp_server"
    if {$action != "Active"} {
                  lappend clicmd "interface $interface"
                  lappend clicmd "no ip helper-address $dhcp_server"
    set cliout [CLICfgProc $clicmd]
    action_syslog msg "Updating the configuration of interface $interface"

    Try this version.  You will need to first set an environment variable, dhcp_servers to be a comma separated list of IP addresses (i.e. the helper addresses) to configure/unconfigure.  For example:
    event manager environment dhcp_servers 192.168.10.255,192.168.12.255,192.168.14.255

  • Is it possible to get view in RULES

    Hi.
    Is it possible to get userView in rules.If any one come across this please post piece of code..
    Thanks in Advance
    Yash

    Try something like this:
    <br><br>
    <set name='user'>
    <rule name='checkoutUserView'>
    <argument name='accountId' value='$(accountId)' />
    </rule>
    </set>
    <br><br>
    <Rule name='checkoutUserView' authType='EndUserRule'>
    <RuleArgument name='accountId' />
    <block>
    <defvar name='viewMaster' />
    <set name='viewMaster'>
    <new class='com.waveset.session.ViewMaster'>
    <invoke name='getLighthouseContext'>
    <ref>WF_CONTEXT</ref>
    <ref>accountId</ref>
    </invoke>
    </new>
    </set>
    <invoke name='setAuthorized'>
    <ref>viewMaster</ref>
    <invoke name='getBoolean' class='java.lang.Boolean'>
    <s>true</s>
    </invoke>
    </invoke>
    <invoke name='checkoutView'>
    <ref>viewMaster</ref>
    <concat>
    <s>User:</s>
    <ref>accountId</ref>
    </concat>
    </invoke>
    </block>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' name='All'/>
    </MemberObjectGroups>
    </Rule>
    <br><br>
    In order to access the user object using dot notation you may need to call this piece of code (not sure if necessary if the variable being used is defined in the task definition):
    <br><br>
    <invoke name='setVariable'>
    <ref>WF_CONTEXT</ref>
    <s>user</s>
    <ref>user</ref>
    </invoke>

  • Change BG color of Panel using script (AS3)

    Dear, all
    I am a newbies in Flex. Now I have some trouble with thw
    sample thing.
    That is how can I change BackgroungColor of panel using
    script(AS3)
    I can do it by mxml BUT!! I really need to change it using
    AS3. Does you know what should I do NEXT.

    When you lookup a component in FB3 help sys, if you see it
    under styles, then you need to use setStyle() in AS, if you see it
    as a property, just use dot notation.

Maybe you are looking for