How to create menus for a particular file

Hello all,
can anyone solve my problem really i am totally fed up for writing logic for the following file ,
what iam doing is i have a file like this
aaa.mmm.ggg=/aaa/bbb
aaa.clock=/usr/sbin/clock
sss.jot=/user/pmsdev/bin/jot
sss.netscape=/usr/BIN/netscape
sss.nnn.gg=/gg/ss
sss.nnn.yy=/usr/sbin/clock
bbb.xclock=/usr/bin/X11/xclock
bbb.ggg.mmm=/usr/sbin/clock
bbb.ggg.kkk=/jjj/jjj
bbb.ggg.kkk.xxx=/ggg/mmm
bbb.hhh.pp=/ss/a
bbb.zz=/Zmm/vvv
vvv=/ddd/ddd
for this i have to create menus and coresponding submenus,
means for ex: *bbb.ggg.mmm=/usr/sbin/clock[*[B]bbb is the submenu of ggg which is the submenu of mmm ,so when i click on mmm i will get the value usr/sbin/clockso i have splitted on *"="* and i have used maps to store key value,this is ok,but how to create the menu structure for all how to compare one with other,please help me iam using swings for this.please help me.
Edited by: 1-ewqsfd on Sep 30, 2007 2:11 AM

Hello all,
can anyone solve my problem really i am totally fed up for writing logic for the following file ,
what iam doing is i have a file like this
aaa.mmm.ggg=/aaa/bbb
aaa.clock=/usr/sbin/clock
sss.jot=/user/pmsdev/bin/jot
sss.netscape=/usr/BIN/netscape
sss.nnn.gg=/gg/ss
sss.nnn.yy=/usr/sbin/clock
bbb.xclock=/usr/bin/X11/xclock
bbb.ggg.mmm=/usr/sbin/clock
bbb.ggg.kkk=/jjj/jjj
bbb.ggg.kkk.xxx=/ggg/mmm
bbb.hhh.pp=/ss/a
bbb.zz=/Zmm/vvv
vvv=/ddd/ddd
for this i have to create menus and coresponding submenus,
means for ex: *bbb.ggg.mmm=/usr/sbin/clock[*[B]bbb is the submenu of ggg which is the submenu of mmm ,so when i click on mmm i will get the value usr/sbin/clockso i have splitted on *"="* and i have used maps to store key value,this is ok,but how to create the menu structure for all how to compare one with other,please help me iam using swings for this.please help me.
Edited by: 1-ewqsfd on Sep 30, 2007 2:11 AM

Similar Messages

  • How to create pageInstance for a Particular page using page lable?

    Hi,
    Please guide me on how to create a PageInstance Object for a Particular page , if we got the pagelabel.
    Thanks in advance.

    You need to write a logic, show header and footer when the particular is page is hit.
    <jsp:directive.page import="com.bea.netuix.servlets.controls.application.DesktopPresentationContext,
    com.bea.netuix.servlets.controls.page.PagePresentationContext"/>
    <jsp:scriptlet>
    DesktopPresentationContext desktopCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext mainBookCtx = desktopCtx.getBookPresentationContext();
    String activeBookDefLabel = mainBookCtx .getActivePage();
    BookPresentationContext activeBookCtx = mainBookCtx.getBookPresentationContextRecursive(activeBookDefLabel);
    String activeBookTitle = activeBookCtx.getTitle();
    String activePageDefLabel = activeBookCtx.getActivePage();
    PagePresentationContext activePageCtx = activeBookCtx.getPagePresentationContextRecursive(activePageDefLabel);
    String activePageTitle = activePageCtx.getTitle();
    if(!activePageTitle.equals("whatyouwant"){
    </jsp:scriptlet>
    HEADER
    <jsp:scriptlet>}</jsp:scriptlet>

  • How to create reservation for a particular material through Production orde

    Hi gurus
    How to create the reservation manually and through production order?
    Kaisar

    Hi,
    If you convert a Planned Order to production oredr, all the dependent requirements will be converted to Order Reservations.
    If you create a Production Order then the Order Reservations will be created for the BOM Components.
    System will create this reservation automatically.
    For Manual creation of reservations - I guess the T.Code is MB25(I am not very sure). You can serch in easy access menu..
    Regards,
    Siva

  • How to create Headervariable for File adapter in 11g SOA Suite?

    Hi All
    My process in reading file and I wanted to know the exact name of the File.
    In 10g, we have fileAdapterInboundHeader.wsdl and create HeaderVariable using message type used in this wsdl and can get file and directory name in this variable But in 11g we dont have any wsdl like this.
    Can anybody give me some idea how to create Headervariable for Inbound file adapter to get file name?
    Thanks
    Vibzz

    Hi,
    Look at this document : [Oracle JCA Adapter for Files/FTP|http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAFJCCE]
    Romain.

  • How to create F4 for the standard transaction

    Hi all ,
    How to create F4 for the standard transaction for a particular field .
    Bye

    Santosh,
        You can create F4 values for a field in a standard Transaction .
    1. First search for a standard search help meeting your requirement .
    2. If you don't find one, create your own custom (z) serach help .
    ( 1 is preferable )
    After that, include that serch help to the standard field in the transaction .
    For this u need to go to the screen
    ( F1->F9-> screen-> Field )
    Click on the property of the field and include the search help .
    You ll require the access key from the basisi guys as u r changing standard .
    Hope it helps,
    ~ laxmi
    Reward for helpful answers

  • How to create a table in the file using java code.?

    HI,
    I should export the data from the view objects to a word document. I have done that but I should
    display the data in the form of a table.
    Kindly come up with the necessary information on how to create a table in the file using java.
    Thanks,
    Phani

    Hi, Thank you for responding to my query.
    The below are the details of my code.
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding StudentDetailsContent =
    (DCIteratorBinding)dcBindings.get("StudentView1Iterator");
    OutputStreamWriter w = new OutputStreamWriter(outputStream, "UTF-8");
    Row currentRow =
    StudentDetailsContent.getRowSetIterator().first();
    Object a[]= currentRow.getAttributeValues();
    int i;
    for(i=0 ;i<=a.length;i++){
    w.write(a.toString());
    w.write(" ");
    w.flush();
    I am usning this coding to achieve the task of exporting data to file.
    I need to display this information in the table that is where I need help from you people.
    Thanks,

  • How to give comments for a particular table

    hi..
    how to give comments for a particular table ..
    select * from user_tab_comments;
    tx in advance..

    Try this.
    SQL> COMMENT ON TABLE EMP IS 'THIS IS SAMPLE EMPLOYEE TABLE' ;
    Comment created.
    SQL> select * from user_tab_comments where table_name = 'EMP'
      2  /
    TABLE_NAME                     TABLE_TYPE
    COMMENTS
    EMP                            TABLE
    THIS IS SAMPLE EMPLOYEE TABLE

  • How to set password for a zip file and should be checked when reading that

    Hi friends,
    how to set password for a zip file and should be checked when reading that file???
    thanks.
    Praveen Reddy.J

    Heyy man, i think, u did not get my problem.
    all i have to do is:
    i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
    Tanks for reply.

  • Creating cache for multiple property files run time/dynamically.

    Hi,
    I have a requirement, where in I need to create cache for each property file present in a folder at server side or in the lib or resources directory. Please help me how I can do this?
    Thanks.

    ok thank you.
    I follwed this method implementation:
    static HashMap<String, HashMap<Object, String>> cacheHolder = new HashMap<String, HashMap<Object, String>>();
         static HashMap<Object, String>[] cache = new HashMap[2];
         static Integer fileCount = 0;
         static int incrementSize = 2;
    public method1(Map<Object,String>map){
    File file = new File((new StringBuilder(
                             "ABC/XYZ/")).append(value)
                             .toString()); // where value is the file name returned from the external method
                   int newSize = existingMapLength+incrementSize;
                   if (someVal== null) {                    
                        synchronized (fileCount) {
                             int oldSize = cache.length;
                             if(fileCount==cache.length){
                                  HashMap[] oldData = new HashMap[oldSize];
                                  oldData = cache;                              
                                  cache = new HashMap[newSize];
                                  LOGGER.info("New Size added:==>"+cache.length);
                                  for(int i=0;i<oldSize;i++){                                   
                                       cache[i] = oldData;
                                  cache[fileCount] = readExternalPropertiesFile(file); // external method which returns the properties of the file in hashmap
                                  cacheHolder.put(value, cache[fileCount]);                    
                                  keys = cache[fileCount].keySet();
                             else{                         
                             cache[fileCount] = readPropertiesFile(file);
                             cacheHolder.put(value, cache[fileCount]);                    
                             keys = cache[fileCount].keySet();
                             someVal= cache[fileCount];
    fileCount = fileCount + 1;
    Please let me know if any improvemnets are possible.

  • How to create and manage the log file

    Hi,
    I want to trace and debug the program process.
    I write the code for creating log file and debugging the process.
    But i am not able get the result.
    please help me how to create and manage the log file.
    Here i post sample program
    package Src;
    import java.io.*;
    import org.apache.log4j.*;
    import java.util.logging.FileHandler;
    public class Mylog
         private static final Logger log = Logger.getLogger("Mylog.class");
         public static void main(String[] args) throws Exception {
         try {
           // Create an appending file handler
            boolean append = true;
            FileHandler handler = new FileHandler("debug.log", append);
            // Add to the desired logger
            Logger logger = Logger.getLogger("com.mycompany");
            System.out.println("after creating log file");     
              catch (IOException e)
                   System.out.println("Sys Err");
            }Please give the your valuable suggesstion... !
    Thanks
    MerlinRoshina

    Just i need to write a single line in log file.

  • How to create iView for customized master head war ?

    Hi,
    I deployed customized masterhead war file. But i cant see deployed war in portal application location.
    Anyone help me for customizing and masterhead page and how to create iView for customized master head...

    Hi,
    1. You can see the deployed application under the "Portal Applications"
    2. If you want to create an iView out of it. right click on the application -> copy. than press right click in the folder you want the iView will be created and paste ad pcd object.
    Hope I helped you.
    Ronny.

  • How to create variant for selection screen which is in subscreen

    Hi,
    How to create variant for selection screen which is in subscreen in a module pool program?
    it is very urgent.
    Thanks in advance.

    Hi,
    You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
    To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
    Regards
    Sudheer

  • How to create 1080P for YouTube

    How to create 1080P for youtube, I was only be able to create 720P using the compressor. I heard that people can make 1080 using iMovie.
    Thanks.

    uh, what are your sequence settings?  Are they 1080?  If so, you just need to use file:  export:  quicktime movie (not quicktime conversion) with current settings and bring that file into compressor and customize the appropriate preset.
    That said, do you really need 1080p for youtube.  My experience is that you'll get more reliable playback with 720 in youtube.

  • How to create infosource for datasource?

    dear all,
    how does 1 go about creating infosource for a particular datasource to update to 2 infoobjects?

    Raj,
    Thanks for your reply
    when i right click to create my infosource i input this datasource name 0EMPLOYEE_USER_ATTR
    and i get this error
    Pos. 1 of the InfoSource must be diff. to one of char.: 0123456789YZ.
    Message no. RSAR150
    any idea?

  • How to create program for bapi?

    hi all,
    how to create program for bapi?
    reply me soon now.....
    can anybody help me.....
    thanks,
    S.Suresh.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi ...Here is the step by step procedure for creating BAPIs.
    There are 5 different steps in BAPI.
    - Create BAPI Structure
    - Create BAPI Function Module or API Method.
    - Create BAPI object
    - Release BAPI Function Module.
    - Release BAPI object.
    Step1. Creating BAPI Structure:
    - Go to <SE11>.
    - Select Data Type & Enter a name.
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    - Go back to ><SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    - Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    - Then hit <ENTER>.
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step.
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    - Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully
    Overall Info :
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    BAPI Creation Info :
    http://help.sap.com/saphelp_47x200/helpdata/EN/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    Reference :
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/00/32a43697bc11d1acf9080009b0fb56/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

Maybe you are looking for