How to define or restrict the permissions?

I don't understand what is the administrator? How do you attribute this file users?

Updated title

Hello, Nellie,

What version of Windows are you using?

How to set, view, change, or remove special permissions for files and folders in Windows XP

http://support.Microsoft.com/kb/308419

Presentation of the NTFS of Windows permissions

http://www.windowsecurity.com/articles-tutorials/authentication_and_encryption/Understanding-Windows-NTFS-permissions.html

Permissions for files and folders

http://TechNet.Microsoft.com/en-us/library/cc787794 (v = WS.10) .aspx

Tags: Windows

Similar Questions

  • How can I get all the permissions Admin with Windows 8?

    I have recently installed Windows 8 on a used laptop that I bought and I'm trying to clean it up, but he always tells me I'm not allowed to watch even some files. How can I get all the PERMISSIONS ADMINISTRATOR?

    You must use the run as administrator command. So if you run a program or a file, just click and click on run as administrator. If you delete something, you must have an administrator account.

  • How to define commands and the default view

    I have Acrobat 9 Standard, and I want to set the default to open files to view full page with one-page-at-a-time of scrolling.  I regularly open multiple PDF files and have to scroll through the entire document.

    I managed to get the full view page to work, but does not scroll the entire page.  Currently, when I open the document, the mouse scroll the document continuously wheel several rows at a time.  What I want is for the mouse wheel to scroll through the document to a full page at a time (page up/page down).  I can manually set it by selecting the 'Full Page' button on the toolbar (the one with the four arrows), but it is another step, I have to every time I open a document.

    Is it possible to put the scrolling in full screen by default?

    You must put once the file PDF is loaded. You may need to edit document properties in some cases (use ctrl-D). I say this, but it seems that using one link to another location in the document resets the display properties based on the document. In this case, you will need to change the properties of the document (if available).

  • How to set access restrictions "collision" in wrt610n - what are the preferences of rule?

    Hello. I want to implement access restrictions to a MAC address (machine of my child) based on the days of the week. Su in Th allow less access time throughout the fifth - his afternoon access should arrive later. The question is how do I program in the router. I know I can set the rules with the keyword 'allow' and 'disable', but I do know not preference storage.

    When I put (Su-Th-6-21) allowed the time to access and router automatically denies internet access machine set outside this interval of time then. The problem is in the power of the time who refuses so calculated. I want to give more time access at the weekend, so I was hoping if I can simply add rule ' fifth - his 6-22:30 allowed access time. I hoped that router will consider time explicitly defined in time inexplicitly set but it seems that this is not so.

    Does anyone know the rules rule? What are their preferences/priorieties, iis, it is possible to stack more rules affecting a MAC address or it is so simple that the first rule "rulez"? Is it possible to put more than one rule of time touching a machine?

    GV, thanks for your explanation. I would discuss only if access to equal access to the router itself and what is more, the reset action would be easily detected and can be protected physically. It is a pity however, during the router power can intestinal strategies. I like being green and I would like to physically cut access to my home network by disabling the router (even if I tried to maximize the software protection). Thanks again for your confirmation, we must only remember that it is better to use 'disable' the rule that 'allow' if the router can suffer power breaks.

  • How to restrict the running command prompt?

    How to restrict the running command prompt?

    I already know the method: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System DisableCMD: 2

    but, but, it is possible to change reactivate cmd used much the system tool software

    So I want to deny the change of registry value by the software used, I changed all permissions to the registry [System] refusal keys with my account.

    but after a modified registry key permissions denied, disableCmd was inactivated more.

    It is impossible that the two parameter [disablecmd: dword = 2] and [{System} lock keys: administrator of the deny all permissions in my account]?

    This issue is beyond the scope of this site which is for the consumer to related issues.
    To ensure that you get a proper answer, ask either on the Technet site, if it is a type of Pro problem, or MSDN if it's related to the developer
  • How to set loan and buy permissions on the same book - Adobe Content Server

    Hello

    We have a scenario where we will give the options in our bookstore to buy or borrow the book,

    but in our initial search, what we get is that we can set permissions to distribution

    buy or ready... technically we can set the permissions of distribution like buy and when demand

    of the library is ready, we can set the time-out period expires... BUT in this case the

    book will be not classified in the section of the loan of the Adobe Digital Editions.

    So, how can we define the permission to buy and loan on the same book?

    Kind regards

    Use the admin REST API (ManageDistributionRights), or leave the administration console for you to use.  In the administration console, there is a button right next to the title rights of Distribution.

  • The print is so small. How can define you default largest size print without having to click the icon on each page?

    The print is so small. How can define you default largest size print without having to click the icon on each page?

    The Firefox Page Zoom feature makes a domain level by area to save favorite settings level users zoom, there is no default Page Zoom level setting in Firefox, as with some other browsers.

    Try the extension Default FullZoom Level:

    https://addons.Mozilla.org/en-us/Firefox/addon/6965

    Or the NoSquint extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/2592/

  • How can I reset the permissions of folder to Yosemite?

    Well, I have a mac mini 2014 with Yosemite.  I changed the permissions in the folder my documents and apply to the elements included as another admin had read/write access to all items inside.  I did it just to test it to see how to work the reset database folder permissions.

    Then I went to the recovery partition, open the resetpassword terminal and clicked on the reset button for my admin user.

    then I rebooted and was expecting to see my documents and Interior elements folder reset default permissions: it wasn't, another admin has the right to all items read/write.  Shouldn't they have been reset for read/write only for me?  Also: when you click the reset button, greys out as 'done' instantly, should it I wait for it to finish something?  I just restarted immediately.

    I tested it in an another mac mini with Yosemite, same result: no change 'permissions by default.

    So perhaps my idea of Reset bit it won't?

    Follow the instructions given by Linc Davis here:

    Permissions and memory with the HELP of Yosemite!

    C.

  • How can I change the permissions? His does not work.

    If this problem occurred when I tried to change the icons on my mac. The apps that I downloaded as pages, spotify, google chrome, etc have been changed without problems. (I used the method where get you information, then paste in). But when I went to change the icons of the apps that came with my computer such as safari, messages, photos, etc., that it did not work. There was no option to paste into the file menu and when I did command + v he comes to make a noise. So I googled how to change safari icon and it says that I have to change permisions. That's where the problem came. I pressed get info on safari and went down to the right, then I clicked on the lock and entered my password and the unlocked locking. But then when I went to the control panel and selected "reading and writing" in all he did not. He three get out a message that "the operation cannot be completed because you do not have the necessary permissions. Things to note are that in the permissions Panel my name and (I) was not under the name column. I am the sole owner of this mac and I don't know whats going on. Any help would be appreciated. Thank you!

    I think you're probably be lived this because of SIP (Protection of the integrity of the system). This was introduced in El Capitan (10.11).

  • How can I change the permissions for an external hard drive?

    Hi, I have a little problem... I used an external hard drive on my pc windows 10 and now I try to copy my files on my iMac, but the thing is I can't delete my files from my hard drive because I can only read them. So I want to change the permissions, but I do not know how... Can someone help me with this please?

    Thank you for your time.

    This means generally that the volume is formatted to NTFS, at which case it must be reformatted or software such as Paragon NTFS installed on the Mac.

    In case this happens to a FAT32, exFAT or volume Mac OS extended, either the volume's directory structure is damaged, it is locked in the material or the player has felt that it is about to fail.

    (138025)

  • Writing EXIF data (and how to define the side of the photo)

    Anyone had luck writing EXIF data in photos? Reading EXIF data are fairly easy, as demonstrated by "photobomber. Writing EXIF data seems to be more painful, however.

    In particular, I'm trying the face value of the photo.  I found mention on the web page of its existence in EXIF, with the code:

    0 x 4746

    That said, when I check the exif - tag.h, apparently not be listed.

    It is clear to me that this is a deal breaker or not.  The tags are listed in the exif - tag.h the only ones that can be used? Or are they simply definitions of convenience tag codes most commonly used?

    Thank you

    Daniel

    Incase others are reading this in the future and ask yourself how: my conclusion is that the best way to define metadata such as:

    -Photo rating

    -Tags

    -Description

    ... does NOT use EXIF.  On the contrary, it seems that XMP is a much better choice:

    http://en.Wikipedia.org/wiki/Extensible_Metadata_Platform

    Ideally, BB10 comes with the XMP library, and it can be easily added to your project. (right-click on the project node in "Project Explorer", go to the context menu item 'Configure', then 'add the library')

    Here's the code I added bo my main.cpp:

    //-----------------------------------------------------------------------------
    // XMP
    //-----------------------------------------------------------------------------
    
    // Must be defined to instantiate template classes
    #define TXMP_STRING_TYPE std::string
    
    // Must be defined to give access to XMPFiles
    #define XMP_INCLUDE_XMPFILES 1
    
    #define UNIX_ENV 1
    
    #include "xmp/XMP.incl_cpp"
    #include "xmp/XMP.hpp"
    
    #include 
    #include 
    
    using namespace std;
    
    //-----------------------------------------------------------------------------
    

    ... and here's what I added to the .h file that I wanted to use XMP in: (it does not include the XMP.incl_cpp at the top of the notice)

    //-----------------------------------------------------------------------------
    // XMP
    //-----------------------------------------------------------------------------
    
    #define TXMP_STRING_TYPE std::string
    #define XMP_INCLUDE_XMPFILES 1
    #define UNIX_ENV 1
    
    #include "xmp/XMP.hpp"
    
    #include 
    #include 
    
    using namespace std;
    
    //-----------------------------------------------------------------------------
    

    And finally, here's a big copy and paste part of the key code that I adapted to the code example in the XMP SDK I downloaded separately for read/write some common tags.  Feel free to use this code in your own applications, or to adapt it, if that's helpful.

    int ImageViewContainer::xmpWrite()
    {
        qDebug() << "xmpWrite()";
    
        string filename = file.toStdString();
    
        if (!SXMPMeta::Initialize())
        {
            qDebug() << "XMP: An error occurred initializing XMP.";
            return -1;
        }
    
        XMP_OptionBits options = 0;
    
        #if UNIX_ENV
            options |= kXMPFiles_ServerMode;
        #endif
    
        if (!SXMPFiles::Initialize(options))
        {
            qDebug() << "XMP: An error occurred initializing SXMPFiles.";
            return -1;
        }
    
        try
        {
            // Try using the smart handler.
            XMP_OptionBits opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUseSmartHandler;
    
            bool ok;
            SXMPFiles myFile;
    
            // Open the file.
            ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
            if (!ok)
            {
                qDebug() << "XMP: No smart handler available for " + file + ". Trying packet scanning.";
    
                // Now try using packet scanning.
                opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUsePacketScanning;
                ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
            }
    
            // If the file is open then read the metadata.
            if (ok)
            {
                qDebug() << "XMP: Opened: " << file;
    
                // Create the xmp object and get the xmp data.
                SXMPMeta meta;
                myFile.GetXMP(&meta);
    
                // Should we be doing this?
                meta.SetProperty(kXMP_NS_XMP, "CreatorTool", "Updated by PhotoStar", 0);
    
                int ratingToSet = rating;
                if (ratingToSet == -1) { ratingToSet = 0; }
                meta.SetProperty(kXMP_NS_XMP, "Rating", QString::number(ratingToSet).toStdString(), 0);
    
                // Required before we can call other functions that refer to this namespace
                // without getting an exception.
                std::string tmp;
                meta.RegisterNamespace("http://ns.microsoft.com/photo/1.0/", "MicrosoftPhoto", &tmp);
    
                if (ratingToSet == -1)
                {
                    meta.DeleteProperty("http://ns.microsoft.com/photo/1.0/", "Rating");
                }
                else
                {
                    int microsoftRating;
    
                    // Mapping:
                    // xmp:Rating=1 -> MicrosoftPhoto:Rating=1
                    // xmp:Rating=2 -> MicrosoftPhoto:Rating=25
                    // xmp:Rating=3 -> MicrosoftPhoto:Rating=50
                    // xmp:Rating=4 -> MicrosoftPhoto:Rating=75
                    // xmp:Rating=5 -> MicrosoftPhoto:Rating=100
    
                    if (ratingToSet == 1)
                    {
                        microsoftRating = 1;
                    }
                    else
                    {
                        microsoftRating = (ratingToSet - 1) * 25;
                    }
    
                    qDebug() << "MicrosoftPhoto:Rating: " << QString::number(microsoftRating);
                    meta.SetProperty("http://ns.microsoft.com/photo/1.0/", "Rating", QString::number(microsoftRating).toStdString(), 0);
                }
    
                // Delete old tags. (?)
                meta.DeleteProperty(kXMP_NS_DC, "subject");
    
                // Tags
                for (int i = 0; i < tags.size(); ++i)
                {
                    string value = tags[i].toStdString();
                    meta.AppendArrayItem(kXMP_NS_DC, "subject", kXMP_PropArrayIsOrdered, value, 0);
                    //meta.SetArrayItem(kXMP_NS_DC, "subject", i + 1, value, 0);
                }
    
                meta.SetLocalizedText(kXMP_NS_XMP, "Description", "en", "en-US", description.toStdString(), NULL);
    
                // Update the Metadata Date
                XMP_DateTime updatedTime;
    
                // Get the current time. This is a UTC time automatically adjusted for the local time.
                SXMPUtils::CurrentDateTime(&updatedTime);
                //if (meta.DoesPropertyExist(kXMP_NS_XMP, "MetadataDate"))
                //{
                    meta.SetProperty_Date(kXMP_NS_XMP, "MetadataDate", updatedTime, 0);
                //}
    
                // Now update alt-text properties
                //meta.SetLocalizedText(kXMP_NS_DC, "title", "en", "en-US", "Kind of pretty");
    
                // For debugging
                if (false)
                {
                    // Serialize the packet and write the buffer to a file.
                    // Let the padding be computed and use the default linefeed and indents without limits.
                    string metaBuffer;
                    meta.SerializeToBuffer(&metaBuffer, 0, 0, "", "", 0);
    
                    //qDebug() << QString::fromStdString(metaBuffer);
    
                    // Write the packet to a file as RDF
                    writeRDFToFile(&metaBuffer, filename + "_XMP_RDF.txt");
                }
    
                // Check we can put the XMP packet back into the file.
                if (myFile.CanPutXMP(meta))
                {
                    // If so then update the file with the modified XMP.
                    myFile.PutXMP(meta);
                }
                else
                {
                    // Silent for now. TODO: Should this be indicated in
                    // the UI somehow?
                    qDebug() << "XMP: Can't write to file.";
                }
    
                // Close the SXMPFile. This *must* be called. The XMP is not actually written and the
                // disk file is not closed until this call is made.
                myFile.CloseFile();
            }
            else
            {
                qDebug() << "XMP: Unable to open " << file;
            }
        }
        catch(XMP_Error & e)
        {
            qDebug() << "XMP ERROR: " << QString::fromStdString(e.GetErrMsg());
        }
    
        // Terminate the toolkit
        SXMPFiles::Terminate();
        SXMPMeta::Terminate();
    
        return 0;
    }
    
    int ImageViewContainer::xmpRead()
    {
        qDebug() << "xmpRead()";
    
        string filename = file.toStdString();
    
        if (!SXMPMeta::Initialize())
        {
            qDebug() << "XMP: An error occurred initializing XMP.";
            return -1;
        }
    
        XMP_OptionBits options = 0;
    
        #if UNIX_ENV
            options |= kXMPFiles_ServerMode;
        #endif
    
        if (!SXMPFiles::Initialize(options))
        {
            qDebug() << "XMP: An error occurred initializing SXMPFiles.";
            return -1;
        }
    
        try
        {
            // Try using the smart handler.
            XMP_OptionBits opts = kXMPFiles_OpenForRead | kXMPFiles_OpenUseSmartHandler;
    
            bool ok;
            SXMPFiles myFile;
    
            // Open the file.
            ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
            if (!ok)
            {
                qDebug() << "XMP: No smart handler available for " + file + ". Trying packet scanning.";
    
                // Now try using packet scanning.
                opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUsePacketScanning;
                ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
            }
    
            // If the file is open then read the metadata.
            if (ok)
            {
                qDebug() << "XMP: Opened: " << file;
    
                // Create the xmp object and get the xmp data.
                SXMPMeta meta;
                myFile.GetXMP(&meta);
    
                bool exists;
    
                // Stores the value for the property.
                string value;
    
                // XMP Rating
                exists = meta.GetProperty(kXMP_NS_XMP, "Rating", &value, NULL);
                if (exists)
                {
                    rating = QString::fromStdString(value).toInt(&ok);
                    if (!ok)
                    {
                        rating = -1;
                    }
                }
                else
                {
                    rating = -1;
                }
    
                // Microsoft Rating (only look for this if xmp:Rating is missing)
                if (rating == -1)
                {
                    // Required before we can call other functions that refer to this namespace
                    // without getting an exception.
                    std::string tmp;
                    meta.RegisterNamespace("http://ns.microsoft.com/photo/1.0/", "MicrosoftPhoto", &tmp);
    
                    exists = meta.GetProperty("http://ns.microsoft.com/photo/1.0/", "MicrosoftPhoto:Rating", &value, NULL);
                    //exists = meta.GetProperty(kXMP_NS_XMP, "Rating", &value, NULL);
                    if (exists)
                    {
                        rating = QString::fromStdString(value).toInt(&ok);
                        if (!ok)
                        {
                            rating = -1;
                        }
                        else
                        {
                            // The Microsoft rating is 0, 25, 50, 75, 100.
                            rating /= 25;
                        }
                    }
                    else
                    {
                        rating = -1;
                    }
                }
    
                value.clear();
    
                qDebug() << "XMP Rating: " << rating;
    
                // Tags
                tags.clear();
                int arraySize = meta.CountArrayItems(kXMP_NS_DC, "subject");
                for (int i = 1; i <= arraySize; i++)
                {
                    meta.GetArrayItem(kXMP_NS_DC, "subject", i, &value, 0);
                    qDebug() << "XMP Tag[" << i << "]: " << QString::fromStdString(value);
                    tags.append(QString::fromStdString(value));
                }
    
                value.clear();
    
                // Description
                meta.GetLocalizedText(kXMP_NS_XMP, "Description", "en", "en-US", NULL, &value, NULL);
                description = QString::fromStdString(value);
                qDebug() << "XMP Description: " << description;
    
                timestamp = QDateTime();
                XMP_DateTime updatedTime;
                // Get the current time. This is a UTC time automatically adjusted for the local time.
                SXMPUtils::CurrentDateTime(&updatedTime);
                if (meta.DoesPropertyExist(kXMP_NS_XMP, "MetadataDate"))
                {
                    meta.GetProperty_Date(kXMP_NS_XMP, "MetadataDate", &updatedTime, 0);
                    if (updatedTime.hasDate)
                    {
                        if (updatedTime.hasTime)
                        {
                            timestamp = QDateTime(QDate(updatedTime.year, updatedTime.month, updatedTime.day), QTime(updatedTime.hour, updatedTime.minute, updatedTime.second));
                        }
                        else
                        {
                            timestamp = QDateTime(QDate(updatedTime.year, updatedTime.month, updatedTime.day), QTime(0, 0, 0));
                        }
                    }
                }
    
                // Close the SXMPFile. The resource file is already closed if it was
                // opened as read only but this call must still be made.
                myFile.CloseFile();
            }
            else
            {
                qDebug() << "XMP: Unable to open " << file;
            }
        }
        catch(XMP_Error & e)
        {
            qDebug() << "XMP ERROR: " << QString::fromStdString(e.GetErrMsg());
        }
    
        // Terminate the toolkit
        SXMPFiles::Terminate();
        SXMPMeta::Terminate();
    
        return 0;
    }
    

    Note that the code above makes use of some class member variables:

        int rating;
        QList tags;
        QString description;
        QDateTime timestamp;
    

    One final note: there is a code that deals with the MicrosoftPhoto:Rating XMP tag. It's because I'm on Windows and I noticed that if you click on a photo in Windows Explorer, it allows you to display/change some meta (such as star ratings) data directly in Explorer. When you do so, it sets the MicrosoftPhoto:Rating tag (as well as the tag xmp:Rating, I believe). Once, he put that, if your application updates the xmp:Rating tag but don't update the MicrosoftPhoto:Rating tag and the file returns on Windows, then he continues to use the old notation before your update app. (he seems to ignore xmp:Rating if MicrosoftPhoto:Rating is present)

  • How to restore the permissions for the folder

    I work with Windows 7 and Internet Explorer 10.

    Initially I tried see my Cookies folder and eventually he finds in C:\Users\(my user name).  I wanted to look at the files and potentially manually remove some, but I was not allowed access to the folder.  I am the sole owner and the user of that PC.  I figured it would give me full permission for files and folders.

    I tried to change the permissions on the folder, and even if the properties show that I have all permissions except "Special permissions" I was unable to open the folder.

    A second possibility, I changed the permissions 'All' allow all these same permissions - I clicked on full control.  A warning window appears saying that there are permissions that were more in agreement and it is potentially unstable.  I then decided to cancel this change all the permissions back, but am currently not able to restore the original permissions.  I am really unable to change all permissions to this folder now.

    I would like to restore the permissions on this folder Cookies in their original condition / by default.  Can someone help me?

    ALSO: since my original post, I noticed that in the icon beside my C:\username\ subdirectory when you view it in Solution Explorer, there is a lock.  I don't know if it was there before.  Is this a normal representation / by default to the directory?

    Thank you.

    Hi Susan,.

    Please follow the steps suggested by Amrita in http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-to-reset-all-user-permissions-to-default/9da312d2-c99b-4283-a275-e74d93dcc366

    Note: The steps mentioned in the link above involve changes to the registry. So it would be nice if you could take a backup of the registry before you start the troubleshooting step.

    http://Windows.Microsoft.com/en-in/Windows7/back-up-the-registry

    If the problem persists, try the steps suggested by Brent in http://answers.microsoft.com/en-us/windows/forum/windows_vista-security/restore-default-permission-settings-in-vista/7eacb966-cbbd-41ac-b08d-7c7f881943be

    Note: The steps in the above links works for Windows 7 and Windows Vista.

    For more information about the symbol of lock on certain issues, please go through the response of Steven S't-want-any-locks/f82a3e5e-5164-4dc2-9ec5-3e97ce7606d9 http://answers.microsoft.com/en-us/windows/forum/windows_7-files/folders-have-lock-symbol-don

    Hope this information helps. If you have any questions, please let us know.

  • How to restrict the use of the connection profile Anyconnect to traffic from an interface?

    Hello

    A few questions about the profiles connection Anyconnect and dynamic access policies:

    • I set up multiple profiles connecting Anyconnect with different characteristics. I want one of the profiles to be visible and usable only when the Anyconnect client connect through a specific interface (and not the outside interface). How can this be configured? As it is now all profiles are visible via all interfaces compatible VPN.
    • DAP: When dynamic access policies are configured, these will be global or is it possible to link a policy to a specific connection profile? I would like to configure the DAP Protocol to be effective only when you use a specific connection profile. What is a good way of thinking? What I want is: when a user Anyconnect choose a specific connection profile, it needs to connect using a DAP which requires membership in an ad group and existence of a local file.

    Best regards

    Thor-Egil

    • Unfortunately, you cannot restrict the interfaces of the AnyConnect fitting profile is assigned to AnyConnect connection profiles are global settings, no interface specific setttings, therefore, it will be available no matter what interface the AnyConnect is connected to.
    • DAP political work as an access list. It in the lowest priority to highest priority and he stops at the first match. For example, you can create a number of policies on what you want to match on. You cannot however force the user to authenticate to AD when they choose a specific group of tunnel. DAP is used to apply that only users that meets policy is allowed access. For example: If the user belongs to a specific ad group and also have a file exist, the user will be allowed access to use the AnyConnect. So it's the application that the user connects from a company laptop where you specified the policy, that is to say: exist in AD and have a specific file in his laptop. This is to ensure that those who try to connect to the site of the company non-portable, or internet kiosk have accessed to the VPN, because they may not be protected and can infect your corporate network, if they are allowed to access.

    Hope that makes sense.

  • Can we restrict the number of table rows to display on a page that is only 2 or 3 rows appear? How to do this?

    Mr President.

    Can we restrict the number of table rows to display on a page that is only 2 or 3 rows appear? How to do this?

    Concerning

    Tender,

    Set the RangeSize property on the table.

    See you soon

    AJ

  • How to define the rules of navigation in faces - config.xml dynamically?

    In jdev 12.1.2 I am studying and performing the adf faces demo (12.1.2 version).

    I am trying to implement the function of navigation like this:

    1. in the navigation tree in the left panel of the accordion will show the features of an application which is read from database tables;

    2. When you click on a node in the navigation tree, a corresponding function/page will be launched in the Panel to the right of the home page;

    3. the navigation tree nodes display names and information pages target will be resident in the database tables and will be read in my case, the control of data bindings.

    and now I know, the click action was executed in this file in the demo: componentGallerySideBarTree.jsff:

    ->action = "#{stamp.actionOutcome}"

    < af:tree id = "tree" value = "#{attrs.menuModel}" var = "stamp" = "single" rowSelection fetchSize = "200" "

    Summary = "#{uploading." Summary}"disclosedRowKeys =" #{attrs.menuModel.foldersTreeState} "autoHeightRows = '0'"

    displayRow selectedRowKeys = "#{attrs.menuModel.selectionState}" = "selected" "

    contentDelivery = 'immediate' emptyText = "there are no demos for this category.

    styleClass = "AFStretchWidth" >

    < f: facet name = "nodeStamp" >

    < af:panelGroupLayout id = "nodePgl" >

    < af:image source = "#{stamp.ico}" styleClass = "GalleryIcon" shortDesc = "Image of a tree node" "

    ID = "nodeImg" / >

    < af:switcher facetName = "#{stamp.children == null?' leaves ': 'notLeaf'}" id = "nodeSw" > "

    < f: facet = "journal batch name" >

    < af:link id = text = "#{stamp.label"leafLink"} '"

    shortDesc = "#{stamp.label} #{stamp.deprecated eq 'real'?" (not recommended) " :"} »

    action = "#{stamp.actionOutcome}"

    inlineStyle = "#{stamp.deprecated eq 'true'?-style: italic; color: gray':"} ' "

    selected = "true" >

    < af:target execute="@this"/ >

    < / af:link >

    < / f: facet >

    < f: facet name = "notLeaf" >

    < af:outputText id = value = "#{stamp.label"notLeafText"} ' shortDesc =" #{stamp.label} "/ >"

    < / f: facet >

    < / af:switcher >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:tree >

    and the value of actionOutcome was entered in this file DemoConfusedComponentsMenuModel.java:

    (for the case of the confused component navagation tree folder)

    private TreeModel _initConfusedComponents()

    {

    Confused components

    The list < DemoItemNode > confusedComponentsNodes = new ArrayList < DemoItemNode >)

    {

    {

    ..

    Add (new DemoItemNode ("Tabs", "/ confusedComponents/tabs.jspx","/adfdt/panelTabbed.png","confused.tabs"));

    Add (new DemoItemNode ("iterators","/ confusedComponents/iterators.jspx","/adfdt/iterator.png","confused.iterators" ""));

    }

    };

    DemoItemNode confusedComponentsGroup = new DemoItemNode ("Often confused", "/ images/folder.png", confusedComponentsNodes);

    List ConfusedComponentsList = new ArrayList();
    confusedComponentsList.add (confusedComponentsGroup);

    TreeModel confusedComponents = new ChildPropertyTreeModel (confusedComponentsList, _CHILDREN);
    Return confusedComponents;
    }

    In addition, there are elements in faces-config .xml to define the rules of navigation for the actions 'by clicking on the tree node.

    <>navigation-case

    < from outcome >confused.iterators< / de-results >

    < to view - id > /confusedComponents/iterators.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    So, I can add a new entry in the navigation tree, like this:

    1. in DemoConfusedComponentsMenuModel.javaof the file: Add

    Add (new DemoItemNode ("Iterators", "/confusedComponents/cms.jspx","/ adfdt/iterator.png","confused.cms" ""));

    2. in the file faces - config.xml, add:

    <>navigation-case

    < from outcome >confused.cms< / de-results >

    < to view - id > /confusedComponents/cms.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    and it works!- I have successfully added a new node in the navigation tree, called a new page created by myself cms.jspx.

    If I implement them using database tables (links datacontrols EO/VO),.

    I think I can put action = "#{stamp.actionOutcome}" by links.

    But how can I pay the entry in the faces-config file. XML? -That is to say:

    How to define the rules of navigation in faces - config.xml dynamically?

    Thanks in advance!

    ADF 12 c comes with support for JSF 2.0, you can use the implicit navigation feature.

    In short: you don't need to add case action property, any set of navigation in the name of the page (and include the path if necessary).

    In your case, the name of the action will be: ' / confusedComponents/cms.jspx ' and of course, you can link the action property of method that returns this string.

    If you want to add by the case of navigation program, try ConfigurableNavigationHandler.

    For example:

    Manager of ConfigurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance () .getApplication () .getNavigationHandler ();

    handler.getNavigationCases () .put (...);

    Dario

