Default values in EO's and DB

Hi all,
in my DB (Oracle 9i Rel.2) I can define default values. In an INSERT statement I can use the keyword 'default' to add the default value for this field. When I create my EOs, the default value is completely ignored. Of course I can modify my EO's to have that default value. But it would be nice if the EO's would contain a keyword like 'default' to set the DB's default value. If there are any changes for the default value in the DB my EO's wouldn't need any changes. Is this possible? How?
Thanks,
Axel

Thanks for responding..... However, it didn't work for me. I guess I'll stick to setting the value in the create method of the viewRowImpl. Just FYI.... what is working for me now is to check to see if the getCol() is null or length of zero and set the default date that way.
By the way... do you have an exampe of a class file for creating a MessageList Data Object?
Thanks again!
Connie

Similar Messages

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

  • [svn:fx-trunk] 13129: ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren ="false" and focusEnabled="true"

    Revision: 13129
    Revision: 13129
    Author:   [email protected]
    Date:     2009-12-21 13:50:37 -0800 (Mon, 21 Dec 2009)
    Log Message:
    ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren="false" and focusEnabled="true"
    QE notes: -
    Doc notes: -
    Bugs: - FLEXDOCS-386
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDOCS-386
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/events/VideoEvent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterp olator.as

    I had a while ago similar problem with USB memory stick. At the end, I don't know why, just formatting it using WinXP helped me.
    S-
    Last edited by StenM (2011-07-22 17:56:32)

  • How to change default value of a parameter and LOV attached to a parameter

    Hi All
    I am new to discoverer reports and I need to accomplish the following tasks:
    1. Need to change the SQL query of a discoverer report
    2. Need to change the default value of parameter ( from constant to current month). In the discoverer plus responsibility when I open the report and go to tools>>parameter>>edit
    I can see the constant default value given there. On the right hand side there is a drop down which says 'Value'. I guess if i need to put a SQL as defaul value I need to change the drop down to sql or something and then put the SQL. Problem is the drop down is froezen and I cannot change it.
    Even if I try to create a new parameter/report.
    3. Need to change the LOV associated to the item on which the parameter is based.
    I have the discoverer plus responsibility attached to myself and do not have the discoverer administrator tool (desktop developer tool like forms 6i). My questions are:
    1. Can I change the SQL query by using discoverer plus responsibility or do I need discoverer administrator tool?
    2. Any help on how to get the default value from an SQL query? currently it is a constant value.
    3. Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?
    Any pointers/solutions will be highly appriciated!!!
    Thanks in advance.
    Thanks and Regards,
    Shashank

    HI,
    Need to change the SQL query of a discoverer reportThe discoverer generate the SQL according to the item, calculation and conditions designed in the worksheet.
    You cannot edit a specific worksheet SQL.
    In order to change the SQL you need to change the worksheet using the "Edit-> worksheet" from the menu.
    To change the SQL generated inside the folders you need to do that using the administrator.
    Need to change the default value of parameterYou cannot use SQL statements for the parameter default value. it is not supported. if you need default you can use only constant (as it was). otherwise you can set the parameter to be optional and then add to this condition an OR saying that <item>= NVL(:Parameter,<your default>)
    as <your default> you can use calculations so that if for example you want the current date you will create a calculation containing: SYSDATE.
    Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?They are based on SQL, even they are const then you will see it as
    select 'a','b'... from dual
    you can find the LOV (called item classes) in the administrator.
    Go to the item your condition is based on and see its properties.
    In the properties you should see the item class it uses.
    Close the properties and go to the item classes tab, search for this item class and figure the folder it came from.
    This is the folder you need to change in order to change the LOV.
    Hope it helped a bit, you sure asked several big questions...
    Tamir

  • Plsss help me: how to set default values in html:file and html:radio

    Hai,
    To set default value to text box i use the following code. It works well.
    <html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
    <html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
    how to set default selection in <html:radio>.

    No it won't help.
    You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
    The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
    Bottom line: you can't put a default value into the input type="file" control.
    And a good thing too ;-)

  • Control/Default values in Service Notifications and Service Orders

    Hi all,
    When in transaction IW52 and IW32 I know you can maintain a set of default values for when you are either creating a Service Notificaiton and/or a Service Order.
    My scenario is as follows:-
    User 1 has a set of default values and it contains Work Centre A.  User 1 then creates a Service Notification.
    User 2 has a set of default values and it contains Work Centre B.  User 2 then reviews the Service Notification created by User 1 and wishes to create a Service Order.
    When User 2 creates the Service Order, the default value for the Work Centre is using User 1's Work Centre (Work centre A) and not their own Work Centre of Work Centre B?
    What is stopping User 2 picking up their own Work Centre of Work Centre B when they want to create a Service Order from a Service Notification?

    Gary,
    The order takes its data from the notification (which got it from USER1's defaults).
    What you need to do is change the notification work centre to that of USER2's preferred default value.
    There is no standard setting for this. However, all is not lost. It may be possible by misuing one of the order user-exits
    PeteA

  • Know default values of Lexer punctuation and endjoins

    I am using Oracle Text 11.2.0.2.0. I have a CTXCAT index with prefix on.
    I am creating lexer as
    ctx_ddl.create_preference ('MY_LEXER', 'BASIC_LEXER');
    ctx_ddl.set_attribute ('MY_LEXER', 'PRINTJOINS', ',.-''()/^&"');
    in my ctxcat index.
    However if period comes at the end of a word I cannot to prefix search in it.
    select * from mytab where catsearch
    (SRCH_NM, 'b.b.*','') >0
    Is period (.) being treated as punctuation or endjoins.
    How can I know whats are the default values used for punctuations, endjoins? and how can I can so that punctuation is empty?
    Thanks.
    Have a happy holiday.

    As you suspected, the period is a default punctuation. You can view the attributes for the basic_lexer, followed by their default values here:
    http://docs.oracle.com/cd/E11882_01/text.112/e24436/cdatadic.htm#CIHHBAAD
    So, if you reset the attributes for punctuations for your lexer to just the question mark and exclamation point, then it works as you want, as demonstrated below. You can see the tokens that are created as a result of indexing by select the dr$token column from the dr$your_index_name$i domain index table. Bear in mind that, if you are searching for any word that is the last word in a sentence, followed by a period, you will now have to either include that period or a wildcard in your search.
    SCOTT@orcl_11gR2> create table mytab
      2    (srch_nm  varchar2 (30))
      3  /
    Table created.
    SCOTT@orcl_11gR2> insert all
      2  into mytab values ('B.B. HEMPHIL')
      3  select * from dual
      4  /
    1 row created.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference ('MY_LEXER', 'BASIC_LEXER');
      3    ctx_ddl.set_attribute ('MY_LEXER', 'PRINTJOINS', ',.-''()/^&"');
      4    ctx_ddl.set_attribute ('MY_LEXER', 'PUNCTUATIONS', '?!');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index my_index
      2  on mytab (srch_nm)
      3  indextype is ctxsys.ctxcat
      4  parameters ('lexer my_lexer')
      5  /
    Index created.
    SCOTT@orcl_11gR2> -- tokens created by indexing:
    SCOTT@orcl_11gR2> select dr$token from dr$my_index$i
      2  /
    DR$TOKEN
    B.B.
    HEMPHIL
    2 rows selected.
    SCOTT@orcl_11gR2> select * from mytab where catsearch
      2  (SRCH_NM, 'b.b.*', '') > 0
      3  /
    SRCH_NM
    B.B. HEMPHIL
    1 row selected.

  • How to set the Default value in the picklist and LOV

    Hi All,
    I have created a table with some of the columns as picklist and some of the columns as Lovs to insert some data into the tables as per the client requirement.
    I want to make one value as default for the picklist and one value as default for the Lov.
    Could you please let me know how can we show one value as default in the pick list or Lov.
    thanks in advance.
    jay

    can u please help how can we set the initial value dynamically with the userid
    For that i was passing the value from process Request of the lovCO by using the get user id to the vo query in the vo
    but its not giving the initial value as default dynamically depending on the user id
    could you please let me know the solution.
    Thanks
    Ajay

  • FB60 - to default value for Business place and section code (PBO)

    Hi
    The requirement is as follows:
    We need fields Business place and section code of the FB60 transactions defaulted for respective company code.
    Is there any user exit or BADI for FB60 for PBO event,
    Among the 13 user exits, I worked the User Exit and found the enhancement as suitable F180A001.But the transaction doesnt reach the breakpoint.
    For the BADI i have tried the BADI BADI_FDCB_SUBBAS01 but that also doesnt work.
    Please suggest any resolution for the same.
    Regards,
    Kalpesh

    Hi Rob,
    Thanks for your reply.
    We have tried for OBBH transaction ,but in substitution field BSEG-BUPLA and  BSEG-SECCO doesnt found .
    There is one maintainance view VWTYGB01 where all substitution fields are maintained.We found the BUPLA and SECCO as excluded ,Hence i tried to make it unchecked and save that table.
    But SAP throws a warning message that Change is not allowed.Hence i am not been able to make further change.
    Can you suggests any more on this.
    Regrads,
    Kalpesh

  • Svg charts - size and default value

    is there any way to make svg chart size smaller? i want to fit 6 graphs onto a page and even with the 350x315 setting, they are still too big
    also, when i have a query like this:
    select null, c.nodes, count (*)
    from customers c, country_region_mapping m
    where system_status='Production'
    and c.country = m.country
    and decode(:P4_REGION, '%', 1, m.region, 1, 0)=1
    and decode(:P4_COUNTRY, '%', 1, m.country, 1, 0) =1
    and decode(:P4_INDUSTRY, '%', 1, c.industry, 1, 0) =1
    group by nodes
    the page initially comes up empty. in other words, the charts have no data.
    is there anyway to default to all

    i'm currently checking on your question about the chart sizes, but the second part of your question sounds easy enough. it looks like your query will return all the rows "from customers c, country_region_mapping m where system_status='Production' and c.country = m.country" when the default values of :P4_REGION, :P4_COUNTRY, and :P4_INDUSTRY are '%'. if that's how you're going about things, you can simply set your defaults for these items to the percent sign in those items' respective definition screens. this way, even before your items get a session state value, they'll be assigned their default "%" values and your query will return rows.
    i'll get back to you soonish re the svg chart sizes,
    raj

  • Default values for files and columns when adding a discoverer porlet

    Hi, i'd like to know how to configure the default value for numbers of columns and files when i add a new discoverer porlet in a portal page.
    The actual default value is 10 files and 6 columns and i always have to increase it to at least 100x100.
    Is there any config file where i can change that?
    I've found a configuration.xml in $ORACLE_HOME/discoverer/config/configuration.xml
    with a section
    <!-- Discoverer Servlet configuration. Defines behaviour of both
    discoverer/plus and discoverer/viewer servlets -->
    but couldnt find a parameter for those items.
    Thanks in advance.
    Daniel Perez

    I think triggers are the best device.
    Scott

  • Default Values

    It's important to remember that DEFAULT values are only used when a column isn't specified in an INSERT or MERGE, or when the DEFAULT keyword is used. If you don't explicitly declare a DEFAULT value, Oracle implicitly defines the default value to be NULL, and the DEFAULT keyword will even work with such.
    Does say this, does the possibility Exist to for example insert a default value 0 in a column (datatype number) (Default value 0) without using trigger and column is specified (e.g. I don't know from front-end if is specified)?
    Thanks in advance to all

    I don't know a lot about Forms, but if it will generate in insert statement like this:
    SQL> CREATE TABLE t(a NUMBER, b NUMBER DEFAULT 0 NOT NULL);
    Table created.
    SQL> INSERT INTO t VALUES (1,NULL);
    INSERT INTO t VALUES (1,NULL)
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("OPS$ORACLE"."T"."B")then yes, unless you can control the insert statement, you will need to use a trigger. The explicit NULL in the VALUES list will override the default.
    John

  • Passing values to sub VI and writing data to controls

    As part of a control interface for a VFD i am interfacing with using Modbus TCP I wanted to try and compartmentalise some of my code into a subVi
    However in doing so I am having a lot of trouble understanding how I can read the current drive settings for the Ramp up and Down values and update those values into the main faceplate of my control.
    The sub Vi is tested and works exactly how I want. Selecting Read (latch on pressed) reads the registers from the drive and outputs it to the controls and the indicators. The indicators were incorporated because I did not know how to pass the data out of the sub vi without them. Updating works to write the current value in the controls to the VFD registers.
    However when I incorporate this VI into my larger project the values are always displayed as zeros if I have the switch set to latch. However i do see a momentary flash of the correct values soon after pressing the read button or if i change it from latched operation to switched, however i would prefer it to opperate in a latched mode so as to reduce communication overheads to the drive. 
    Solved!
    Go to Solution.
    Attachments:
    Modbus sub vi.pdf ‏943 KB

    Hi,
    A number of suggestions:
    1. Use references and property nodes to set FP indicators from a subVI (you can learn more here and here)
    2. Don't put output indicators inside Cases. When the case is not Read, the VI outputs default values to the outputs and gives you the zero values. 
    Good luck,
    Danielle
    "Wisdom comes from experience. Experience is often a result of lack of wisdom.”
    ― Terry Pratchett

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • How to default value in collection after intial collection field entered

    Hi there,
    Am working on gettting to know collections but not really had much to do with them so far.
    I have a multi row data entry screen that works great using a collection. Now the boss has decided that the new records require a default value that the users can overwrite if required.
    The value i need to default is the second field in the collection but i only want to populate the value after the first field in the collection has been entered.
    Could anyone talk me through how i do this please or point me to any relevant documents.
    Cheers
    Lisa

    Hi Lisa,
    If you want to default value only after user enters data in another row column, you ll have to write a javascript code that executes after the column is entered
    If you have jQuery(already included in apex 4.0) it would make the task of accessing that other column easy.
    Otherwise its much more harder work to get I can think of setting the ID's using the pitem_id_* while rendering the editable fields(set it for both the columns..say as COL1_ROWNUM , COL2_ROWNUM ) using APEX_ITEM. Then add an onblur event(using the html attributes parameter of APEX_ITEM api) call a JS function with the rownumber(to identify the row). You can then write the logic for default value inside the function and set the corresponding column with the value.
    If you can update about your version and/or if you use any JS libraries, it would be easier to help you any further.

Maybe you are looking for

  • OIM SAP UM 9.1.2.0  Connector Error

    Hi experts We are configuring the connector SAP UM 9.1.2.0 for OIM 9.1.0.2 BP07 on WebLogic 10.3.0 and BD 10g (10.2.0.4). When we try to do the provisioning of a new profile the following error occurs : com.thortech.xl.dataaccess.tcDataSetException:

  • Lens correction in Lightroom not sending to photoshop when making a panorama

    I cannot seem to find anyone else on the forums with this problem.... I have set the lens correction in Lightroom which does a beautiful job of removing vingetting and lens distortions. However, when I go to "edit in"  "Merge as panorama in photoshop

  • Preventing decompilation of class files

    Hi, I tried yesterday running a decompiler on my .class files, and was shocked to see the result - it was amazingly similar to the original code, and very easy to understand... Is there any tool or way to prevent using a decompiler on your .class fil

  • Iphone pics not transferring to iphoto on my mac

    I have an Iphone 4 with iOS 6.1, I have a Mac OS X LION with 10.7.5.  Itunes 11.0.1. Iphoto 11'  9.4.2 Everything is up to date, iCloud is turned off.  I sync the phone, and when I open up Iphoto is says I have no pics to sync.  It will not let me se

  • Always Overloaded!

    I'm running Logic 8 using a macbook pro: processor 2.16 Core Duo Memory 2GB Hard Drive 500GB Logic is always stopping and this message appears:"System Overload The audio engin wasn't able to process all required data in time (-10011) Even in my sessi