Re-computing a displayed item

Environment: APEX 3.1.1.00.09 running on IBM RS6000 / AIX 5.3
apex.oracle.com:
Workspace: galway
User: gwicke
Password: gwicke
If you look at the above example, please just run page 2 as I have cut out a bunch of stuff. ;-)>
I have two (2) DATE items on the page that are originally populated with a DATEPICKER retruning format mm/dd/yyyy and represent a BEGIN_DT_DISPLAY and END_DT_DISPLAY. The business rules state that the dates must be the beginning and end of a calendar quarter respectively. I have an item, 'STD_DELTA_CONTRACT' that is a static SELECTLIST with a SUBMIT so I can see the effects of my computations.
The first computation is supposed to change the BEGIN_DT_DISPLAY to the first day of the quarter. The SQL is easy enough.
The second computation does the same thing for the end of the quarter and should redefine the END_DT_DISPLAY item.
There are several other computations that seem to work OK.
I can't seem to get the date items to be redefined and displayed after the SUBMIT issued by the SELECTLIST item.
I have played with this page for quite a while and several of the processes, etc. may be set to NEVER as a condition. I don't believe they effect the outcome I am looking for, but what do I know? If I was sure, I wouldn't be entering this post!! ;-)>
Also, I would like to have the page submitted after the END_DT_DISPLAY item is selected but I con't seem to find how to make the SELECTLIST issue the SUBMIT after a value is picked. Help please!!
Any assistance is greatly appreciated.
-gary
Edited by: gwicke on Sep 23, 2008 3:50 PM
Please run application 'BUILDERPL' on apex.oracle.com, sorry about that.

