Unable to populate the default value  using form personalization

Hi, I need to default a value in order managemnt for waybill number
shipping -- transaction - delivery - detail --
In Order management
Shipping - Transactions
Source system -- Order management
From Order number - Any ordernumber
say find
I want to default this Detail ( xxxxx) as Way bill
value of :DLVB.DETAIL_LABEL
I have put the following condition on form personalization
Condition tab
Triger event
When new record instance
Trigger object
dlvy_s
Processing mode both
Actions tab
Property
Object type Item
Target Object DLVY_S.WAYBILL
Property name Value
Value
:DLVB.DETAIL_LABEL
but it is not defaulting... Appreciate if any one has idea what is wrong in this.
Edited by: 885022 on Oct 3, 2011 11:31 AM
Edited by: 885022 on Oct 3, 2011 11:33 AM

yes Srini
as we dont have any option via personalization to set the default values ,it can be done through controller extension ,
in processRequest method of extended controllere get the control for that particular field where u want to set the default value and set the value using fieldbean.setValue(pagecontext,value);
in case of any particular case ,please post in the forum
thanx
Pratap

Similar Messages

  • Default KFF segment value using Forms Personalization

    Hi All,
    Is there any way to default the KFF segment value based on other field value thru forms personalization?
    Thanks,

    Gareth,
    Sorry for taking so long to respond. I was on vacation last week. Your suggestion was exactly what I wanted. The '=' made all the difference. I tried it with the INITIAL_VALUE also and both work. Thanks a lot!
    Thu

  • How to change default value in form

    Hi,
    I want to change the default value in form..how can i do this?
    Fo exa...in purchasing when we go to auto create..in action tab we see create been defaulted whenever we open the form and also there is one more option called add to...so whenever i open this form..i want to see add to there..
    How can we get this?please advise?
    Thanks
    Mahendra

    You can do it using forms personalization.

  • Sum of the fields in SO form using Forms personalization

    In sales order form, Once we enter the item and qty in a line . The qty entered should be multiplied by volume of an item avaiable in mtl_system_items_b and should be displayed in the line level DFF(attribute14). Thus we get the line level Volume
    Once n number of lines are entered in SO form . The sum of line level volume should be displayed in the header level DFF(attribute14.
    I am able to get the Line level volume using global variable.
    Could any one please let me know is it possible to get the sum of line level volume in the header DFF using forms personalization.

    My requirment is to get the "Line level volume" information in line level DFF and "order level volume" information in header level DFF of a Sales Order form.
    line level volume = unit_volume*quantity
    Order level Volume = sum of n number of line level volumes = line level volume of line 1.1 + line level volume of line 1.2 + line level volume of line 1.3 ......
    For Example consider an item 2E00001010 item. The volume of this item is mentioned in the physical attributes of an item. we can get the volume of this item from unit_volume in mtl_system_items_b . say for example the unit_volume of this item is 20 litres.consider another item 2X000X101 and unit_volume is 15 litres.
    Now in sales order in line 1.1 i have entered an item 2E00001010 and quantity as 10. In line 1.2 i have entered an item 2X000X101 and quantity as 10 and saved the sales order.
    1.1 line level volume = 20*10 = 200
    1.2 line level volume = 15*10 = 150
    Order level volume = 200 + 150 = 350
    So as according to the requirement in
    1.1 line level DFF(LINE.ATTRIBUTE14) 200 should be displayed .
    1.2 line level DFF(LINE.ATTRIBUTE14) 150 should be displayed.
    In header level DFF(order.attribute14) 350 should be displayed.
    By using below forms personalization i am able to get the Line level Volume information displayed in Line level DFF(Line.attribute14)
    seq 10
    description : Line Level Volume
    Trigger event : when-New-Item-Instance
    Trigger Object : Line.Ordered_quantity
    Level : Site
    Action Seq: 10
    Type: Property
    Object Type: Global Variable
    Target Object: XX_VOL
    Property Name : Value
    Value = =SELECT to_char(nvl(Unit_volume,0)) from mtl_system_items_b where segment1 =:line.ordered_item_dsp and organization_id = 89
    Action Seq: 20
    Type: Property
    Object Type:Item
    Target Object: LINE.ATTRIBUTE14
    Property Name: Value
    Value = =to_number(:global.XX_VOL)*:line.ordered_quantity
    I would be glad if any one could let me know how to get the Order level volume and get displayed in the Header level DFF(order.attribute14) using forms personalization.

  • How to commit the PO form after each line using form personalization

    Hi All,
    I have a requirement, wherein we need to commit the Purchase order form, once a line is entered or before moving to the next line using form personalization.
    Please assist me in getting it done.
    Regards,
    KR.
    Edited by: 834152 on Feb 17, 2011 9:13 PM

    Hi Sandeep,
    Thanks for your response.
    At the line level in the purchase order form, we have configured DFF with one field for train# and 14 fields for the container#.
    In order to prevent the user from entering the same container# twice in the same PO. We need to save the PO on each line. So that when the user move to the next line, our program will check with base tables and confirm whether the entered container# is free to use or not.
    Regards,
    KR.

  • Default Value to Form using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library.
    I tried using COPY, but its not working?
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    Is their any other way to do it?
    Thanks!

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • Best way to put the default values for the Form Items

    Hi,
    I am having a form with lot of default values as mentioned below..
      Field                      value 
      created by             :APPL_USER
      creation_date         SYSDATE
      last_updated_by     :APPL_USER
      last_update_date    SYSDATE
      item1                     value1
      item2                     value2Currently I am using Computation -> After Submit.....so whenever we create/update a record...these computaion takes place and the default values get inserted....THIS IS WORKING PERFECTLY FINE.
    I want to know..if this approach is fine OR we may have some better approach to acheive this...????
    Thanks,
    Deepak

    Deepak,
    Sample trigger code:
    CREATE OR REPLACE TRIGGER  "BINS1_APPLICATION_TBL"
       BEFORE INSERT
       ON APPLICATION_TBL    FOR EACH ROW
    BEGIN
       --  Description: Insert creation_dt, creation_id,
       --              lst_updt_dt and lst_updt_id
       --  Maintenance:
       --  Date        Actor           Action
       --  ====        =====           ======
       --  20-Aug-2009 J. Wells         Create.
       :NEW.creation_id := V('APP_USER');
       :NEW.creation_dt := SYSDATE;
       :NEW.lst_updt_dt := :NEW.creation_dt;
       :NEW.lst_updt_id := :NEW.creation_id;
       SELECT APPLICATION_seq.NEXTVAL
         INTO :NEW.APPLICATION_seq
         FROM DUAL;
    END bins1_APPLICATION_tbl;
    ALTER TRIGGER  "BINS1_APPLICATION_TBL" ENABLE
    /Jeff

  • Unable to find the default new form for list mylist1 - deploying the list instance via module feature

    hi,
    am facing a problem deploying a list instance via a feature, 
      I created the list in the UI with content and views.
    Exported the site template as WSP.
    Imported into Visual Studio the list instance, pages module and property bags.
    Copied into my new solution.
    Deploy list instance as a site-collection level scoped feature.
    activated the below features :
    mylist_ModulesFeature
    mylist_ListInstancesFeature
    mylist_PropertyBagFeature
    List deploys fine with content and views. However, I receive the following error when trying to add a new item: “Unable to find the default new form for list”. The same applies for editing items.
    can anyone pls help why i am getting this  error ?

    try these links:
    http://tomvangaever.be/blogv2/2010/04/unable-to-find-the-default-new-form-for-list/
    http://sharebrad.blogspot.in/2012/08/unable-to-find-default-edit-form-for.html
    http://stackoverflow.com/questions/10243131/deploying-a-list-instance-to-sharepoint-2010-error-unable-to-find-the-default-n
    https://happiestsharepointminds.wordpress.com/2014/03/01/unable-to-find-the-default-edit-form-for-list-or-unable-to-find-the-default-display-form-for-list/
    http://itsolutionsblog.net/sharepoint-problem-with-library-forms-unable-to-create-folder-ore-edit-properties/
    http://blogs.technet.com/b/yashgoel-msft/archive/2013/08/30/recreating-default-display-edit-and-new-forms-of-a-list-in-sharepoint-2010-using-powershell.aspx
    Please mark answer as correct if it is correct else vote for it if you find it useful

  • Populate SELECT-OPTIONS default value using CALL FUNCTION

    Hi Experts,
    I would like to populate SELECT-OPTIONS s_currm default with value in w_currm, however, it doesn't seem to work.  Can you please advise what the correct syntax is.
    Note that CALL FUNCTION 'GET_CURRENT_YEAR' is working correctly and populating w_currm (as I can use it in a SQL SELECT statement), however, it does not seem to work for SELECT-OPTIONS s_currm.
    Thank you for your time.
    Code snippet is as a follows:
    REPORT  Z_DOWNLOAD_BSIS_TEST.
    *Data Declaration
    DATA: w_currm TYPE BSIS-MONAT.
    *Define current fiscal month
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = 'X999'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm.   " Current Fiscal Month
    SELECT-OPTIONS s_currm FOR w_currm
                   DEFAULT w_currm. " The default value is NOT being populated (appears blank)

    Hi Venkat.O,
    Thank you for your clear response.  I have implemented your suggestion and it works, however, I now have a new problem. 
    Each time the report is executed or the "multiple selection" button is clicked the selection fields are populated once again with the default (low) values.
    For example, when report is first opened the s_curry field displays '2010'.  Clicking "multiple selection" results in another '2010' being populated.  After executing the report the selection screen is populated again with '2010' (so we now have '2010' listed 3 times in the s_curry field).
    How do I prevent the default values from repeating?
    REPORT  Z_DOWNLOAD_BSIS_TEST
    *Data Declaration
    DATA:  w_currm TYPE BSIS-MONAT,
           w_curry TYPE BSIS-GJAHR,
           w_prevm TYPE BSIS-MONAT,
           w_prevy TYPE BSIS-GJAHR.
    SELECTION-SCREEN BEGIN OF BLOCK b11 WITH FRAME TITLE text-001 .
    *Parameters to enter the path
    PARAMETERS: FILENAME(128) OBLIGATORY DEFAULT '/usr/sap/tmp/TEST.txt'
                             LOWER CASE.
    SELECT-OPTIONS: s_curry FOR w_curry,
                    s_currm FOR w_currm.
    SELECTION-SCREEN END OF BLOCK b11.
    AT SELECTION-SCREEN OUTPUT.
    *Define current/previous financial periods
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = 'X999'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm    " Current Fiscal Month
        CURRY         = w_curry    " Current Fiscal Year
        PREVM         = w_prevm    " Previous Fiscal Month
        PREVY         = w_prevy.   " Previous Fiscal Year
        s_curry-low = w_curry.
        s_curry-option = 'EQ'.
        s_curry-sign = 'I'.
        APPEND s_curry.
        CLEAR  s_curry.
        s_currm-low = w_currm.
        s_currm-option = 'EQ'.
        s_currm-sign = 'I'.
        APPEND s_currm.
        CLEAR  s_currm.

  • Can you use a formula field as the default value of a parameter?

    I'm wondering if you can use a formula field as the default value of a parameter. I have an date parameter that is being pulled from a stored procedure. When I run the report, it defaults to the current date and time. I would like it to default to he current date and have the time be 00:00:00

    Hi,
    Unfortunately, you cannot use a formula field as the default value of the parameter.
    And, to get rid of the current time and show 00:00:00, all you need to do is Edit the parameter and set the 'Default Value' to 00:00:00. This will take care of the time portion, however the date portion would be set to the year 1899 and not the current date.
    Hope this helps!
    -Abhilash

  • How to make a subscription use the default value for a parameter

    Hi everyone,
    I need to use the CreateSubscription method and have this new subscription use a default value for certain parameter. How can I do this?

    Hi Marianne,
    I have to create the subscription programatically, which is different from what you mention. To further clarify my challenge:
    I have three parameters in a report: date-interval (string), start-date (date), end-date (date). If the user selects for example "last week" as the date-interval, the DEFAULT values for the other two are as follows:
    Code Snippet
    start-date=DateSerial(Year(Today),Month(Today),Day(Today)-Weekday(Today)-6)
    end-date=DateSerial(Year(Today),Month(Today),Day(Today)-Weekday(Today)-1)
    The user can then select intervals like "today", "yestarday", "this month" etc, and the other two parameters are calculated based on that date-interval parameter. Now, If I programatically create a subscription to a report that contains these three parameters and set a value of "last week" for the date-interval parameter, the subscription stores the fixed days (say september 10 to september 16) producing a report of the same week every time the subscription is run and not updating the correct interval to LAST-WEEK!. What should I put as the value for start-date and end-date when I create the subscription to have these two params get the DEFAULT calculated value based on the third param date-interval?
    Hope to have been more clear now.

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • Default Value using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library.
    I tried using COPY, but its not working?
    COPY('GLOBAL.EXP_PRO',':IT_QF.PRO_NUM');
    Is their any other way to do it?
    Thanks!

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • How to populate a default value in Text box depending on Poplist selection

    We have a requirement to populate a default value in a Text Box when user chooses a value from poplist (of type MessageChoice adjacent to the Text Box). This page is a Oracle Seeded Page. I understand that this is not possible using personalization. Can please someone guide me as to how should we proceed for this.

    Can I add PPR event to the standard page?
    YesAlso Can I change the Controller code of the standard page to catch the PPR event?
    You need not change the controller, you can extend the controller!Although Oracle discourages extension of controller, but as of now there is no other alternative! These controller extensions will mostly survive upgrades, as Oracle won't be removing all base controller classes.Is it allowed to make changes in standard XML page and import it once again?
    No, standard UIXML should not be changed. But y would u need that, you cando the Ui changes with personlization and if needed programitically in process request method of controller, by takeing control on that particular bean!
    I hope i have resolved your queries.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Default value of form

    How can I use a query or custom function to retrieve a forgein key field to be the default value of a field. Also, the types are different. Here is my example:
    table: addresses
    address varchar2(100);
    city varchar2(30);
    state number(10);
    table: states
    id number(10);
    description varchar2(50);
    I want to create a form on table ADDRESSES and have the state not a list of values, but a read only field that displays the contents of the description field of STATES. How can I do this? I have tried to work with default value but don't know how to reference the STATE value in a query in the default value textbox and when I get any value (select 'OK' from dual), it complains that it cannot convert 'OK' to a number.
    Any thoughts? Thanks in advance.

    Please give some Information as how are you planning to get the description for the field as when you will open the form based on address table ,which description (I mean for which state) you wish to get,as there will be no way to find the address in a fresh form.

Maybe you are looking for

  • How to assign ALV for parent node and child node that uses supply method.?

    HI Dear friends,     I need to display header details ( VBAK ) and Item details ( VBAP ). I have created two node like HEADER_NODE inside this i have created ITEM_NODE for this item node i use supply function 'GET_ITEMS'  any way it is working only w

  • Trying to compile songbird, but can't get mp3 support

    I'm trying to get songbird to compile, and once I do it won't play mp3's. I was reading on the songbird wiki that ubuntu requires some gstreamer*dev packages...  http://wiki.songbirdnest.com/Developer/ - bird#Linux I am using the PKGBUILD from AUR ht

  • IP of client in Application Server

    Dear All, FUNCTION RETURN_IP_ADDRESS      RETURN VARCHAR2      IS           IP_ADDRESS_V VARCHAR2(15);      BEGIN      SELECT      SYS_CONTEXT('USERENV','IP_ADDRESS')           INTO          IP_ADDRESS_V           FROM           DUAL;           RETUR

  • How to know the type of a control

    Hi, Here's a hard one. The column 14 (Document Type) in the Stages of Sales Opportunity.  What kind of control it is. Here's what I tried that doesn't work yet : SAPbouiCOM.EditText DocType = (SAPbouiCOM.EditText)Matrix.Columns.Item(14).Cells.Item(Ma

  • Widget creation: html5 & swf

    I'm trying to figure out how to create custom Captivate 6 widgets that will publish to html5 and swf.  I figured I'd start by pulling apart the A3C widget that's in the Captivate 6 gallery.  I rename the file to A3C.zip.  Unzip it using my Mac's arch