Using JTree To Create Directory And Subdirectory's within it.

Hi Everyone,
Can anyone tell me how do i start working around JTREE's plz.

http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
JTree is just the display. It's java.io.File that will be doing the work when creating a directory and its subdirectories.
%

Similar Messages

  • Is it possible to use JTrees to create a File Manager??

    -- I'm wonderin on how can i use JTrees to view my entire system file...
    i want to create a FileManager apps wherein you can navigate your file system like navigating a windows explorer....
    Thanks

    You can in fact I once did it.
    All you have to do is to define a root node class which will have all the Directory roots as its childs.
    And another node class that represents a file or a folder in the disk.

  • VMS, create directory and the chamber of secrets

    Ok, here I am bumbling around in the dark. Here is the scenario I am developing an application using PL/SQL under the constraints of the SCT Banner web form system. The Banner function calls create the web page on the fly from data obtained with PL/SQL. What I would like to do is incorporate a java function into the web page. The only method available to me is via Banners function call twbkfrmt.p_printmessage (my_string); Here is the 'Plan' (caution: may be seriously flawed). I thought I could store my java code in a the CLOB field of a table, access it with a cursor and insert the code into the generated web page like so: twbkfrmt.p_printmessage (my_java_from_the_CLOB); I am having troubles loading the .js into my table. Here is how I attempted to accomplish this and the result (and to add insult to injury, it is on a VMS system!):
    CREATE TABLE js_holder (
    js_name varchar(30),
    js_body CLOB );
    CREATE DIRECTORY foos as 'USR$DISK:[CLEMENSD.SQL_EDIT]';
    CREATE OR REPLACE PROCEDURE Load_CLOB IS
    dest_clob CLOB;
    in_file BFILE := BFILENAME('foos', 'supernote.js');
    dst_offset number := 1 ;
    src_offset number := 1 ;
    lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
    warning number;
    BEGIN
    DBMS_OUTPUT.ENABLE(100000);
    INSERT INTO js_holder(js_name, js_body)
    VALUES('supernote', empty_clob())
    RETURNING js_body INTO dest_clob;
    DBMS_LOB.OPEN(in_file, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.LoadCLOBFromFile(
    DEST_LOB => dest_clob
    , SRC_BFILE => in_file
    , AMOUNT => DBMS_LOB.GETLENGTH(in_file)
    , DEST_OFFSET => dst_offset
    , SRC_OFFSET => src_offset
    , BFILE_CSID => DBMS_LOB.DEFAULT_CSID
    , LANG_CONTEXT => lang_ctx
    , WARNING => warning
    DBMS_LOB.CLOSE(in_file);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile.');
    END;
    then the following:
    EOUTST> set serveroutput on
    EOUTST> exec Load_CLOB
    EOUTST> exec load_clob
    BEGIN load_clob; END;
    ERROR at line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 672
    ORA-06512: at "BANINST1.LOAD_CLOB", line 13
    ORA-06512: at line 1
    EOUTST>

    Is the directory owned by the same schema that owns the procedure?
    If not did you GRANT READ and WRITE to the proc's schema?
    If so then you might want to create a simple external table to confirm that your directory and permissions are valid.

  • Facing Many Problems About Creating Directory and an External Table

    Question:
    The weird thing is if you look at question 10-b in page 3-41, it says:
    (page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")
    Merge the data in the EMP_DATA table created in the last lab into the data in the emp_hist table. Assume
    that the data in external EMP_DATA table matches the EMP_HIST table, update the email column
    of the EMP_HIST table to match the EMP_DATA table row. If a row in the EMP_DATA table does not
    match, insert into the EMP_HIST tables. Rows are considered matching when the employee's first and
    last name are identical.
    To me, this question is constructed wrongly. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
    Thirdly, this question asks us to merge into EMP_HIST table while EMP_DATA is empty.
    EMP_HIST table currently has copied data from employees table. EMP_HIST structure:
    FIRST_NAME VARCHAR2(20)
    LAST_NAME NOT NULL VARCHAR2(25)
    EMAIL NOT NULL VARCHAR2(45)
    Anway, i did the merge as following:
    merge into emp_hist e
    using emp_data d
    on (e.first_name = d.first_name)
    when matched then
    update set
    e.last_name = d.last_name,
    e.email = d.email
    when not matched then
    insert values (d.first_name, d.last_name, d.email);
    I get this error:
    Error report:
    SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file emp.dat in EMP_DIR not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    On the other hand, i said let me try this:
    merge into emp_data d
    using emp_hist e
    on (d.first_name = e.first_name)
    when matched then
    update set
    d.last_name = e.last_name,
    d.email = e.email
    when not matched then
    insert values (e.first_name, e.last_name, e.email);
    I get this error because external table is final once its created as far as i know:
    Error report:
    SQL Error: ORA-30657: operation not supported on external organized table
    30657.0000 - "operation not supported on external organized table"
    *Cause:    User attempted on operation on an external table which is
    not supported.
    *Action:   Don't do that!
    I do not know what to do. I did my best, please help.
    Edited by: user11164565 on Jul 27, 2009 2:43 AM

    user11164565 wrote:
    NOTE: I did my best, i did all what i can do, but the problem persists. Please help
    I will mention all the steps i did clearly....
    I gave scott the following grants:
    grant create any directory to scott;
    grant read on directory emp_dir to scott;
    1. Created a directory and its been created successfully:
    create or replace directory emp_dir
    as 'F:\emp_dir';
    Then i did the following just to make sure my directory is recognized:
    SELECT *
    FROM dba_directories;
    I found the drive amongst the results...
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS EMP_DIR
    F:\emp_dir
    SYS SUBDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\/2002/Sep
    SYS XMLDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\
    2. I created an external table emp_data (the script is given by the text book): done successfully
    drop table emp_data;
    CREATE TABLE emp_data
    (first_name VARCHAR2(20)
    ,last_name VARCHAR2(20)
    , email VARCHAR2(30)
    ORGANIZATION EXTERNAL
    TYPE oracle_loader
    DEFAULT DIRECTORY emp_dir
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
    NOBADFILE
    NOLOGFILE
    FIELDS
    ( first_name POSITION ( 1:20) CHAR
    , last_name POSITION (22:41) CHAR
    , email POSITION (43:72) CHAR )
    LOCATION ('emp.dat') ) ;
    3. I went to F:\ drive to see if emp_dir folder exist or not! I did not see it. I checked hidden files, nothing there. Anyway, i ignored it and did step 4.
    <snip>
    "Anyway, I ignored it . . . "
    and hence the rest of your problems. I did not see in the steps you recounted that you acually created a directory ("folder") named "\emp_dir" on your f: drive. Nothing you create within the database will actually create that directory on the OS. Createing a directory in Oracle, createing an external table in Oracle, will only create pointers to objects that Oracle will simply assume actually exists.

  • Create directory and know if it is existing please help...

    good day to all:
    is there any tutorial for creating a directory and knowing if a specified directory is already existing?
    killuasoft

    You don't need a tutorial, you just need to look up the API for java.io.File.

  • Create directory and write files to it

    i have installed tomcat 3.2.3 and am using ms access as databse.
    through my jsp code i need to create random directories on the server and write files to it(need to have write access on the directories).
    how do i do it?? thanx in advance.

    You can include java.io in ur jsp page only using
    <%@ page language="java" import="java.io.File %>
    then u can create directories on the fly on the server using
    mkdir(s) method of the FILE Object.
    You will have to specify the path while creating a File object.
    You will get the application's path using
    application.getRealPath() method .... to wich u can append
    whatever u will like...
    Once u got the directory u can also create files using file object
    Hope this is of any help...
    Feel free toa sk if i could not satisfy u...

  • Using AppleScript to create folders and place files in them

    Hi guys,
    I've been reading through the forum for the better part of the last 6 hours wracking my brain trying to figure out how to accomplish what I'm trying to do. I've been playing around with Automator and also trying to decipher some Apple Script samples that were posted on here, but I'm really having no luck at all. I'm sure you've all been there where you feel like you're on an endless search to solve a problem and it feels like there's no hope. I've tried every single possible thing I can and I'm getting close, but it's never quite right.
    Here's what I'm trying to do, and hopefully some kind soul will help me out. I'm deseperately trying to figure this out, and any help at all would be GREATLY appreciated!
    I have a bunch of PDF files that I scan, in the hundreds. After I've scanned them I'm left with something like this:
    1234567_Elephant.pdf
    1234567_Duck.pdf
    1234567_Cat.pdf
    1234567_Cat_01.pdf
    1234567_Dog.pdf
    3431233_Elephant.pdf
    3431233_Dog.pdf
    3431233_Dog_01.pdf
    3431233_Duck.pdf
    etc...
    So they have a 7 digit ID, then the file name which is always one of the 4 options (I'm just using the animals as examples, but they would be other words).
    What I'd want the script to do is categorize these into folders based on the ID number, and then based on the "animal" and then the files within them. Note, some files have an _01 or _02 etc... appended to them. I don't know if this makes a difference.
    So after running the script I'd love to see
    1234567 (Folder)
         Elephant (Subfolder)
              1234567_Elephant.pdf (File)
         Duck (Subfolder)
              1234567_Duck.pdf (File)
         Cat (Subfolder)
              1234567_Cat.pdf (File)
              1234567_Cat_01.pdf (File)
         Dog (Subfolder)
              1234567_Dog.pdf (File)
    3431233
         Elephant
              3431233_Elephant.pdf
         Dog
              3431233_Dog.pdf
              3431233_Dog_01.pdf
         Duck
              3431233_Duck.pdf

    well, using a couple of stock handlers I had lying around, and making the following assumptions:
    that an underscore is always the delimiter used
    that the file name is always a single word like 'dog' or 'cat' (if you have multiple word file names, the script needs to be modified some)
    this should do what you ask:
    set mainFolder to (choose folder) as text
    tell application "System Events"
      -- get all the unsorted files, and loop through
              set unsortedFiles to every file of folder mainFolder whose visible is true
              repeat with thisFile in unsortedFiles
      -- split the file name on underscores and periods
                        set fileNameBits to my tid(name of thisFile, {"_", "."})
      -- first item of list is id, make/get correct folder
                        set IDFolder to my checkForFolder(mainFolder, item 1 of fileNameBits)
      -- second item of list is file name, make/get correct folder in id folder
                        set groupFolder to my checkForFolder(IDFolder, item 2 of fileNameBits)
      -- move file
      move thisFile to groupFolder
              end repeat
    end tell
    to checkForFolder(fParent, fName)
      -- subroutine checks for folder, creating it if it doesn't exist
              tell application "System Events"
                        if not (exists folder fName of folder fParent) then
                                  set output to path of (make new folder at end of folder fParent with properties {name:fName})
                        else
                                  set output to (path of (folder fName of folder fParent))
                        end if
              end tell
              return output
    end checkForFolder
    on tid(input, delim)
      -- subroutine for handling text item delimiters
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid

  • Using ColorSync to Create Grayscale and Remove profiles?

    I am working on a book, which I have created in Pages. It's entirely in grayscale. I sent the PDF to the printer and their preflight found a number of problems related mainly to colorspace. It finds CMYK and RGB colorspaces even though it all looks like grayscale to me. The other issue they raise is attached ICC profiles. They say I should have none. I think I can fix this in ColorSync by creating a filter which removes the profiles and creates a grayscale file, but I'm not sure. Can anyone walk me through?

    I have already done this of course, and also more broadly searched the net for answers. Finding none I asked here. It is not a matter of being unable to create Colorsync filters. It is a matter of solving the specific technical problems stated above.

  • Dynamic create sequence and select nextval within one transaction

    The following procedure doesn't compile if sequence SEQ_ADR does not exist before compilation. I had to create the sequence manually before being able to compile this procedure. How can I avoid this manual generation?
    PROCEDURE A_270(proc_id number) IS
    seq_cnt number;
    curr_max number;
    BEGIN
    select count(*) into seq_cnt from user_sequences where sequence_name='SEQ_ADR';
    if seq_cnt > 0 then
    execute immediate 'drop sequence SEQ_ADR';
    end if;
    select max(id)+1 into curr_max from adress;
    execute immediate 'create sequence SEQ_ADR start with '||curr_max||'';
    insert into adress(ID,
    IMPORTED_DT
    select
    SEQ_ADR.nextval ID,
    sysdate IMPORTED_DT
    from new_adress;
    END;Edited by: totalnewby on Aug 23, 2012 6:41 AM

    totalnewby wrote:
    The following procedure doesn't compile if sequence SEQ_ADR does not exist before compilation. I had to create the sequence manually before being able to compile this procedure. How can I avoid this manual generation?
    PROCEDURE A_270(proc_id number) IS
    seq_cnt number;
    curr_max number;
    BEGIN
    select count(*) into seq_cnt from user_sequences where sequence_name='SEQ_ADR';
    if seq_cnt > 0 then
    execute immediate 'drop sequence SEQ_ADR';
    end if;
    select max(id)+1 into curr_max from adress;
    execute immediate 'create sequence SEQ_ADR start with '||curr_max||'';
    insert into adress(ID,
    IMPORTED_DT
    select
    SEQ_ADR.nextval ID,
    sysdate IMPORTED_DT
    from new_adress;
    END;Edited by: totalnewby on Aug 23, 2012 6:41 AMEssentially the same question asked by 'gogol' two days ago at creating and using sequence inside a proc
    It was a bad idea then. It is a bad idea now.

  • I would Like Muse to allow me to create tabs and text leaders within text boxes

    I created a web site for a client of mine that includes a price list. My client wanted the price of each item to be consistently aligned. This is something easy to do in Adobe Illustrator and InDesign (for example) but surprisingly not possible within Muse.
    Widget................................................$8
    Product...............................................$8
    I ended up manually creating a leader using periods (see example above) however the numbers aren't perfectly aligned because Individual text characters have varying, inconsistent widths. Those varying widths are not compensated by adding or reducing an additional period thereby causing a price list that appears slightly jagged in its alignment. This is especially prevalent in long lists.
    The use of tabs with leaders would be the the solution to this problem.

    Did you ever see nice tabs and text leaders in any web page ? Probably not, because they don't properly exist in html and css. It's difficult then for the Muse team to develop a feature that has no technical basis.
    There is some rudimentary tab technique in the works of the W3C, but the current browser support is poor. Muse could offer some make-shift method (with fixed spaces or characters) but this is not compliant with the principles of html.
    I'd rather want the team to bring out tables, and use these in stead of tabs. (Tables are pretty well available in html, since 1993...)

  • Can IdM be used as LDAP directory and UME datasource?

    Hi,
    I am trying to figure out what IDM can and cannot do.
    Can IDM be used as a LDAP datasource in its own right for a SAP Portal for example?
    Or do you still have to use an external LDAP directory and IDM is then only used to pull everything together from all systems?
    Thanks,
    Adriaan

    Hi Adriaan,
    it should be tecnically possible to use the Virtual Directory Server as a LDAP datasource for portal, but you probably have to edit the datasource.xml of portal and the connection.
    I'd rather use the portal database or a dedicated LDAP for that and use IdM to provision into this repository.
    Regards,
    Andreas

  • Create directory error on a VMS system

    Ok, I am trying to load some date into a CLOB field within a small table I have created. Here is how I attempted to accomplish this and the result (and to add insult to injury, it is on a VMS system!):
    CREATE TABLE js_holder (
    js_name varchar(30),
    js_body CLOB );
    CREATE DIRECTORY foos as 'USR$DISK:[CLEMENSD.SQL_EDIT]';
    CREATE OR REPLACE PROCEDURE Load_CLOB IS
    dest_clob CLOB;
    in_file BFILE := BFILENAME('foos', 'supernote.js');
    dst_offset number := 1 ;
    src_offset number := 1 ;
    lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
    warning number;
    BEGIN
    DBMS_OUTPUT.ENABLE(100000);
    INSERT INTO js_holder(js_name, js_body)
    VALUES('supernote', empty_clob())
    RETURNING js_body INTO dest_clob;
    DBMS_LOB.OPEN(in_file, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.LoadCLOBFromFile(
    DEST_LOB => dest_clob,
    SRC_BFILE => in_file,
    AMOUNT => DBMS_LOB.GETLENGTH(in_file),
    DEST_OFFSET => dst_offset ,
    SRC_OFFSET => src_offset,
    BFILE_CSID => DBMS_LOB.DEFAULT_CSID,
    LANG_CONTEXT => lang_ctx,
    WARNING => warning );
    DBMS_LOB.CLOSE(in_file);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile.');
    END;
    then the following:
    SQL> set serveroutput on
    SQL> exec Load_CLOB
    SQL> exec load_clob
    BEGIN load_clob; END;
    ERROR at line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 672
    ORA-06512: at "BANINST1.LOAD_CLOB", line 13
    ORA-06512: at line 1
    SQL>

    Wow you've sure got a lot of threads going on this one (Ok Waz zup? and VMS, create directory and the chamber of secrets
    My first question is have you checked to ensure that the file and directory permissions will allow oracle to read the file you want? Have you tried dumping your supernote.js file in the jobsub directory, or chaning it's (and/or the directories) protections?
    From the documentation for create directory: "Oracle Database does not verify that the directory you specify actually exists. Therefore, take care that you specify a valid directory in your operating system. In addition, if your operating system uses case-sensitive path names, be sure you specify the directory in the correct format."

  • Open Directory and AFP

    Hello, I have been having some problems setting up Tiger Server to have the clients home directory hosted on the server. When the client tries to login, it gives them an error saying they are unable to log on at this time because of afp. If anyone could help or point me to a guide it would be appreciated.
    -Bobby

    Hi
    For 10.4 Server you should really post in the 10.4 OD Forum here:
    http://discussions.apple.com/forum.jspa?forumID=713
    However it does not really matter. You may find what follows useful:
    A Simplified Method for Deploying Open Directory Services
    A centralized authentication and authorization service providing automounting home folders for network users and control for service administrators using managed preferences. Ideal for Schools, Colleges, Libraries, Universities and in some cases, Private Companies
    These instructions are for the GUI only with no manual configuration and hardly any recourse for the command line. These instructions also assume that this will be the only server on the network.
    Substitute appropriately the examples given for your situation. The example used is for a pretend school called ‘High School’
    Assuming you have installed the Server Software and on restart the Server Setup Assistant has launched. We’ll use Administrator as the long name and admin as the short name with admin as the password for the default Server Administrator account (UID 501). We’ll assign a fixed IP address of 172.16.16.254, a subnet mask of 255.255.255.0 and the router/gateway IP address offering access to the internet as 172.16.16.1. Key in any ISP supplied DNS Server IP addresses in the DNS Servers field in the Network Preferences Control Panel. The server name will be server. You will see the server name in the Sharing Preferences Pane (server.local) as well as Server Admin > Computers & Services. The Server can be reached either using this name, its IP address, its loopback address and later on, after the DNS Service has been configured, its Fully Qualified Domain Name (FQDN). Don’t start any services apart from Remote Desktop, save the configuration as a text file and restart the Server. After the restart log in using the newly created System Administrator account details. Now would be a good time to test internet connectivity as well as running Software Update and installing all the updates relevant for the server.
    Start simple file services first: AFP and if necessary Windows. If there is more than one PC already on the network switch off Workgroup Master Browser and Domain Master Browser found in Server Admin > Windows > Advanced > Services. Create a test user in the local server directory (NetInfo) and test using a client computer to access the default share points: Users, Groups, Public. Don’t be tempted to delete these folders as the server will complain. If you don’t want to use these you can simply unshare the share points and create new ones. You could for example create share points on a connected XServe RAID and share these instead. Save any changes made.
    The instructions that follow are for simple DNS Settings which will do to successfully deploy an Open Directory Master
    Click on DNS Service Settings > Zones > click the + icon > General. The Server IP address will already be there, key in the Fully Qualified Domain Name (FQDN). This can either be a real world domain name or a pretend domain name. As long as it resembles fully qualified domain names it will do, avoid using .local.
    In this example we will use server.highschool.sch.org.
    Save the changes
    Now click Start Service. You will have to click Start Service twice as Server Admin does not start the service the first time as that is when the config files are written. These are kept in two locations: /etc/host.config and /var/named. The second time you click Start Service you will get the green light. Now set the Logging level to Debug and save the changes again. Launch System Preferences > Network > Configure > TCP/IP > key in the Server’s own IP address 172.16.16.254 in the DNS Servers field and remove any other IP address. Apply and save changes. Launch a web browser and see if you can get on the internet. Inspect the DNS logs in Server Admin and you will see entries starting with createfetch as well as received control command channel status: ready. By this time you should be on the internet using the server’s own IP address instead of ones supplied by your ISP or Router. Test and qualify the DNS Service by launching terminal and issuing the host command:
    host server.highschool.sch.org
    server.highschool.sch.org has address 172.16.16.254
    host 172.16.16.254
    254.16.16.172.in-addr.arpa domain name pointer host172-16-16-254.in-addr.server.highschool.sch.org
    This qualifies the forward and reverse pointers for the DNS Service
    Remember that a properly configured and qualified DNS service is crucial to the more advanced technologies available on OSX Server. Apple themselves recommend using DNS even if the Server is providing simple file services such as AFP
    If you want the Server to issue IP addresses then consider using the DHCP Service. If your router is already doing this then there is no need to bother just yet. Once you get comfortable and familiar with the Server you could look at this later on.
    Back to Server Admin
    Click on Open Directory > Settings > Select Standalone and now select Open Directory Master. As soon as you do this you will be prompted to create the Directory Administrator account, by default diradmin. You can’t use the standard administrator account. You dont have to use diradmin as the name you can use another name, but don’t be tempted to use admin. For this example we will leave it as it is as well as defining the password as diradmin. If DNS Services are correctly configured you will see the Kerberos Realm field already filled in for you and it will look like this: SERVER.HIGHSCHOOL.SCH.ORG. As you can see it will be the FQDN but in capitalized form. The search base will be automatically filled in also and it will look like this: dc=server,dc=highschool,dc=sch,dc=org.
    Save changes.
    Launch Directory Access /Applications/Utilities and click on LDAPv3, authenticate if required to do so. Inspect the configuration setting there and you should see the Server’s loopback address 127.0.0.1 has been entered as a New Configuration. This is normal and gets added upon promotion. Now launch Workgroup Manager and select the appropriate Directory Node LDAPv3/127.0.0.1. Authenticate using the newly created Directory Administrator account: diradmin. If everything has gone well you will see the Directory Administrator user (UID 1000) already there. Create a new user called Andrew Barton, short name: andybarton, UID 1025, password andyb, click Save. Select Sharing and make sure that the default Users folder is set to share, now click on Network Mount and click the lock, authenticate using the diradmin account and set the Users home folder to automount Home Directories. Click Save. Click Accounts, select Andy Barton, click Home, verify that the Home Folder path says afp://server.highschool.sch.org/Users, select this and click Create Home Now followed by Save. Navigate to the Finder, double click the Server hard drive, double click the Users folder and verify that the folder andybarton has been created. Double clicking on this folder will show the usual set of home folders with no entry signs on all of them apart from public and sites. Carry on populating the LDAP Directory Node with desired users. Once you have finished click on the Groups tab and create a group and call it Music Class, populate this group with desired users. We will look at Managed Preferences (MCX) for this group later on.
    In this example Music Class has 30 iMacs. Use the first iMac as a model for all the others. Create an administrator account on the first iMac with a strong password. Avoid using Administrator and admin as these could conflict with the Server admin account. Don’t use a User Account already created on the Server. I will use MC Administrator as the long name and mcadmin as the short name, switch off auto log-in. Install all relevant site license software on this mac. Set the iMac’s name in the Sharing Preferences Pane to iMac01, the .local part will be automatically filled in for you, save all changes. Run all software updates available for the mac, restart the mac. You can now use this mac as the ‘Golden Mac’ – a template for all the other iMacs. You can target disk mode this first mac to the second mac and after cloning change the name of the second mac to iMac02. Or you could image iMac01 to an external firewire drive, connect the drive to the server and use Apple Remote Desktop (ARD) to push out the image to all the other macs. You could also use System Image Utility, PackageMaker and NetInstall. As you can see there are numerous ways of doing this.
    Back to iMac01
    Log in using the mcadmin account, launch Directory Access (Applications/Utilities), click on the lock and authenticate, select LDAPv3, click Configure, deselect ‘Add DCHP-supplied LDAP servers to automatic search policies’, click New and key in either the IP address 172.16.16.254 or better still its FQDN. If you are going to use the Server’s FQDN then make sure the Server’s IP address is in the clients DNS Servers field. Server discovery should be fairly quick, you will see iMac01.local’s computer in the first field and you will be prompted for a network user name and password, don’t bother with this just click OK and then continue, you will then see the Server Configuration in the Services window, click OK. Click on Authentication and verify that Custom Path is displayed, you should see /LDAPv3/172.16.16.254 or the server FQDN as the second Directory Domain displayed (the first one will be the local NetInfo node and will be grayed out). Do the same for the Contacts tab, click OK and quit Directory Access, select log out from the Apple menu and you should now see a log in window displaying the local mcadmin account as well as ‘Other’. Click Other, key in andybarton as the name and andyb as the password, you should now be logged into the Home Folder for that user on the server. Launch TextEdit, type a few words and save the Untitled document to the Documents folder, now log out. Go to Workgroup Manager, select Sharing, select Users, select andybarton, select Documents and you should see the Untitled document grayed out.
    Managed Preferences or MCX
    Select the Music Class Group, click on Preferences > Finder > Views > Always > Default View and select the smallest setting for the dock size, click Done, go back to the client and log in again as andybarton and see if the dock size has changed. The order in which managed preferences take precedence are:
    User
    Computer
    Group
    If a setting is defined in Group and also defined differently in Users, the Users setting will take precedence. Managed Preferences can be accumulative also. What can be managed for Users and Groups are the same. Computer Lists are the same with the addition of Energy Saver. Play with these settings as seems appropriate to you. If you decide to manage clients using Computer Liststhen create your own (by type and location), try not to use the default lists. The same advice applies to Network Views.
    As time goes by and you become more familiar and comfortable you can start integrating the Software Update Service, NetBoot/NetInstall, Mail Services, Print Services and any other Service that seems appropriate to you.
    Hope this helps, Tony

  • What is the advantage of using IB to create XIBs/Class Objects over coding?

    Hi all,
    I hoping someone can provide me some pros and cons as to when I should use IB to create XIBs and/or class objects as opposed to directly coding them.
    For example, if I choose Apple's Template for creating a Navigation Based Application (cocoa touch), the project creates two NIB files - MainMenu and RootViewController.
    However looking at one of demo apps SimpleDrillDown, it does not have a RootViewController XIB and instead creates it via code.
    Another example from the same two apps is that the template generates a "Navigation Controller" class object in the Mainmenu.xib. SimpleDrillDown does not bother with this in the XIB, but uses code to generate the controller:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Create the navigation and view controllers
    RootViewController *rootViewController = [[RootViewController alloc] init];
    UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
    self.navigationController = aNavigationController;
    [aNavigationController release];
    [rootViewController release];
    // Configure and show the window
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    as opposed to the template which only needs this:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Configure and show the window
    // Navigation Controller is defined in MainWindow.xib
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    So what are the advantages of each approach. Why does apple suggest one approach and yet all its demos use another.
    Any thoughts, answers gratefully received.
    TIA, Michael.

    You can do whatever you're comfortable with, but most of the best Cocoa programmers--the ones on the Mac, I mean--recommend putting everything you can into Interface Builder.
    It's a little like the difference between writing a program to do a bunch of financial calculations and using a spreadsheet. Yeah, the program can do everything the spreadsheet can--and more besides--but you'll find it far easier to create, use and modify the spreadsheet.
    Interface Builder takes away a lot of completely meaningless choices ("What order should I create the objects in? How should I name the variables? How should I create their frames? What order should I set the attributes in?"), leaving you with an interface optimized for creating and arranging objects, and allowing your code to focus on what you really do need to think about--your application's logic.
    (By the way--part of the reason Apple's demos don't all use Interface Builder is that the very first SDK releases didn't have it. Back then, you had to create all your views programatically. Believe me, I have no wish to go back to setting autoresize masks manually. Now get off my lawn, whippersnapper.)

  • Create activity and survey via 'CRM_ORDER_MAINTAIN'

    Dears,
    i am in CRM 6.0 now. i have decided to use FM 'CRM_ORDER_MAINTAIN' to create and change activity, also there is a import field named 'IT_SURVEY'. Now i want to batch upload the answers of the survey in a txt file to CRM and then create the survey and attach the survey to the activity.
    After check program 'CRM_SURVEY_UI' which also use 'CRM_ORDER_MAINTAIN' to create activity and survey, i found SAP will convert your input to a rawstring. But the convertion is based on the HTML container(class gr_survey_html), my case is flat txt file. How could i realize the convertion ?
    Any advice? I am so puzzled on this for a long time..
    BR.

    Hi,
    I have the same issue. Any suggerence with this topic?
    Regards,
    Mon
    Edit: It is solved. CRM_ORDER_MAINTAIN allows introduce a survey in an activity.
    Edited by: Mon on Apr 7, 2008 3:51 PM

Maybe you are looking for

  • Xcelsious Engage 2008 Compatibility with BO XI 3.1 SP3 Integration kit

    Hi Experts, I have installed BO XI R3.1 SP3,Crystal Reports 2008 SP3,Live Office,SAP GUI ,Xcelsius Engage 2008. 1)I want to install BO XI R3.1 SP3 Integration tool kit for SAP Solutions.Can you please tell me that above installed Xcelsius release is

  • How to setup a DB Adapter in Web Logic

    I am familiar setting up DB adapters (eis/DB/) in OC4J; but having challenges setting up the same in Web Logic. I was able to set up the JDBC datasource, but couldn't figure out where to go and setup the DB adapter (which in OC4J would use that datas

  • Images in text column to move?

    Hi, I placed an image over a column of text and used the text wrap tool. Now, is there a way for the image to move and shift down and keep in place with the copy as I add more text either before or after this article? I'm imagining, some sort of link

  • Inserting "Continued..." text in iText for PDF

    Hi, I am creating a PDF using iText with page breaks . Something like this:- Page information in Page 1 <page break> Page information in Page 2 <page break> Page information in Page 3 at the start of page 2 and page 3 i need a text displaying "contin

  • Good, reasonably priced USB Sticks for Mac?

    Hello, can somebody help me out here please? I am in need of a USB Stick to transfer my important web-development data from my Mac Mini here (in Austria) to my father's Mac Book Pro in Scotland. The problem is that my local Apple retailer can only of