Using WHEN-LIST-CHANGED on T-list to navigate block records

I have a form on which I use a T-List to list all of the child records in a block based on the selected parent record of the form. I am using the T-List almost strictly for navigational purposes (and eventually later for delete purposes as well). Above my T-List on the form is all of the individual fields that display the details of the record that is selected in the T-List. My POST-QUERY trigger on the block populates the T-List with all of the child records, and also uses the value of the highest (max value) child record to updated all of the detail fields for the block. I also have a program unit that updates all of the detail fields for the block that gets called from my WHEN-LIST-CHANGED trigger for the T-List. It passes the key value from the T-List to the program unit and updates all of the child record detail information.
My problem comes when I attempt to actually update the currently selected child record. I've tried a number of different things to get this to work, but none of them have completely worked, and I'm coming to the end of my knowledge base and can't figure out how to make this update the child record correctly. Initially I was having a problem where the form actually WAS performing the update, but it was always (no matter which list item I had selected) updating the same record, which was the first record that was retrieved for the block. I've run the form in debug mode, and checked the actual values of the child record fields after I've changed the selected item in the list, and all of those fields are actually the correct values corresponding to the selected item in the list, but for some reason, it won't update the record that is currently in those fields when I do a save. From what I can tell, I need to be able to somehow actually navigate the records in that block when I click on an item in the list (i.e. perform next_record or previous record until the block gets to the record that corresponds to the item selected in the list) so that the form recognizes and attempts to update the correct record.
Has anyone out there tried this before? Does anyone know of a solution for how to do this? Any help would be greatly appreciated. Thanks in advance.
-::YEX::-
<)))><

1. WHEN-LIST-CHANGED trigger is not for items it is for List items (Pop , COMBO, Tlist)
2. Try to write a code on WHEN-VALIDATE-ITEM at field level with code similar to this
if :custname is not null then
begin
      select ship_to_location into :ship_to_location
        from tablename
     where custcd = :custcd;
exception when no_data_found then
      ----call some alert and error message.........
end;
else
  :ship_loc := null;
end if;plz mark it helpful/correct if it is

