Display Field Query

Hi all,
I am new to Oracle forms, and bit stuck in middle of no where.
The question is:
When ever I press a button it displays the answer into the given display field. I have create the display field, attached the trigger with button ie when button pressed, done the half codding but at the end of the codding don't know how to display the result in display field.
The same like we use in sqlplus DBMS_OUTPUT.PUT_LINE
Thanks

Thanks your reply,
I have created a Trigger:
SQL > DECLARE
V_DATE VARCHAR2(50);
CURSOR C_DATE IS
select trunc(months_between(:DATE_DIFFER.HIGHER_DATE,:DATE_DIFFER.LOWER_DATE)/12)||' years '
||trunc((months_between(:DATE_DIFFER.HIGHER_DATE,:DATE_DIFFER.LOWER_DATE) - trunc(months_between(:DATE_DIFFER.HIGHER_DATE,:DATE_DIFFER.LOWER_DATE)/12)*12)) ||' months '
|| trunc((:DATE_DIFFER.HIGHER_DATE - add_months(:DATE_DIFFER.LOWER_DATE,months_between(:DATE_DIFFER.HIGHER_DATE,:DATE_DIFFER.LOWER_DATE))))|| ' days '
from dual;
BEGIN
OPEN C_DATE;
FETCH C_DATE INTO V_DATE;
:date_display := V_DATE;
CLOSE C_DATE;
END;
But getting an error DUAL must be declared...Its not an database its, so how I can use DUAL function..
Thanks

