How create two Folder by coding in SDK Form

Hi Everybody,
Can anybody tell me how to create folders. I want to create two folders by coding and wants to put three fields in each folder. Actually it is not difficult by using Screen Painter and I can create but can't understand how to do by using code itself and also when click on first folder then second folder's field should not be visible and when click on the second  folder then first folder's fields should not be visible and want to insert data into database table by using this form  and I can do this. Only the problem with folders.......
I had tried so mant things but could not get how to do.
So please send any sample code...
Thanks in advance....

Hi,
Check this samle C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\07.ComplexForm\
In this sample he create the whole form  by code, but u can check this sample so that u can understant the FOLDER creation.. which is as follows..
        '// Adding Folder items
        For i = 1 To 2
            oItem = oForm.Items.Add("Folder" & i, SAPbouiCOM.BoFormItemTypes.it_FOLDER)
            oItem.Left = (i - 1) * 100
            oItem.Width = 100
            oItem.Top = 6
            oItem.Height = 19
            oFolder = oItem.Specific
            '// set the caption
            oFolder.Caption = "Folder" & i
            oFolder.DataBind.SetBound(True, "", "FolderDS")
            If i = 1 Then
                oFolder.Select()
            Else
                oFolder.GroupWith(("Folder" & i - 1))
            End If
        Next i
And in the Item event use this code....
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                    '// Check if the event was raised by one of the Folder items
                    '// and change the form's pane level
                    If pVal.ItemUID = "Folder1" Then
                        oForm.PaneLevel = 1
                    End If
                    If pVal.ItemUID = "Folder2" Then
                        oForm.PaneLevel = 2
                    End If
Hope it helps,
Vasu Natari.
Edited by: vasu natari on Jul 22, 2009 2:18 PM

