Using a personalized definition file

About this task
You can customize the desktop by providing a personalized Desktop definition file for each user.

To provide a personalized desktop, complete the following steps:

  1. Start the toolkit.
  2. Open the Desktop, if desired (it is not necessary to open it).
  3. Show a logon view asking for the user ID and password of the user. Change the runtime value of the Desktop filename attribute from the default (desktop.xml) to the name of the personalized desktop definition file associated with that user ID (this association is defined in the client configuration file). For instance, if the user ID is AnyUser, the filename will be set to AnyUser.xml, as follows:
    <kColl id="files">
         ..... (other definitions)
         <field id="desktop" value="AnyUser.xml" />
    </kColl>
  4. If the Desktop is open, rebuild the Desktop by clicking the Rebuild button (if it appears on the Desktop) or by calling the rebuild method directly.
Results

Note that with this solution you must implement the logon panel (no implementation is provided by the toolkit) and implement the code to carry out the steps described above.