Default property values

Is there any way of setting system wide default property values in Windows XP? For example, I want to set the extensions directories to point to a common jar directory for all java programs I run on my computer. Or I want to set the JDBC driver properties for all programs. Any easy way of doing this?

Use some wrapper script?

Similar Messages

  • Setting default property value in custom componenty

    I'm a Flash newbie trying to build a custom component using
    Flash MX 2004. basically it's an enhanced version of the standard
    label component. Everything seems to work fine except when trying
    to set default text or assigning a text value in the "properties"
    window (the field displays in the properties window, but any value
    typed into it does not appear during movie playback). Currently,
    the text can be seen only in authoring mode, not when the movie
    plays. The only way for the text to displayed during playback is to
    set it up through code. Does anybody know what I'm doing wrong? .as
    file content follows.
    class CustomComponents.FormFields.lblFieldLabel extends
    MovieClip {
    private var objFieldLabel:MovieClip;
    private var strText:String = "";
    function lblFieldLabel() {
    init();
    public function init():Void {
    public function get displaytext():String {
    return strText;
    [Inspectable(defaultValue="display text", type="String")]
    public function set displaytext(val:String):Void {
    strText = val;
    objFieldLabel.text = strText + ":";
    }

    I have posted a response to your duplicate post here Set a default value in Custom.pll

  • Place default checkbox value "in SESSION" on initial page load

    Oracle 11.2
    Apex 4.1
    Desire outcome: Chart renders on inital page load using default value of checkbox in query.
    I have a checkbox with a default (checked) value. It shows checked when the page renders for the first time but the value is not in the SESSION state. I use this value in a query for a chart. I do not want to use a Submit button so I have a dynamic action submitting the value for the checkbox and the chart refreshes as desired when I check and uncheck the box.
    I tried "Fire on Page Load" in the DA Execution Options, as well, but that caused a loop where the page renders and immmediately renders, and immediately renders, etc.
    Is there a declarative solution that submits the current, in this case default, values when the page is loaded? I only need and want the default values used the first time the page is accessed. This is the initial page of the application but I need the same behavior on all pages for the separate checkbox selections found there.
    May God Bless,
    Howard

    Howard (DBA in Training) wrote:
    If I remove the Default Value and add a Before Header page computation for the item with static assignment to
    a:bI get the 2 A/B checkboxes, both checked, and the value is set in session state.If you log in here, you can see it up close and personal!
    http://apex.oracle.com/pls/apex/f?p=21997:3 Login: Dever / Ima9Dever
    The Default Value colon-delimited string must contain the checkbox values, not the labels. In a static LOV the checkbox options are specified as <tt>label;value</tt> pairs. Thus in your checkbox LOV the labels are A/B, whilst the values are a/b. The values are case-sensitive.
    The Default Value should therefore be:
    a:bwhereas you've specified:
    A:BWith the checkbox item LOV Display Extra Values property set to Yes, APEX displays these extra values that are not included in the LOV definition as additional checkboxes. You can see this if you inspect the rendered checkbox elements in the HTML source:
    <input type="checkbox" id="P3_CHECKBOX_0" name="p_v01" value="a">
    <input type="checkbox" id="P3_CHECKBOX_1" name="p_v01" value="b">
    <input type="checkbox" id="P3_CHECKBOX_2" name="p_v01" value="A" checked="checked">
    <input type="checkbox" id="P3_CHECKBOX_3" name="p_v01" value="B" checked="checked">You get the a/b values defined in the LOV, plus the extra A/B values the LOV knows nothing about.
    ==== ) How do you keep it from setting/resetting these values each time the
    page is rendered?  The need is to do it only the very first time?  ( ====Put a Value of Item / Column in Expression 1 Is NULL condition on the Computation. Problem then is that the computation will be run if the user can [legitimately] deselect all of the checkboxes, either leaving you back where you started, or requiring the use of a further item to flag whether it is the really "the very first time" (which I find intellectually deeply unsatisfactory). This may be a sign that the control should really be a radio group that always has one option set, rather than a check box.

  • How to assign One Dimension Property value to another Dimension ID

    Business senario:
    There are two dimensions Entity and Plant. Plant also has a property Entity.
    In my Input Form, I need to derive Entity Property based on PLANT selection and should map it to ENTITY Dimension.
    I have selected PLANT Dimension and ENTITY Dimension in Page Axis. I have updated EPMOLAPMember() formula with EPMMemberProperty() for deriving Entity values. When I tried to save data an error message appears saying TOT_Code is not a base level member. So I checked Edit Report window and found that ENTITY Dimension is automatically moved to default left panel from Row Axis and Entity Dimension Context Menu is mapped to TOT_Code which is the top node of the total hierarchy.
    I tried EPMMemberOverride() function to overwrite ENTITY Dimension values with Entity Property of PLANT Dimension but unable to overwrite it.
    In Simple Words:
    ENTITY Dimension = PLANT Dimension (Entity Property)
    Is there any way to map/assign property value to another dimension??? Please help me.
    Thanks in advance.

    Hi,
    see please this thread for a possible solution http://scn.sap.com/thread/3230754
    Regards
         Roberto

  • Set a dynamic default property when a page is created?

    Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.
    I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?
    I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.
    Thanks

    For anyone in the future, here is how i implemented the event handler -
    @Component
    public class PageCreationObservation implements EventListener {
        Logger log = LoggerFactory.getLogger(this.getClass());
        private Session adminSession;
        @Reference
        SlingRepository repository;
        @Activate
        public void activate(ComponentContext context) throws Exception {
            log.info("Activating PageCreationObservation");
            try {
                String[] nodetypes = {"cq:Page"};
                adminSession = repository.loginAdministrative(null);
                adminSession.getWorkspace().getObservationManager().addEventListener(
                    this, //handler
                    Event.NODE_ADDED, //binary combination of event types
                    "/content/appname", //path
                    true, //is Deep?
                    null, //uuids filter
                    nodetypes, //nodetypes filter
                    false
            } catch (RepositoryException e) {
                log.error("Unable to register session",e);
                throw new Exception(e);
        @Deactivate
        public void deactivate(){
            if (adminSession != null) {
                adminSession.logout();
        public void onEvent(EventIterator eventIterator) {
            try {
                while (eventIterator.hasNext()) {
                    Event newEvent = eventIterator.nextEvent();
                    log.info("something has been added : {}", newEvent.getPath());
                    //Check if node exists and it is a content node of the newly created page
                    if (adminSession.nodeExists(newEvent.getPath())
                            && adminSession.getNode(newEvent.getPath()).getProperty("jcr:primaryType").getString().equals("cq:PageContent")) {
                        Node contentNode = adminSession.getNode(newEvent.getPath());
                        if (contentNode.getProperty("jcr:createdBy") != null) {
                            contentNode.setProperty("author", contentNode.getProperty("jcr:createdBy").getString());
                adminSession.save();
            } catch(Exception e){
                log.error("Error while treating page creation events",e);

  • XL Reporter - "invalid property value"

    SAP 2005A SP1 PL43
    W2k3
    SQL 2005
    .NET Framework 2.0
    Citrix PS 4.0
    MS Office 2003
    When I run XL Reporter, I get this:
    XL Reporter
    An error occurred while Executing report!
    Invalid Property value.
    Thanks to Apple Liu, I did this:
    1) Make sure XLR is uninstalled. To be sure of this, check the folder
    \AddOns\XLR in their Business One client installation folder and it
    should be empty.
    2) Go to the SQL Server, and delete the database IXMetaSBOOEM manually
    if it is there. After that, go to the default data file folder of
    SQLServer (if SQLServer is installed on c:\Program Files folder, the
    data file folder should be C:\Programas\Microsoft SQL Server\MSSQL\Data\
    by default). This folder is the default location for SQL Server to place
    data files. Make sure the files IXMetaSBOOEM.mdf and
    IXMetaSBOOEM_log.ldf does not exist.
    3) Go to Security->Logins in the SQL Server, delete the account xlruser
    if it exists.
    4) Try installing XLR again
    I also dropped the proper config files from SAP Support Notes into the Office 11 folder and the XL Client folder to ensure the client is using the proper .NET Framework version.
    I know this is permissions-related, since I can run XL Reporter successfully when I launch the client from the Citrix desktop when I'm logged into the server console (won't work if I RDP into the desktop as Administrator).
    Any suggestions?
    TIA
    John

    Thanks for the quick response, Gordon.  Your questioning helped me to solve the problem.  I had not tried to launch XL Reporter from the Tools menu, and when I did, I got an error message that said 8-bit color was not supported (I was running the SAP client on the Citrix desktop via an RDP session).  When I increased the color display property in my RDP session, XL Reporter worked fine.
    That also explains why I could successfully run XL Reporter from the server Console!
    Thanks, again.
    John

  • Setting View Default property

    Hi,
    I have 2 views in a window. Upon passing application parameters and checking for the values I need to set the 'default' property of the view i.e I need to see view1 initially when I deploy the application or I need to see view2 initially(depending on a condition). Is this posible to set this property dynamically? Please let me know.
    Thanks,
    Sunil

    Hi Sunil,
    When WD is called, the application executes the InterfaceView of the default view in the window. So, you can have an intial view, call it as view0 which will always be the default view, (nothing in it but not an "empty view") and fire plugs in this view to any other view view1 or view2 of your choice.
    If you learn any other standard way, please do let me know.
    Thanks,
    Rajit
    Message was edited by: Rajit Srinivas

  • [NSUserDefaults setObject:forKey:]: Attempt to insert non-property valu

    Hi all
    I have been writting classes at work in Xcode 4.? SL 10.6.8 and every thing has been working fine. When I bring a copy home to work on under Lion in Xcode 4.3.2 I get issues (Lots of them)
    While I have solved or worked around most I am unsure why I am getting an error with my NSUserDefaults.
    I have a method that I run in a singleton
    + (void)setSaveLocation : (NSString *) saveLocation
        NSMutableDictionary * ccLogManagerDictionaryFromUserDefaults = [[NSMutableDictionary alloc] initWithDictionary:[[NSUserDefaults standardUserDefaults] valueForKey:@"CCLogManager"]];
        [ccLogManagerDictionaryFromUserDefaults setObject:saveLocation forKey:@"Save Location"];
        [[NSUserDefaults standardUserDefaults] setObject:ccLogManagerDictionaryFromUserDefaults forKey:@"CCLogManager"];
        [ccLogManagerDictionaryFromUserDefaults release];
        // Post a notification to inform other classes that the savelocation has changed
        NSNotificationCenter *notification = [NSNotificationCenter defaultCenter];
        [notification postNotificationName:@"CCLogManagerNotificationSaveLocation" object:self];
    This worked fine before. The only change I have made is to the method in a different class that send the information :
    - (IBAction)changeSaveLocation: (id)sender
        NSOpenPanel* openDlg = [NSOpenPanel openPanel];
        [openDlg setCanChooseFiles:NO];
        [openDlg setCanChooseDirectories:YES];
        if ( [openDlg runModal] == NSOKButton )
            NSArray* files = [openDlg URLs];
            int i;
            for( i = 0; i < [files count]; i++ )
                NSString* fileName = [files objectAtIndex:i];
                [CCLogManager setSaveLocation:fileName];
    I had to change two lines due to depreciation:
        if ( [openDlg runModalForDirectory:nil file:nil] == NSOKButton )
    and
            NSArray* files = [openDlg filenames];
    What I dont understand is that I am still passing a NSString as required. And if in the first method I simpy insert a @"" string like so
        [ccLogManagerDictionaryFromUserDefaults setObject:
    @"file://localhost/Volumes/MacPro%20RAID/Home%20Folder/Downloads/8-tileable-meta l-textures/"  forKey:@"Save Location"];
    Then it works
    Any assistance would be most appreciated.
    Cheers
    Steve
    Oh and the error is:
    2012-06-14 22:41:31.843 ProControl[3630:403] *** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '{
        "Logging Enabled" = 1;
        "Save Location" = "file://localhost/Volumes/MacPro%20RAID/Home%20Folder/Downloads/8-tileable-meta l-textures/";
    }' of class '__NSCFDictionary'.  Note that dictionaries and arrays in property lists must also contain only property values.
    And it don't save to the User Defaults.

    Hi etresoft, thanks for the reply.
    Do you mean the number 1 pertaining to "Loggining Enabled" = 1?
    If so this should be a   [NSNumber numberWithBool: YES] which is already in the userdefauts.plist. before copying the original dictionary.
    The method save should be copying a dictionary from the .plist and only changing the dictionary entry for "Save Location" which is a NSString. It shouldn't be doing anything to the "Logging Enabled" entry which as I say should already be a NSNumber numberWithBool . Plus seeing as you can change the line
    [ccLogManagerDictionaryFromUserDefaults setObject:saveLocation forKey:@"Save Location"];
    to
    [ccLogManagerDictionaryFromUserDefaults setObject:
    @"file://localhost/Volumes/MacPro%20RAID/Home%20Folder/Downloads/8-tileable-meta l-textures/"  forKey:@"Save Location"];
    and still not touch the "Loggining Enabled" = 1 I don't that the 1 is an issue.
    Sorry if I'm being dense.

  • WebAS - invalid property value

    Hi,
    I started to apply SP11 to WebAS 6.4 SP9 and now having problems starting the dispatcher-process. The developer-trace shows two errors:
    error => Invalid property value [box.number/J2EJC00MC00009304] [jstartxx.c 808]
    error => Invalid property value [system.id/0] [jstartxx.c 808]
    I can't figure out why these values are wrong. What are the right values and where to set them?

    Hello,
    I found the same problem.
    When upgrading from WebAS 6.40 SP09 => SP11 (or SP12) the update process stops before "Deploy online" because the J2EE  engine came not up.
    This is because a wrong jvm parameter in the dispatchers default configuration in  WebAS 6.40 SP9:
    Xms170m instead <b>-</b>Xms170m.
    To fix the problem it seem to be the best choise to use the configtool BEFORE starting the upgrade to SP11 or 12.
    Move to the instance_IDxxx\dispatcher_IDxxx general tab and correct the wrong jvm parameter Xms170m to -Xms170m.
    Thats all.

  • G6: Setting default metadata values

    Hello all!I am trying to find a way to set default metadata values in plumtree.
    For example, if I created a Web Content Crawler to scan MarchofDimes.com, which has various career postings, I would like to be able to default or force these crawled content items to have a category field of "Job Postings".
    It appears that at the "Content Type" object level, you can set a default value. However I don't want to set "Job Postings" as the category for all imported web content, only those imported through this particular crawler.
    I tried to create a new Content Type called "Web Content - Job Postings" but I chickend out when it got down to setting a new identifier to map to the Content Type. I wasn't sure how that would be accepted in the Global Content Mime/File Type Map Utility if there were duplicate identifiers.
    Apart from going into each crawled document and setting the category field manually, does anyone have a recommendation on how this can be done?Thanks!Geoff!
    While I have your attention, in the Global Document Property Map, how can I identify the various Document Attributes?

    Hello all!I am trying to find a way to set default metadata values in plumtree.
    For example, if I created a Web Content Crawler to scan MarchofDimes.com, which has various career postings, I would like to be able to default or force these crawled content items to have a category field of "Job Postings".
    It appears that at the "Content Type" object level, you can set a default value. However I don't want to set "Job Postings" as the category for all imported web content, only those imported through this particular crawler.
    I tried to create a new Content Type called "Web Content - Job Postings" but I chickend out when it got down to setting a new identifier to map to the Content Type. I wasn't sure how that would be accepted in the Global Content Mime/File Type Map Utility if there were duplicate identifiers.
    Apart from going into each crawled document and setting the category field manually, does anyone have a recommendation on how this can be done?Thanks!Geoff!
    While I have your attention, in the Global Document Property Map, how can I identify the various Document Attributes?

  • I am facing problem while accessing property value when i include a component inside another

    Hi Everyone,
    I am unable to access property value of richtext of a compoent that is included in another compoent.
    I have created a compoentA at following location myProject/components/componentA.
    I then created componentB at this location myProject/components/componentB
    ComponentB contains a design_dialog that has a richtext widget with following properties:-
    xtype=richtext
    name=./description
    titile=productdescription
    I have then included componentB in componentA.jsp using <cq:include path="productdescription" resourceType="myProject/components/componentB" />.
    I have then dropped componentA on a page. In design mode i could see the edit dialog for componentB and on edit I could see the rich text, but when i am trying to access the values entered in richtext inside componentB.jsp i am getting null/default value.
    <%=properties.get("description","Description not present")%>
    Can any one tell me why the property is not accessible on the included component.
    Thanks

    What is the tree structure created for the property of the componentB?
    Can you try the below code in your componentB jsp and check whether you are getting the property value
    Resource resource = slingRequest.getResource();
    String description = ((String) ResourceUtil.getValueMap(resource).get(
                        "./description", String.class));

  • How to check the default checked  value for radio button on jsp for struts

    Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>

    you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
    In the above case you can write the code as follows in the perticular form of this jsp.
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
         sale = "permanent";
    This will show the first check box default selected when the first time the page is loaded.

  • What is the default timeout value for the SPQuery object?

    What is the default timeout value for the SharePoint SPQuery object? I've tried searching online but can't find anything with the actual timeout value.
    Someone suggested it might use the timeout property in the database? Anyone know if that's how it works?

    Hi,
    Do you want to avoid timeout when you query list items?
    If so, we can use the following C# code to set timeout.
    HttpContext.Current.Server.ScriptTimeout = 600; // 10 minutes
    More information is here:
    http://200oksolutions.blogspot.com/2013/03/sharepoint-2010-set-timeout-only-to.html
    The SPQuery object doesn’t provide any property to set timeout. We can also set timeout in web.config, or SQL Connections or IIS.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • Crystal Reports 9 and SQL Server 2005 default parameter values

    We're using Crystal Reports 9 and upgraded from SQL Server 2000 to SQL Server 2005.
    I'm noticing a very weird problem which I wonder if anyone else has experienced (and hopefully found a resolution for). It appears that in using Crystal with SQL Server 2005 stored procedures, if we have default parameter values in the stored procedures, the default parameter values get completely ignored if you pass in a NULL value from Crystal!
    For example, if you have a stored procedure that begins like this:
    ALTER          Procedure [dbo].[StoredProcedure]
    @Param1 VarChar(200) = '',
    @Param2 VarChar(200) = ''
    AS ...
    both @Param1 and @Param2 have a default value of an empty string, and therefore should become empty strings if nothing (NULL values) gets passed in for them.
    But, like I said, what I'm finding is that with Crystal calling the stored procedure with NULL @Param1 and @Param2 values, they never become empty strings, but rather remain as NULLs.
    This was never a problem with SQL 2000.
    Very perplexing. Anyone else every experience this?
    Thank you.

    Please ignore my earlier post -- answered my own question.
    NULL parameter values do not get replaced by default values in SQL -- that is normal behavior in both SQL 2000 and SQL 2005. Just goes to show, that no many how many years programming experience you have, you can still get tripped up sometimes : (

Maybe you are looking for

  • IPhoto and metadata

    I started using iPhoto 09 yesterday, and have some questions for you. When I import my pictures I use Adobe Lightroom to convert to DNG, add captions, keywords and ratings. I (want to) use iPhoto for viewing, organizing and ordering books and stuff.

  • How can I edit a droplet for Photoshop 6?

    How can I edit a droplet for Photoshop 6? The company hired somebody to set up the droplet years ago, and nobody remembers how it was set up. The computer that was used to save the files has crashed, and I need to change the path the droplet uses for

  • "mode not supported"ATV3 VGA Kanex ATV Pro

    hi Apple TV3 Samsung LED projector via VGA Kanex ATV Pro VGA-HDMI convertor Macbook Mavericks all i get is mode not supported? ta JJ

  • Premiere Elements 8 - Importierte Dateien haben eine schlechte Qualität

    Hallo Dies ist mein verzweifelter Versuch, mein Problem doch noch irgendwie zu lösen, mit dem ich schon seit einiger Zeit scheinbar leben muss. Ich benutze seit kurzem vermehrt Premiere Elements 8 zum Schneiden von Videos, um sie dann auf meinem Yout

  • How do I upgrade the plug-ins in Adobe Indesign ??

    Can someone tells me how to do that ? Because I get messages that the plug-ins has to be updated...