Maybe you are looking for

  • How can I get rid of the floating bar to social media

    Whenever I select the text on a Web page a floating bar to social media (action FB, G +, Twitter and Gmail) appears above the text - it's a distraction and I want rid of it. Clues?

  • Drag the cells numbered to increase automatically multi-page tables

    This is my problem: I have a table in Pages 5.6.1. that spans multiple pages. If I numbering in the first column, I want to have it extend over the entire table in ascending order. I can do this by selecting the first 2 numbered cells and dragging th

  • Impossible to establish a VPN between AG241 and WAG54GP2 tunnel

    Hello This is my first post on this forum and I send my best regards to everyone! I signed up because I have a problem with establishing a VPN tunnel between an AG241 modem/router and a modem/router WAG54GP2 with wireless and VoIP. The scenario is si

  • Documentation for PC

    I just bought a Pavilion h8-1110PC and want to get some manuals that show me how to add memory or equipment for the open expansion slot.  I tried to download a manual from the HP website, but I keep getting messages that IE has stopped due to a "data

  • Microsoft outlook "mailbox almost complete", but I'm on Windows livemail 2011

    I use windows livemail 2011.  I got two emails from Microsoft outlook , saying that my mailbox is almost full.  I wonder if this is still applicable for me since I'm is not using Microsoft outlook.  Also... after I received the first email that I del