In the editor element name-value pairs

I'll put up a datagrid control that must be, in some areas, an itemEditor displaying a combobox with the name/value pairs:

< mx:DataGrid height = "100%" width = "100%" id = "dgTaxa" editable = "true" >
< mx:columns >
< mx:DataGridColumn headerText = "Codice" dataField = "taxonCode" width = "60" / >
< mx:DataGridColumn id = "colFamily" headerText = "Famiglia" dataField = "family" width = "80" >
< mx:itemEditor >
< fx:Component >

< mx:ComboBox width = '80' labelField = dataProvider = "{parentDocument.families"familyId"}" > "

< / mx:ComboBox >
< / fx:Component >

< / mx:itemEditor >
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >

This combobox has a dataprovider, it is this one:

[Bindable]
public var family: ArrayCollection = new ArrayCollection([) collection
{familyId:1, name: 'cactacee'},
{familyId:2, name: 'Lily'}
]);

My problem is that I want to display name as labels of the combobox, but get familyId as combobox values to send to the Web service.

Nobody knows how to help me?

Thank you

Paolo

LabelField value = "name" and get the selectedItem.familyId

Tags: Flex

Similar Questions

  • The drop-down list schema lists (with the name/value pairs)

    Hello

    I'm looking for more information on creating a schema type definition that LiveCycle Designer ES will fill (fill in the name and value) of drop-down lists. For example, I have something like:

    < xsd:simpleType name = "RoleTypeCodeType" >
    < xsd:restriction base = "xsd:token" >
    < value xsd: Enumeration = 'ABC' >
    < xsd: annotation >
    < xsd: documentation >
    Aboriginal community
    < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    < value xsd: Enumeration = "ADJ" >
    < xsd: annotation >
    < xsd: documentation > referee < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    ...

    < xsd:minLength value = "1" > < / xsd:minLength >
    < xsd:maxLength value = "3" > < / xsd:maxLength >
    < / xsd:restriction >
    < / xsd:simpleType >

    This creates a list. I can bind this to a list field. However, of course, when I saw the pdf, my drop down list items in this area are just the three-letter code. I would get the descriptions associated with these articles (as shown on the connection tab) to be filled. The end result is that my list see 'Indigenous community', 'referee', etc. and when selected, return 'ABC', 'ADJ' in the XML during export.

    If list under the connection tab items are filled manually then this export works correctly. However, the list is generated during execution and dynamic. So nobody knows what the schema definition must be for the field in the list on the LiveCycle form to create the name-value pairs?

    Thank you

    John

    Hi John,.

    You will need to incorporate the schema, but you can reference the imported schema as they get integrated as well (there a bug in the designer when they were not integrated, but I think it crept in 8.0).

    In any case to refer to the imported schema you will need to loop though all schemas

    var

    schemas = xfa.resolveNodes('schema[*]');

    Will give it refers to all schemas, the fine loop them;

    for

    (var schemaIndex = 0; schemaIndex< schemas.length;="">

    So if these patterns have an id attribute (I don't think that you can refer to namespace attributes) test the value of the id;

    If

    (schema.@id is "whateveryourschemaidis")

    If there is no attribute ID and you cannot add a you might have to search for the type in each scheme, something like;

    var roleTypeCodeType is schema.xsd::simpleType. (@name is "roleTypeCodeType");

    If (roleTypeCodeType! == undefined)

    {

    ... load the values of the annotation.

    }

    Hope that helps but if you if you can post your schema (and it's imports), I could understand exactly the problem.

    Bruce

  • Retrieves an array of flattened JSON name/value pairs

    Hello

    I have a JSON string that contains a table of name/value pairs:

    {"params": []}

    {'name': 'Param1', 'value': '10'},

    {'name': 'Param2', 'value': '20'}

    ]

    }

    For now I'm extracting the entire table by iterating on the index in the array until an error is generated, as shown in the image below.

    It is not very pleasant, because it always generates an error (could be ignored) and also in the resulting table, at the end, an element empty.

    Is there an easier way to achieve this?

    OK, found the solution myself.

    Simply omit the path and enter a cluster with a table named ("params") of clusters containing a 'name' and 'value' constant.

  • Base name value pair class

    HI friends,

    is there any collection class that support name, value pair format

    as Basicnmaevaluepair in andriod, so that we can seprate name and value string and use.

    Hi friends,

    customize this thing and my offer is resolved.

  • Is it possible to take 2 web apps with both having the same element name (IE: titreArticle, short) and display them in a list in chronological order.  For example something like that {module_webapps id = filter "3673 &amp; 7432" = "classified" itemId = mo

    Hello

    Is it possible to take 2 web apps with both having the same element name (IE: titreArticle, short) and display them in a list in chronological order.

    For example something like that {module_webapps id = "3673& 7432" filter = 'class' itemId = "71755" template="/new/partnernewstemp.tpl" sortType = 'date'}

    Thank you

    Angela Borden

    This is not possible, I'm afraid, you must list each of the webapps separately and then combine and re - sort the two lists.

  • Need help to build the query/pl-sql block to get the query result and the name of column from DB table in the form of key-value pairs.

    Hi Experts,

    I have a DB table has columns of more than 50.

    I question this table, it should only return one line at any time. as sqldeveloper below image.

    here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.

    Eg:     Key                         -  Value

    TASK_EVENT_ID - 1765

    EVENT_TYPE - ASR_UPDATE

    ... etc until all of the columns in my table.

    Experts please comment on that point, appreciate your help on this.

    Thank you

    -Vincent.

    Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)

    create or replace procedure (task_expired)

    v_store_id in full,

    v_task_action_id in full,

    v_job_id in full

    )

    as

    -[SNIP code...]

    v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123';  -Your SQL here!

    v_v_val VARCHAR2 (4000);

    v_n_val NUMBER;

    v_d_val DATE;

    v_ret NUMBER;

    c NUMBER;

    d NUMBER;

    col_cnt INTEGER.

    f BOOLEAN;

    rec_tab DBMS_SQL. DESC_TAB;

    col_num NUMBER;

    vAsString VARCHAR2 (4000);

    BEGIN

    -[SNIP code...]

    Message_properties. CORRELATION: = "EDF_EVENT";

    MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();

    Msg.set_string_property ('queueName', ' shipping/csi_cth');

    Msg.set_string_property ('MODE', 'CR8');

    c: = DBMS_SQL. OPEN_CURSOR;

    DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);

    d: = DBMS_SQL. Execute (c);

    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);

    1.col_cnt J

    LOOP

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val);      -Number

    WHEN 12 CAN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val);      -Date

    ON THE OTHER

    DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000);   -Else treat as varchar2

    END CASE;

    END LOOP;

    LOOP

    v_ret: = DBMS_SQL. FETCH_ROWS (c);

    WHEN OUTPUT v_ret = 0;

    1.col_cnt J

    LOOP

    -Fetch each column to the correct data type based on coltype

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);

    vAsString: = to_char (v_n_val);

    WHEN 12 CAN

    DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);

    vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');

    ON THE OTHER

    DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);

    vAsString: = v_v_val;

    END CASE;

    Msg.set_string_property (rec_tab (j) .col_name, vAsString);

    END LOOP;

    END LOOP;

    DBMS_SQL. CLOSE_CURSOR (c);

    DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',

    Enqueue_options => Enqueue_options,

    Message_properties => Message_properties,

    Payload-online msg,

    Msgid => Message_handle);

    dbms_output.put_line ('00 Msgid =' |) Message_handle);

    dbms_output.put_line('===Done=');

    -[SNIP code...]

    END;

    /

  • To access the inside loops key/value pairs

    According to the docs of Shopify, liquid allows access to key/value pairs in for loops, as follows:

    {% for item in hash %}   {{point [0]}}: {{point [1]}} {% endfor %}

    This does not work in the liquid renderer in British Colombia; the output of the key/value tags are empty. Here is an example of using the always available this.urlculture global object:

    {   ...   {"urlculture": {"ModuleName": "urlculture", "culture": "EN"},...}

    {% for obj in this.urlculture %}

    {{ obj | json }}
    Key: {{obj [0]}}
    Value: {{obj [1]}}
    {% endfor %}

    This is the result I get:

    {
      "Key": "moduleName",
      "Value": "urlculture"
    }
    
    Key:
    Value:
    
    {
      "Key": "culture",
      "Value": "EN"
    }
    
    Key:
    Value: 

    Access by name (such as {{ obj.Key }} ) also fails.

    Am I missing something, or is this all just not yet implemented?

    Also, why isn't the nice formatting illustrated in this visible post editor in the current post code?

    Thank you, Robert.

    This was a great find. And you'll be happy to learn that we have set and it will work in the next version (unfortunately the hotfix does not update today, we have deployed on the beta version).

    You will then be able to do things like:

    {% for getParam in globals.get %}
    {{getParam[0]}} = '{{getParam[1]}}'
    {% endfor %}

    -Lucian

  • How to access the property of ListBox inside the Cluster element names?

    In LabVIEW 2010, I have a group of controls on the front panel. In this group, I have a ListBox. How can I access the Item property for the ListBox object names in my block diagram.

    Of the bunch, I can get control ListBox, but which returns a value of I32, probably the index of the selected item.

    In the block diagram, how can I get the name property of the item in the ListBox control since a reference to the Cluster?

    Thank you.

    using the table 'orders' in your cluster, you can access each item. Next, you will need to convert the reference to a 'class more specific' with a reference to an arbitrary list box (or a constant reference of the required type), then you can access all the properties of your listbox.

  • LOVs using cascading on the Page elements with values exceeding 4000 characters

    A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:

    Well, I found a way to use LOVs cascading on page elements with values exceeding 4000 characters:

    Let's say I have a shuttle named P1_ORGANISATIE with "List of values" box, a dynamic LOV named "Source: lists of values Query" containing the value:

    Select NAAM as display_value, ID like return_value

    of NINEHAM

    order by 1

    If the number of records-NINEHAM is insufficient, the length of the value of P1_ORGANISATIE, which is a list of concatenated with colon separated digital ID, can exceed 4000 characters.

    Now, suppose I have a list of selection called P1_TEST that is connected through "List of values"-> "Cascading LOV Parent article (s)" with P1_ORGANISATIE, using a named LOV dynamic with "Source: lists of values Query" containing:

    Select distinct TST. NAAM as display_value, TST.ID as return_value

    of the OTE NINEHAM

    Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)

    Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)

    Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)

    Join TESTEN TST ON (TST.ID = RDT. TST_ID)

    where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0

    order by 1

    In this case, when P1_ORGANISATIE exceeds 3998 characters, you'll get an "ORA-01704: string literal too long"-error and the P1_TEST will show an element called "undefined".

    A way around this is possible because for a named LOV, you can use a "function that returns a sql query" instead of a simple sql query. In other words, we can apply in the context of PL/SQL and thus have maximum for expressions of 32767 instead of 4000 characters. In addition, it is possible to use the two APEX_UTIL. STRING_TO_TABLE and APEX_COLLECTION.

    Setting "Source: lists of query values" on the LOV appointed to P1_TEST with the following code will work:

    DECLARE

    l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;

    l_qry varchar2 (32767): =.

    "Select distinct TST. NAAM as display_value, TST.ID as return_value

    of the OTE NINEHAM

    Join the AFDELINGEN ADG ON (ADG. OTE_ID = OTE.ID)

    Join the DEELNEMERS DNR ON (DNR. ADG_ID = ADG.ID)

    Join TESTDEELNEMERS TDR WE (TDR. DNR_ID = DNR.ID)

    Join TESTEN TST ON (TST.ID = RDT. TST_ID)

    $1

    order by 1';

    BEGIN

    IF: P1_ORGANISATIE IS NULL

    OR LENGTH(:P1_ORGANISATIE) < = 4000

    THEN RETURN

    Replace (l_qry

    ,'$1'

    ,' where instr (":" |: P1_ORGANISATIE |) '':'', '':'' || OTE.ID | :'') > 0'

    );

    ON THE OTHER

    l_selected: = APEX_UTIL. STRING_TO_TABLE(:P1_ORGANISATIE);

    APEX_COLLECTION. CREATE_OR_TRUNCATE_COLLECTION (p_collection_name = > 'ORGANISATIE_COLLECTIE');

    FOR id IN 1.l_selected.count

    LOOP

    APEX_COLLECTION.add_member (p_collection_name = > 'ORGANISATIE_COLLECTIE')

    , p_n001 = > to_number (l_selected (id))

    );

    END LOOP;

    RETURN

    Replace (l_qry

    ,'$1'

    ,'join apex_collections ON APC (APC. COLLECTION_NAME = "ORGANISATIE_COLLECTIE" AND APC. N001 = OTE.ID)"

    );

    END IF;

    END;

    Andreas Groenevelt says:

    A few days ago, I asked a question on the community, but it turned out that there was something wrong with my account and they have removed the item, so I'll just post the solution I found here now:

    Something was wrong with the whole site: AP invoice tolerance

    I don't post anything substantive until we find out what is happening.

  • The rule element attribute value

    Hi all

    I have a situation where I need to create a rule that will check if a field is null. If the rule then fills an access strategy will be triggered.
    I created a rule, then a rule like this usr_udf_field1 element! = null. But the rule is looking for a null string value and is always convincing.
    I even tried to put a space and the value empty but the console design won't let me save it.
    Is there a way I can do this by using the designer of the rule.

    Thank you

    Treat files using Java and then if satisfied with your rule, then use IOM API to assign membership to a group. Do it somewhere as an adapter of the entity. Sometimes, it's a problem to handle such cases.

  • Workflow runtime do not receive updated the configuration element attribute value

    I added an attribute called "maintenanceMode.  At the beginning of the launch of a workflow I find the value of this (it's a Boolean value) and if it is set to true, the workflow sleeps for 5 minutes then wakes up and checks that the value again.  If it is false then the workflow must run the rest of the run.  The problem I have is that the workflow does not seem to raise the value of the attribute as it was during execution.  If I change the value that I do it manually does not seem to pick up the change.  Is there a discount of some sort I require before you archive it to clear any cached value?

    Paul

    To attract the attention of Paul on this post.

  • APEX 5, universal theme, value pairs attribute - column layout problem

    Hello

    APEX 5, universal theme.

    I have a little problem with the column model attribute - value pairs.

    If one of the fields is the result of a LOV and the value of the field is zero the provision goes a little wrong (half a row of the value column), when having long lists of pairs, it is difficult to see what value belongs to what field. It is a horizontal allignment problem that looks like the below example, the field in the middle is an empty field based on a LOV.

    Think of it as a little bug. Maybe someone can provide an easy solution?

    See you soon,.

    Bottom

    It looks like a bug in the CSS of the theme. This rule

    .t-AVPList-label,
    .t-AVPList-value {
      display: block;
      vertical-align: top;
      font-size: 1.4rem;
      line-height: 2rem;
      padding: .8rem 1.2rem;
      margin: 0;
      box-shadow: 0 1px rgba(0,0,0,.05) inset;
      transition: background-color .1s;
    }
    

    needs a property added minimum height so that the heights of term/description elements are aligned if one (or both) of them are empty:

    .t-AVPList-label,
    .t-AVPList-value {
      display: block;
      vertical-align: top;
      font-size: 1.4rem;
      line-height: 2rem;
      padding: .8rem 1.2rem;
      margin: 0;
      box-shadow: 0 1px rgba(0,0,0,.05) inset;
      transition: background-color .1s;
      min-height: 4rem;
    }
    

    You can create a style sheet personalized containing a rule of precedence for this problem:

    .t-AVPList-label,
    .t-AVPList-value {
      min-height: 4rem;
    }
    

    Transfer it to your workspace and reference it in the theme CSS File URL property to include in the app:

    #THEME_IMAGES#css/Core#MIN#.css?v=#APEX_VERSION#
    #WORKSPACE_IMAGES#theme_42_AVPlist_fix.css
    
  • Null Session Active - Session detail Rpt element names?

    All,

    Someone saw the null element name entries in the Active Session - detailed report of the Session? I have 3 entries where no name of the element is identified, but there are reported values and no associated application. Is this normal or is there a problem with one of my applications? We use the apex 3.0.1.00.08 version.

    Thank you

    Tom

    Tom - this is normal. Pagination information are saved in session state by using a null element name.

    Scott

  • When you change an item type only display in hidden element its value changes from any value in value null. Why?


    Dear reading

    When to change a display one item type in the hidden element its value changes from null value any value . Why?

    I would like to use the result of the query in the hidden item, as well as to display it in report footer.

    shortly the displayed element can read footer bu area hidden point cannot be viewved in the footer box. Why?

    footer

    & P11_DISPLAY_ONLY_ITEM.

    footer

    & P11_HIDDEN_ITEM.  )

    (site of apex.oracle.com Application Express 4.2.5.00.08)

    concerning

    Enformatik wrote:

    in the part of the properties point setting its source type as query retune unique value;

    but when you set its value to the calculation (before header) it works correctly.

    It is the expected behavior. The values defined in the properties of the Source element / by default are only put in the controls of the page displayed in the browser, not in session state. To refer to a session-state item value (as in a & P11_HIDDEN_ITEM. substitution of static text) then the value must be set in session state in a calculation or process that runs before the substitution reference is returned.

    Setting the value using a calculation is the right way to do it.

  • duplicate element names

    Hi all
    in uk hrms manager resposnibility  there is total compensation--element
    
    here i created a flexfield named arabic name and then to the already existing elements the user added arabic names
    now the prompt for update or correction appears and i clicked update
    
    as a result duplicate entries for the same element are coming in all the reports eg. an element named Personal loan recovery comes twice
    earlier in the element screen the effective date was coming as 1-jan-1990 ,Now its coming as 28-dec-2011
    
    should i have clicked correction?is there any way to undo what i did ?
    
    kindly guide me 
    
    thanking in advance
    Published by: makdutakdu on December 29, 2011 07:11

    '' Correction '' would have been a better option - that said, I've always understood that a name change would never give the "Correction" option anyway.

    No matter, this can be cancelled by setting your date of entry into force at a date prior to the change, for example, 27 December 2011, then clicking 'delete '. When you get to the option for what type of deletion, choose the one that starts with "next". Then click on "Save". This action will remove the change of the date of the AMT, and you should then be able to present a new request change of name as a correction.

    Another point - the 'reports' that you say the same element name of once - which could be a problem for reports, the request seems not to be by selecting the appropriate for a date PAY_ELEMENT_TYPES_F line says back. There could be some problems there, where for example stocked items can change date effectively according to some legislative changes.

    Clive

