Name of the dynamic pageFlowScope variable on a page of amx, possible?

Hi all

I have a problem that I can't seem to move at the moment. I have java classes that try to update some data, and if it is not successful it returns the ID of the control that contains the error. Then I take this control id and use it to highlight the field in error so that the user knows where it is. Usually, this works very well for any other than to a list view.

For a grid/listView error control is returned in the form of something like "1.14" of the appeal of java, this is equivalent to the number of the line '1' and the id of the control "14". I can easily strip away the '. ' in java but I need a path in my AMX page to define a variable on the fly for example pageFlowScope #{pageFlowScope. {{} row.rowKey} 14} but I get EL analysis of errors try like this, the error is "ERROR_EL_PARSER_NESTED_EL_NOT_SUPPORTED". Basically, I'm trying to have conditional styles depending on whether E {pageFlowScope.114} is set to 1 or not. I can't imagine a better way to implement this in a listView?

I can only suggest a medium crude to achieve.

One way to see dynamic values in EL is to use a hash table and use the dynamic value as the key. I would record a HashMap per input element and then store the error with the line indicator not. You can even create your own implementation of HashMap and hoist the flag when running by overloading the get method.

[For example #{pageFlowScope.elem14ErrorMap [row.rowKey}]

Tags: Oracle Mobile

Similar Questions

  • Name of the dynamic property of object in the table based on the value of a variable

    I have two paintings of custom class objects

    var obj1:Object1
    var obj2:Object2
    
    var array1:Array = [obj1[0], obj1[1], ...]
    var array2:Array = [obj2[0], obj2[1], ...]
    

    Object1 has a property named. Name while Object2 has a property named. Title.

    Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0].fieldName  = "xxx";
    }
    

    the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!

    Don't know if I'm clear - hope that makes sense... ;-) Thank you

    Hey p3pp3r,

    I think I understood you. Try the following and see if you get good results:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0][fieldName]  = "xxx";
    }
    

    Let me know how it turns out. Good luck!

  • Problem with the name of the dynamic Table

    Hi all

    I can't using a dynamic table name. I have the following code...
    declare l_cur sys_refcursor;
    l_ID int;
    l_tableName varchar(30);
    BEGIN
    
    open l_cur for
    select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm
    inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id
    where ddm.id > 0;
    LOOP
         FETCH l_cur into l_ID, l_tableName;
         EXIT WHEN l_cur%notfound;
                
         -- update missing VerbID in DocumentDocMapping table
         UPDATE &HKAPPDB_Schema_Name..IndexedDocument 
         SET VerbID = (SELECT t.VerbID 
                             FROM (SELECT DocRef, VerbID, DateUpdated 
                                  FROM &HKAPPDB_Schema_Name..l_tableName dd        - this is where the dynamic table name is used
                                  WHERE dd.VerbID is not NULL))
         WHERE HKColumnID = l_ID AND VerbID is NULL;
    
    END loop;
    end;
    /
    When I try to execute it I get an error

    ORA-00942: table or view does not exist

    What I am doing wrong?

    Kind regards
    Toby

    You cannot use a variable instead of a table name. You must build the dynamic SQL. Search for IMMEDIATE EXECUTION or DBMS_SQL in Document Oracle.

  • Name of the dynamic table is possible?

    Hi guys,.

    I have fact tables every day with the same structure, each table in a day: fact20090701, fact20090702 etc.
    Every night a new table is created.

    Database is Oracle.

    I need a single command prompt date and then run a query on the corresponding table.

    Is this possible?

    Direct application of the database is not an option.

    Thank you
    Alex

    Hello

    In the physical layer, go to table special and double click on it (go to properties) > general tab.
    You will find the option use dynamic names. When you click on this it asks the name of the variable.

    so, you must create a session variable that contains the dynamic value. And use it here...
    SQL is something like: SELECT 'fact' | to_char (sysdate, 'yyyy') | to_char (sysdate, 'mm') | to_char (sysdate, 'dd') block initialization
    assign it some variable... He uses...

    Hope this helps you...

  • name of the dynamic table

    In the ODI interface, can a target table name be specified dynamically? For example, the name of the table will be decided until a variable is updated in the package. The target table must also an AK force.

    Use a smaller name and project code before the variable.

    Do not use a '_' before the ' # '.

    Something like:

    TEMP_MIL #PROJECTCODE.v_thread_number

    In addition, if you use Oracle as technology, go to the topology, the physical Architecture, modify the technology itself and the language tab, let the delimiter 'object' to nothing.

    Let me know if works...

    Published by: Cezar Santos on 29/01/2009 16:55

  • Name of the window to variable

    Hello.

    In the script below, the very last line, can someone tell me what I am doing wrong, that the date is not added to the line. I swear to you that it must be a very basic problem.

    All what I get the name of the file is "App" and what I'm looking for is something like "App Store 2016-08-16-0915"-this is El Capitan. "." Thank you.

              tell application "System preferences."

    activate

    the value current component to component 'com.apple.preferences.appstore '.

    -Now that the first pref window comes up, get his name and assign it to a variable

    game nest to (get name of first window whose visible is true)

    -Do the same for its ID

    game wid to (get id of the first window whose visible is true)

    -Now to capture the window, passing wid varialble in the-l switch and the nest variable to the file name that you want to use, and then save the file

    the shell script "screencapture-T1-l" & wid & (nest as string) & "~/Desktop/PrefsPics/" & "$(date + % Y-%m-%d-%H%M%S).png)".

    -Note that you can not messing around with the computer until the script ends; otherwise you interfere and capture prolly bad winders

    SOLVED

    Here's what had to say the line:

    the shell script "screencapture-T1-l" & wid & '~/Desktop/PrefsPics/' & a (nest) quoted form, "------" & "$(date + % Y-%m-%d-%H%M%S).png)".

    1. to get the full name pane use City form (NEST)

    2. to use a space in the name of the file, double escape: '-' instead of ""

  • name of the dynamic table in a view

    How can I create a view of a table whose name is dynamically determined?

    for example, I have tables for each month table_2010401, the table_201402, the 201403 table and so on. I need to extract the data from the last table. This is more or less what I want to do:

    CREATE OR REPLACE VIEW VW_TABLE

    AS

    SELECT * FROM

    (SELECT TRIM (MAX (TABLE_NAME)) FROM ALL_TABLES WHERE TABLE_NAME LIKE 'POL_LINK %' AND OWNER = 'ACTUARYD')

    );

    Can anyone help? Thank you in advance.

    Most approach simple and straight forward it would be to recreate every month a CURRENT_TABLE view or a synonym that points to a table 'current' - table_2010401 or table_20140301.

    You can recreate this view, or synonym every month just after creating the table current.

    Another approach would be to create a view based on a function of pipeline that derives from a necessary table name and uses dynamic SQL statements to get the lines of him to channel them in the view.

  • name of the dynamic object

    Hello
    I had a problem get a dynamic object name

    I am trying to generate a simple example where I press a BTN he passes the name of the object, but then I can't use it.

    [CODE]
    Framework for action 1


    showHide();
    function showHide (myName) {}
    trace (myname); This property returns ball1
    This.ball1._visible = false; Mask object
    This.ball2._visible = false; / / mask object
    This.ball3._visible = false; / / mask object
    This.ball4._visible = false; / / mask object



    trace (this.myName._visible) / / it doesn't matter
    this.myName._visible = true; does not work



    }



    Stop()
    [/ CODE]


    [CODE]
    My buttons

    on {(press)
    _root.showHide ("ball1");
    }
    [/ CODE]

    dzedward is right on target here Moses - and in addition there are a few things you can do here that will make you more fluid system work. If you pass the object instead of a string, you can use this reference to cause the reaction you method without having to 'check' all instances (which I think is what you go here) so you can simplify all using something more like the following:

  • Name of the instances of Variables

    Hello

    I am very new to Flash and ActionScript, but I have a background in Server programming and web client-side applications, if at least I'm not completely helpless.

    I am trying to figure when an Instance name becomes available for ActionScript code, so I can modify it.

    I have a Clip in scene 1-> image 10, in this Clip, the Frame 10, I have an empty clip that I am trying to load a .swf in. I can actually load the .swf in there if I put the code to load it into the same framework that I display the .swf, but I want it to be completely loaded before moving into this framework.

    By trial and error, which I made so he can do what I need to put the instance in the frame 1 and setting it's alpha to 0, so it is not slammed shut. This solution seems not very portable for me.

    Is there a "correct" way to load a file into a Clip until it gets instantiated? Or, what are the different ways people get around this problem? This 'solution' that I found works in this particular case, but there are a few similar cases in this project where it would be all just too heavy.

    Thank you
    Chris

    Chris,

    > By trial and error, I managed to make it act
    > like I need to put the instance in frame 1 and setting
    > It's alpha to 0, so it is not slammed shut.

    It is the way to do it, for the better or worse. The metaphor of the timeline is
    a powerful for animation, but it can be confusing in terms of
    programming. The name of the instance becomes a variable automatically for you,
    and that happens when the playhead enters that frame.

    > This solution seems not very portable for me.

    I can see that. ;) One of the oddities.

    > Is there a "correct" way to load a file into a Clip before
    > It gets instantiated?

    Before it is instantiated, there is nothing (no MovieClip instance) for
    Load the content in.

    > Or, what are the different ways people get around this
    > question? This 'solution' that I found works especially
    > case, but there are a few similar cases in this project where the
    > It would be simply too heavy.

    The MovieClip.createEmptyMovieClip () method to create a MovieClip
    instance during execution. Maybe it's a way to go. You can also extend
    MovieClip and associated with your submarine of the class with this particular movie clip assets
    in the library (right-click and look at properties or a link...). In this way
    your sub class can assign this instance invisible until needed otherwise.

    But the solution that you have already found is a typical no-frills approach.

    David Stiller
    Adobe Community Expert
    Dev blog, http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Name of the dynamic legend in XY-graph in labview 7.0

    Dear all,

    In my application I display several plot in XY-Graph. The total number of graphics may very. I want according to the total number of display legend selected route. And the name of this parcel is not set very according to selection.

    I tried to use the 'name of the conspiracy' property node, but in this case only first name plot evolves.

    -Vishnu

    Hi Vishnu, use the property 'Legend'-> 'plots illustrated!

  • Name of the dynamic page element?

    Hello

    I have one of some fields (VELD01, VELD02... VELD11) and a page process that fills this domain.
    I want to say more dynamic by using a loop. Is it possible to use some "dynamic SQL" as:

    l_cnt: = 1;
    for r in c
    loop
    P1210_VELD0 | l_cnt;
    l_cnt: = l_cnt + 1;
    end loop;

    Example above does not of course...

    garcol wrote:
    Hello

    I have one of some fields (VELD01, VELD02... VELD11) and a page process that fills this domain.
    I want to say more dynamic by using a loop. Is it possible to use some "dynamic SQL" as:

    l_cnt: = 1;
    for r in c
    loop
    P1210_VELD0 | l_cnt;
    l_cnt: = l_cnt + 1;
    end loop;

    Example above does not of course...

    Use the apex_util.set_session_state API method:

    l_cnt := 1;
    for r in c
    loop
      apex_util.set_session_state('P1210_VELD' || to_char(l_cnt, '09'), r.foo);
      l_cnt := l_cnt + 1;
    end loop;
    

    (Always the postal code using ------)

    ...\
    

    tags.)

    However, the use of this approach raises possible concerns about your data model - it is properly standardized? And why not do it using standard table of tabular presentation techniques /apex_item API /apex_application tables?

  • How to replace the name of the column with variable

    Hello

    I have a PLSQL problem please.

    I have a table like this:

    IDENT LIBL_1 MONT_1 LIBL_2 MONT_2 LIBL_3 MONT_3 LIBL_4 MONT_4

    1               A          10               B               10          C               30               VIDE          0

    2               A          30               C               12          VIDE          0                 VIDE          0

    3               B          11               C               41          D               63               E               15

    ...

    I have a code like this:

    DECLARE

    x number;

    varchar2 column (20);

    CURSOR c_DPLT_TT_ICARE_FILL IS

    SELECT IDENT,

    LIBL_1,

    MONT_1,

    LIBL_2,

    MONT_2,

    LIBL_3,

    MONT_3,

    LIBL_4,

    MONT_4

    FROM MyTable;

    --

    l_mylist c_mycursor % ROWTYPE;

    BEGIN

    FOR l_mylist in c_mycursor LOOP

    x: = 1;

    the following: = "LIBL_" | x;

    WHILE ((l_mylist.colonne <>'EMPTY') OR (x < = 4)) LOOP

    -CODE-

    ...

    -CODE-

    x: = x + 1;

    the following: = "LIBL_" | x;

    END LOOP;

    END LOOP;

    The thing I want to do is to replace the name of column LIBL_1, LIBL_2... with a variable like this: = "LIBL_1" then value: = l_mylist.colonne to get the value of the LIBL_1.

    I tried manyu command but I can't find the solution. I even try an immediate execution but it seems that the list of cursor is unknown in the statement immediately execute.

    Anyone has a solution please?

    Thank you very much.

    user6390927 wrote:

    Hello

    I have a PLSQL problem please.

    I have a table like this:

    IDENT LIBL_1 MONT_1 LIBL_2 MONT_2 LIBL_3 MONT_3 LIBL_4 MONT_4

    1               A          10               B               10          C               30               VIDE          0

    2               A          30               C               12          VIDE          0                 VIDE          0

    3               B          11               C               41          D               63               E               15

    ...

    I have a code like this:

    DECLARE

    x number;

    varchar2 column (20);

    result mytable.libl_1%type;

    CURSOR c_DPLT_TT_ICARE_FILL IS

    SELECT IDENT,

    LIBL_1,

    MONT_1,

    LIBL_2,

    MONT_2,

    LIBL_3,

    MONT_3,

    LIBL_4,

    MONT_4

    FROM MyTable;

    --

    l_mylist c_mycursor % ROWTYPE;

    BEGIN

    FOR l_mylist in c_mycursor LOOP

    x: = 1;

    the following: = "LIBL_" | x;

    run immediately 'select'. the following: ' from mytable where ident =: b ' as a result using l_mylist.ident;

    WHILE ((result <> 'EMPTY') OR (x)<= 4)="" )="">

    -CODE-

    ...

    -CODE-

    x: = x + 1;

    the following: = "LIBL_" | x;

    END LOOP;

    END LOOP;

    The thing I want to do is to replace the name of column LIBL_1, LIBL_2... with a variable like this: = "LIBL_1" then value: = l_mylist.colonne to get the value of the LIBL_1.

    I tried manyu command but I can't find the solution. I even try an immediate execution but it seems that the list of cursor is unknown in the statement immediately execute.

    Anyone has a solution please?

    Thank you very much.

    Asuming LIBL_x columns have the same type or a base at least type

    then the changes above can help you.

    In addition, you can write your cursor loop in a loop "for i in (select...)."

    you don't need to write that match the code, but it is cosmetic.

    See you soon

    Karlheinz

  • Name of the dynamic product throughout several Masterpages

    I try to enter a 'product name' only once and fill through the header and the footer other master pages. They have styles different characters/paragraph that are unique to where the text is placed. All master pages are based on "A-template. I want to enter the "product name" and have it update the other specific areas of product of the manual.  I've looked through some variables of text but don't have not come up with something that works. Any ideas?

    img1.PNG1

    img2.PNG2    img3.PNG3

    The variable picks up text on document pages, not in addition to the captain, then perhaps it's another source of confusion?

    You put the variable marker on the master page, set to pick a style for your title page (that you must enter on the title page by yourself). The header running continues to display the first value until you add a new paragraph (probably on a new title page) with a different text.

    Here is an example of a book I have laid out several years ago that uses two running header variables:

  • Name of the instance (AS2) + variable

    I have 3 symbols: box1, box2 and box3.

    I want them to move when I press the space bar.

    space bar once will first make a move. the second time, the second box to move and so on.

    1 var whichbox:Number = 1;

    2. pressed var: Boolean = false;

    3 onEnterFrame = function () {}

    4 if(whichbox==4) {}

    5 whichbox = 1;

    6.}

    7. if (!) Key.isDown (Key.SPACE) & & pressed == true) {}

    8. hurry = false;

    9.}

    10 if (Key.isDown (Key.SPACE) & & pressed == false) {}

    11 _root.box + whichbox._y += 50;

    12 whichbox += 1;

    13. hurry = true;

    14.}

    15.}

    I guess that the problem is in line 11, right?

    What wrong with that?

    _root. Box + whichbox._y += 50;

    Should be

    _root ["box" + whichbox] ._y

  • Trying to change stamps to take account of what I mean. How can I change the name of a dynamic stamps

    How can I change the name of the dynamic stamp?

    The name of stamp is part of the name of the page template in the file stamp, so to change it, you can open the stamp file and change the name of the template for the stamp in question. Exactly how do you this depends on which version of Acrobat you are using.

    Acrobat 9: Advanced > Document processing > models

    Acrobat 10/11: Tools > Document processing > models

    Acrobat DC: Tools > organize Pages > more > models

Maybe you are looking for