Similar Messages

  • How do I create a URL to filter a view when the value I have from list one is the ID that was used by list 2 to pull in the list 1 title?

    My list "Tasks" has an record with Title = "Build SSIS for Duke Energy" and its ID is 1. Then I have a list "Journal" where I have tracked entries related to the progress of the task. When I create the Journal entries I passed
    in the ID of the task 1 which then pulled the title into the Journal's Associated task lookup column. Now I'd like to have a column in the Tasks list that would have a URL to take me to all journal entries related to the Task. But passing in the ID 1 of the
    task does not work. 
    If the lookup column has the actual Title from the task in all the time and it is not dynamically pulled every time the list is queried shouldn't I be able to filter on the Title e.g. "Build
    SSIS for Duke Energy"  

    I ended up going with a workflow to build the URL and sending the title to the look-up column. 
    I tried the script at that site and ran into several problems. It didn't work with views that were grouped, the calculated links did not show on the edit and view forms. I assume those forms would have to be changed to run the script also.
    In addition to, I have to add a CEWP to each view and I was also losing the "Items" and "List" options (next to "Browse") from the ribbon until I clicked around in the list. 
    What are the downfalls of a workflow? I ask because many people default to using a similar TextToHTML script like you mentioned.

  • How to Get checkbox value when List value changed in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
    take value of checkbox item and show it in message .
    SQL for report
    SELECT
    '<INPUT TYPE="checkbox" NAME="f01" VALUE="'
    ||SEQ
    ||'">' SEQ,
    ID,
    DEPT_NO,
    EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
    now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
    i create JavaScript on the page
    function test(pThis) {
    var f01_value = $('select[name="f01"]').value;
    alert('#SEQ : '+ f01_value);
    </script>
    I call this javascript function when list change but the value undefined..
    My Question :
    How can get this value Or any value of item in reports
    regards
    Ahmed

    Hi Ahmed,
    >
    i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
    take value of checkbox item and show it in message .
    SQL for report
    SELECT
    '<INPUT TYPE="checkbox" NAME="f01" VALUE="'
    ||SEQ
    ||'">' SEQ,
    ID,
    DEPT_NO,
    EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
    >
    You should not create checkboxes like this. Either use the APEX_ITEM.CHECKBOX2 API or change the Column Type to Simple Checkbox.
    >
    now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
    i create JavaScript on the page
    function test(pThis) {
    var f01_value = $('select[name="f01"]').value;
    alert('#SEQ : '+ f01_value);
    </script>
    >
    name="f01" returns an array, what you need is single element value.
    Try
    <script type="text/javascript>
    function test(pThis) {
      var f01_value = $v(pThis);
       alert('#SEQ : '+ f01_value);
    </script>
    {code}
    {quote}
    I call this javascript function when list change but the value undefined..
    My Question :
    How can get this value Or any value of item in reports
    {quote}
    Depends in how you are invoking/triggering the change event. Are you using DA or have you written an "onchange" event on the element?
    Cheers,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • WHEN-LIST-CHANGED Triggers Works Only Once ??

    hi
    i have a form with the 2 list ITEMS
    And i have some trigger WHEN-LIST-CHANGED For the
    first LIST item which Populates the Second List
    Based on the Value selected in First List
    Its Works Fine For the First time.
    But for second time Onward , it Does change the Value of the items in List2.
    Do i have to first clear and then repopulate, i tried this but then i get a total
    Blank , please help.
    jai

    From one of our support notes:
    List Items populated from Record Groups are extremely useful when you need to
    give your users a choice of items to choose from. This note will show you how
    to create two list items that have a "master-detail" relationship, i.e., the
    items appearing in the "detail" list item will depend on what is chosen in the
    "master" list item.
    CREATING THE LIST ITEMS
    Create two list items called DEPT_LIST and ENAME_LIST. Allow them to remain
    the default type of List Item, Poplists. For this situation we will not make
    them base table items. Go to the property pallet of each list item, click on
    the elements in list property and choose more. The cursor should be in the
    very topmost item under List_Elements. Depress CTRL+SHIFT+< to remove this
    default element and depress the OK button. Since you are going to populate the
    list item with RG values at runtime you do not need this element. This will
    avoid an "FRM-30351: No list elements defined for list item" error when
    running the form.
    CREATING THE RECORD GROUPS
    For this example, we will use the dept and emp tables. We have a choice of
    creating the Record Groups (RG) dynamically at runtime or at design
    time. In this case, the easiest option is to create them at design time.
    First create a RG called DEPT_GROUP with the following select statement:
    SELECT TO_CHAR(DEPTNO) A,TO_CHAR(DEPTNO) B
    FROM DEPT
    If you are unfamiliar with the structure of the RG required when it will be
    used to populate a list item please note the following:
    1. A list item has both a label and a value. For this reason the select
    statement brings back two fields, one which will be the label name and the other
    the label value.
    2. TO_CHAR is used to convert numeric values to character as the list item
    contains character values.
    Second, create a RG called ENAME_GROUP with the following select statement:
    SELECT ENAME A, ENAME B FROM EMP ORDER BY ENAME
    Note that depending upon your applications logic you may want to use the
    distinct operator to prevent duplicate names. But you should be aware that
    this will result in the overhead for sorting. Also, since ENAME is a VARCHAR2
    data type, the to_char function is not needed.
    POPULATING THE GROUPS AND LIST ITEMS
    You can populate the RGs and list items from a number of triggers but the most
    common is the WHEN-NEW-FORM-INSTANCE trigger. Place the following code in this
    trigger:
    DECLARE
    V_DEPT_GROUP NUMBER;
    V_ENAME_GROUP NUMBER;
    BEGIN
    V_DEPT_GROUP:=POPULATE_GROUP('DEPT_GROUP');
    V_ENAME_GROUP:=POPULATE_GROUP('ENAME_GROUP');
    POPULATE_LIST('DEPT_LIST','DEPT_GROUP');
    POPULATE_LIST('ENAME_LIST','ENAME_GROUP');
    END;
    Note that this code is needed to initially populate both RGs and both List
    Items.
    If you run the form at this time you will see that DEPT_LIST contains all the
    departments in Dept and ENAME_LIST contains ALL the enames in the emp table.
    As our original goal was to populate ENAME_LIST depending upon what was chosen
    from DEPT_LIST, we will now add the code to do this. In this situation we will
    add the code to a WHEN-LIST-CHANGED trigger on DEPT_LIST. The code should
    look as follows:
    DECLARE
    V_NUMBER NUMBER;
    V_QUERY VARCHAR2(512);
    BEGIN
    V_QUERY:='SELECT ENAME A, ENAME B FROM EMP
    WHERE DEPTNO = '||:DEPT_LIST||' ORDER BY ENAME';
    V_NUMBER:=POPULATE_GROUP_WITH_QUERY('ENAME_GROUP',V_QUERY);
    POPULATE_LIST('ENAME_LIST','ENAME_GROUP');
    END;
    First we will build a query that will contain the currently chosen department
    in DEPT_LIST. This is basically the same query we created in RG ENAME_GROUP
    but we are adding the where clause restriction. We then use the
    populate_group_with_query built-in to repopulate the RG and then populate the
    list again.
    Run the form again and test. Choose department 10 from the DEPT_LIST list item
    and then choose the ENAME_LIST item. You will note that the enames appearing
    in ENAME_LIST will be those in department 10. This should work for any
    department you choose.

  • Reminder does not work properly, when using multiple lists

    I am using Reminders on my iPhone 5 with iOS 6.1.. I am using several Lists for Reminders, such as Job, Home, General et cetera.. Everytime I am not using the standard List, set a Reminder in the future and save the event, the event will be displayed on the standard List with the current timing. Very annoying as I need to amend the Reminder for a second time.

    I opened my Word for Mac 2011, opened a document, and Then opened my Dashboard on top of that and used the Dictionary to look up a definition, and changed the month on the Calendar widget, and changed my stock graph interval.  It all worked just as it was supposed to: fine.  You apparently have a corrupted file somewhere.  I do not know where.
    Hope this helps

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • Problem Setting Item on a Page when using a List

    I have setup a List of reports. On the Page where the List displays, the user selects a Project Manager from a select list. In the List target section, I set the item for the project manager on the report page to the project manager selected on the List page.
    When I click on the report in the list, I am directed to the correct page, but the project manager item is not being set to the project manager selected on the original page. The report is showing information for all project managers.
    I am able to accomplish what I want if I use buttons, but I would prefer to use a list of all the reports. Why is the item not being set as indicated in the target section of the list?

    It sounds like you have two different items on two different pages for your project manager value. ApEx will treat them separately unless you tell it otherwise, via a calculation/process. In otherwords, if you want the second list set to the value of the first one then do it in a page process on the second page. Something like:
    :P2_PM_ID := :P1_PM_ID;
    This particular example would be a 'page rendering' process with the process type of PL/SQL Expression. There are certainly other options possible as well.
    Earl

  • How to maintain the contact list in the phonebook when i change my sim card

    how to maintain the contact list in the phonebook when i change my sim card

    The SIM has not affect on the contacts in an iPhone. Unlike other devices, the contacts are not maintained on the SIM card.

  • Dimension DATASRC Blank when list, Available when used hierarchy

    Hi gurus,
    We are facing a weird issue in SAP BPC 10 NW.We have created the dimension called DATASRC.When we try listing using the list functionality available at the right hand side of the screen when inside the dimension,it shows blank.however when we use the hierarchy option, it shows the data.
    We are not sure as to why this is happening.Could you please suggest/advise.
    l
    Thanks in advance.
    Thanks & regards,
    Rashmi

    Hi,
    Can you please provide the version of Oracle Client (ex. 11.2.0.3.0 32 bit  etc), Oracle DB and operating system (ex. Windows 7 32 bit   etc..) where Oracle Client and Access are installed to kno more about the issue.
    thanks and regards
    Venkat

  • How To Display Value In inputText When List Is Used

    Hello,
    I have a question regarding how to display value from List in a jsf page?
    From a Map, i could display like
    <ice:inputText  id="plantno" value="#{bean.detailedRowData['plantno']}"So if I am using a List instead of Map, how can I refer value in List so that I could display my plantno?
    <ice:inputText  id="plantno" value="#{bean.?????}"Thanks

    Create a backing bean method that fetches the value from the list for you.
    <ice:inputText  id="plantno" value="#{bean.plantNo}"/>
    public class MyFunkyBean {
      private List<String> rowdata;
      public String getPlantNo(){
        return rowdata.get(INDEX_AT_WHICH_THE_PLANTNO_IS_STORED);
    }It really isn't possible to turn the list into a regular bean/entity?

  • I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (114957)

  • Using select list as default value in tabular form.

    Hi,
    I am using Application Express 4.1.0.00.32. I have two questions that are related.
    I have a Select item *'P1_SELECT'* and a tabular form My Items.
    Question 1. The My Items tabular form col1 Attributes are set Display As Text Field, and the Tabular Form Attributes are set Default Type = item(application or page item name), Default = P1_SELECT. I have checked the session state value is set on P1_SELECT ie. Fred. What I need to know is, why, when adding a row to the tabular form My Items does col1 not display 'Fred' as the default value from the select item P1_SELECT? I can change col1 of the Tabular form to be Display as Text (save state) and this will work. However that leads me on to:
    Question 2. After adding say 3 rows to the form, I then change the select P1_SELECT value to Bob and Bob is now set in session state on the P1_SELECT item, but when I again add row to the form the value Fred is still the value not Bob. It seems that the tabular form keeps the default value as Fred and not Bob. How can I get this to look or work like:
    col1_
    Fred
    Fred
    Fred
    Bob
    Your help is needed.
    Thanks.

    Howard (DBA in Training) wrote:
    Do you submit the page or set the value after changing the selection? If not, the display value seems to be Bob but the working value is still Fred. That's what you are seeing right? In the "Settings" section, what do you have for "Page Action when Value Changed". I've been using "Redirect and Set Value" because I was staying on the same page after the selection.
    Additional info which might be helpful (or NOT). ====================
    NOTE: I am just a novice's novice with APEX and I had much agony with Select Lists. It was challenging to have the Select List value displayed because there seem to be so many different sources of the Select List value, namely:
    1) the current value in the session state
    2) the value you can specify in "Source value or expression" in the "Source" section of the Select List item
    3) the value you can specify in the "Post Calculation Compution" in the "Source" section of the Select List item
    4) the value you can specify in the "Default value" of the "Default" section of the Select List item
    [Now, if I've misdescribed any of these, remember, this is from a novice's perspective.]
    It's like putting a clock (back) together. Get any of the pieces wrong and it will probably not work right.
    I had an addiitonal challenge in that I wanted the same Select List displayed on multiple pages and for the currently selected value (from the former page) to already be set on the new page when it was displayed. What fun!
    To see what I did here: http://apex.oracle.com/pls/apex/f?p=43250:101 login Dever/Ima9Dever
    Remember, I'm doing many things you will likely not need to do. I iniitalized the Select List for the first time it displayed. I copied the Select List value from old page to new page by storing it in an application item F217_SYS_NIC_NM.
    Best wishes,
    HowardHi Howard,
    You don't have submit the page for just setting one item's session state. you can use a Dynamic Action OR use Page Items to Submit property if available (this is available in various places such as sql region,chart region etc)
    In context to this question you don't have to do any of those..just see my example above
    Thanks

  • HT1386 I have a ipod nano older version and I can't sync my music to the iTunes site to change or delete or add anything to it? What can I do? The iPod works fine and I use when I am at the gym.

    I have an older version 1.1.3 iPod nano 4 gig and when I open iTunes I can't view my music list or change or delete any I have on the iPod.
    This device works fine and I like to size to use when I excercise. What can I do?

    I requested your post be moved to the iPod Nano forum. This is the iPod touch forum.

  • Using Computer Lists

    This is my first time using "Computer Lists". I have added my computers, which are all macs, and have tried to manage the preferences for the list. (Clicking on the preferences icon at the top of Workgroup Manager.)
    One of my settings is the login window message, yet when I click "Apply Now", wait a few minutes and look at the computers, my changes haven't taken effect. Even after logging in the out, and restarting. Am I missing a step?

    LDAPv3.
    Delete the machines from the server.
    You'll need to configure your clients to bind to your server, using Directory Access. Use this document:
    http://docs.info.apple.com/article.html?path=ServerAdmin/10.4/en/c7od24.html
    Then, you'll see them show up again in your server's computer list. Now you can set preferences on them at will.

Maybe you are looking for