How to display JHeadstart flex item default values

Dear All,
I have defined a number of FlexRegions and FlexItems and I'd like to display the default values (specified by a SQL query in the Flex Item Def Editor) next to the input text field using the JSF EL expression #{row.defaultValue}.
This works fine as long as the user has not provided a new value for the flex item. Once (s)he has done this, the default value gets cleared. I've been able to programmatically obtain the default value by invoking the method executeDynamicQuery("somename", row.getDefaultValueQuery()) on the FlexItemDefsOuterJoinedWithFlexItemsRowImpl instance, but
I'd like to be able to always display the original default value in the .jspx page.
Any suggestions would be greatly appreciated.
I'm using JDeveloper 10.1.3.3. and JHeadstart 10.1.3.2.52.
Regards,
Ibrahim

Hi Steven,
Thanks for your reply. You're absolutely right of course. We wanted to provide functionality to submit 'request for change' requests, whereby we would display the current value of a given attribute (e.g. salary) next to the new value provided by the user.
We wanted to 'misuse' the default value query aspect of flex items for this purpose. The flex item default value query would be used to retrieve the current value each time the request for change record is displayed.
We managed to achieve this via a trick, so please consider this post as solved.
Once again many thanks for a marvelous product.
Regards,
Ibrahim

Similar Messages

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • How we can find out the default value of the initialization parameters

    Hi All,
    How we can find out the default value of the initilization parameters from oracle database.
    Thanks
    Shiju

    Hi,
    you can find currently used parameter values v$parameter and v$parameter2.
    if default values is different real values then you can see alert.log.
    because in alert.log you will see non default values, rests is default.
    Edited by: admin on May 8, 2010 3:41 AM

  • How to use P_SESSION.GET_VALUE_AS_VARCHAR2 in MDform item default Value

    I have a master detail form based on two tables. In the DETAIL_BLOCK section I have an item named 'APPROVAL_STATUS' based on the column of the same name in the underlying table. I have an unassociated textbox named CURR_APPROVSTAT in the detail form for which I would like to set it's default value to the current value of APPROVAL_STATUS when the master detail form is opened in %3D mode via a hyperlink.
    I have tried using the p_session.get_value_as_varchar2 in the default value field of the CURR_APPROVSTAT item, but it generates errors on run.
    EX:
    Item CURR_APPROVSTAT
    default value field
    p_session.get_value_as_varchar2(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'APPROVAL_STATUS')
    Default Value type:
    Function returns varchar2
    on run, it generates error that p_session must be declared (I get the same error if I use portal.p_session... also).
    default value field
    select p_session.get_value_as_varchar2(p_block_name => 'DETAIL_BLOCK', p_attribute_name => 'APPROVAL_STATUS')from dual
    Default Value type:
    SQL returns varchar2
    on run, it generates and error that a right parenthesis is missing.
    I have also tried using the following in the Additional PL/SQL - before displaying form:
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK'
    ,p_attribute_name => 'CURR_APPROVSTAT'
    ,p_value => p_session.get_value_as_varchar2(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'APPROVAL_STATUS')
    on run, this generates the error identifier 'P_SESSION.GET_VALUE_AS_VARCHAR2' must be declared
    My questions are:
    1) is it possible to use the p_session.get_value_as_varchar2 in the default value field?
    2) If yes, then what if the proper syntax
    3) If no, can I set this value when the MD form opens from the additional pl/sql triggers, and if so, what is the syntax?
    any assistance you can offer is greatly appreciated.
    Sincerely,
    ARM

    In my detail block I have 10 rows displaying that may or may not have data after querying. To set the default value in the detail block, you have to set the index value of p_session.set_value. Since I don't know how many rows are already populated, I'm setting the default value to all 10 rows. Is there a better approach?
    Here's my code example, which I've placed in the additional PL/SQL section before displaying the form...
    DECLARE
    l_district_id VARCHAR2(7);
    BEGIN
    l_district_id := p_session.get_value_as_varchar2
    (p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID');
    FOR i in 1 .. 10 LOOP
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID',
    p_value => TO_CHAR(l_district_id), p_index => i);
    END LOOP;
    END;

  • Change Description of Service Item default value

    Hello
    in a service SC, on the item detail basic data, we want to change the default value of the field "Description of Service Item ". by default it is "Service Item" and we want to change it.
    Where can I change it excepted in BADI BBP_DOC_CHANGE_BADI
    thanks,

    Hi
    Which SRM version are you using ? What is your business requirement ? Do you want to change Service Item description value for every line item in the shopping cart OR
    the permanent text displayed on the Left side on the HTML Template.. ?
    <b>Incase you want to modify the HTML template Text, then it can be done using HTML Template modification.</b>
    Using Transaction SE80, In the Internet Service - BBPSC01, you need to find the relevant HTML Template and make the required chnages to the Description there as per your business requirements.
    All BBPSC* transaction are using the HTML sources of service BBPSC01.
    So you have to modify template SAPLBBP_SC_UI_ITS_300 from service BBPSC01.
    Make sure to publish the complete service on all defined sites so that changes can appear in all respective SRM Client systems.
    Related links ->
    BBPSC01 Template Labels stored where ????
    Re: Template Shopping cart
    Re: Internet Service flow
    Re: Need to change the field description
    Re: how to change descriptions of links on the shopping cart page
    How to change "vendor text " label in BBPSC01 and BBP_POC
    Hope this will help. Do let me know.
    Regards
    - Atul

  • How to display Radio buttons with default selection on

    Hi
    I want to display Radio buttons using jsf
    i have done it using
    <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
                   var="apartments">
                   <h:column>
                        <h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
                             <f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
                        </h:selectOneRadio>
                   </h:column>
    inside a data table
    now when i click some page i want to display the radio's with default radio button selected
    also when i select one radio button and click on some command button
    eg:<h:commandButton action="#{userBean.setSelectedApartment}"
    the Radio button's Selection should not disappear
    i have written a javaScript
    function setSelectedApartment(oRadio)
              oForm = oRadio.form;
              elems=oForm.elements;          
              for(iIndex=0;iIndex<elems.length;iIndex++)
                   if(elems[iIndex].type == 'radio')
                        if(elems[iIndex].name != oRadio.name)
                             elems[iIndex].checked=false;
              document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
    To check which Raio button is Selected
    How do i show the Default Selected button and How the selection should not disappear
    Can any one suggest me links or the solution to this problem
    Thank you
    Geetanjalee

    -set the value binding expression of select items to a request scope bean
    - on the page load event() ,do
    setdefaultval("ur default value")
    so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
    --raju                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Portal Forms - How to make a Field with DEFAULT value NON-EDITABLE by Users

    I HAVE A FORM WITH A DATE FIELD ON IT WITH DEFAULT VALUE.
    THIS IS A TABLE-FIELD.
    I WANT THE FIELD TO BE DISPLAYED ON THE FORM BUT NOT TO ALLOW
    USERS TO EDIT/CHANGE IT.
    HOW CAN I DO THIS?
    TKS IN ADVANCE

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • How to display system date by default

    Hi,
    Please tell me how to display the default date as system date in a text box, and it should also allow me to select the date from the calendar and update.
    i tried to give'select sysdate from dual' but it dint work.
    Please help me..
    Regards,
    Pallavi

    I'm not sure what you mean.
    sysdate retrieves the current date when the script is executed (eg. when you run the report).
    Do you mean that after you change the date value in the report and submit the page, it changes back to sysdate, instead of the date you selected?
    This would be caused by an incorrect setting in the "Source Used" field.
    eg. use "Only when current value in session state is null"
    instead of "Always, replacing any existing value in the session state"

  • Query to set item default value

    I'm trying to set a default value of an item by using a query. The first thing I tried is setting the source value to be:
    select 'TRDM-R-'||LPAD((MAX(SUBSTR(EXPAND_REQ_ID,8,3))+1),3,'0') EXPAND_REQ_ID FROM BANKSRG.TRDM_REQUIREMENTS;
    with item display type as Text, source type SQL Query. This displayed the value in the form, but did not save to the DB. (I tried all the other display types for text too)
    The next thing I tried (a suggestion for someone else in the forum) was set item display type is Display as Text (based on PL/SQL, does not save state), and the source type is PL/SQL Anonymous Block, with this query:
    for c1 in
    (select LPAD((MAX(SUBSTR(EXPAND_REQ_ID,8,3))+1),3,'0') EXPAND_REQ_ID
    FROM BANKSRG.TRDM_REQUIREMENTS)
    LOOP
    htp.p('TRDM-R-'||C1.EXPAND_REQ_ID);
    EXIT;
    END LOOP;
    but I get this error: Error ERR-9132 Error in PLSQL expression for item default code, item=P2_EXPAND_REQ_ID
    Then I tried the above query in the Default Value section, with the same error.
    I've also tried adding computations, but if i get the value to display, it still won't save to the DB.
    I would greatly appreciate any suggestions!
    Robin

    In case anyone else is new to HTMLDB and needs the answer to this question, I finally figured it out.
    In the Item the Display is Text Field, Source Used is Always..., Source Type Database Column, Source Value EXPAND_REQ_ID, Default Value &P2_EXPAND_REQ_ID., Default Value Type is Static Text...
    Then I created a Before Region computation, type sql Query, entered my query in the computation,
    select Condition Type Value of Item in Expression 1 is NULL, Expression 1 is P2_EXPAND_REQ_ID.
    Not so difficult, it just took a lot of time to try all the options.

  • How to use SYSDATE as a default value of a bind variable in a query report?

    Hi,
    I want to use SYSDATE as default value for a bind variable in Query based report.
    I don't see any way to do it, someone helps?
    Thanks a lot.
    Paulo.

    You can aslo use #sysdate directly.
    Hi,
    The way I'm doing in my report is, I have a database function (f_ret_sysdate) with the following code
    create function f_ret_sysdate return varchar2
    begin
    return to_char(sysdate,'mm/dd/yyyy');
    end;
    Now, in the 'Customization Form Display Options' section of the report I'm calling this function as #f_ret_sysdate in the default value field of corresponding bind variable to display SYSDATE with the format.
    Hope this helps!...
    -Krishnamurthy

  • How to display Cleared/open item symbol' in alv?

    Hi Experts,
                 I am developing ALV report like faglb03,additionaly including some fields as per user requirement.here i want to display " Cleared/open item symbol' in alv.Can anyone tel me how to do this.In which and how it is stored in table?
    Thanks in Advance!

    [Formatting Column Contents|http://help.sap.com/saphelp_nw04/helpdata/en/ff/4649a6f17411d2b486006094192fe3/frameset.htm]
    check the documentation for ICON , check the table ICON for more symbols
    [Sample code of alv list|http://www.sap-img.com/abap/regarding-icon-display-in-alv.htm]]

  • How to create a prompt with default value as current_date?

    Hello
    I'd like to create a prompt on the dashboard that has current_date as the default value. Is it possible to achieve so?
    Please provide any pointers..
    Thank you

    Unfortunately, no. Presentation variables are declared in a dashboard prompt (see page 44 of this link http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31767.pdf)
    Any other type of workaround would not be worth the trouble of asking the developers to create the variable for you. One note, the current date may very well already be defined and just not known to you. Can you ask your developer if he/she has a variable that contains the current date or how long it would take to create one for you?
    As a whole, it would be nice to have a set of "date" repository variables if you run Requests based on common date ranges (e.g., first day of current month, last day of current month, first day of quarter, last day of quarter, most recent end-of-year date, etc.) These can be very useful in automating reports so they don't require prompts. Of course, it depends on your organization and what you use OBIEE for...
    We have built many such variables and it has been very valuable to the users and report builders. Just a thought...

  • Page item default value using PL/SQL

    Hello,
    I'm trying to set a default value for a text field page item in a form.
    I'm using this PL/SQL Function Body in the Default section:
    begin
    select ("DEPT_CODE"|| ' ' || DEPT_NAME) from MyView where UserID = :G_USER_ID;
    end;
    I get the following error:
    PLS-00428: an INTO clause is expected in this SELECT statement
    Any help is appreciated!
    thanks,
    Matt

    Matt
    I'm using this PL/SQL Function Body in the Default section:
    begin
    select ("DEPT_CODE"|| ' ' || DEPT_NAME) from MyView where UserID = :G_USER_ID;
    end;Well, that's not a PL/SQL function body. This is:
    declare
      x varchar2(4000);
    begin
      select ("DEPT_CODE"|| ' ' || DEPT_NAME) into x from MyView where UserID = :G_USER_ID;
      return x;
    exception others then
      return null;
    end;Scott

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

Maybe you are looking for

  • How to update sales orders using B1WS in SAP 8.8 PL18

    Hello all. We are having a problem updating sales orders using Sap Business One Web Service ( B1WS ). We are running SBO 8.8 PL18, MS-SQL 2008, and all is fine when using the SBO client. But when it comes to updating sales orders through B1WS we just

  • Two iterators based on the same view issue

    Hi I'm using jdev11.1.1.2 My requirement is to have a view object as a form on the page (with next, previous, create/delete buttons) and to have a popup with the same view object as a readonly table (only for taking a look at a table representation o

  • Upgradation To  BI 7.0

    Hi all,          We are planning to Upgrade to BI 7.0.Our current version is 3.0B. Can anyone  tell me what are the Pre-Upgrade Activities And what are the activities which we do while we are upgrading and what are the Post Upgrade Activities we need

  • Uploading empty file to XE

    I guess this is a problem with the XML database. When I tried to upload an empty file to the HTMLDB_APPLICATION_FILE table using XE, I have the "Internal Server Error". Maybe that's something can be fixed. BTW, is there any news about the schedule of

  • PLEASE...Any Suggestions on What Could Cause This?

    Logic has been pretty darned stable for me and I'm getting a lot of work done now, having been a user now about a month or so. The ONLY consistent bug I have is this. 1 When I close a song, and open a new one, I hit PLAY and get loud digital noise. I