Creation of Tab pages in a form in C#

Hi Experts,
I would like to create an 2-3 diffetent tab pages in a single form in SAP B1.(like as we have differrent tabs in a windows)
I am quit new to this, can any one help me here providing the keywords, function ect..
It wold be really helfull if u can sggest me with an example.
Thanks in adavnce,
Regards,
First

Hi
Welcome
Try to see SDK Samples. By default you must have installed its in C:\Program Files\SAP folder:
- SDK_Samples_2005\COM UI\CSharp\07.ComplexForm;
- SDK_Samples_2005\COM UI\CSharp\11.SystemFormManipulation.
Also you can search this forum for word "Folder".
Execute SAP Client and after launch one of project.
Regards
Sierdna S.

Similar Messages

  • Tab pages in oracle forms

    hi ,
    I have two different Content Canvases in oracle form 6i and my requirement is such that i need to have these two
    content canvases in tab canvas pages.
    can Any one please tell me how i have to join these two content canvases in two tab pages.
    since i don't have idea about forms.
    if any one could give coding for these issue it would be nice.
    say one canvas name a and another canvas name b and i have pages namely taba and tabb
    now i have to write trigger for tab canvas pages . if any one suggest any idea i could implement it.
    once it is ready i would be implement in oracle apps as well .
    other informations are.
    it have one window
    iam using oracle form 6i,
    help me in this regard .

    say one canvas name a and another canvas name b and i have pages namely taba and tabb
    now i have to write trigger for tab canvas pages . if any one suggest any idea i could implement it.
    once it is ready i would be implement in oracle apps as well .
    HI , Your Logic is okay.
    What you have to do is,
    Open your existing from
    In Canvas - Create New canvas with Type 'TAB'
    And Create Two Tap Page - A & B.
    select existing each items in existing canvas and select main canvas and TAP page -A or B
    Once completed you can run your form as like before without any coding changes,
    Regarding your question for TAB trigger code, generally you do not need any code as it is auto select.. by mouse.
    CHeck and reply back with you further queries

  • Tab pages on Oracle forms 9.0.4..

    Hi,
    I have a form consist of several tab pages. I do not user to select another tab page without saving the currnent one where they are on. If the user already clicked on another tab, the one clicked tab changes colour. I can force the cursor to go back to the block where they were before, but the prevously clicked tab does not change to the original colour. How do I change the clicked tab back to the unselected tab colour.( if user want to go the tab page even after saving they have to click another tab page in order to go the prevously selected tab page) I would appreciate if any one knows the answer and giving me the details.
    Thanks
    Luksh

    Use
    set_canvas_property('Your_Tab_Canvas', TOPMOST_TAB_PAGE, 'Your_Tab_Page');
    to select a tab and make it the current tab.

  • Creation of tab page in customer master

    Please giude me how to create a new tab page in a customer master

    please go to Logistic General>>business partner >> Customer >> Create tab lay out
    there are many options where u can design ur screen like
    Create tab lay out for general data ,Create tab lay out for Sales Area  data,Create tab lay out for Company code  data,Create tab lay out for Customer data
    in these option u can even decide the position of Tab by numbering them in serial order

  • CREATION OF MULTIPLE PAGES IN SMART FORMS

    Hi,
    I have a smart form in which i need to create 2pages.First will be followed by next and next by next
    I created the first page and then i created the next page .
    when i created first page i got a default main window and when i created a second page i.e the next page ,i did not get any default main window and when i tried to save it gives an error saying page without window cannot be saved.
    WHEN I CREATED A WINDOW WITH MAINWINDOW BUTTON ENABLED IT SAYS ALREADY EXISTS AND TWO MAN WINDOWS CANNOT EXIST .cAN ANYONE PLS HELP ME OUT REGARDING THIS
    THANKS

    hi
    good
    1-go to smartforms
    2-in a smartforms there is only one main window you can create,it is not like sap script that you can create 0 to 98 main windows,so on main window ll come bydefault but if you want to create another window that would be called as subwindow and that you can create by right click on the main window node and select create window.
    3-After selectging the window one small window would arise over the main window screen , you can give any size of that window and on the right hand side of the window node you ll find three tab from there on general attribute would be there,from there you select secondary window ,because every second window other than the main window is called as secondary window.
    now you can try like this it ll definitely work fine.
    thanks
    mrutyun

  • Tab Pages in Form

    I have 2 tables their structure is as follows:
    1- Dept_id, Dept_name
    2- Emp_id, Ename,Sal,mgr,hiredate,Dept_id
    Now i want a Multiple tab page in my form if I click on Sales all the employees working in sales department should be displayed automatically likewise when I click on Accounts tab all the employees working in relevant department should be displayed automatically......how can I achive this ??? any advise or help highly appreciated

    Hello,
    Use the trigger: WHEN-TAB-PAGE-CHANGED to detect which tab you are switching to.
    Then for each tab, change the block property using: SET_BLOCK_PROPERTY built-in and change the property DEFAULT-WHERE to the one that gives you the employees working in sales etc...
    To get that when you enter the tab page, use the built-in EXECUTE_QUERY
    Hope this help

  • Tab pages not changed when selecting from TAB LIST

    Hi All,
    I have a form which has 15 tabs, 1st 10 Tabs are dynamic (enabled at new form instance, depending on configuration) and 11 to 15 are Static tabs visible for all.
    My problem is when i am clicking on tabs iam able to switch tabs, but when I select tab from Tab List I am not going to the selected TAB.
    Ex: when I am in TAB 1 and Select TAB15 from Tab list My form Still Stays in TAB1 and not moving to TAB 15
    Please provide me a Solution.
    My code in WHEN TAB PAGE CHANGED is
    DECLARE
    l_curr_rec NUMBER;
         BEGIN
              l_curr_rec := :SYSTEM.CURSOR_RECORD;
              --Get the Top Default Tab Page for the Form
              SHOW_VIEW('HDR_CANVAS_FIXED');
              :global.headers:=GET_CANVAS_PROPERTY('TAB_CANVAS', topmost_tab_page);
         IF(:GLOBAL.HEADERS='AS_REC_IMAGE')THEN      
    SHOW_VIEW('AS_REC_IMAGE');
    SET_VIEW_PROPERTY('AS_REC_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('AS_REC_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('AS_REC');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='TRIM_REC_IMAGE')THEN      
    SHOW_VIEW('TRIM_REC_IMAGE');
    SET_VIEW_PROPERTY('TRIM_REC_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('TRIM_REC_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('TRIM_REC');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='AS_SHIP_IMAGE')THEN      
    SHOW_VIEW('AS_SHIP_IMAGE');
    SET_VIEW_PROPERTY('AS_SHIP_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('AS_SHIP_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('AS_SHIP');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='TRIM_SHIP_IMAGE')THEN      
    SHOW_VIEW('TRIM_SHIP_IMAGE');
    SET_VIEW_PROPERTY('TRIM_SHIP_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('TRIM_SHIP_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('TRIM_SHIP');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='EXTRA')THEN      
                   ---Show the Export Canvas---------     
    SHOW_VIEW('EXTRA');
    SET_VIEW_PROPERTY('EXTRA',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('EXTRA',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('EXTRA');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSE -- DYNAMIC TABS
    --Hide all the other  static canvases
    IF (:GLOBAL.HEADERS='CT01')THEN
         GO_BLOCK('CT01');
    ELSIF (:GLOBAL.HEADERS='CT02')THEN
         GO_BLOCK('CT02');
    ELSIF (:GLOBAL.HEADERS='CT03')THEN
         GO_BLOCK('CT03');
    ELSIF (:GLOBAL.HEADERS='CT04')THEN
         GO_BLOCK('CT04');
    ELSIF (:GLOBAL.HEADERS='CT05')THEN
         GO_BLOCK('CT05');
    ELSIF (:GLOBAL.HEADERS='CT06')THEN
         GO_BLOCK('CT06');
    ELSIF (:GLOBAL.HEADERS='CT07')THEN
         GO_BLOCK('CT07');
    ELSIF (:GLOBAL.HEADERS='CT08')THEN
         GO_BLOCK('CT08');
    ELSIF (:GLOBAL.HEADERS='CT09')THEN
         GO_BLOCK('CT09');
    ELSE --ELSIF (:GLOBAL.HEADERS='CT10')THEN
         GO_BLOCK('CT10');
    END IF;
              END IF;
         END;
    Thanks,
    Durga Srinivas.
    Edited by: DurgaSrinivas_886836 on Dec 3, 2012 8:12 PM

    In your trigger, you are doing a SHOW_VIEW ('HDR_CANVAS_FIXED'); before you select the :GLOBAL.HEADERS information. I'm not sure what HDR_CANVAS_FIXED is, but I am wondering if that is what is messing you up. What happens if you either comment that out:
    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
      --Get the Top Default Tab Page for the Form
      --SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <-------------------------------------------------------Comment it out */
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        .or if it is necessary move it to after the :GLOBAL.HEADERS:
    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
      --Get the Top Default Tab Page for the Form
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
      SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <------------------------------------ Swap it with :global.headers */
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        SET_VIEW_PROPERTY ('AS_REC_IMAGE', VISIBLE, PROPERTY_TRUE);
        SET_TAB_PAGE_PROPERTY ('AS_REC_IMAGE', ENABLED, PROPERTY_TRUE);
        GO_BLOCK ('AS_REC');
      --Hide the other canvases except the Pricing Canvas
      ELSIF (:GLOBAL.HEADERS = 'TRIM_REC_IMAGE') THEN
        SHOW_VIEW ('TRIM_REC_IMAGE');
        .

  • Change the look of Tab Pages

    Hi,
    Is there any way to change the look (but not the
    mechanism) of Tab Pages in Forms?
    If I wanted my own (say) "rounded" tab pages, is there
    any easy way to achieve this?
    Can we get our hands on the Java object that is used
    to create a tab page - if so, it could be altered
    and compiled and linked in as a Java Bean, but how to make
    "normal" text boxes be subordinate to a Java Bean... ?
    Any help appreciated; thanks in advance.
    Mungo Henning

    Mungo,
    unfortunate we don't support PJCs on tab canvases because this is what you would need for the desired change. The other option - as you said - is to create a tab page and add Forms components to it: This requires to spider the Forms Applet at runtime, which I tried to do a while back, but which also truned out to be problematic. So as it seems, adding your own tab canvas is not possible.
    Frank

  • Set all Tab pages property

    Hi All,
    Does anyone know how can I loop through all tab pages in a form (10 tab pages) and set the visible property in run-time.
    Thank!

    There is no direct way to do this. You can be sneaky and iterate through each block and then each item in the form using the get_item_property(...,NEXTITEM), then call get_item_property with the CANVAS_NAME attribute, and build up a map of the canvases that way.
    Or you can just take the low tech solution of using a naming convention such as WINDOW0_TAB1, WINDOW0_TAB2 etc, then use FIND_CANVAS to loop through those until you get a NULL canvas ID (use ID_NULL() for this)

  • Tab pages appear from right to left not left to right

    I have created 5 tab pages on a form. Insead of them going from left to right on the canvas they start from the right as does the test in each field. This is the first time I have come across this and cannot find the property (if there is one) to change the direction of the tab page layout.
    Thanks for any assistance

    Hi
    set the canvas's direction property, it takes
    1) left to right
    2) right to left
    3) default

  • 11g Forms Tab-Page Navigation

    I am using Forms 11g on Solaris.
    A main navigator form opens another form which has a content canvas, tab-page canvas and (3) stacked canvases.
    The problem I am having is with tab-page navigation.     CTRL+TAB ( next ) and CTRL+SHIFT+TAB ( previous )
    As long as I do not initiate navigation from an item on a stacked canvas, navigation is as expected ( between tab pages only ).
    However, navigating from an item within a stacked canvas causes navigation to the parent form.
    Repeating the tab navigation keys from the parent form returns to the called form.
    Note that both key-combinations simply toggle back and forth.
    I have found no documentation on tab-page navigation so any help / insight is greatly appreciated !
    Mike

    Hi Soofi !
    Changing block order in the called form does not affect the navigation between tab pages.
    Note in my question that the resulting undesired navigation is to and from the calling form ( which only has one block ).
    Navigation between items and blocks works as expected.
    To reiterate -
         The only navigation that fails is when I attempt to CTRL+TAB or CTRL+SHIFT+TAB to another tab page from within an item on a stacked canvas.
         Attempting this navigation results in moving the cursor focus to the calling form.
         Repeating the attempt from the calling form moves back to the called form.
         None of your methods mention navigation between forms .
    Thanks for your interest.

  • Portal forms connecting to each other in tabbed page

    Well, here's a challenge...for me anyway.
    If the forms are created and they are published as portlets and in the tabbed page, is there a way to get
    the user to fill out 1 form and be passed automatically to the next?
    I haven't done this before, but am aware of the parameter concept a tad. The page the forms go to can accept parameters and the forms have a common field on each of them > but what is the next step?
    -does this code work better as javascript or pl/sql?
    -where exactly does the parameter passing event occur/get written?
    hope these basic questions are easy for someone....
    thanks in advance.
    mary

    Hello,
    I have just seen your question. I have a very similar question myself (without tabs), but I have no reply yet. In case you have a solution, could you kindly email me ([email protected]). Thank you, Trivan Pal

  • Nested Tab Pages in 100% Generated Forms

    Hi all,
    Creating a Forms (9i) application, hopefully to be 100% Designer 9.0.2.6 generated. Trying to find out if it is possible to generate nested tab pages.
    eg.
    example table structure
    Employee
    |-Employee history
    |-Employee skills
    | |--Employee skills history
    | |--Employee skills details
    |-Employee time bookings
    In this case, employee is the Master table with a tab section for the detail - three tabs for history, skills and time booking. On the skills tab page, I want to use skills as a master table and then have history and details as two tab pages on another tab section within the whole skills tab page.
    Is this scenario possible in a 100% generated form?
    Thanks,
    Michael.

    Hi Michael,
    Someone correct me if I am wrong on this, but I believe this is not possible. Only stacked item-groups display as nested tabs on a tab page. Master-detail with the details as tabs is not possible on a tab page.
    Regards,
    Michiel Arentsen

  • Forms personalisation - Vendor Form - How to Disable a Tab Page

    Hi,
    I am not a Forms 6i/9i programmer, although I have an appreciation of the concepts and can look at forms in Form builder. I have been looking at forms personalisation and have used it to execute plsql via the built in 'execute a procedure'. I can also see how to disable blocks, or items, but I haven;t managed to disable a form tab page i.e. On the vendor form there are tabs for GENERAL, CLASSIFICATION etc.
    I have tried using the object type Tab Page, but the poplist doesn;t list any tab pages. Also if you choose Canvas, the list of Canvases appears but generates errors when you try and use the form (complaining of tab page ids).
    I understand that to disable a tab page programatically, you would use SET_TAB_PAGE_PROPERTY i.e. in a forms trigger or in CUSTOM.pll
    I would have thought Forms personalisation could do this.
    Any ideas would be appreciated
    mark
    I under

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • Tab pages in forms v6i

    I compile forms using v6i. The forms are made with v6 and they have 2 TAB PAGES with the same block and first page is visible but the second page is not navigable with mouse.
    Why doesn't work ? These forms v6 are correct.
    Thank you.

    When you click on a tab, if the cursor is in an item on the first tab page, the second won't come up. You have to move the cursor when the tab page is activated. (I'm not sure, but I have patch 13 installed, and this does not seem to be a problem any more. However my associates with an older version do have your problem.)
    I use a when-tab-page-changed form-level trigger:
    -- When-Tab-Page-Changed form-level trigger                        
    Declare
      new_pg   varchar2(30) := :system.tab_new_page;
    Begin
      If new_pg <> get_item_property(:system.cursor_item,item_tab_page) then
      -- cursor is on a different tab page.  Need to navigate to an item
      -- on the requested tab page.
        If new_pg = 'TAB2' then
          Go_item('B3.NAME');
        else -- TAB1 tab page
          Go_item('B1.KEY_NAME');
        end if;
      end if;
    End;

Maybe you are looking for