Summary columns in portal forms

i have a master-detail form and i need to sum(one of detail columns) and display the result in the master block.
has anyone any ideas on how to have a summary column in master in oracle portal ?
has anyone done this before ?
thanx
null

Not exactly what you want, but I have managed to put a summary table at the end of the detail block. This gives a total for all detsail records for the current master, not just those displayed.
Add a pl/sql block to the 'after displaying the page' section of the Additional PL/SQL code tab to run the code you need. THis pl/sql block will include the p_session.get_value function to get the identifier of the master record, a query on the detail table and the HTML code to display the results.
Another method might be to create a view to contain the summary details you need for each master record, and base the master block on this view.

Similar Messages

  • Conserving filename with upload via portal form into blob type

    Hi
    I have a little question. Is there any chance to conserve a filename, which was uploaded into blob column via portal form and then create link for this file with the same name?
    null

    Vlasta,
    You certanly can save the original filename in your form, to do that you will need to add a FILENAME varchar2 column to your table and write a simple Javascript (search this forum for examples) to copy the fileselect value with onChange event. So, when you submit the form with your file the original name will be stored in you table.
    Thanks,
    Dmitry

  • How to autopopulate fields in a portal form based on database procedure?

    Dear gurus, I am a newbie to the portal world and i have a rather unique problem. I have searched online but still cant find a solution to my problem. I have a portal form (AS version 10.1.4) based on a db procedure that accepts only one parameter. The form has about 12 fields, two of which are combo boxes. Because of the relationship b/n combo box 1 and combo box 2 and the rest of the form fields, the user has to start out by selecting a value in combo box 1. This auto populates combo box 2 (based on the previous selection). However, when the user selects a value from the populated combo box 2, this is supposed to trigger an action to query the database and retrieve values for the remainder of the form fields and populate them accordingly.
    I tried to use p_session.get and set values but discovered that one cannot do this with form fields that are based on a procedure. I could write javascript to call a database procedure but i am not sure how to pass the return values from the database back to the javascript routine and then populate the remaining fields accordingly.
    HELP ME PLEASE!!!
    Thanks

    Hi Venkat, create a section (section control) for each set of columns you want to hide/reveal. Put your columns in that section. Then set a rule on the dropdown so that if dropdown = "this" then show "this" section.
    cameron rautmann

  • How to display links in a text-field in Portal forms?

    In a database the content in a varchar2 field could include a link:
    'Shortname <a ref="#" title="Full or long item name">Long name</a>'
    In a Portal report this field is displayed like:
    Shortname {color:#0000ff}_Long name_
    {color}
    where the last part is a link. When pointing to this link with the mouse, the full item name is displayed. If this field is displayed in a Portal form, however, it is displayed exactly as written first:
    Shortname <a ref="#" title="Full or long item name">Long name</a>
    Could anybody tell how this field could be displayed as a link in Portal forms? The field itself does not need to be updated, it serves as an identifier for trailing fields in the details of a MD-form. If the long name should be displayed in the field, you would need to scroll horizontal to see the other details.

    Yes your point is clearer now. You wish to see an abridged form of a field data with the facility to see the full data when you hover on that data. just like what we see sometimes in hyperlinks.
    Both of the methods I told you work to display a modified data value* (without modifying them in the databse) and I floated them after testing. Have used slightly different functionalities in some applications a while back.
    To get the 'mouse hover' display, you may want to use the java-script event-handlers of the form elements.
    Both methods work with the premise that we do not want to change field data in DB; only displayed-data needs to be different.
    1. The idea to edit info using sql-queries or functions from default value attribute work is the main thing. how and what should we edit the data to produce is a plsql-coding problem. So for instance, for a data example like yours, the following works!
    assumption: the desired field is LINKS and is a column in PORTAL.TBL_TEST_FORMLINKS
    SELECT DECODE(LINKS, NULL,NULL,SUBSTR(LINKS,INSTR(LINKS,'>','1')+1, LENGTH(LINKS)-INSTR(LINKS,'<','2'))) FROM PORTAL.TBL_TEST_FORMLINKS
    If you need a different output or have a different requirement, then the example should be sufficient to guide you how to help yourself.
    2. The other case of javascript embedded html in an additional plsql code also works. One such example is this:
    <pre>
    BEGIN
    HTP.PRINT('<SCRIPT LANGUAGE="JavaScript1.1">
    // find the element you want to edit first;
    // hint: you may use this scheme and some basic jscript to extract the field LINKS : FORM_NAME.DEFAULT.LINKS.01
    // now use javascript to get its value; treat it to fit your requirement; and equate it back to the LINKS element;
    </SCRIPT>');
    EXCEPTION
    When Others THEN
    null;
    END;
    </pre>
    -- now follow my other instruction on FORM attributes in my second reply to see what you want to see.
    these hints should be more than enough for anyone familiar with these technologies.
    AMN

  • Placing Summary column in master data block

    I have a master/detail datablock form. i want to show the sum of "amount" field that is present in detail datablock and this summar field must be placed in master data block but it does not compile the form and shows following error.
    FRM-30377: Summary item must reside in single-record block or in same block as summarized item.
    Item: S
    Block: PBL_PAYMENT_MASTER
    FRM-30085: Unable to adjust form for output.
    it works only by putting it in the same detail block with "Query All Records" to YES.
    But I want to place this summary column in master data block but then it is not working.
    How we can solve this problem.

    Hi,
    In this case:
    -- i put my summary column in the master data block with :Query_All_RECORDS set to yes
    --but Physically it is placed on detailed block on the canvas
    and it Works with this trick.
    Regards,
    Abdetu.

  • Change Labels on Summary Columns

    Could anyone advice me how to change labels on the summary columns on a cross tab report?
    Current it shows for e.g. count(orders).
    I would like to change it to "Order Count"
    Also how can i change the value format on a drill down report?

    Hi,
    Thanks a lot for your answers.
    First, on umResetPasswordPage.jsp I have found the code where "LAST_NAME" must take a value from other file (Could be from umelogonbase.jar?) so, maybe it is not the right place to change it, isn't it? or did you suggest by other way?? This is the code on the umResetPasswordPage.jsp file:
    <td width="161" height="20">
            <label class=urLblStd for="logonlastnamefield">
              <%=logonLocale.get("LAST_NAME")%>
              <span class=urLblReq> *</span>
            </label>
          </td>
    Second, On Portal Content there is not any Page/Iview wich manage this Support (LogonHelpApp) page openned by "get Support" link on Welcome Portal Page. At this time, I could not find if is it a webdynpro or other component Portal....

  • How to handle CLOB in Portal Forms

    I want to generate a simple form in Portal using CLOB.
    Here is a simple example of what i want to do.
    I have a table :person_details having columns
    name varchar2(30), resume_details clob, picture blob).
    Using the wizard if i create the portal form it
    shows only 2 columns name and picture. It just doesnt
    show resume_details -clob on the screen.
    I tried to manually create a field on the form - but then
    how do I link it to the database so that i can insert/update
    stuff in the database.
    Your help is appreciated.

    Hi,
    CLOB are not supported as sharmila has already told in the previous reply.
    what you can do is that create a table with following details.
    desc person_details
    Name Null? Type
    NAME VARCHAR2(30)
    RESUME_DETAILS BLOB
    PICTURE BLOB
    MIME_TYPE VARCHAR2(2000)
    And then instead of RESUME_DETAILS bein CLOB make it BLOB.Associate a mime_type field with it.
    by doing so you can upload not only text based resumes but also word document,rtf format, and text aswell (can try more combinations).
    The mime types for the above types can be as follwing.
    Application/msword => for word document.
    Text/plain => for text documents.
    Text/richtext => for .rtf files.
    I have tried all of the above combinations and you can try more combinations.
    Hope it helps.
    rahul

  • Oracle rdf summary column is not working as expection

    hi
    I have Requirement  to bring as below Format
    emplo name
    project name
    project nnumber
    cp_1
    cp-2
    ...cp_25
    mark
    abc
              123
    20
    30
    10
    mark
    dfc
              234
    25
    35
    15
    mark
    45
    65
    25
    for that i have created the Rdf  and rtf
    In Oracle Report
    One group
    data model query
    group name G_project_number
    and i create formula column  to give the values in the cp_1 to cp_25
    My RTF format
    Employee name
    project name
    project number
    cp_1
    cp_2
    ..cp_25
      <for each : g_project_number><?employee nmae?>
    <?project name?>
    <project number ?>
    <?cf_1?>
    <?cf_2?>
    ...<?cf_25?>
    <?employeename?>
    <?cs_1?>
    <?cs_2?>
    ..<?cs_25?><end for -each>
    summary columns in the same data model  group
    now report is showing as accumalate value for the columns
    employee name
    project name
    project number
    cp_1
    cp-2
    ...cp25
    mark
    abc
    123
    20
    30
    10
    mark
    20
    30
    10
    mark
    dfc
    234
    25
    35
    15
    mark
    45
    65
    25
    and my data model
    one group
    all info in that
    Please guide me  how to take forward this to achieve
    Thanks  in advances

    Please check the below link just to make sure all steps are taken care.
    http://oraclemaniac.com/2012/08/15/how-to-add-a-descriptive-flexfield-dff-in-a-custom-oracle-apps-form/

  • How to reference new columns in a form

    If I have created a form application component and the
    underlying table changes, i.e., a new column is added, how do I
    reference that new column in my form without having to delete
    the application component and recreating it?

    Chetan,
    Thanks for the confirmation - the answer was as I feared.
    ORACLE - can you confirm whether this will be addressed in the
    next release of portal as it a major pain having to recreate
    from scratch a Form (that is likely to have many customizations
    to make it useful) just to add a new column that was previously
    ommitted or to reflect a schema change - which is especially
    likely to occur during the development cycle of an application.

  • Installing Portal Forms, Reports

    For the Last few weeks i have been reading all the documents on the internet,
    so i at last became able to
    install Oracle Databse 11g
    install RCU /installing Schemas, all of it,
    installling weblogic 1033
    using identity Managment installed OID etc
    identity manager didn't gave any error
    when prompted at last to Portal Forms, Reports and discoverer
    just strucked at providing "Specify OID informtion" hostname,portnumber etc
    identity manager summary show port number 3131,3060,password and user name are also correct,
    but pressing 'next' gives me error message "Verify Credentials, Make sure hostname,port number, password are correct"?
    Kindly someone

    i did it somhow,
    deselecting portal and
    select forms, reports only
    then skip the specification screen of OID,
    installed firefox 5.0.1 and jre 6u27, run test.fmb which was in forms folder,
    but it do not run any other FMB it gives a TNS error?
    Kindly someone,
    Edited by: kashif, pakistan on Oct 3, 2011 12:42 PM

  • How to get HTML form name for use in Portal Form's custom layout?

    I want to add a date selector to a Portal Form but the NAME attribute of the FORM HTML tag is dynamic.
    To add a calendar icon that opens a date selector, I add the following tags to the custom layout after the date form field:
    <img src="/images/calendar.gif" height="16" width="16" border="0">
    The <form field name> is static, but the <form name> appears to be dynamic (e.g. WWVM3115, WWVM3116, WWVM3117, ...).
    The custom layout uses substitution variables for the form fields and labels. Is there a substitution variable for the form name?

    Here's the javascript function someone recommended several years ago (on an oracle portal forum) that I've used successfully to reference fields in non-portlet portal forms:
    function findItem(pFieldName) {
    var vFormElements = document.forms[0].elements;
    for(var i = 0; i < vFormElements.length; i++) {
    if (vFormElements.name.indexOf("."+pFieldName+".") > -1) return i;
    document.write(i);
    return -1;
    You can then reference the portal form field name using the column/field name only:
    document.forms[0].elements[(findItem('COLUMN_NAME_HERE'))]

  • Portal Forms Perfomance

    I have developed several forms using 10.1.2 Portal. I have tried both a view based form and a table base form. Both the view based and the table based forms work but are very slow...I count 8 sec to comeback with results from the a simple table in the database. Simple I mean one table with about ten columns...with about ten rows of data in it. Can somebody please point me in the direction of performance tuning specific to Portal Forms? I have scrubbed the discussion forms and have not found relavent discussion.
    Regards,
    David Cryderman

    So nobody has ever had any performance issues with Portal and Forms? I am the only one? I guess I am very special.
    Help would be greatly appreciated. Hard to find documentation on performance. I am new to portal, so any information would be great.

  • Conditional display of "Custom" Buttons in Portal Forms

    Could someone tell me if the following is possible, and briefly explain the steps to a beginner in Portal (but reasonably familiar with PL/SQL):
    Problem - How to display "Custom Buttons" conditionally
    Example -
    a) Assume you have a certain record ("patient_address"). The hospital requires that every patient address be authorized before submitting records to health insurance. However, authorized records should not be authorized again.
    b) Also assume that the "patient_address" table has a column "authorized" (which can contain Y or N)
    * The requirement is to show an "Authorize" button whenever the record being viewed has the "authorized" column as "N" only
    * If possible, this can be further improved by obtaining whether the person viewing the information has permission to authorize, but this can be taken as a next step
    Approaches -
    1. If possible, achieve this in Portal Forms
    2. (worst case) - show the button, but show a message if it is pressed and the action does not apply
    Somehow, it seems as though Portal Forms is not suitable (or does not have the documentation readily accessible) of how to do specific, custom, real world forms design as in this example - could someone please elaborate
    Also, would this be better done by using one of the following in combination with Portal:
    - HTT (will this be supported, given that it is an Oracle internal technology)
    - PHP (is this even compatible with Portal?)
    null

    Hi,
    Conditional display/hide of custom buttons is not yet supported in Portal.
    However, if you are willing to modify the generated form package this could be done.
    Each form has a procedure called row_function which conditionally hides Insert/Update buttons depending on the mode. By default all elements of a form are visible, then row_function modifies the "visibility" property to hide that element.
    for example, this is a fragment of row_function code which hides the Insert button in update mode:
    "_form_state" := p_session.get_value_as_varchar2(
    p_block_name => "_block",
    p_attribute_name => '_FORM_STATE');
    if "_form_state" = 'UPDATE_AND_DELETE' then
    "_idx" := get_index('INSERT_TOP');
    p_form.items("_idx").visible := 'N';
    end if;
    You can add any additional code to check form's session storage/custom package variable/function whatever is more suitable in your case.
    Then you just set visible to 'N'.
    "_idx" := get_index('MY_CUSTOM_BUTTON');
    p_form.items("_idx").visible := 'N';
    Of course the biggest drawback of this is every time you edit your form you will loose your change and must edit the package manually. To minimize the effect you can create a custom package/procedure with type signature matching that of row_function and place your code there, so you will need to add only one line of code to the row_function.
    Hope this will help to resolve the problem, I don't know the status/plans for HTT/PHP support in Portal.
    Thanks,
    Dmitry

  • Disable column in tabular form

    Hi,
    I am working on apex4.1 ,working on tabular form . i want to disable columns in tabular form.
    I Have debit and credit column in tabular form.These columns are multiply by exchange rate.
    if i have multiplication of Debit_prod =debit*Exchange_rate then
    credit column should be disable, and if Multiplication of cr_prod =Credit*Exchange_rate
    then dr column should be disable.
    Thanks in advance.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Sep 20, 2012 4:14 AM

    Hi,
    Thanks for reply.
    I am entering the value in tabular form. As i fill debit or credit column of the tabular form,Then if value in the debit column i have entered ,then on press tab control switch to exchange rate column , credit column should not be enterable and vice versa.
    Thanks & Regards
    Vedant

  • Summary Column inside the Cross Product

    Hai All,
    I have developed a matrix report in the RDF format. There is a summary column inside the cross product. When I create the generate XML from the RDF the summary column from cross product is not apppering in the generate XML file. How can we accomplish that summary column inside the RDF.
    Thanks in Advance

    http://winrichman.blogspot.com/search/label/BIP%20Vertical%20sum
    http://winrichman.blogspot.com/search/label/Cross-tab
    these links should help , you , if not, send me the xml and template and desired output.

Maybe you are looking for

  • Unable to edit validated field in table maintance

    Hi all, my requirement is to show an warning message on non key field if validation is not correct and edit on the same screen. solution: I have created an event new-entry in table maintance and tried to validate that field field (email) form new_ent

  • Install new hard drive, restore from Time Machine, File Vault Problems

    Hello all, I spent way too much time on this seemingly simple task, so I thought I would share my experience with others so they can avoid some pitfalls when upgrading a hard drive in a system that uses File Vault 2 encryption. The basic goal here is

  • Depreciation of an Asset on Shift basis

    Hi Guru's We are facing a situation where one asset is used in shift as stated below. Business want SAP to calculate depreciation for the below shift. Please share your inputs on how to meet the business requirement. SHIFT DETAILS: 3 shifts for the f

  • Default email address in Ical alarm

    Hi all. I am having problems setting the default address in alarms in Ical. The situation is like this: -I had 2 emails, "a" and "b", setup in my address book, both in my account (word "me" overlay on my picture). -When I wanted to configure an email

  • Need help replaying a swf correctly with its music

    I created an eHoliday card and there is a button at the end of the swf that you can click to replay. It plays fine the first time but automatically replays at the end and there is no music the second time.