Item property 'Initial Value'

In our application, we use the Item Property 'Initial Value' to populate default values in new records.
For our Forms 4.5 release of the application, the Item Property 'Default Value' populated this value at form startup (the record status is 'new'). As I recall (hazily) during pre-conversion testing, Forms 6.0 Item Property 'Initial Value' performed the same functionality at form startup. No code changes have been made during the conversion for this event.
Forms 6i (6.0.10.3) appears to only populate initial values that are hard coded or system defaults. Initial values retrieved from a block/global item is not set at form startup (block values are set in the WNFI trigger and globals are set before entering the form).
The only solution we found is to add a CLEAR_RECORD to the WHEN-NEW-FORM-INSTANCE trigger. After this built-in is executed, the initial values from block/global locations are populated.
Has anyone noticed this problem. I checked the bug database and did not find any mention of this problem.
You might want to keep this in mind at form startup in your application when converting to Forms 6i.

Hi John
Thanks for your tip; I noticed that behaviour and tried to work around it with pre-insert triggers (which also don't work properly for me).
I'm on Forms version 6.0.8.8.0, on linux.
Thanks again
Paulo
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Mierzurak ([email protected]):
In our application, we use the Item Property 'Initial Value' to populate default values in new records.
For our Forms 4.5 release of the application, the Item Property 'Default Value' populated this value at form startup (the record status is 'new'). As I recall (hazily) during pre-conversion testing, Forms 6.0 Item Property 'Initial Value' performed the same functionality at form startup. No code changes have been made during the conversion for this event.
Forms 6i (6.0.10.3) appears to only populate initial values that are hard coded or system defaults. Initial values retrieved from a block/global item is not set at form startup (block values are set in the WNFI trigger and globals are set before entering the form).
The only solution we found is to add a CLEAR_RECORD to the WHEN-NEW-FORM-INSTANCE trigger. After this built-in is executed, the initial values from block/global locations are populated.
Has anyone noticed this problem. I checked the bug database and did not find any mention of this problem.
You might want to keep this in mind at form startup in your application when converting to Forms 6i.<HR></BLOCKQUOTE>
null

Similar Messages

  • Setting main object property initial values before loading tile list - Agentry

    Hi;
    I am working on SAP Work Manager 6.0 customising using Agentry 6.1.3. I have 2 properties on the Main object, which are WeekStart and WeekEnd, these properties have their initial values set using a rule on the transaction property level. I am using these two properties in a tile list include rule, to only display items per week, that is if the item date is between WeekStart and WeekEnd. Now my issue is when the tile list initially loads items, the action containing the transaction to set values for WeekStart and WeekEnd has not been executed yet, and hence at this point the tile list is empty. At what point could I run this action to set the initial values of WeekStart and WeekEnd? Currently when the tile list loads, nothing is displayed because the dates sitting in WeekStart and WeekEnd are invalid yet, they have not been set by the transaction. My current include rule is as follows:
    Your help is very much appreciated!
    Thanks and Regards;
    Sizo Ndlovu

    Hi;
    I really thought that putting the action on "Succesful Login Action" would deal with this issue, please see screenshot below:
    But I see that this does not get executed on the initial load?!
    Any suggestions would be appreciated!
    Thanks and Regards;
    Sizo Ndlovu

  • Initial value

    Hello,
    I set up non-db field initial value item property to some value, but it shows nothing when running form.
    Do you have some idea about it?
    Thanks.

    Hello,
    You display item is part of which block ? I mean display item's initial value property will be displayed when the display item is part of block in which the cursor is going initially. If it's not teh case then the initial value will be displayed when your cursor goes into that block. Check this and update.... Or give your requirment....

  • Form text item initial value not taking effect

    Hello,
    Sorry for the simple question, but I'm at a loss.
    I'm trying to present a system date on my form using $$DATE$$ as the initial value of a text item. The form will not display it. Am I running up against a bug, or is there a block setting that might be getting in the way? Possibly an OAS issue? The item is in a control block, and the form is insanely simple. It makes use of menu as well.
    Any help is appreciated,
    Jim

    I tried setting the initial value to $$DATE$$ in a control block item in Forms 10g (9.0.4), and it worked fine. I think the online help is referring to creating a record in a block (not the database), which happens in a control block as well as a base table block.
    Not sure what version of Forms you are using, but in the unlikely chance that you're still on 6.0, there are some bugs (1046279, 2970983) filed on 6.0 about the initial value not displaying when the text item is subclassed from an object library. If that's what you're experiencing, you should be able to fix it by upgrading to 6i.

  • Problem setting initial value for LOV

    Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
    What I would rather do is set the initial value programmatically, but here are my problems:
    If I set the value like this:
    OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
    lovText.setText("02");
    then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
    If I set the value like this:
    lovText.setDefaultValue("02");
    then nothing seems to happen at run time. The value is not displayed at all.
    Can anyone tell me what I am doing wrong? Thanks for your help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, that helps a bunch. Now can you tell me where that is set?
    Thanks so much.
    --Dave                                                                                                                                                                                       

  • Initial Value in Enter Query Mode

    Hi Everyone,
    If you ever need to set a "visual" default (or initial) value for an item in Enter-Query mode, here is one solution to accomplish this:
    Create a WHEN-NEW-ITEM-INSTANCE trigger at the block level where the item is located. Make sure it can fire in Enter-Query mode.
    WHEN-NEW-ITEM-INSTANCE
    If :system.mode = 'ENTER-QUERY' AND :system.cursor_item = <YourItemName> AND <YourItemName> IS NULL Then
        <YourItemName> := <TheInitialValue>;
    End If;You may wish to play with the "Keep Cursor Position" property of the item should you want the cursor to go back to the item position it was when the item was left.

    It seems that your solution described solves my problem expressed 2 months ago....
    I'll try it out....
    Thanks......
    Sim

  • How can I change the initial value of the field approve_or_reject?

    Hello Workflow Gurus
    We are using SRM 5.00(SRM SERVER 550) and as per the requirement, I have to make the Reject radio button as default checked on the Approver's screen.
    We are using the SAP Standard Workflow WS14500015.
    I found out the Standard task TS14508044 (SC approval per Item)which has one field in its container i.e. approve_or_reject ,based on the Initial value of this field , the radio button is behaving...
    approve_or_reject EQ 0 i.e. Approve
    approve_or_reject EQ 1 i.e. Reject
    Now my requirement is to change the initial value of this field from 0 to 1 so that Reject radio button comes as checked by default into this standard SAP workflow task TS 14508044...
    Kindly help me and let me know the procedure to change this.
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE CHANGES INTO STANDARD SAP WORKFLOW ???
    Thanks and regards
    Ankur Goyal
    09823448654

    Well Iam not much sure about how you are trying to approve the shopping cart workitem b ut last week i faced a similar issue while apporving the workitems I was able to update the contianer element Apporve_or_reject element by using the FM BBP_PDH_WFL_WI_APPROVE and BBP_PDH_WFL_WI_REJECT ... These two fm will take the responsibility of updating the element with respective value as, if you approve the it will be populated with 0 and if you reject the the element will be updated with 1....
    Please check the thread where I updated the thread in [SRM Workflows|Problem while approving SC from Blackberry !;
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE
    CHANGES INTO STANDARD SAP WORKFLOW ???
    Modifying the standard workflow is not recommended.....

  • Check box Item property in mutiple record block

    Hi,
    I have migrated a number of forms from 6i to 10g. All seems to be working apart from a problem with the display of check boxes that are part of a multiple record block. The item property for the checkbox has font weight set to bold and this works fine on the 6g version. On the 10g version it is displayed as normal font weight.
    Any other items in the record, text items etc are displayed in bold correctly.
    As this seems to affect a lot of forms is there some patch/fix that I should have applied or is this just the way it is?
    I am trying to use set_item_instance_property to set them manually but that doesn't seem to make any difference.
    Thanks in advance and Happy Christmas/New Year.

    Problem solved following response from Oracle support desk -
    UPDATE
    ======
    Hi Dave,
    When using lookandfeel=generic, the colors for different Windows items (e.g., menu, check
    box, window background ...etc) are taken directly from the Operating System
    (OS) user settings. I tested the issue with lookandfeel=oracle and with
    colorScheme set to different values, and check box tick in this case takes the
    same color as the color scheme used.
    I suggest then using dark color scheme to give you a similar effect as it was in Forms 6i. for example:
    colorScheme=Titanium

  • Cannot add new items to a value list in AW database

    I have a database which I have been using for many years. One of the fields is a value list. I just went to add another item to the list, and no matter what I do, the Create button is grayed out. I have another value list in the same database that works fine.
    There are currently 170 items in the value list that is causin the problem, but I didn't think that there was a limit to the number of items that can be is a value list. (At least there is nothing in the AW technical specifications to indicate thin. I duplicated the existing database, deleted about 20 items from the list, then saved the file, and reopened it, and still cannot add new items to that value list. Does anyone know what might be causing the problem?

    Oops
    I read too fast.
    Here is a short script which may help.
    Replace the pop-up item by a text one and edit the property myList in my script to fit your needs.
    Select the field to fill and run the script.
    Then choose an item in the displaid list. It will be pasted in the selected field.
    This trick would give you to work with a "no limit" list of items.
    -- [SCRIPT DB fillFieldFromAlist ]
    Assuming that
    the front document is a database one
    and that a text field is selected,
    run the script to select an item in a list
    and paste it in the field.
    Yvan KOENIG, Vallauris (FRANCE)
    le 19 mars 2007
    property MyList : {"item 1", ¬
    "item 2", ¬
    "item 3", ¬
    "item 4", ¬
    "item 5", ¬
    "item 6", ¬
    "item 7", ¬
    "item 8", ¬
    (* edit the list to fit your needs *)
    tell application "AppleWorks 6"
    activate
    tell document 1
    set laClasse to (get class of selection)
    if laClasse is not field then return (* the selection is not a field *)
    set myItem to choose from list MyList
    if myItem is false then return
    set the clipboard to myItem's item 1
    select menu item 7 of menu 3 (*
    Tout sélectionner •• Select All *)
    paste
    end tell -- document 1
    end tell -- AppleWorks
    -- [/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 19 mars 2007 16:44:53)

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • How to set the initial value of of a poplist dynamical

    Hi,
    I've got a poplist that is populated by a recordgroup. This is done by the following pre-form trigger:
    DECLARE
         l_query_ok NUMBER;
         l_group_id RecordGroup;
         l_it_id     item;
         l_int_value VARCHAR2(2);
    BEGIN
         l_it_id := Find_item('MERGED_ISSUER.product_code');
         l_group_id := FIND_GROUP('RG_PRODUCT_CODE');
         l_query_ok := POPULATE_GROUP(l_group_id);
         -- Populate list 'Product Code'
         CLEAR_LIST (l_it_id);
         POPULATE_LIST(l_it_id,l_group_id);
    END;
    I've tried to set the initial value by adding following lines to the trigger above but I receive the frm-41084 error. This code assigns the first value of the recordgroup to a hidden text item. In the properties of the poplist the value of the hidden text field is set as initial value.
    -- Set initial value
    l_int_value := Get_Group_Char_Cell('RG_PRODUCT_CODE', 1);
    :MERGED_ISSUER.int_value := l_int_value;
    Any help?
    thx

    Hello Ken,
    you can set an initial value for a poplist with the copy command.
    You could use a procedure like this:
    PROCEDURE P_FILL_LBX
         lbx_ITEM_IN                 VARCHAR2,
         grp_DATA_GROUP_IN  VARCHAR2,
         flg_DEL_NULL              BOOLEAN,
         str_WERT_IN               VARCHAR2
    ) IS
      ERROR_ID NUMBER;
    BEGIN
      CLEAR_LIST(lbx_ITEM_IN);
      ERROR_ID := populate_group(grp_DATA_GROUP_IN);
      populate_list(lbx_ITEM_IN,grp_DATA_GROUP_IN);
      IF flg_DEL_NULL = TRUE THEN
        DELETE_LIST_ELEMENT(lbx_ITEM_IN,GET_LIST_ELEMENT_COUNT(lbx_ITEM_IN));
      END IF;
      IF str_WERT_IN IS NOT NULL THEN
        COPY(str_WERT_IN,''||lbx_ITEM_IN||'');
      END IF;
    END;Bernd

  • Gettng item property - prompt visual attribute

    have set the prompt visual attribute to 'ACTIVE_COL'
    SET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE, 'ACTIVE_COL')
    but when I try to get the value back it return 'CUSTOM'
    GET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE)
    Why???

    I have overcome this problem by setting item property in form design to 'ACTIVE_COL' then change it back to 'DEFAULT'
    it works fine.

  • To set Initial value at run time

    Hi all,
    i am working in forms.There is a poplist with 3 elements.Forms will be open for two different user. 1st user able to see only one element from the list, So I used Delete_list_element. Now I want to set this value as a default value without select that value because there is a only one element. Is it possible if yes please help me.
    Thanx in advance
    Sanjit

    I think, setting property required=Yes will do the job ...
    It is also possible to directly initialize a list item with a value (which should be then content of the actual list).
    :BLOCK.LIST_ITEM := VALUE;
    or you try something like (after your delete_list, to keep it dynamic) :
    :BLOCK.LIST_ITEM := GET_LIST_ELEMENT_VALUE('BLOCK.LIST_ITEM',1);
    Message was edited by:
    user434854

  • How to generate unique values while initializing values

    I am initializing values in my pl/sql program and want to use a sequence to set my unique ids but it errors out. Below is what I use.
    ie. table_id := table_seq.nextval;
    How can I use my sequence to initialize values or is this possible?

    The method suggested by user605919 will work. However, you don't need to initialize a variable like this. It is better and more performant to do it like the third example below:
    SQL> create table mytable
      2  ( id number(6)
      3  , description varchar2(30)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> create sequence table_seq start with 1 increment by 1
      2  /
    Reeks is aangemaakt.
    SQL> declare
      2    table_id mytable.id%type := table_seq.nextval;
      3  begin
      4    insert into mytable
      5    ( id
      6    , description
      7    )
      8    values
      9    ( table_id
    10    , 'Some description'
    11    );
    12  end;
    13  /
      table_id mytable.id%type := table_seq.nextval;
    FOUT in regel 2:
    .ORA-06550: line 2, column 41:
    PLS-00357: Table,View Or Sequence reference 'TABLE_SEQ.NEXTVAL' not allowed in this context
    ORA-06550: line 2, column 12:
    PL/SQL: Item ignored
    ORA-06550: line 9, column 5:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 9, column 5:
    PL/SQL: ORA-00904: "TABLE_ID": invalid identifier
    ORA-06550: line 4, column 3:
    PL/SQL: SQL Statement ignored
    SQL> declare
      2    table_id mytable.id%type;
      3  begin
      4    select table_seq.nextval
      5      into table_id
      6      from dual
      7    ;
      8    insert into mytable
      9    ( id
    10    , description
    11    )
    12    values
    13    ( table_id
    14    , 'Some description'
    15    );
    16  end;
    17  /
    PL/SQL-procedure is geslaagd.
    SQL> begin
      2    insert into mytable
      3    ( id
      4    , description
      5    )
      6    values
      7    ( table_seq.nextval
      8    , 'Some description'
      9    );
    10  end;
    11  /
    PL/SQL-procedure is geslaagd.And if you need the id value for some code after the insert, you use the RETURNING clause.
    Regards,
    Rob.

  • # instead of initial value in reports

    Hi,
    I'm trying to solve the following problem: When I create a report in Query Analyzer, in some columns, instead of the initial value(spaces) for some fields, there is the  # sign.
    Do you know from where does this issue come from? Is there an option inside the query analyzer to suppress this?
    Thanks in advance,
    George Ardeleanu

    Hi George,
    This is the default property of reports in BW. You see # instead of blank values in the data targets.
    Are you using WAD (Web Application Designer) in your scenario. If yes, there is a solution to remove these #es from the report output. You just need to add a small html script in the html tab of the WAD.
    Regards,
    Yogesh

Maybe you are looking for

  • Macbook Pro retina display makes a metallic spring noise.

    I've only recently purchased my Macbook Pro 15" retina display and it's been perfect. Until the other day I noticed that when I touch the bottom of my Macbook, the area where it says "Macbook Pro" with other details, it makes a strange metallic noise

  • Keeping only one row with information from several rows?

    Hi, I have a table with companies. The companies appearing more then once in the table, with different information in different columns. How do I keep one row from each company with all information..? Example: Company State  City       Country CompA

  • Why doesn't Lightroom Launch?

    Why doesn't Lightroom launch after the download completes? It loaded fine, but the "Launch App" is "grayed out."

  • Printing setup two printers with airport

    I've been reading through some of the other messages and still don't know exactly how I should set up my printers with airport. Here is what I have now: HP 1200 printer plugged directly into the airport express usb port. Airport express plugged into

  • New Computer for Mothers Day, will this work?

    I think I have this figured out but I want to see if you all see any problems that I might run into. I will be purchasing a new laptop computer for my wife for Mothers Day, it will be using Vista. Her current laptop has XP. I believe she has about 20