Color change to display list items

Is it also possible to change the text color of a list item based on an XML file?

Brilliant. I also realized that all this should be in a CustomListItem. Thank you very much, Zmey

Tags: BlackBerry Developers

Similar Questions

  • Display list items based on another element of the list

    Hi all

    I want to display the list item based on another element of the list, but his does not work.

    This is my code:


    / * WHEN-NEW-FORM-INSTANCE * /-his work.
    DECLARE

    rg_district recordgroup;

    rg_name VARCHAR2 (40): = "district";

    vtemp NUMBER;

    BEGIN

    rg_district: = FIND_GROUP (rg_name);

    IF ID_NULL (rg_district)

    THEN

    rg_district: =.

    CREATE_GROUP_FROM_QUERY (rg_name,

    'select dist, dist district_mas.

    );

    vtemp: = POPULATE_GROUP (rg_district);

    POPULATE_LIST ('BLOCK3.) Of RIDING ", rg_name);

    END IF;

    END;

    * / CHANGED AFTER a - list * /-does not work. Cannot complete the list based on the list

    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    ("rg_branch",

    "SELECT FROM dist_branch WHERE district IN branch (DIST DISTRICT_MAS WHERE DISTRICT = SELECT').

    || : BLOCK3. DISTRICT OF

    );

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END IF;

    END;

    Table:

    CREATE TABLE DISTRICT_MAS

    (

    DIST VARCHAR2 (100 CHAR)

    );

    CREATE TABLE DIST_BRANCH

    (

    NEIGHBORHOOD VARCHAR2 (100 CHAR),

    DIRECTORATE GENERAL OF THE VARCHAR2 (100 CHAR)

    );

    Values:

    insert into district_mas values ('chennai');

    insert into district_mas values ('coimbatore');

    insert into dist_branch values ('chennai', 'chennai_north');

    insert into dist_branch values ('coimbatore', 'Podanur');


    Concerning

    Nassik M

    I tested the code below when the list has changed


    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    QT VARCHAR2 (10): = "';

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    END IF;

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    (rg_name1,

    'SELECT branch, branch OF THE DISTRICT WHERE the dist_branch =' | QT | : BLOCK3. DISTRICT OF | QT);

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END;

    Hope it's work...

    Hamid

  • color change of the current item

    Hello

    I have a form that is based on a block of data, with 15 records displayed. [http://img22.imageshack.us/i/59679344.jpg/]
    The question is: in a data block trigger mouse sur-clic, how can I change the color of the current element, but not for all of 15 lines, just for the current text element where I am. (and not for all that the ROW). It's something like tables (I click on x-position 5, y-position 6 and just where I want green color for example).
    How can I do this?

    Thank you!

    Edited by: Roger22 the 19.04.2010 10:37

    Hello
    For this type of requirement, you can use the PROPERTY of the ITEM INSTANCE to set the Visual attribute.
    Simply create a Visual attribute that you want to set and CLICK-MOUSE-WHEN use this code.

    Set_Item_Instance_Property(:SYSTEM.CURSOR_ITEM,CURRENT_RECORD,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');
    

    -Clément

  • Color change on the list of Navigation by tabs (Apex 4.1)

    Dear friends,

    I use apex 4.1

    I have a list on page 0, which is the "list of tabbed browsing" and there are three pages running on it.
    I want to change the color of the button when I click on the specific button.

    Can any1 help me in this matter. I will be forced.

    Kind regards
    Kamran

    Reach

    Shared Components > Templates
    

    Click on the list of Navigation tab
    Then under the definition of the model; change the code in the current list template

    I would like to make a backup of the code first before you make changes.

    Jeff

  • Custom list item changes when you click

    I'm having a strange problem.

    When my list of messages is filled first, she checks a property in the json data to see if the message is 'read' or 'unread '. If it is "no read", it will be a different color than those who are already "read" to indicate to the user.

    It works very well, however I added an action context to the list, and when this action is triggered, I'm changing the message "unread". If the color of the list item to change. This works.

    However, after I changed the color of a single item in the listwhen I do scroll down and down, many elements change color. I think it has to do with the rendering of the list of recycling.

    This behavior does not occur after that list first initializes. Regardless of the colors have been queued to initialize their place. Only after that I have an amendment to one of the elements in the list, things go crazy when I scroll. I hope I'm being clear.

    How can I stop this from happening?  This is the code that changes the color of the label in my custom list item.

     listItemComponents: [
                                ListItemComponent {
                                    MessageListItem {
                                        id: messagesListItem
                                        contextActions: ActionSet {
                                            ActionItem {
                                                title: "Mark Unread"
                                                onTriggered: {
                                                    if (messagesListItem.isNew == false) {
                                                        var selectedItem = ListItemData;
                                                        messagesListItem.isNew = true; //property of list item is changed to unread
                                                    }
                                                }
                                            }
                                        }
    

    And inside the MessageListItem.qml

    property bool isNew: ListItemData.data.new
    
       onIsNewChanged: {
            if (isNew == true) {
                subjectLabel.textStyle.color = Color.create("#FF4500");
            } else {
                subjectLabel.textStyle.color = Color.create("#000000");
            }
        }
    

    Please let me know if you have any questions, any help or suggestion is appreciated. Thank you!

    Hello!

    I think that it doesn't because you are not changing 'new' dataModel element variable. In addition, assigning directly control isNew breaks property DataModel is bound to it.

    It should work if you change the dataModel instead.

    An important point to note, however, that it is not possible to change the individual variables of dataModel point. You need to replace the entire item. The code example for GroupDataModel: (not tested, so may require tweaks, tell me please if you need help in getting this work):

    onTriggered: {
      var selectedItem = ListItemData  // get a copy of dataModel's item
      selectedItem.new = !selectedItem.new  // modify it's property
      messagesListItem.ListItem.view.dataModel.updateItem(indexPath, selectedItem) // update the model
    }
    

    For ArrayDataModel, the function is named differently.

    In addition, this line seems suspicious:

    property bool isNew: ListItemData.data.new
    

    Probably, it should be replaced by this one:

    property bool isNew: ListItemData.new
    
  • How to display the list item values both from 2 different tables?

    Hello world.

    I have a problem for the display of the data.

    There are 2 tables in the database.

    Table-1 has lc_value, lc_no, lc_dt, and vendor_code columns.

    Table-2 has vendor_code, $vendor_name & vendor_address.

    I created the form where I display data in list item 30 (tabular presentation - 30 records displayed).

    I need to display all values automatically at the same time in the form just by clicking on "Enter_Query" and "Execute_Query".

    It worked when the form had fields in a table in a single table.

    I created fields in a table for tables; then created the relationship between the tables by using the join (vendor_code).

    But when I run the form, click on "Enter_Query" and "Execute_Query", its does not work.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.

    How can I do this?

    Help me.

    Thank you.

    Dear Bruno,

    Each provider code is to have a folder, then

    Why keep two tables?

    Why you want to update both the table at the same time?

    Master / detail means,.

    a master record depends on several detail records.

    Please, understand and try to build your form with single table.

    If you have already created 2 tables, then merge these into a single table.

    Or other wise keep table_1 as a database block and to vend_name as a data field (element of database in the palette of the property is set to 'no').

    Then go to the trigger of table_1 block post_query and write the following:

    Select vend_name in: vend_name from vendor_mst where vend_cd =: lc_vend_cd;

    In doing the above, the form will look as you wish but the change on the vend_name not to be saved because that is the point of no database.

    Other than vend_name all fields in table_1 will be recorded.

    Hope this will help.

    Post edited by: Priyasagi

  • Help needed in the list item... need display a selected Department employees

    Hi all
    I am very beginner in D2K technology. I use Forms 10g.
    Could you please help me...

    I created a list item that contains dept_id = 10, 20, 30...

    My requirement is when I change the value of the dept_id (select dept_id = 20), the employees belong to this desire to display dept (to display 5 dept 20 employees).

    I created two block - block2, block3 hepatitis has

    In block2, there is a list item

    Block3, there is an element of the screen and I've changed the number of properties displayed in block 10.

    I have atteched a trigger when-list-changed and the code is:
    Select last_name in: block3.item14 of employees where department_id =:block2.item4;

    But it does not work...

    Thanks in advance,
    Tapan.

    Published by: user630863 on August 8, 2010 21:20

    Published by: user630863 on August 8, 2010 21:55

    Well, the 'right' wa would be in the basic block 3 on the emp table database, set the somthind as where clause

    DEPTNO=:BLOCK.THE_LIST_ITEM:
    

    If you want to stay with the 'wrong' way to fill th eblock by yourself, try something like

    GO_BLOCK('BLOCK3');
    CLEAR_BLOCK(NO_VALIDATE);
    FOR rec IN cursor LOOP
      IF :SYSTEM.RECORD_STATUS!='NEW' THEN
        CREATE_RECORD;
      END IF;
      :BLOCK3.LASTNAME:=rec.LASTNAME;
    END LOOP;
    
  • Switch poplist display of the list item selected for its value of list item

    Is it possible to change the display in a poplist of the list item to its corresponding list item value?

    For example, I have a list item is filled with a group of records. Name of the country (e.g., Canada) is the list item, and the country code (e.g. CA) is the value of a list item.

    I want users to be able to see the names of countries, when the list is expanded. However, once users choose and click on a country, the country code must be included in the display.

    I suppose that if it is possible to do at all, he would be using a trigger a times-news-point-instance, but I do not know where to go to from there. Please let me know if you need clarification or more information from me. I'd appreciate any help you can give me.

    With the help of Oracle Developer Suite 10 G
    Version of Forms - 9.0.4.3.0

    Hello
    Welcome to the forum,

    Just an idea. Why you do not keep the country with the description at the time code. I mean, it's like you say you query group will be like this...

    SELECT code, description
    FROM table_name;
    

    So, I mean just change this query to concatenate the code with description. for ex.

    SELECT code, code||' - '||description as description
    FROM table_name;
    

    It will show you the code and the name in the list. So, it will not trigger etc.

    -Clément

  • Satellite C660-1J2 - change the color of the display

    Hello

    hope someone can help me it's new computer, a splash screen came to say that the color of the screen is set to high, and which uses the power of the processor, or you can configure it to fall or not to see this screen and you can change the effects.

    Have been, or how I can get this back to change the setting?

    If all goes well, might be kind enough to put me in the right sector

    Thanks in advance

    Tony Miller

    Hi milleras,

    Sorry, but that just confused s really tell you the color of the screen and not the brightness of the screen? You can post a screenshot of this message?
    What operating system you have?

    The brightness of the screen, you can change with the key FN + F6 and FN + F7 combination, but it has nothing to do with the color of the display.

  • How to change the display of the list of recent jobs on lenovo vibe turned?

    Hi, I looked everywhere in the settings to find the way to change the display of list of recent jobs...

    I used to use the stacked styles, and out of nowhere, there is a menu to change the styles, now it displays the app recently opened next door...

    I want to go back to stacked style, but I don't know where was the setting. I've looked through all the options setting, but can't find it.

    Please help me to locate, cause it's really bugging me.

    Welcome to the Chriz_sese forums!

    Go to settings-> display-> Wallpaper-> theme Centre-> the first icon in the right-> set Android.

    Kind regards

  • Change the number of items in the drop-down list box when running

    I'm trying to change the number of items in one of my boxes of comobo.

    I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.

    I guess I have to use a property node but I can't understand that one.

    You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).

    Ben64

  • How to change the border style of the list items in the apex


    Hi all

    We have created a few items from the selection list in the Apex and ask users to make changes to the border.

    I tried many ways, but he was not able to make changes, some could help me how we can change the border style of list items in Apex. By, the approach has been used by us

    Attributes of the element in the HTML form -> style = "" border: 1px solid #E5E4E2; "" [I speak that way] but no luck.

    Kind regards

    Sheikh tayeb.

    SruthiTamiri wrote:

    Hello

    Please find the details below

    APEX version # 3.2

    Internet Explorer version #7

    Mozilla version 12.0.

    Used theme #Blue

    Topic identification number is #12

    It is not possible to change the appearance of the borders of the selection list in IE7.

    To the borders of all the elements of the selection list style on a page in other browsers, include the following style sheet in the HTML Header page:

    .formlayout select {
      border: 1px solid #E5E4E2;
    }
    

    APEX 3.2 is no longer supported, and IE7 is obsolete. Upgrade to the current version is recommended.

  • How to update the table when change list item in the classic report

    Hello
    I worked with apex 4.2 and I create normal classic report with list (named loved) select a column, now I want to update the table when the user changes the list with the new value, I can't create a dynamic action to do this, I create checkbox with the primary key and the loop for check point to update the table but I can not get the value of the list item. and for more speed, the user want to do it when changing the value from the list.

    My question
    1. how to do it in javascript and get the value of the list item and update the table with the new value
    2. do I have to use the API to create the list item so I can get the value of the report item or what.





    Thank you

    Ahmed

    You can find a lot of information in this forum (and outside in google) when you search for AJAX processes and demand. However, the tutorial in the link below should be useful:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/hol08/apexweb20/ajax_otn.htm

    BTW, if we answer your question, don't forget to mark the appropriate post as correct. It will help all of us in the forum.

  • the page is rendered and loaded questions of list item change

    Hi all

    I have 2 questions, I'll try to put it as clear as possible. The link and log in info on the bottom.

    1. in what order is the rendered page fire? In other words, I have a report to Page 2 (Payroll Summary) and in this report, I select and where clause. The where the info from the article comes from a list item. When you view the report it shows nothing, so I guess that because the element is not filled in and yet, this is why the report does not. Not sure... so if someone can clarify that for me, it would be great.

    2. when I change a list item (eg. Payroll between 2010 and 2009 year), how can I refresh the payoll report that uses the year of payroll as a parameter? is it possible to launch the summary report on the Payroll when the year changes? If so, how?

    My apex page is

    http://Apex.Oracle.com/pls/Apex/f?p=31754:2:678019909905630:no:

    It is application of dashboard.

    Workspace Laba
    Username [email protected]
    Password edumet

    Once the connection to the application info is

    E-mail [email protected]
    password Laba

    Thank you
    Laba

    Emeric,

    When the page is sent after the selection value is changed, the prior to execution of the header calculations. I added a condition on the calculation, so that it only works when the value of the element is set to zero.

    Thank you
    Machaan

  • How to change the value of list item

    Hi all

    The scenario is like this...

    I have two country and state list item... Now when I select a specific country from the list item... corresponding State will come in the State list item...

    Please help me to solve the problem...

    Thanks in advance.

    T.Halder

    Hamadi,

    In the trigger WHEN-LIST-CHANGE of the list of countries point write,

    DECLARE
         Num_Temp           NUMBER;
         RG_Group_ID RECORDGROUP;
    BEGIN
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('RG_STATE', 'SELECT STATE_NAME, STATE_CODE FROM STATE_TABLE WHERE COUNTRY_CODE = ''' || :CB_COUNTRY || '''');
         Num_Temp           := POPULATE_GROUP(RG_Group_ID);
         CLEAR_LIST('CB_STATE');
         POPULATE_LIST('CB_STATE', RG_Group_ID);
         :CB_MODULE := GET_LIST_ELEMENT_VALUE('CB_STATE', 1);
         DELETE_GROUP(RG_Group_ID);
    END;
    

    Replace the field names, table and and the name of the control according to your requirement.

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

Maybe you are looking for