Gary,
I would suggest to:
1- RTFM! ;) Read the official doc. / whitepapers
2- search/read the forum (if it's basic like a submit on a field, the subject has already been discussed for sure)
3- search/read the blogs of the major APEX Players
4- practice (I am using APEX since version 1.5)
Hope you have fun with this great tool.
Louis-Guillaume

Similar Messages

  • Problem with building conditional display items

    Dear All,
    Please help as I am using APEX for the first time.
    This my requirement during form dispaly in tabular format. There is one display item QA_TIER(not a database item). This item value is computed based on the condition below.
    I created a display item with :
    Source Used : Always, replacing any existing value in the session state
    Source Type: PL/SQL Expression or Function
    Source value or expression:
    begin
    if 2<=(select decode(&Leg_Req,'Y',1,0)+decode(&maj_funct_chg,'Y',1,0)+
    decode(&maj_tech_chg,'Y',1,0)+decode(&maj_ui_chg,'Y',1,0)+
    decode(&maj_def_met,'Y',1,0) from dual) then
    if &Customer_Priority = 1 then
    return 1;
    else
    return &Customer_Priority-1;
    end if;
    ELSE return &Customer_Priority; end if;
    end;
    Note : All reference with '&' are the actual field name.
    When running the page i get the following error message:
    ORA-06550: line 2, column 23: PLS-00103: Encountered the symbol "&" when expecting one of the following: ( ) - + case mod new not null others select table avg count current exists max m ORA-06550: line 2, column 48: PLS-00103: Encountered the symbol "&" when expecting one of the following: ( ) - + case mod new not null others table avg count
         Error      ERR-1020 Error in PLSQL item processing (function).
    Can anybody help me with building the display item with conditions as show above.
    Thanks in advance

    hi thanks for the help.
    I tried this time source type SQL Query:
    with both suggestions
    1.
    select (case when
    2<=to_number((select decode(v(Leg_Req),'Y',1,0)+decode(v(maj_funct_chg),'Y',1,0)+
    decode(v(maj_tech_chg),'Y',1,0)+decode(v(maj_ui_chg),'Y',1,0)+
    decode(v(maj_def_met),'Y',1,0) from dual)) then
    (select decode(v(Customer_Priority),1,1,v(Customer_Priority)-1) from dual)
    ELSE v(Customer_Priority) end) from dual
    Result:
    ORA-00904: "CUSTOMER_PRIORITY": invalid identifier
         Error      ERR-1019 Error computing item default value: page=2 name=QA_TIER.
    2.
    select (case when
    2<=to_number((select decode(:Leg_Req,'Y',1,0)+decode(:maj_funct_chg,'Y',1,0)+
    decode(:maj_tech_chg,'Y',1,0)+decode(:maj_ui_chg,'Y',1,0)+
    decode(:maj_def_met,'Y',1,0) from dual)) then
    (select decode(:Customer_Priority,1,1,:Customer_Priority-1) from dual)
    ELSE :Customer_Priority end) from dual
    Result:
    ORA-00932: inconsistent datatypes: expected NUMBER got CHAR
         Error      ERR-1019 Error computing item default value: page=2 name=QA_TIER.
    Both didn't work.

  • Display a database item on display item

    please i have a varchar database item and i want to display the last item in this field on a display item what should i do and i used the row id to get the last value but it didn't work

    Still not clear what you are trying to achieve...
    it is just a non database item that i want to view the data in the database item in itIf it a "non database item", how can it have a relationship with a database value?

  • ALV report i want to display in each P.O , i want to display item details

    Hi all,
    in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

    hi,
    once you retrive po number from ekko then retrive data from ekpo and loop at ekpo and append all the item details to your internal table.

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

  • How do I use airplay to stream a DVD movie playing in my computer to display on my TV?

    How do I use airplay to stream a DVD movie playing in my computer to display on my TV?
    I have a 2nd generation Apple TV and computer is a 2011 Macbook Pro. Processor  2.8 GHz Intel Core i7. Memory  4 GB 1333 MHz DDR3. Graphics  Intel HD Graphics 3000 384 MB. Software  Mac OS X Lion 10.7.5 (11G63). Storage: about 500GB free out of 750GB.
    I have a DVD player within my computer. Trying to play a movie from my computer to display onto my TV using my Apple TV airplay. But the airplay icon is not showing or giving the option to play a movie onto my TV.
    I've installed all software updates and still I'm not able to have this functionality.
    I assume this functionality exists where I can play a DVD on my computer, but watch it on my TV using my Apple TV, correct?
    Thanks for your help solving this puzzle.

    Welcome to the Apple Community.
    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). You can see which Mac you have and which operating system you are using by selecting 'About this Mac' from the Apple menu in the top left corner of your Mac and selecting the 'More Info' button.
    AirPlay Mirroring from a Mac also requires a fairly robust network.
    You may find a third party product that you can use instead of AirPlay.

  • Displaying items in a single line in ALV grid using  ALV_TOP_OF_PAGE.

    Hello Guys,
    I am having a problem in displaying items in a single line in the ALV Grid using event ALV_TOP_OF_PAGE.
    My requirement is to group items on a single line i.e. in the example below, Vendor code and posting date are on the same line. The next line the prints Vendor Name and Document no.
    Vendor Code: 123123                               Posting Date : 01.01.2011
    Vendor Name: ABCD                                 Document No: 152246598.
    Here is my code in subroutine 'ALV_TOP_OF_PAGE', 
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Vendor Code'.
      APPEND wa_list_comments TO it_list_comments.
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Posting Date'.
      APPEND wa_list_comments TO it_list_comments.
    The above code prints in the following format i.e one below the other,
    Vendor Code: 123123                              
    Posting Date : 01.01.2011.
    I also tried using HTML_TOP_OF_PAGE, but it didn't work.
    Can anybody please help me out with this.
    Regards,
    Danish.

    Hi Danish,
    Your problem is with the alignment and you need some fix positions .
    The solution i feel is u can use as below :
    In CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    use 
    i_callback_html_top_of_page       = 'HTML_TOP_OF_PAGE'.
    Now on calling routine call use cl_dd_document class :
    FORM html_top_of_page USING document TYPE REF TO cl_dd_document .
    data : doctable TYPE REF TO cl_dd_table_element,
              col1_t1 TYPE REF TO cl_dd_area,
              col2_t1 TYPE REF TO cl_dd_area,
              col1_t2 TYPE REF TO cl_dd_area,
              col2_t2 TYPE REF TO cl_dd_area.
    add quick table with five columns
        CALL METHOD lw_document->add_table
          EXPORTING
            no_of_columns               = 2
            border                      = '0'
         cell_background_transparent = ' '
            width                       = '100%'
          IMPORTING
            table                       = doctable.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t1.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t1.* Filling columns in row
    Call method doctable->new_row.
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t2.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t2.
    *Now adding the texts
    lw_text1 = 'your first text'
    CALL METHOD col1_t1->add_text
          EXPORTING
            text = lw_text.
    *Similarly add text for other columns
    *Adujust % in width to adjust the column as required
    Endform.
    Hope this will solve your problem .

  • When I sync my iPhone to my Mac computer the items that I have put in my phone iCal sync to the computer, but the items that I have entered on my computer iCal do not sync to my phone.  How do I fix this?

    When I sync my iPhone to my Mac computer the items that I have put in my phone iCal sync to the computer, but the items that I have entered on my computer iCal do not sync to my phone.  How do I fix this?

    look here
    http://www.apple.com/support/ical/

  • How to add a display item like the one in 'Invoices screen' please ?

    The label operating unit is in a folder like feature . Is this a display item/ a folder ? I need to add the same thing as label . Thanks .

    twinklin_girl wrote:
    I figured out it's a folder. How to add folder functionality to a customized form please ?Please see the following docs/links -- Search for "APPFLDR"
    Customization in Oracle Applications [ID 743490.1]
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T302936.htm#d0e750
    http://docs.oracle.com/cd/E18727_01/doc.121/e12900/T458979T458984.htm#I_bx2Dlib
    Folder Functionality in custom form
    https://forums.oracle.com/forums/search.jspa?threadID=&q=APPFLDR&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Multi-Line Display Item

    I need to populate a multi-line display item in Forms 6i.
    The problem that I am having is the actual assignment to the display item.
    For example:
    :DISPLAY_ITEM := '10';
    :DISPLAY_ITEM := '11';
    This makes the display item show the value '11' only.
    I need '10' on the first line and '11' on the second line, etc.
    Thanks in advance,
    Patrick

    well, you can write:
    go_block('BL_BLK');
    first_record;
    :display_item:=10;
    next_record;
    :display_item:=11;
    but for this- 1. block should have one navigable item. 2. display_item should not be the first item of the block.
    Otherwise you will need to create a non-databse text_item with width 0 on the canvas for that block.
    Hope this helps.
    Regards
    Mona

  • Display item visual attribute

    Hello.
    Is there a way to use set_item_instance_property on display item?
    Or change font color of disabled text item?
    Thanks.

    Set_item_instance_property is the new built-in. Don't use the old display_item. Help says: "Maintained for backward compatibility only."
    Use the new one. There are all properties in the built-in you need for changing the visual attributes.
    try it
    Gerd

  • Sorting on non-displayed items - can it be done ?

    Hi,
    I'm very new to Discoverer (and this forum), so apologies if I'm covering old ground.
    I've created a simple discoverer table report and the folder I've based the data on has a number of columns that determine the sort order i.e. called 'activity_type_sort_order', 'activity_sort_order', 'enclosure_order_order' - this is because the related columns activity_type, activity and enclosure are VARCHAR but contain numeric values.
    Hence, the existing application displays the data in the correct order in the Forms and Reports without showing the user the underlying columns that are determining the order.
    I want to do something similar in Discover i.e. produce a report that displays the columns activity_type, activity, enclosure but sorts the data based on 'hidden' columns activity_type_sort_order, activity_sort_order and enclosure_sort_order.
    I tried creating my first Discoverer report and it seems to need the activity_type_sort_order, activity_sort_order and enclosure_sort_order as displayed items in the workbook in order to all the rest of the data to be sorted.
    Is there any way I can sort using these fields but not actually display them ?
    I've read that I can create an alternate sort in the EUL but I've got 1000's of values.
    Can anybody help ?
    Many thanks
    mknipe

    Hi,
    You should be able to use the hidden sort option. In the sort tab add the sort columns and then change the sort type to be hidden.
    Rod West

  • Populate multi record display item

    Hellou gurus!
    I have forms 10g and i need to populate display item in enter query mode. My problem is that I have table T1 with some static values. Table T2 is through ID connected (reference) to table T1 1:1 cardinality and T2 table also have reference to T3 table.
    I have block B2 based on table T2 and in this block I have multirecord item for inserting and updating new values for T2, but in this block ii also have no DB, multi record display item (because i don't want to allow editting in T1 table records) for diplaying static values for table T1. I want to display all static values from T1 next to the editable values in T2 (T2 multi record field is not insert yet). I tried for loop, select into but it not work. T1 values need to be selected before I started to inserting values into T2 items, but off course they need to be referenced It is hard to explain but i belive you understand.
    Can you help me how I can populate multi record item??

    You have to write the code again for your second list item....
    group_id RecordGroup;
    list_id Item  := Find_Item('button.tyear');
    list_id1 Item  := Find_Item('button.tperiod');
    status NUMBER;
    rg_name varchar2(40) := 'recgroup';
    BEGIN
    ----------------------------- LIST
    clear_list(list_id);
    group_id := Find_Group(rg_name);
    IF NOT id_null(group_id) then
        Delete_Group(group_id);
    End if;
    group_id := Create_Group_From_Query(rg_name,
    'select vm_year, vm_year from fwqgl.vouchermaster
    group by vm_year');
    status := Populate_Group(rg_name);
    Populate_List(list_id, group_id);
    /* --------------------SECOND LIST ITEM...BUT REC. GRP NAME CAN BE SAME,better to use another name if you need to retrieve list and store qry..other wise the fol. code is enuf-----------------------*/
    clear_list(list_id1);
    group_id := Find_Group(rg_name);
    IF NOT id_null(group_id) then
        Delete_Group(group_id);
    End if;
    group_id := Create_Group_From_Query(rg_name,
    'select vm_period, vm_period from fwqgl.vouchermaster
    group by vm_period');
    status := Populate_Group(rg_name);
    Populate_List(list_id1, group_id);
    END;Edited by: Dora on Dec 5, 2009 10:41 AM

  • Display item number in US certificate of origin

    Hi,
    Currently in US certificate of origin, it doesnt display item number in item details.
    Sapscript: SD_EXPORT_FUCO
    FunctionPool: SAPLV55E
    Include Name: LV55EF24
    I had copied SD_EXPORT_FUCO into ZSD_EXPORT_FUCO and added V55ENAFT-POSNR to display item number but there is no value in that field.
    In the standard sap Function Pool(SAPLV55E) and Include(LV55EF24),
    this
    *   PERFORM GET_ITEM_NUMBER_NAFT.      "Item number
    *   PERFORM FILL_ITEM_NUMBER_NAFT.     "Item number
    were commented. I guess this is the reason why V55ENAFT-POSNR is empty.
    Is there any other field that i can used to display item number in that sapscript?
    Appreciate advice.
    Cheers!

    Hi,
    Just a suggestion, you can write a perform in the SAP script since you made a Z copy of it. Write the code for fetching the POSNR in the subroutine program. You could take help of the select query from where to fetch the data from that perform that is commented in the SAP programs.
    In the script:
    /: PERFORM GET_POSNR IN PROGRAM Z_GET_POSNR
    /: USING                                                     // parameters to pass
    /: CHANGING                                              // parameters to return back
    In the program Z_GET_POSNR
    FORM GET_POSNR TABLES IT_INTAB STRUCTURE ITCSY IT_OUTTAB STRUCTURE ITCSY
    Write code to fetch POSNR
    Pass the value back to the script
    ENDFORM
    IT_INTAB and IT_OUTTAB have fields NAME and VALUE.
    Thanks and Regards,
    Vanessa

  • Display number 1 to 10 in a text item or display item

    I want to know how do i display the number of 1 to 10 in a text item or a display item.
    What triggers should I use? What are the differences for each smarttriggers?
    What are the differences between a text item and a display item?
    Thank you in advance.

    Trigger
    PRE-TEXT-ITEM
    ============
    BEGIN
         FOR i IN 1..10
         LOOP
              dbms_output.put_line(i);
              END LOOP;
    END;
    I have a text item on my form. How can I display the output on to them when I have compiled and run the form?

Maybe you are looking for