Similar Messages

  • QA: Designer's operation to Add one more Field to display in Query Result Web Part

    QUESTION ABOUT Query Result Web Part presentation +1 Field
    I'd be looking at a property of Web Part to look up Discussion Board through Query Result Web Part. Currently it displays 'Title' column of Discussion Board, and my caring requirement is presentation customization to hold double
    columns of 'Title'+'Updated Date'. How could I add one more field 'Updated Date' to display in addition to that preexisting 'Title' field?
    Any procedural steps to realize how to add Filed to display in Query Result Web Part?

    Hi Yoshihiro,
    As I understand, you want to add the field to display in Query Result Web Part in SharePoint 2013.
    Which web part does you use? Content query web part or search results web part?
    If you use search results web part, you could edit the discussion board result template and add the updated field in the template.
    You could go to Design Manager: Edit Display Templates (site setting-> look and feel->design manager->edit display template), download the Discussion Item.htm file, and edit the file. 
    After editing, upload the file.
    The articles below are about how to modify an existing Display Template in SharePoint 2013.
    http://www.learningsharepoint.com/2012/09/17/sharepoint-2013-the-new-display-templates-for-styling-your-content/
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
     If you use content query web part, you could edit the content query web part, in the Property Mappings section select the “Change the mapping of managed”, and add the “modifiedOWSDATE” (it means the last modified date) in the line, after
    that you could see the update date under the title.
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I modify the display field names on the output port of my bi query

    Hello,
    I integrate my bi query in the visual composer storyboard.
    Then I click on my output port of the query and see the output fields.
    The display field names are very strange.
    For example:
    ABZCNQMDOPWJGHS1Q5Q27090
    I have never save such a field name while I create my query in the query designer.
    Have somebody an idea, where I can modify my displayed field names??
    Thanks.
    Thomas

    Hi Thomas,
    the cryptical names are the technical names of your query components. If there is no decription available (depends also on your portal language) then the technical names are displayed. Check your portal language in your user settings and then check if you have entered a description in the query designer for this language.
    Best Regards,
    Marcel

  • Display Crosstab query in DataGrid

    Hi, I'm a Flex beginner. Could someone please help me how to
    display crosstab query result in DataGrid? The following query
    returns 6 columns:
    - First column: values in the field Sell_Channel
    - Second: Sum(Revenue Total) from the Revenue field.
    - Others: Revenue Subtotal by Sell_Channel and quarter.
    Quarters are values stored in the field name Quarter. In Datagrid,
    what would be the datafield for these 4 quarter columns?
    Thanks millions.
    Here is my SQL:
    TRANSFORM Sum(Revenue.RevenueTotal) AS SumOfRevenueTotal
    SELECT Revenue.Sell_Channel, Sum(Revenue.RevenueTotal) AS
    [Total Of RevenueTotal]
    FROM Quarter INNER JOIN Revenue ON Quarter.FiscalQuarter =
    Revenue.Quarter
    WHERE (Revenue.Fiscal_Year="2006")
    GROUP BY Revenue.Sell_Channel
    PIVOT Quarter.Quarter;

    Crosstab is a reporting function not a SQL one. SQL statements must have a fixed number of columns regardless of the data.
    The only way to do it using SQL is to use PL/SQL to generate a dynamic query as shown on Ask Tom here
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:15151874723724
    Otherwise there are reporting tools such as Oracle Reports that can do it as well.

  • Additional search & display fields rqd for opportunities in IC Winclient

    Hi
    I have a requirement where i need to add additional search and display fields in the Interaction history in IC Winclient.
    The search and display fields are for the opportunities search in the Interaction History.
    As SAP standard we have,but need to add few more for my client.
    Please can anyone suggest me is there any standard config to do it or we need to develop to populate the additional fields.
    I really appriciate for quick response and will be give reward points .
    Thanks,
    Kalyan
    Message was edited by:
            kalyan atukuri

    Hi Siva
    What is the transaction to look at this query?  I have not seen any evidence that the program accesses this query, but it is worth having a look I guess.
    The sequence of Function calls are:
    CCMCS_BP_SEARCH_RULES
    CCMCS_BP_SEARCH_CONTROL
    CCMCS_BP_ADDR_SEARCH2
    CCMCS_BP_SEARCH2
    (Up to this point it uses structure CCMADDRESSFIELDS, and has accesss to HOUSE_NUM2)
    Then it calls BAPI_BUPA_MAIN
    It might be that I will have to repair CCMCS_BP_SEARCH2 in the end, but I'd like to be sure that it is my only option, as I do not want to change SAP standard code unnecessarily.
    Cheers
    Esti

  • JDeveloper: Display Field as in 10g Forms

    Dear All,
    I am new in JDeveloper 11g ADF. I have worked in 10g forms and reports and pl/sql and plaining to shift in JDeveloper 11g ADF. I have developed a ADF application and places the table as ADF Forms now I want to place a display field in that grid display result of that record as I do in 10g forms in Post Query or Post Change trigger
    sorry for bad English. I shall be very thank full to you
    Regards,
    Zafar Iqbal

    Can you post some images - what you have in ADF currently and what kind of look and feel you want. That will get you quicker help than us guessing what you require :)
    Also please read this before you post - https://forums.oracle.com/forums/ann.jspa?annID=56

  • Change to display field on control block not reflected until form refreshed

    Hi guys, hope someone out there can help me with this query.
    I'm currently developing a form that will allow users to generate offer letters and contracts via a custom form which is used within Apps 11i. This form is a fairly standard multi-text field form with tickboxes which hold the applicant details, two buttons (one to Select All, the other to Clear All) and another button to produce the actual contracts selected.
    There is also a display field which is part of the control block attached to the form; both it and the Produce Contracts button are part of this control block. I've added a bit of code to change the text in the display field to inform the user that the contract or contracts they've requested are being generated, but although the call to the relevant code to do this appears before kicking off the concurrent request to generate the contracts, the update to the field fails to appear until after the concurrent request is complete and its output appears on another screen.
    Does anyone know why this is? I've racked my brains over it and can't seem to understand why. I've pasted the code in below if anyone has any ideas!
    Many thanks, Geoff
    --- procedure display_status_message ---
    --- Displays a status message in the request_extract_ctrl.query_information ---
    --- display item informing user what is going on ---
    --- Changes: ---
    --- G Butler 21/08/08 First version ---
    procedure display_status_message(p_tab_count in binary_integer default 0) as
    c_proc_name constant varchar2(50) := 'display_status_message';
    v_position pls_integer;
    v_msg_string varchar2(500);
    v_status_msg varchar2(2000);
    begin
         v_position := 1;
         --- go to the request_extract_ctrl block
         go_block('REQUEST_EXTRACT_CTRL');
         --- check how many records have been sent for generation
         --- get the correct message from the message dictionary
         if p_tab_count = 1 then
         fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACT_SUBMIT');
         elsif p_tab_count > 1 then
              fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACTS_SUBMIT');
         end if;
         v_position := 2;
         --- copy the message into the display item field
         v_status_msg := fnd_message.get;
         :request_extract_ctrl.query_information := v_status_msg;
         -- synchronize the change in the display item field with the form on screen
         synchronize;
         v_position := 99;
    exception
         when others then
    v_msg_string :='Unexpected error occurred in display_status_message procedure, position: '||v_position;
    v_msg_string := v_msg_string||'. SQL error: '||sqlerrm;
    fnd_message.set_string(v_msg_string);
         fnd_message.error;
         raise form_trigger_failure;
    end display_status_message;

    I had a similar problem, but it was with the message line. I found that with Web Forms, I had to issue the Synchronize; a second time, but in Client/Server Forms 6i, the first synchronize worked. Here is the code I used:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> SYNCHRONIZE;
    if Get_Application_Property(User_Interface) = 'WEB' then
    synchronize;--first does not work on web
    end if;</font></pre>
    Let us know if this works.

  • Regarding Selection Screen field making display field  in ALV report

    Hi All,
               In ALV Report,  at runtime how can i make the field as Display Field in selection screen .
    Thks & Regds
    Shailesh

    hii,
    Go to se38 and give the below progra name execute.... check the source code it is very easy to understand.
    1.demo_dynpro_modify_simple
    2.demo_dynpro_modify_screen
    if tou are using grid,u can refer to foll link
    sequencing / choosing fields in report screen at runtime,
    Display the Columns in the grid at run time
    rgrds,
    Shweta

  • Data not getting displayed in query

    Hi
    I have master infoobject with keyfigure units as percentage, and data is loaded and working fine.
    data is not getting displayed in query, i am getting the error message, that exception aggregation has to be maintained for 0calday.
    how do i resolve the issue
    Regards

    solved

  • Displaying fields from a Z Table on CRM UI

    Hello Experts
    I am trying to display fields from a custom table onto a CRM UI form view.
    1. I created a custom GENIL root object & Search object ie. ZCUSTOMER. & ZCUSTSEARCH
    2. Tested this in the GENIL BROWSER to ensure that I could enter update values to the table and retrieve it via the search object.
    3. Created a custom component ZCUSTOMER
    4. Created a view with this component ZCUSTOMER using the wizard -
         Model Name - CUSTINFO
         BOL Entity - ZCUSTOMER
         No links to the custom controller or higher level objects.(as I do not want to tie this to any standard components)
    Type of view - Form view
    7. Created a Context node for the component controller with the same info as I did for the view.
    8. Performed the binding of the view context node with the component controller context node.
    9. Configured 1 field CUST_NAME to be displayed on the view.
    10. Configured the run time repository to display the view.
    Now the issue is..
    When the view gets displayed, the field is displayed with the error "CUST_NAME not bound"
    What am i missing?
    Thanks
    RLX

    Hi Swati,
    Thanks for the feedback. I re-viewed the WD_CREATE_CONTEXT method of the view controller implementation class and I see the following code in there already-
    method WD_CREATE_CONTEXT.
      create the context
        context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZL_ZCUSTOMER_BSPWDCOMPONEN_CTXT' ).
        typed_context ?= context.
    endmethod.
    Does that look right or do I need to modify it?
    Thanks once again for the help.
    RLX

  • Import Manager and Display Fields

    I've been using SRM-MDM 3.0 for a couple of months and 1 fundamental MDM design has always bothered me and I was hoping to get some resolve on this.
    The purpose of Display Field is 2 folds:
    1. Display the field in the Catalog Search UI for a lookup table: i.e. if both Supplier Name and ID are Display Fields, then in the Search UI, both fields are displayed to the end-user. If only Supplier ID was the display field, then in the UI only the ID is displayed.
    - From a usability pov, tables such as Supplier and Product Group should have the name or description fields displayed in the Search UI as the numeric values are meaningless to the end-users. 
    2. Display field ALSO affect what is the key used to import data into a table.  So if Supplier ID is the display field for Supplier table, then in Import Manager, the Supplier ID values are displayed and must be mapped to the source values.
    - From an importing pov, mapping values should always be an index-like field, such as Supplier ID or Product Group ID, or ISO, and usually never the actual name or description field.
    But SAP has tied the two together. So in order to display the name/description to the end-user, we must enable the name/description field as a Display Field.  But we also want to map based on the index/ID field, so we also enable the index/ID field as a Display Field.  Now in Import Manager, we have two Display Fields for a table (i.e. Supplier ID and Supplier Name for Supplier table) and I've noticed some issues with this:
    1. You import file must have BOTH values (index/ID and the name/description fields) in the source, in order to Automap.  If your source file only has 1 field, like in MECCM when extracting  ECC contract, ONLY the Supplier ID, or Category ID is extracted, Automap is not possible.  What is funny is that standard SAP extract program only extracts the ID fields, BUT the standard SAP repository has the name/description fields as the Display Field.  Automap is a must for tables like Product Group where hundreds of lines can make manual mapping a pain.
    2. I also noticed you cannot Add values to a table that has 2 Display Fields, you can only map to existing values.  The Add button is grayed out.
    With all that said, when you're replication ECC Contract Data using MECCM, for tables like Supplier and Product Group, what fields should be set as Display Fields, and if there are multiple Display Fields, what special setting needs to be done in Import Manager to enable automapping?  Even standard SAP Import Map (_MDMContractDataTransmission_ProductID) throws errors when multiple fields are set as Display Fields.
    I'm not familiar with the partitioning function, and I've seen PDF's about it, but don't really see how it could be helpful. I've also read someone suggesting changing the DF's before import, which I think is unacceptable, as this requires unloading/loading repositories everytime an import happens.
    Thanks for reading my paragraph and any input is greatly appreciated.
    Edited by: Derek Xu on Apr 30, 2009 6:50 PM

    Hi Derek,
    Thanks for writing your thoughts. I would like to provide some information on one of your points where in you have mentioned that :
    You import file must have BOTH values (index/ID and the name/description fields) in the source, in order to Automap. If your source file only has 1 field, like in MECCM when extracting ECC contract, ONLY the Supplier ID, or Category ID is extracted, Automap is not possible.
    I completely agree that if you have 2 fields in MDM repository and you are only importing only one of them, then you cannot use the Automap feature of Import Manager. So in your case, the description is not getting importing, so you cannot use Automap in that case.
    I had a very similar requirement in one of my project and we went with creation of a Import Value template. We created a template with all the possible values for all the look up tables in that and mapped it once in the Map. Hence, next time, the Map was used to automatically Map the source and Destination values for all the look up tables.
    SAP-MDM Automatic Import Requirement u2013 Creation of a Value Mapping Template:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80ad0cff-19ef-2b10-54b7-d4c7eb4390dd
    Please read the above article and hope its useful. You can go for this approach in your case if suitable.
    I have mentioned examples of descriptions and their respective fields in the article.
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • Infoobject in infoset but not displaying in query designer

    Hi,
    I have created a query on infoset(ods1 & ods2).
    a custum defined infoobject (fiscyr) is not displaying in query designer while it is present in infoset.
    pls give your inputs,for why this infoobject is not available in query designer.
    Thanks
    Radika

    Hi Radika,
    I cannot think of anything other than the solutions already mentioned in this thread (checking the IOBJ in infoset, running RSISET and activating it). I just had a foolish idea that you might not be looking for the right IOBJ. All the IOBJs from an infoset are not displayed with their original technical names in the query designer. They are disdplayed in the format: <infoset_technical_name>_FXXXXX where XXXXX is a number.
    Also try one more thing. Go to transaction RSISET and type in the technical name of the infoset there.
    Right below the box where you type the Infoset name is a check button. Check your Infoset there and then activate it from within the RSISET transaction (the activate button is right after the check button). With Infosets, sometimes just activating it from within RSA1 does not work but RSISET always seems to work.
    Do this and see if it helps.
    Thanks & regards,
    Nikhil

  • How to display the query results in several pages?.

    Hi,
    i want to display the query results in several pages. for example my query result found 50 matches, now i want to print 20 per pages next 20 will be in next pages. iam using only jsp & mysql.
    Regards
    Chinna

    Hi, what you are trying accomplish is known as pagination.
    You could use JSTL tags with Custom Tags to perform pagination in your JSP pages.
    evnafets showed me DisplayTags , you could use those as well http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
    Here is one article on paging:
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html

  • How to display field information dynamically in reports

    How to display field information, depending on the description in DOMAINS..dynamically in reports...
    give an example.
    Thanks

    Hi
    the text u should take into the internal table for that and
    it should send into the ALV_GRID_DISPLY
    SLIS_FIELDCATALOG_T_ALV-SELECTION_TEXT = " DOMAIN".
    other wise u should set in the write statement
    write : / '     '.

  • How to display field values in long text of messages....

    Hi,
      Currently iam doing an userexit. In that i want to display error messages. and if we click on message it will display the long text. My question is i want to display field values in the long text. Under the long text's &system_response& i want  to display a field value.
    Regards
    chinna

    Hi Chinna,
    Within short and long texts, you can use placeholders, which can be replaced with the content of data objects using the MESSAGE statement. A maximum of four character-type placeholders are permitted; they are indicated by #&i# in short texts, and by #&Vi&# in long texts, where i = [1, 4]. If #&# itself is to be displayed as part of the text, it must be specified as #&&# in short texts and as "&" in long texts.
    To add some detail on how to create variables in Long text, you have to go to 'commands' and in symbol option provide the variables like
    &V1&  &V2&  and so on.
    Hope this helps you.
    revert for further clarification.
    <b>Alwyas reward Points to useful suggestions.</b>
    Regards,
    Vikas
    Message was edited by:
            Vikas Taneja

Maybe you are looking for

  • How to create dynamic source file path for lumira?

    i have source file for lumira  visualization on  D:\lumira\SourceFiles\sample.xlsx; also .lums file in D:\lumira\demo.lums But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the

  • Anyone have the correct settings for iCloud in Outlook 2011 with OS X 10.7.2 ?

    I have tried setting up iCloud in my outlook 2011 on my iMac. I get an error "[AUTHENTICATION FAILED] Authentication failed] Your username/password or security settings may be incorrect. I have tried several posted settings, for example: Incoming Ser

  • Problem with Solaris

    Hi Experts, I am facing a problem while creating a directory. Steps :- 1 I created a user 2 added Primary group 3 assigned the roles of super user When I am trying to creat a folder I get the following error :- mkdir: Failed to make directory "test"

  • As you call the music on hold to call technical support ?

    as you call the music on hold to call technical support ?

  • Preparing Update Will Be Ready Right After The Rapture

    I haven't used my Apple TV 2 for a while. I use it lots in the summer when there are no new TV shows and not so much in season. Used up my DVR'ed shows and thought I'd enjoy a movie rental. Haven't updated but chose to. You know the drill: Preparing