Similar Messages

  • How Create New Folder in KM with Name having Special Character

    Hi,
    How to create new Folder in KM with name having special character in it.
    Right now its not allowing me to create folder when i have Colon( as one of the character in name of the folder.
    Is there a way to change this validate?
    Any help is appriciated.
    Thanks

    Hi DK,
    I'm not sure about special chars such as ":" but ifyou need to have your folders displaying special language chars (like german chars), have a look into the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30deb229-d570-2910-4aaf-8858e0660f05
    Hope that helps.
    Ray

  • How create two lines tabs

    How i can create a 2. Tab Line for 1 Tab?
    I want have the main menue Tabs on top. Under a tab called Profil i want create a 2. Tab line.

    Hi,
    Firstly, you should change the default page template used in your application: Go to Shared Components, Themes and click on your theme. Scroll down to the "Component Defaults" section. Change the Page and Error Page settings to one of the "Two Level Tabs" settings and click Apply Changes. Any page that is set to use the default page template will now use the one you have selected for Page. If you have changed any of the pages to use a specific page template, you may have to change them manually.
    Now go to Shared Components, Tabs. You should have two rows with tab details. The long green bar shows "Standard Tabs" and the individual green boxes above that shows "Parent Tabs". Click on the Utilization option at the top. All your tabs should be listed. The first column, headed "Tab Set" identifies the tab set name that you should use to link your pages to the tabs. Make a note of this name. If there is any tab that does not have a Parent Tab Set value, click on the link in the Tab Name column and select a valid Standard Tab Set then click Apply Changes.
    Now go to a page. Click the Edit Page Attributes icon in the top-right of the Page section. In the "Display Attributes" section, the first setting should be "Page Template" - make sure that this is either "- Use Application Level Default Template -" or the name of the "Two Level" template you want to use. The second setting is "Standard Tab Set" - set this to the tab set name you noted earlier.
    That should do it!
    Andy

  • How create an xml structure in a pdf form

    Hi genius guys,
    some one can help me to create a correct xml structure (root, subroot1, subroot2, etc etc) in a pdf form and not only the single tag?
    Example: I give a pdf with form to be filled and after I extract xml data. Now I have this:
    <?xml version="1.0" encoding="UTF-8"?>
    <fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
    ><A1classe
    >1995</A1classe
    ><A1cognome
    >Fanna</A1cognome
    ><A1nome
    >Tonino</A1nome
    ><Annodifondazione xfdf:original="Anno di fondazione"
    >1965</Annodifondazione
    ><C1classe
    >1976</C1classe
    ><C1cognome
    >Di Gennaro</C1cognome
    ><C1nome
    >Antonio</C1nome
    ><Campionato
    >ECCELLENZA</Campionato
    ><Campodigioco
    >Comunale di Villabartolomea</Campodigioco
    ><Colorisociali
    >Giallo Rosso</Colorisociali
    ><D1classe
    >1984</D1classe
    ><D1cognome
    >Fontolan</D1cognome
    ><D1nome
    >Beppe</D1nome
    ><Girone
    >A</Girone
    ><P1classe
    >1980</P1classe
    ><P1cognome
    >Zoff</P1cognome
    ><P1nome
    >Dino</P1nome
    ><P2classe
    >1974</P2classe
    ><P2cognome
    >Garella</P2cognome
    ><P2nome
    >Claudio</P2nome
    ><S1cognome
    >Baudo</S1cognome
    ><S1mansione
    >Presidente</S1mansione
    ><S1nome
    >Pippo</S1nome
    ><S2cognome
    >Togni</S2cognome
    ><S2mansione
    >Vice Presidente</S2mansione
    ><S2nome
    >Darix</S2nome
    ><Sede
    >Via Pisacane,8 - Villabartolomea</Sede
    ><Squadra
    >VILLABARTOLOMEA</Squadra
    ><T1cognome
    >Dallara</T1cognome
    ><T1mansione
    >Allenatore</T1mansione
    ><T1nome
    >Toni</T1nome
    ><T2cognome
    >Silvan</T2cognome
    ><T2mansione
    >Magazziniere</T2mansione
    ><T2nome
    >Mago</T2nome
    ></fields
    >
    and I need this:
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
    ><attaccanti>
    <A1classe
    >1995</A1classe
    ><A1cognome
    >Fanna</A1cognome
    ><A1nome
    >Tonino</A1nome
    >
    </attaccanti>
    <Annodifondazione xfdf:original="Anno di fondazione"
    >1965</Annodifondazione
    >
    <centrocampisti>
    <C1classe
    >1976</C1classe
    ><C1cognome
    >Di Gennaro</C1cognome
    ><C1nome
    >Antonio</C1nome>
    </centrocampisti>
    <Campionato
    >ECCELLENZA</Campionato
    ><Campodigioco
    >Comunale di Villabartolomea</Campodigioco
    ><Colorisociali
    >Giallo Rosso</Colorisociali
    >
    <difensori>
    <D1classe
    >1984</D1classe
    ><D1cognome
    >Fontolan</D1cognome
    ><D1nome
    >Beppe</D1nome
    ></difensori>
    <Girone
    >A</Girone
    ><portieri>
    <P1classe
    >1980</P1classe
    ><P1cognome
    >Zoff</P1cognome
    ><P1nome
    >Dino</P1nome
    ><P2classe
    >1974</P2classe
    ><P2cognome
    >Garella</P2cognome
    ><P2nome
    >Claudio</P2nome
    ></portieri>
    <societa>
    <S1cognome
    >Baudo</S1cognome
    ><S1mansione
    >Presidente</S1mansione
    ><S1nome
    >Pippo</S1nome
    ><S2cognome
    >Togni</S2cognome
    ><S2mansione
    >Vice Presidente</S2mansione
    ><S2nome
    >Darix</S2nome
    ></societa>
    <Sede
    >Via Pisacane,8 - Villabartolomea</Sede
    ><Squadra
    >VILLABARTOLOMEA</Squadra
    ><tecnici>
    <T1cognome
    >Dallara</T1cognome
    ><T1mansione
    >Allenatore</T1mansione
    ><T1nome
    >Toni</T1nome
    ><T2cognome
    >Silvan</T2cognome
    ><T2mansione
    >Magazziniere</T2mansione
    ><T2nome
    >Mago</T2nome
    >
    </tecnici></root
    >
    Thanx, Paolo

    I solve the trouble using "." to separate the tagname and create the correct structure for xml.
    example:
    team.player.1name
    team.player.1surname
    team.player.1rol
    team.player.2name
    team.player.2surname
    team.player.2role
    this give me:
    <team>
         <player>
              <1name>XXXX</1name>
              <1surname>YYY</1surname>
              <1role>forward</1role>
         </player>
    <player>
              <2name>XXXX</2name>
              <2surname>YYY</2surname>
              <2role>forward</2role>
         </player>
    </team>

  • Two dependent lists in a search form

    How can i create two dependent lists in a search form?
    Am using jdev 10.1.3?
    Is there any sample wich can help me?
    THanks in advance !
    cheers,

    REPOST !

  • How to create universe folder in BO XI via SDK

    Hi all,
    I'm just starting to use the BOXI SDK. I've used the sample to create new folders, it worked perfectly.
    But now I would like to create new universe folders but I have no idea how to do it. Here is the sample to create a folder :
    int addFolder (int parentFolderID, String folderName, String folderDescription, IInfoStore infoStore)
        int objectID = 0;
        try
         * Since folders are implemented using a plugin,
         * you will need the PluginManager to retrieve the folder plugin.
        IPluginMgr pluginMgr = infoStore.getPluginMgr();
         * Retrieve the Folder plugin by passing the plugin ProgID
         * to the PluginInfo property of the PluginManager.
        //IPluginInfo folderPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.Folder");
        IPluginInfo folderPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.Folder");
        // Create a new, empty InfoObject collection.
        IInfoObjects newInfoObjects = infoStore.newInfoObjectCollection();
         * Give the Folder plugin object to the Add method.  This
         * creates a new InfoObject based on the plugin type.
         * In this case, since the plugin is the folder plugin,
         * the object created is a folder object.
        newInfoObjects.add(folderPlugin);
           IInfoObject infoObject = (IInfoObject) newInfoObjects.get(0);
        // Specify the folder's details._ENDLOC   _
        infoObject.setTitle (folderName);
        infoObject.setDescription (folderDescription);
        objectID = infoObject.getID();
         * The next line indicates where in the folder tree the
         * folder is to be created.  It does this by setting the
         * parent ID property or, in other words, by telling the folder
         * which folder is its parent. If the parent ID property is
         * zero, then the folder has no parent and is thus a top-level
         * folder.
        infoObject.properties().setProperty(CePropertyID.SI_PARENTID, parentFolderID);
         * Use the infoStore to commit the new collection with the new folder
         * to the CMS database.
        infoStore.commit (newInfoObjects);
         }catch (SDKException e) {
              throw new Error("Impossible d'ajouter le dossier. Exception survenue : "
                                      + e.getMessage());
         }catch (NullPointerException e) {
              throw new Error("Impossible d'ajouter le dossier. Exception survenue : "
                                      + e.getMessage());
        return objectID;
    Could someone give me some clues or code sample (preferably in Java or C#) in order to solve this problem?
    Thank you in advance for all information and help you could provide.
    Best regards,

    I wouldn't expect the code to be any different for universe folders, you just need to find the id for the top level folder for the universes.  It might be easiest to add a folder there manually and check its properties.

  • I have a new iMac and i created two libraries on iTunes. how do i copy songs from one library to the other?

    I have a new imac. I created two libraries, one for me, one for my kids. how do I copy songs from one library to the other library?

    Not easy unless you're just content with adding some files to the other as new files but lose playlists for those files, and playcount, and ratings, etc.  If you're okay with that, you can drag the media folder from one library to the other. If you use default settings and want to duplicate the media, just drag it. If you want to add the media but leave it where it is currently located, hold down the option key while dragging to the library window.
    Otherwise:
    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)
    syncOtunes - http://homepage.mac.com/oligrob/syncOtunes/syncOtunes.html

  • How to create a folder with spaces written in Java under Linux?

    Hello,
    I have a serious problem
    I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
    For create the Unix command is easy to do either:
    mkdir My\ Folder
    or
    mkdir "My Folder"
    But how to translate this in Java, I tried with two commands :
    Runtime.exec("mkdir My\\ Folder")
    Runtime.exec("mkdir \"My Folder\"")
    For example :
    import java.io.IOException;
    public class CreerDossier {
    public static void main(String[] args) throws IOException {
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("mkdir My\\ Folder");
    runtime.exec("mkdir \"My Folder\"");
    But it's still not working,
    For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
    For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
    Are there solutions?
    Thank you !

    But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
    Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
    That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time.

  • In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded l so I have created two new libraries, but can't seem to move the projects into them

    In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded, so I have created two new libraries, but can't seem to move the projects into them?

    Hello Annabel,
    To move entire projects export them as Aperture Libraries, and then import those Libraries into the other Aperture Library:
    Select the Project in the Inspector, then
    File -> Export -> Project as Library
    In the other Library do:
    File -> Import  -> Library/ Project
    But I am not quite convinced, that the size of your current Aperture Library is responsible for the slowness of Aperture - Aperture is designed to cope with huge libraries.
    You may want to post your hardware setup and details of your library, and some of the hardware experts here may help you to find the reason for the slowness.
    A huge library should only be a problem, if the projects are too big, and if you have many, many smart albums at the root level of your library.
    So keep the projects small, and try to move some of your smart albums to lower levels in your folder structure (then Aperture does not need to scan all of your images to build the smart album).
    Other reasons for Aperture's slowness may be, e.g.
    An overfull system drive and/or external drive (keep at least 20% of your drives empty)
    lack of RAM
    a corrupted Aperture Library, that needs repairing
    Have you checked those options, before you split your library? It would be a pity to split it, for you would loose the ability to browse all parts at the same time, to use all your images in the Media Browser, etc.
    Regards
    Léonie

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • How do we create two completely separate address books?

    Under our mailboxes folder, we have created two separate email accounts. How do we create an address book for each email account? (they need to be completely separate from each other)

    This is easy. You can do an export (backup) and import of the address book. So get one you like, export it. Create a new one, export it. Now just import the one you want to work with. Just be sure to export it again before you import the other one, in case you have made changes.
    I do this for separate mailing lists, etc.

  • Compressing a folder creates two zip files

    I've got a folder called Blanks/ABC FM/SMS/Other and when I compress it I get two zip files of the same size: one with the correct name and the other called Archive.zip. When I remove the space I only get the Archive.zip. When I remove the slashes I get the correct zip file only.
    Is this a bug that I should report? How?

    If you were expecting C/D to compress to C/D.zip instead of Archive.zip I think I have an explanation for that.
    The unix file system which is the underlying OSX file system uses slash (/) as a path delimiter.  So to use an example like yours, if you create a folder A on the desktop and B within A then that the pathname is A/B.  But in reality, being on your desktop it is /Users/you/A/B, where you is your user id.
    The finder tries to allow as many characters as it can for filenames.  But the slash it cannot allow in a filename when recorded in the file system.  So what it does is actually change the slash to a colon in the actual filename.  Thus the filename "A/B" in the finder is, in reality, "A:B" in the file system.
    I think this colon-equals-slash naming convention is what causing the finder's Compress to treat the name specially and it just changes it the output to be the generic Archive.zip.
    Compress is there as a convenience.  There's lots of other ways to do zips.  There's third party utilities.  There's zip command in the terminal (where you can play the finder's game and generate A:B.zip so that it displays in the finder as A/B.zip).

  • PS CC: how to create plugin folder

    I have NIK Software and have read various postings about installing the plugins... but...
    I've gone through Finder (Mac OS Mavericks) and there is no 'Plugins' under the Adobe/Application Support, anywhere.
    Can I just create a folder and then drag a copy of NIK software into it?
    Thanks for your help.
    Bohdan

    0. If you don't already have C/C++ skills, this is the wrong project to be doing first.
    1.  If you don't have the SDK, download it. This will be your constant companion for some time to come. Read the Developer FAQ in its entirety.
    2. Consider compatibility. You should download the SDK for the oldest version of Acrobat you want your end users to be able to use. (SDKs older than 9.0 are not available).
    3. If you have never built a plug-in, compile and test some of the samples, so you are sure this works.
    4. If you want to build a plug-in for Reader, you can't. Not without following many restrictions and getting a license and key, as described in the SDK. You will need Acrobat to do the development.
    5. For most purposes, basic knowledge of the PDF file format is a must. (This case might be an exception).
    6. Your plug-in is free to use most APIs on the system you run on, with two key exceptions: (a) threading and (b) anything which takes a while because it will block Acrobat. (Threading is not impossible, but requires great care to ensure Acrobat is not called from another thread.
    For this specific project...
    I don't think you can add to the context menu so you'll probably need to add a tool button for this function. The button can find out the type of selection, verify that it is text, get the text as Unicode, and process it.

  • I am a teacher that has 3 personal devices and then 8 I use at school. How can I create two differnt accounts?, I am a teacher that has 3 personal devices and then 8 I use at school. How can I create two differnt accounts?

    I'm an elementary teacher that uses 9 of my ipad 2's at school and I personally have an iPhone, iPod, and iPad.
    How do I keep the accounts separate? I tried to create two apple ID's, using my home and school e-mail, but that isn't working. I don't know how to
    keep the two separate the two. Do I need to use a different name on the account?

    ktuttle64 wrote:
    I tried to create two apple ID's, using my home and school e-mail, but that isn't working.
    It should work.  That's how you do it.

  • I am trying to create a folder and save it onto my desktop but apparently I do not have permission to do so. How can I change this?

    I am trying to figure out how to create a folder on my desktop. For some reason, my desktop folder is no longer available and whenever I try to set one up, an alert states that I do not have permission to create one. I don't know what to do.

    I think you need to repair user directory permissions.  Follow these instructions:
    http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

Maybe you are looking for

  • Session TimeOuts

    Hi again, Thanks for the response on my application model question. Here's another one : Is there a way to set a timeout on a query to a DBMS using the DBSession (or some other way) ? Or must I rely on a timeout setting in the DBMS ? Thanks. Christia

  • Pdf file to Xml Scenario

    Hi friends, How can i do PDF file to XML scenario in XI. Please help me in this Thanks in advance Sreedivia

  • What to draw on in fullscreen

    I am writing a fullscreen exclusive game (this is my first) which will also be able to switch to a windowed mode, and I want to make sure I have everything set up correctly. Here is the plan: I am going to to my drawing in some kind of draw() method

  • CC download error undefined

    I can't download Creative Cloud. I keep getting the error message download error undefined. What am I missing?

  • Flash player works on youtube but not yahoo homepage

    Flash player works on youtube but when trying to watch video on yahoo homepage says need to download adobe flash player I have already uninstalled several times but still won't work please help