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

Similar Messages

  • How to set the radiogroup default value?

    I have created a radiogroup named P521_SIZE_NUM(Dealsize, DealNum) and want DealSize is checked when the page is showed. how can I set default value in the page Definition?

    If you made a radio group off of the following static LOV:
    STATIC2:One;1,Two;2,Three;3if you set the default value of your radio group to 2, the radio button with the label Two will be selected. You have to make sure to set the default value to the actual return value not the display value.
    -Ghoulies

  • How to set a 3 default values for a dependent key flexfield

    hi,
    I have an inquiry in oracle applications 11i - Oracle General Ledger module, Accounting Key flexfield structure.
    we have an independent key segment PROJECT and a dependent key segment SUB-PROJECT.
    Can we define 3 dependent value for the SUB-PROJECT to be the default for any new entered value in the PROJECT segment??
    e.g creating 3 default SUB-PROJECT values: X, Y, and Z. Any new value entered to the PROJECT key segment will have X, Y and Z by default as it's SUB-PROJECTS.
    If the above scenario is possible, please guide me to the best solution...
    Thank you...

    I can find that the value set of any dependent value set has only one room for a default value.
    What are the implications of creating a new Independent value set and assign it to the SubProject segment, on historical data and reports?
    thank you...

  • How to set radio group default value

    Hi,
    I have a radio group in a portal form. How do I set one of them as checked when the form comes up?
    Thanks;
    Kelly.

    It might be possible with javascript. since a radio group is an array, you should loop
    through the index to set the correct
    checked value.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Kelly,
    I tried that already, and it still didn't work. Any idea? I am using portal version 3.0.6.
    Thanks;
    Kelly.
    <HR></BLOCKQUOTE>
    null

  • How to set true as default value to "Enable Metadata Prompt" in DIS

    Hi,
    Can any one help me in setting "Enable Metadata Prompt" always to true while check in the document.
    Thanks,
    Vidya

    Enable Metadata Prompt - This is a Folder related feature .
    Not sure if this is applicable on contents as well .
    Thanks
    Srinath

  • 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;

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • 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

  • Strange Case..!! How 2 set an item as a master block to it's db items block

    Hello All,
    i have a question pls.
    ================
    How 2 set an item as a master block to it's related db items in the same data block; as follows:
    ============
    1-i have to enter the item's value ('LAB_TEMP' ) once then;
    2-the other related items in the same data block r changed record each time i navigate to the next record but this item is never changed in this case only if i re-entered another value as (master-detailed rel.). i tried to copy the value of this item to a display item called 'Temp' but it is changing according to the records frequency by default
    ===========================================================
    I tried the following code on when-new-record-instance & on post-changed Triggers as follows:
    ============================================================
    IF :LAB_TEMP IS NOT NULL THEN
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_FALSE);
    :TEMP := :LAB_TEMP;
    ELSE
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_TRUE);
    :TEMP := :LAB_TEMP;
    END IF;
    ============================================================
    even this generates unable to set enable property or visible prop. error
    ====================================================
    Someone help me with this pls.??
    ========================
    Thanks in advance,
    Regards,
    Abdetu..

    Hello everyone,
    This issue was solved as:
    ==================
    1-i created a separate db block
    2-created a text item called 'TEMP' with db=NO
    3-In the db block that i want to deal with it as:Master item to it's other related detailed items to that item which is called 'LAB_TEMP' ;
    * Copy value from property: TEMP.
    By this way i could entered a value i the ndb item called TEMP once & consequently this value is entered copyed 4 each new record i entered.
    This is an intial solution works fine at least 4 now, a Fried helped me with this i would like 2 share this info 2 others may be a new idea would help...
    Thanks always,
    Abdetu..

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE

    HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE.
    DATA : BEGIN OF ITAB OCCURS 0,
               FIELD1(2) TYPC C DEFAULT   '12',
               FIELD2     TYPE C ,
               END OF ITAB1.
    IT'S GIVING ERROR MESSAGE.
    PLZ LOOK INTO THIS AND GIVE ME CORRECT SOLUTION.
    THANKS
    SURI

    DATA : BEGIN OF ITAB OCCURS 0,
    FIELD1(2) TYPC C,
    FIELD2 TYPE C ,
    END OF ITAB1.
    itab-field1 = '12'.
    itab-field2 = 'A'.
    append itab.
    clear itab-field2.
    itab-field1 = '12'.
    itab-field2 = 'B'.
    append itab.
    clear itab-field2.
    Now everytime u'll have the value for field1 = '12'.
    Regards
    Vasu

  • How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I get the default value of a particular preference in FireFox?.
    I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.
    I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.
    Any help towards acheiving this programtically is greatly appreciated.
    If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Dear Friend,
    Here when you have the callableSattement as ?=proc(?), the first ? is an output parameter. So you should register it as out parameter using registeroutparameter.
    Then you can get the value from the outparameter using callablestatement.getXXX().
    Try that way.
    For free tral versions of JDBC Drivers go to www.Atinav.com

  • How to find if COLUMN DEFAULT VALUE is stored as metadata?

    Hello,
    I'm using Oracle 11g enhanced ADD COLUMN Functionality. Adding new columns with DEFAULT values and NOT NULL constraint no longer requires the default value to be stored in all existing records.
    Sometimes we change DB columns from NOT NULL with DEFAULT to NULL with DEFAULT. This operation "materialize" column default.
    Is there an easy way (Dictionary view) how to find, that COLUMN default value is stored as metadata or is "materialized" ?
    Thanks. Filip
    Oracle RDBMS version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    Thanks for your suggestion, but it is not what i'm looking for :-(
    I don't need to find the default value, i need to know how is default value stored. It could be stored in 2 ways.
    1. "materialized" - prior to 11G (value is physicaly stored for every column)
    2. "as a metadata" - new 11G functionality (default is not physicaly stored and if you query the column DB transalte NULL value to defaut value)
    Now I would like to now if my column is type 1) or 2). How can I do it?
    Thank you.Filip

  • HT201684 In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?

    In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
    I've tried everything to get a custom umask set for all apps. It just seems impossible...
    Is there a replacement for launchd-user.conf?

    Please file a bug report: https://bugreport.apple.com
    I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.

  • How to assign list of default value for select-option variable???

    Hi every one
    This is Deepak,
    I want to know how to assign list of default value to select-option variable ? please any body tel me solution
    for example
    select-option matnr for mara-matnr default ..............and here i want to give more than 1 values that will be default value and use can choose any one at the time of input .
    Thank you in advance
    Deepak

    Hi.
    Check the following sample code.
    REPORT ztn_test.
    " It is example for list populating.
    TABLES:knvp.
    data: BEGIN OF itab OCCURS 10,
          kunnr like knvp-kunnr,
          END OF itab.
    data: wa_itab like itab.
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    PARAMETERS: s_kunnr(20) type c  as LISTBOX VISIBLE LENGTH 40 .
    AT SELECTION-SCREEN OUTPUT.
    SELECT kunnr from knvp  into  CORRESPONDING FIELDS OF TABLE itab WHERE parvw = 'SP'. " SP for ur requirement
    " I have used loop to populate some values from table
    loop at itab into wa_itab.
      name = 'S_KUNNR'.
      value-key = sy-tabix.
      value-text = wa_itab-kunnr.
      append value to list.
      clear wa_itab.
    endloop.
    " If u want individaully assign the values change the code as
    name = 'S_KUNNR'." Select option name
      value-key = 1." Index
      value-text = 'VAL1'.
      append value to list.
    name = 'S_KUNNR'." Select option name
      value-key = 2." Index
      value-text = 'VAL2'.
      append value to list.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING id = name
    values = list.
    Edited by: tahir naqqash on Feb 21, 2009 4:38 PM

Maybe you are looking for