Conditionally diplaying items in List item

Hi,
It is appreciably if anyone could help me, how we could conditionally display list items. Depending on the condition the certain items should be greyed out. Our environment is 10g Forms on Windows XP.
Thanks with Regards.
Hector

Do you want to disable the list or the values in the list?
For the first one use set_item_property: enabled property_false/true based on your condition.
The second one is not possible.
Monica

Similar Messages

  • Allow user to select each item in list item only once.

    Hi,
    What is the best way to go to stop the user selecting the same item in a list item more than one.
    I have a multi record block, the user can select values 1-10 for each record, but they should not be allowed to select duplicates.
    Thanks for any help!

    Hi,
    Suppose you have 4 list items A,B,C,D in block "test" and same 4 values in each list item. Now you want that, no two values selected by user in list item should be same.
    On when-validate-item of list item B write code like :
    If :test.A is null then
    Message('First A must be enter");
    Raise form_trigger_failure;
    end if;
    If :test.B = :test.A then
    Message('value already in list item A');
    Raise form_trigger_failure;
    end if;
    Now, for C same code with a addition of condition for B with OR operator like:
    If :test.C = :test.A or then :test.C = :test.B
    Like that.... you can achive your functionality.
    But one restriction is that user has to enter values in list item in a pre-defined order only....
    Hope that it would work for you.....

  • Item Type "List Item" dosn't work

    I've tried to give the item type of a item to List item
    After compiling, I launch the form and I get this:
    NoClassDefFoundError
    Plugin Java 10.7.2.11
    Version JRE 1.6.0_31-b05 Java HotSpot(TM) Client VM
    Could it be because of something incompatible in my versions? But it's first time it happens (only with List items)
    Database: Oracle 10gXE
    Forms Builder: 10.1.2.0.2
    JRE: 1.6.0_31
    Jinitiator: 1.3.1.22
    Thanks in advance!

    This error should only appear when you use a list-item with the list-type set to combobox. A combobox in forms is a listitem where you can also enter your own text. If you nly need a dropdown list, set the liststyle to poplist. This works also without patching. if you really need the combobox, patch.

  • Is it possible to query an Item with two or more conditions in OOB Update List Item WF Step

    In SharePoint Designer 2010, in Workflows, is it possible to give more then one condition when querying items? Let me explain, it is fairly easy to drop Update item in this list step, and say, for example, Update item with ID X. However, if is it possible
    to do something along this lines with OOB steps, Update an item in this list where Title is Equal to "abc" and Modify date no older then 3 days.
    Update: Workflow is started when the item is added to the list. What I would like is to update some fields on this item depending on information in this item and in external list. For example
    Current Item Field 1 has value "abc"
    Current Item Field 2 has value "123"
    Current Item Field 3 has value "456"
    External List has Item with value in Field 1 "123"
    External List has Item with value in Field 2 "abc"
    External List has Item with value in Field 3 "xyz"
    Update Current Item Field 3 with value "xyz"
    In short I would need following query - Update Current_Item_Field_3 with value from External_List_Field_3 where Field 1 is equal to Current_Item_Field_2 and Field 2 is equal to Current_Item_Field_1

    Hi,
    From your description, I understand you want to update list item with workflow based on two or more conditions.
    To resolve your issue, you need to use “If current item field equals value” condition. Use this condition to compare a field in the current item that the list or reusable list workflow is currently running on to a value. Values can be static text, dynamic
    strings, and lookups to variables, context information, or other SharePoint fields. And you can learn more about each condition by referring to the article:
    https://support.office.com/en-in/article/Workflow-conditions-in-SharePoint-Designer-2010-A-quick-reference-guide-d8e33ac7-9336-487f-a60b-388c4ea497ff?ui=en-US&rs=en-IN&ad=IN
    I assume your External List is called “ListB”, and Current List is called “ListA”, You can follow the steps below:
    1. Add “If current item field equals value" for condition that ListB Field2 equals to ListA Field1, then set the second condition “ListB Field1 equal to ListA Field2” as the “Find the List Item” in the “Lookup for Single line of text”
    as the screenshot below:
    2. Add “Update List Item” as the screenshot below for updating Current_Item_Field_3 with value from External_List_Field_3. In addition, you should set “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1:
    In addition, if you have more conditions, you could add “If current item field equals value” condition, and you should set each “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Problem passing value from List Item to List Item

    OK I will try to explain what I am trying to do. I have a Form that List Item at the top and they cascade from left to right. When I get to the BPOST_TAG I choose the Bpost then move to EPOST_TAG to choose the Epost. The EPOST_TAG should show all the Epost that go with Bpost you already chose, but it only showing 1 or 2. Below is the example of how should work!
    SYSTEM     COUNTY     ROUTE   BPOST_TAG      EBPOST_TAG
    1 77 80 025 030
    ------- The Return Values Should be as below-------------------------------------------------
    Sy Co Route Dir Bpost Epost Miles Descrption
    1 77 80 1 025 026 ? ?
    1 77 80 1 026 027 ? ?
    1 77 80 1 027 028 ? ?
    1 77 80 1 028 029 ? ?
    1 77 80 1 029 030 ? ?
    1 77 80 2 025 026 ? ?
    1 77 80 2 026 027 ? ?
    1 77 80 2 027 028 ? ?
    1 77 80 2 028 029 ? ?
    1 77 80 2 029 030 ? ?
    The top 5 List Items are based on the first Data Block (PMISCURR) and the bottom 8 columns are based on the second Data Block (PMISCURR1).
    I have PRE-QUERY on the first Data Block (PMISCURR), below is code for the PRE-QUERY.
    DECLARE
    Wh_clause VARCHAR2(200);
    BEGIN
    IF :PMISCURR.SYSTEM is not null then
         Wh_clause := 'SYSTEM = '||:PMISCURR.SYSTEM;
    END IF;
    IF :PMISCURR.COUNTY is not null then
         Wh_clause := WH_CLAUSE ||'AND COUNTY = '||:PMISCURR.COUNTY;
    END IF;
    IF :PMISCURR.ROUTE is not null then
         Wh_clause := WH_CLAUSE ||'AND ROUTE = '||:PMISCURR.ROUTE;
    END IF;
    IF :PMISCURR.BPOST_TAG is not null then
         Wh_clause := WH_CLAUSE ||'AND BPOST_TAG = '||:PMISCURR.BPOST_TAG;
    END IF;
    IF :PMISCURR.EPOST_TAG is not null then
         Wh_clause := WH_CLAUSE ||'AND EPOST_TAG = '||:PMISCURR.EPOST_TAG;
    END IF;
    END;
    OK It's just not my day I can't even get this line-up! :)
    Edited by: Monty on May 5, 2011 2:58 PM

    Hello,
    Simply get the current item value in a When-List-Changed trigger:
    current_value := :block.listitem ;Francois

  • Attach Item To List Item Using Powershell

    Hi Everyone
    Hoping someone can help me with a SharePoint Powershell Script i need to do..
    What I have is a Document Library with word documents and a list of items that these documents needs to be attached to.
    The document library and the list have a column in common, Customer Order No.
    I want to basically take all the items from the document library and attach them to the list items where the Customer Order No matches, is this possible with Powershell?
    Thanks in advance :) 

    [System.Reflection.Assembly]::LoadWithPartialName(”Microsoft.SharePoint”)
    $filePath = "location"
    $siteUrl = "site"
    $spSite = new-object Microsoft.SharePoint.SPSite($siteUrl)
    $spWeb = $spSite.OpenWeb()
    $spList = $spWeb.lists["YourListName"]
    $spitem = $spList.Items.Add()
    $item = $splist.GetItemById($1)
    AddAttachment $item $filePath
    function AddAttachment($item, $filePath)
    $bytes = [System.IO.File]::ReadAllBytes($filePath)
    $item.Attachments.Add([System.IO.Path]::GetFileName($filePath), $bytes)
    $item.Update()
    $spitem.Update()
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • List item problem in oracle forms 6i

    Hello,
    I've 10 test filed, in-front of each text field there are 10 list item (separate list item)
    for each list item element list is given below
    Route
    Customer name
    Delivery date
    Delivery Time
    Delivery Session
    Expected received
    Actual Received
    Fresh Received
    Rate per liter
    Debit Amount
    On text fields I am fetching records from another file. User will map the list item with text item.
    What i want to check is, list item should not get repeated. i.e suppose I've run time display like this
    text item
    list item
    A
    ROUTE
    B
    DELIVERY DATE
    C
    DELIVERY TIME
    D
    DELIVERY DATE
    E
    EXPECTED RECEIVED
    F
    ACTUAL RECEIVED
    G
    FRESH RECEIVED
    H
    RATE PER LITER
    I
    DEBIT AMOUNT
    J
    DELIVERY SESSION
    on text filed B- DELIVERY DATE is assign and at text field D again DELIVERY DATE is assign. I want to avoid this thing and prompt the user regarding the same. How should I go about this? Should I design a button for validation, if yes then what should be the code? or should i go with WHEN-LIST-CHANGE? if so, then what should be the code?
    my design time display is like this
    text
    list item
    txt1
    lst1
    txt2
    lst2
    txt3
    lst3
    txt4
    lst4
    txt5
    lst5
    txt6
    lst6
    txt7
    lst7
    txt8
    lst8
    txt9
    lst9
    txt10
    lst10
    please suggest something
    Thank You
    Sam

    THe most user-friendly way would be to remove elements from all other lists when they are chosen once. You would have to have a WHEN-LIST-CHANGED-trigger on all listitem and populate the the listitems accordingly.

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • List Item Problem!!!!Urgent

    Hi..
    Items:
    List5 : list item
    List6 : list item
    Two visaul attributes: default,color.
    I ahve problem when using the code(down),when i click on each element in list it
    highlight it,but problem when I scroll down in the list it highligh all elements.so wha is the problem,whay it highlight all elements???Thanks for help
    TRIGGER : WHEN-LIST-CHANGED
    declare
    total_list_count number;
    i number;
    double number;
    begin
    double := 0;
    i := 1;
    total_list_count := Get_List_Element_Count('list6') + 1;
    while i < total_list_count loop
    if :list5 = Get_List_Element_value('list6',i) then
         double := 1;
         delete_list_element('list6',i);
    end if;
    exit when double = 1;
    i := i + 1;
    end loop;
    if double = 0 then
    total_list_count := Get_List_Element_Count('list6');
    total_list_count := total_list_count+1;
    Add_List_Element('list6',total_list_count,:LIST5,:list5);
    Set_Item_Property('list5',VISUAL_ATTRIBUTE,'color');
    else
         Set_Item_Property('list5',VISUAL_ATTRIBUTE,'DEFAULT');
    end if;
    end;

    THe most user-friendly way would be to remove elements from all other lists when they are chosen once. You would have to have a WHEN-LIST-CHANGED-trigger on all listitem and populate the the listitems accordingly.

  • List Item in Oracle forms

    Hello, I am using oracle weblogic 10.3.5 with oracle forms 11g at windows 7 platform.I have an oracle form with a list item(database item). Now I have attached a record group from another database table to populate list item.My list item is by default set at null value but I want  to show a particular value in list item as when new instance  of list item is occurred:
    |                 ABC                                    |             
    |__________________________________|
    it is a list item.It has 4 values as
    Name          Value
    ' '                    NULL
    A                    1
    B                    2
    ABC                3
    D                    4
    and when list item instance is loaded then I want to show the ABC (able name) and  3 (value) in list item.
    thank You
    regards aaditya

    Block Level Trigger: When new record instance
    :list_item:=3;

  • How to filter data by list item

    hi all,
    I create list item on block BLK1 ,
    name :emp_name
    item type: list item
    elements in list : list_elements : (null) list_item : (null)     
    data type : Char
    maximum length : 200
    and create PROCEDURE :
    PROCEDURE POPULATE_LIST_BY_QUERY(P_LIST_NAME VARCHAR2,P_QUERY VARCHAR2) IS
       RG_NAME  VARCHAR2(30) := 'RG_CODE_DESC' ;
       RG_ID    RecordGroup;
       errcode  NUMBER;
       LIST_ID  ITEM;
    BEGIN
         RG_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL (RG_ID)
            THEN DELETE_GROUP (RG_ID) ;
         END IF;
         RG_ID   := Create_Group_From_Query (RG_NAME, P_QUERY) ; 
         errcode := Populate_Group (RG_ID) ;  
         LIST_ID := FIND_ITEM (P_LIST_NAME) ;
         POPULATE_LIST (LIST_ID,RG_ID) ;
    END;and wrote in trigger WHEN_NEW_FORM_INSTANCE:
      POPULATE_LIST_BY_QUERY('BLK1.emp_name', 'SELECT emp_name,emp_id FROM employees');
    create table employees
    (emp_no number(10) primary key,
    emp_name varchar2(200))
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (1, 'hhh uuo');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (2, 'hh ppp');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (3, 'ph');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (4, 'uuuuu');
    COMMIT;when Run my form list item give me all data, no problem ,ok
    My question is that can i want to filter data when write anythnig data is found im my list or part of data,
    show data only by my filter,
    for example:
    I wrote in my list : hh
    show data in list:
    hhh uuo
    hh ppp
    I wrote in my list : h
    show data in list:
    hhh uuo
    hh ppp
    ph
    I wrote in my list : uu
    show data in list:
    uuuuu
    if not wrote anything fetch me all data,
    Thanks a lot

    Hi,
    You can try,
    POPULATE_LIST_BY_QUERY('BLK1.EMP_NAME', 'SELECT EMP_NAME, EMP_ID FROM EMPLOYEES WHERE EMP_NAME LIKE ''' || <your_search_variable> || '%''');Hope this helps.
    Regards,
    Manu.

  • Can we create a list item as a data block item?

    Hi,
    I have changed a text item to list item on the data block.
    This list item used to get populated when it was control block item, but after i changed it to data block item, it's not getting populated.
    My question is, can we create a list item(poplist) as a data block item?
    Any idea?
    Thanks in advance
    R.G

    Hi
    When you use ctl blocks data dose not fetch from Database. But in data blocks it get fetches when you execute query. So you have to make sure table column values are matching with the List Box values you have given.
    So please check table values.
    Nilaksha.

  • [Oracle Forms 6i] : conflict properties between datablock and list item

    hi
    i have a datablock which contains a list item. my list item is filled programmatically.
    the user needs to be able to change the values in that list item.
    well the problem is that the user can't change the value in my list item when the property INSERT_ALLOWED of the data block is set to false.
    i need this property to be set to false, cause it disable the green button up on my form
    aparently when this property is set to false, i can't change the value of my list item
    help please !
    thx
    Dan

    I couldn't understand this portion
    'i need this property to be set to false, cause it disable the green button up on my form'
    Can you explain what exactly you mean by disabling the green button?

  • List item criteria

    I am new to forms.
    I have a block where one of the field/item is list item (values are - flat amount, increment amount). Below is my requirement -
    Upon Save, if there are records with Incremental and records with Flat for a single schedule, do not allow the user to Save. Display an error message “Cant mix incremental and flat amounts on a single schedule.”
    can any one please provide solution?

    Hi jan,
    I have a form which contains items (Schedule is one of the item). I have a button "Owner". If user clicks owner button for any schedule, it will open a block where user will enter the data. when user mutiple records for the same schedule, he cant select flat for one record and increment for another record. All the records should have single value i.e either flat/ increment. I hope you got what I am explaining!!
    Thanks in Advance!!

  • Autocomplete text or list item

    i'd like to perform Autocomplete property to text item or list item in forms 10g , i know that solution is using java bean but i don't know how to use it with oracle and how to import it
    best regards

    At runtime, display the Java console to see if there ar error raised.
    Did you follow the article installation steps? Did you copy the JAR file in the /forms/java folder ? Did you add it to the archive tags in the /forms/server/formsweb.cfg file ?
    Francois

