XMLEncoder and default values

According to the XMLEncoder documentation, Sun has blessed us with "redundancy elimination" so that a bean's default values are not written out into the stream when it is encoded into XML. However, I actually WANT the default values to be written out into the stream and not suppressed. Any ideas on how to do this?
Sander Smith

>
This implies that it is the encoder that is deciding
whether something is default and hence should not be
serialized. Will a persistence delegate be able to
override this decision? The examples of persistence
delegates that I've seen have all been for complex
situations, I just want to do something very simple -
serialze all of my data whether or not it is default.
Anyone have an example for how to do this?
Sander SmithTo make XMLEncoder do its job properly I find that it is necessary to write gui code in a special way. Say you have MyPanel which contains nested panels etc. MyPanel and other such panels (the nested ones) would have to have a constructor that does nothing, and a special init() method that sets all the default properties. (Inside the init(), the nested init()s would be being called by the way).
Thus if you constructed a program that read MyPanel into memory, and then called its init(), and then XMLEncoded it, you should then be able to look at the output file, and see your default properties.
- Chris Murphy

Similar Messages

  • Validations and default Values in ALV Grid

    All,
    I am using "set_table_for_first_display" to display a grid with empty editable rows wherein which users can enter data and process certain transactions.
    My requirement is to know if we can provide drop-downs and default values in this grid. for ex. if user want to insert a row, that row should automatically have some default values like company code, sales org etc.
    Also, if there is an error while validating the data, I should be able to set the focus on that field while displaying the error message. I was able to display error message but could not set the focus on the field that need to be corrected.
    Your earlier response is much appreciated.
    Regards
    Kasi

    Hi kasi,
    check these links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an easy reference for alv grid control.pdf
    http://www.abap4.it/download/ALV.pdf
    hope this helps,
    keerthi.

  • Text Box/Area and default value

    Is it possible to display a Text Box (or Text Area) in a Form page assigned a default value and prevent the user to change it? I need to register the actual user submitting the form. I have done this in WebDB22 Text Box and #user function but in Portal 3.0.6.6.5 it seems to be impossible to prevent the user to change the text value. Deselecting Validation Options, Updatable does not seems to help. Why?

    The equivalent of Webdb #user function in portal is #portal30.wwctx_api.get_user.
    If you specify this as a default value for a field it will be the same as #user. Also, "inseratble" and "updatable" checkboxes control the presence of a column in INSERT and UPDATE statements, so unchecking any of those checkboxes will remove the column from a respective statement.
    Thanks,
    Dmitry

  • Import and default values for columns

    Hi guys
    I have a table in which there are default values for some columns. I take export of this table.
    I go to another database where this table structure is already there (but default values are not set). I run the import of table with ignore=Y. It does all...import the data...create the indexes and all...but doesn't set the default values for the columns.
    Shouldn't it do that also ? ignore=Y means that ignore the object creation errors and proceed with the rest of the stuff ? Or there is some problem in my understanding ?
    Version 10gR2 on AIX 5.3 and using traditional export/import.
    Thanks
    Amardeep Sidhu

    Hanji Sidhu Sahib.
    Mein Tuhade liye eh example try kita hai.
    SQL> conn simar/simar
    Connected.
    SQL> SQL> create table orders (
    dept varchar2(20) primary key,
    place varchar2(20),
    intcol integer default 12
    2 3 4 5
    Table created.
    SQL>
    Inserted few values ...........+ commit.
    SQL> conn simar/simar
    Connected.
    SQL> select * from orders;
    DEPT PLACE INTCOL
    SALES TORONTO 12
    HR LA 12
    BILLING FLORIDA 12
    IT HALIFAX 5
    exp simar/simar@RACDB file=exptest.dmp log=exptest.log
    rac01:/software/backup>exptest.dmp log=exptest.log <
    Export: Release 10.2.0.3.0 - Production on Tue May 6 23:35:58 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SIMAR
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SIMAR
    About to export SIMAR's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SIMAR's tables via Conventional Path ...
    . . exporting table ABC 12 rows exported
    . . exporting table ORDERS 4 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    rac01:/software/backup>strings exptest.dmp |grep -i 'create'
    CREATE TABLE "ABC" ("A" VARCHAR2(10), "B" VARCHAR2(10)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
    CREATE TABLE "ORDERS" ("DEPT" VARCHAR2(20), "PLACE" VARCHAR2(20), "INTCOL" NUMBER(*,0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
    rac01:/software/backup>strings exptest.dmp |grep -i 'alter'
    ALTER TABLE "ORDERS" MODIFY DEFAULT
    ALTER TABLE "ORDERS" MODIFY ("INTCOL" DEFAULT 12
    ALTER TABLE "ORDERS" ADD PRIMARY KEY ("DEPT") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING ENABLE
    SQL> conn simar/simar
    Connected.
    SQL> drop table orders;
    Table dropped.
    imp simar/simar@RACDB file=exptest.dmp log=imp_exptest_1.log tables='ORDERS'
    rac01:/software/backup>exptest.dmp log=imp_exptest_1.log tables='ORDERS' <
    Import: Release 10.2.0.3.0 - Production on Tue May 6 23:46:48 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    . importing SIMAR's objects into SIMAR
    . importing SIMAR's objects into SIMAR
    . . importing table "ORDERS" 4 rows imported
    Import terminated successfully without warnings.
    SQL> conn / as sysdba
    Connected.
    SQL> set heading off;
    set echo off;
    Set pages 999;
    set long 90000;
    SQL> SQL> SQL> SQL> SQL>
    SQL> select dbms_metadata.get_ddl('TABLE','ORDERS','SIMAR') from dual;
    CREATE TABLE "SIMAR"."ORDERS"
    ( "DEPT" VARCHAR2(20),
    "PLACE" VARCHAR2(20),
    "INTCOL" NUMBER(*,0) DEFAULT 12,
    PRIMARY KEY ("DEPT")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    SQL>
    Here the alter table statement is in the dmp file as well as in the imported table.
    Regards

  • Personalization and Default values in selection screen variables

    Hi everyone,
    I have certain questions regarding Front end part:-
    1)     Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
    2)     In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still it’s showing the value. We can’t delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also it’s showing the same value.
    Did anyone face such a situation before?
    Eagerly waiting for a solution.....
    Thanks in advance

    Hi Chiran,
    Please try with following approach for multiple   personalizations for a single user in Web templates.
    While Defining Variable Choose the Option Copy personalization data from variable .
    The Features  of above approach is as follows.
    1)It will personalize variable values for Input Variables for each user.
    2)These values are saved for each variable as well as for user.
    3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
    So you can see the variable values in web also.Just try with this approach.
    May be it will resove u r issue some extent.
    Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
    Thanks & Regards,
    Chandu.

  • Action script and default values

    While importing data through action script, even if the property value present in Action script is same as default value defined at the property level , DRM marks that property value as Overridden in the hierarchy.
    Is there any possible way to avoid this?

    Default value is set when no value is entered for the property. As soon as you enter a value for the property thru action script or manually, its overridden even though the value is the same which was set at the property level
    Right click on the property and do a remove value then the icon should be set to default again.
    If you want to restore multiple properties back to default, then use remove all below at the rollup level

  • 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

  • What is the Best Approach for System Defined Fields and Default values

    Hi ,
    Please let me know that what can be the best approach for providing a Default value for the System defined fields when creating a User and How can we hide the System defined fields at the time of User creation

    You cannot provide default values for any attributes defined in the FormMetaData.xml file. You can only provide default values for fields defined in the User Defined Fields and supply a default value.
    You can using entity adapters to populate some of the values, but you must supply an Organization because there is an entity adapter that you cannot modify that verifies the organization name.
    -Kevin

  • Travel Management-Receipt Maximum rates and Default values

    Hi
    I need some help on one of the issue we are facing in Travel Management. We are expected to Go-live very soon.
    We are unable to apply a very basic check of receipt maximum amount at
    the receipt entry in the portal for travel expenses. This functionality
    is very much provided by SAP in the backend configuration but it is not working in the backend also in our Development system.
    This is concerning the maximum and default amounts in
    View V_T706B2 are related to the IMG
    "Define Influence of Control Parameters: Receipt Maximum Rate"
    I have analysed the table entries but could not
    get the desired solution.
    In the meanwhile based on SAP note: 808437-Warning message when max
    rate is exceeded negative value, we looked into the code and found that
    the code for checking the maximumum amounts is "commented" in the
    lastest SP32 SAP HR version in the DEVELOPMENT system we are working
    on.
    I also looked into (SAP Note: 1114398---Country and Region when
    reading maximum amounts and defaults) and have found that the
    correction suggested in this note may already be applied as our D35
    System EA_HR patch level is already SAPK-60211INEAHR and Note
    correction in SAPK-60203INEAHR is of old level, hence we have not applied this correction.
    Furthermore I have checked and found that in our IDES system these checks
    for Maximum amounts and defaults are working fine. The IDES system is
    at level 0002 and highest support package is SAPKE60002.
    Many thanks in advance !
    Ritesh

    Hi Ritesh:
    We had a situation in which our expense types require both a warning message and request for additional information when the maximum is exceeded. We were told that ECC6.0 can handle only one action per expense type/amount. In our old system, R4.6C, it could handle multiple actions per amount for a receipt type.
    I am not sure if this is your issue - having multiple actions for a expense type/amount combination.
    We got around this by leaving one action at the expected amount and setting the other to 0.01 lower.
    Lisa

  • Meaning and default value of WMI MSCluster_Resource class property ResourceClass

    Somehow cannot get clear with MSCluster WMI class MSCluster_Resource property named ResourceClass. Does anybody know the meaning and the value by default?
    Guntars Svilpe

    Hi,
    I found the following third party article about use the “MSCluster_Resource class” may can give you some tips:
    Cluster resource monitor
    http://community.whatsupgold.com/library/activemonitors/cluster_resources_monitor
    the Cluster Owning node name using powershell
    http://serverfault.com/questions/445015/get-the-cluster-owning-node-name-using-powershell
    #PSTip Monitoring Cluster Shared Volume (CSV) availability
    http://www.powershellmagazine.com/2014/02/26/pstip-monitoring-cluster-shared-volume-csv-availability/
    More information:
    Playing around with the Root\MSCluster WMI Namespace and WMI Notifications
    http://blogs.technet.com/b/rspitz/archive/2011/05/11/playing-around-with-the-root-mscluster-wmi-namespace-and-wmi-notifications.aspx
    However this form is not for the develop issue discuss, about the develop question please post to the MSDN forum.
    MSDN forum Developer Network
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesVirtualNetwork&filter=alltypes&sort=lastpostdesc
    Thanks for your understanding and support.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SQL Loader, nested tables and default values

    Is there a way to specify a default value for a nested table entry when SQL*Loader encounters a 'null' value?
    I want to avoid this:
    Record 5: Rejected - Error on table LEVEL_DESC, column LEVELS.
    NULL nested table element is not allowed

    Use the NULLIF parameter in your control file for the nested table objects.
    e.g
    LOAD DATA
    INFILE 'level_data.dat'
    INTO TABLE LEVEL
    (LEVEL_ID POSITION (01:05) CHAR
    LEVEL_NAME POSITION (07:20)
    LEVEL_DESC COLUMN OBJECT
    (LEVELS POSITION (22:25) CHAR NULLIF LEVEL_DESC.LEVELS=BLNAKS,
    ... ))

  • Switch partitions and default values

    MSSQL 2012
    Can I switch partitions when the target has default value for a column, but the source doesnt? if so, will the default values be applied? 
    Thanks

    Hello,
    Do a simple test:
    CREATE TABLE dbo.Source (id int NOT NULL, updatestamp datetime NULL)
    CREATE TABLE dbo.Destination (id int NOT NULL, updatestamp datetime NULL DEFAULT(GETDATE()));
    GO
    INSERT INTO dbo.Source (id) VALUES (1);
    GO
    ALTER TABLE dbo.Source SWITCH PARTITION 1 TO dbo.Destination;
    SELECT *
    FROM dbo.Destination;
    Yes, it works.
    No, during a Partition Switch the data won't be modified.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Hiding Entire Row having Null and default valu in SSRS Using Expression

    Hi,
    In my reports having number of rows and three columns.The first columns  value will be different for each and every row and it will be  hard corded to the text box.  My question is how to hide the particular row second and third column suppose
    to be null or empty data and each and every row had Hide is true.Please provide me the solution if anybody known.
    Regards,
    HariKan
    HariKan

    Hi Qiuyun Yn,
    Thanks for your reply.
     If i use Not Null in my query in where
    condition  then i have to add 30 fields in my where condition,  and i guess it will not give proper output why because i have 30 columns.
    So could you please give me in report level solution. I am struggling past 10 days for this issue.
    Regards,
    Hari 
    HariKan

  • Default value of BeX customer Exit variable not Displayed in WeBI??

    Hello Experts,
    We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
    1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
    2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
    3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
    So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
    Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
    and we are on SAP BW 7.1 and BOXI 3.1 SP4.
    Regards,
    Vipul
    Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PM

    Hi,
    See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
    WebI will prompt when executed, but the default values calculated by the user exit  - do not appear.
    Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
    Cause
    This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
    Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
    Characteristic variable > processing type > Customer Exit  is "Supported, without user entry"                                                                               
    -->  This should be understood as meaning "User will not be shown a prompt"
    regards,
    H

  • Report Parameter Default Value at runtime

    Post Author: DMiller
    CA Forum: .NET
    Hi,
    I need to be able to create new parameters at runtime and have been somewhat successful in this endeavor. I have one remaining issue that I am hoping that somebody can help me with. Let me explain.
    When you create a parameter from within the Crystal XI designer, you are able to specify a number of default values that will display as a list box at runtime. Eg. ParameterName is MaritalStatus and default values are ("Married", "Single", "Divorced" etc). There is also the ability to specify the Default Value in the Value Options area of the screen. This value could be set to any one of the default values above - let's say that I set it to "Single". By setting the Default Value, this causes the Parameter Fields screen, at runtime, to "Select" the specific default value set above - in this case "Single", instead of showing "..." as the parameter value.
    The default value setting in the Value Options is beneficial when you have reports that are usually run with certain parameter values and only occasionally these need to change. Instead of having to specify every parameter value, the user only has to set the ones that have not been defaulted or they want to change.
    So, I have been successful in creating the parameters at runtime and successfully running the report. I have been unsuccessful in setting the "Default Value" as seen in the Value Options area. I have tried a number of properties on the report parameter object and have not found anything to set this.
    Does anybody know how to set the "Default Value" as seen in the Value Options area in the designer at runtime?
    Thanks for any help.

    Post Author: JerryB
    CA Forum: .NET
    You have described my scnario to a tee.  Did you ever figure out how to get the single default value that is available in the "value options" area when working within the Crystal Reports development environment.  I am using VB.Net and have a nice report menu form and viewer but recently a user ask me to set the default value in one of my combo boxes and I have been unsuccessful in finding the correct property to use.

Maybe you are looking for

  • Framemaker 12, Save as PDF and Print PDF Not working...

    We are using Framemaker 12 version 12.0.3.424, it tells me it is the latest patch level, and the issue we are having is that it won't either save as or print to PDF, both options are failing, they start up and then go to a certain point and come up a

  • Download using GUI_download

    Hi all, i am trying to download the internal table which have 10 field, into the EXCEL file, at the same time i wanted into the downloaded file field name also appear....how can we do that,, while downloading its appearing in a one column, i want to

  • Exp/Imp alternatives for large amounts of data (30GB)

    Hi, I've come into a new role where various test database are to be 'refreshed' each night with cleansed copies of production data. They have been using the Imp/Exp utilities with 10g R2. The export process is ok, but what's killing us is the time it

  • Quicktimes taking very long time to load-Big Q appears instead.

    When posting ipod (small) quicktimes to my .mac account (4 per page), the site is taking a really long time to load-a large Q appears instead of the usual Quicktime video frame for a few minutes. They eventually load, but it takes a long time. I've u

  • Image from Smart Forms BDS to BSP-Layout

    Hi, I need some help by developing a new part of our BSP-Application: I got a graphic (bmp) on Business Document Server(se78). I also need the same graphic displayed in BSP-Website. I found some help in http://help.sap.com/saphelp_470/helpdata/de/3e/