Maybe you are looking for

  • Satellite Pro M10 model PS630E. Connection via 802.11 G

    This laptop with a Centrino 1.5 GB processor, is possible to upgrade the wireless, so it can detect the routers wireless 802.11 g, as it seems to see 802. 11 b. Y at - it a update driver or more up-to-date firmware.

  • IMAQ_IGNORE_BLACK_AND_WHITE

    Hi all I am writing in LabWindows/CVI function for research of color on the image of grabed pattern. Unfortunately I can not very good results, only more indifferent because part of the assessment model is black or white. I want to eliminate to mark

  • I can't get into xp. a blue screen appears with the 0x0000007e error code

    I went to a blue screen.  Can I make the Windows/sysrem22/hal.dll file is missing or damaged.  I made a copy of the file on a CD from another computer, but I don't know how to load it on my desktop computer.  It doesn't work in either safe mode.  I h

  • call very low voice on the other side (Z5 MM Compact)

    Hello guys,. I have a question which appeared suddenly and wont go away. My voice is very low, on the other side, people say it's like I want to talk away from the microphone. There is no problem with voice recording or when using headphones. I alrea

  • Using the recovery disc Vista laptop for a PC boot

    If I create my 1 my laptop recovery disk, it'll work on my PC.  They are entirely separate copies (properties). Thank you in advance.