Maybe you are looking for

  • How to end text element in sap script

    how to end an text element in sap script this is the format. /E text element name &tablename-fieldname& text-text-text-text now if i do not end that text element it is not displayiny my below text , so what to do in this case

  • ITunes cannot recognize iPhone/iPad via WiFi Sync following motherboard change

    Hi folks, I'm having a problem with synchronising my iPhone (and iPad) to iTunes on Windows 7 Home Premium via WiFi sync. This never used to be a problem - both devices would be identified by iTunes (occasionally this was sporadic, however a simple W

  • JScrollPane- Scrolling makes the contents of the Pane garbled

    I have a JTextPane inserted into a JScrollPane and the JSrcollPane is Inserted into the bottom part of the JSplitPane..   private JTextPane ResultTextPane = new JTextPane();   ResultScrollPane.getViewport().add(ResultTextPane, BorderLayout.CENTER)  

  • JUImageControl locks up application

    after opening viewing and then selecting a different image the application stops responding. It seems it has trouble loading the next image. Is there a cache for this? I cant seem to debug the app because it works ok on the first 2 or 3 images. thank

  • IAS 4.1SP3 install problem

    When installing iAS 4.1 SP3 on Windows 2000 Professional, I get the following error message: Unable to get User Directory Suffix from Directory Server The problem occurs when I get to the dialog box for "iPlanet Application Server Administration Serv