How to hide a tabpages in a  tab canvas

Hi All,
I am using oracle Apps R12.2 and forms 10g version
I have Tab canvas in my page and it contain two page.
My requirement is when the user is "PROC HEAD" means the Tab_page2 is Visible and able to acces.When other user logged means the tab should be grade out.
I have tried so for is i have written my code in When New form Instance trigger
And this is my code.
declare
tp_id TAB_PAGE;
v_user_id number;
begin
select user_id into v_user_id from fnd_user where user_name='PROC HEAD';
if fnd_global.user_id= v_user_id then
tp_id :=FIND_TAB_PAGE('EXPEDITOR');
SET_TAB_PAGE_PROPERTY(tp_id, visible, property_true);
else
SET_TAB_PAGE_PROPERTY(tp_id, visible, property_false);
end if;
Can any pls correct me where i went wrong.
Thanks & Regards
Srikkanth
end;

Please post your solution so others can benefit from your solution!
Thanks,
Craig...

Similar Messages

  • How can i change the direction of tab canvas in 10g ?

    hi all
    how can i change the direction of tab canvas in 10g at runtime i want to change the direction from left_to_right to right_to_left when i did that the form not appears well
    all prompts of item not dispalyed in order of its sequence ,in spite of that it works in 6i well and change direction without any problems
    i have been used set_canvas_property and set_view_property but it doesn't work
    can anybody help me in this mater?

    please can any body help?

  • How to hide the sub menus under tabs

    Hi,
    i have a requirement to hide the submenus(links) under tabs.
    i succeded to hide the tabs and global menus. but still menus(Links) are showing under the tabs.
    i wrote the below code
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setTabs ((oracle.cabo.ui.UINode)null);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    can anyone help me please?
    Regards,
    Raju

    Raju, add his line in your code, it will hide links under tabs:
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setTabs ((oracle.cabo.ui.UINode)null);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    page.setPageHeader((UINode)null);
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to change content/stacked canvases to tab canvas

    Hi,
    I have created a form which has one content canvas and multiple stacked canvases. The content canvas displays the first page and then we hv to click on next to go to the next stacked canvas and so on. I want to try making it in tabs (tab canvas) and then I will decide which one looks better and performs good.
    Can you guys please give me a detailed instruction on how to convert my content and stacked canvases to tab canvases. I have never done tab canvas. I tried one, I changed one of my present stacked canvas to tab but all the fields and texts were gone and there were just two tabs in it.
    Please suggest. Thanks in advance.

    Might get a better response in the Forms forum...
    Forms

  • How to get block name in a tab canvas

    I am trying to develope a form with six tabs on a tab canvas. Each tab pages contains a block derived from a database table and not items taken from the same table.
    If I want to capture the name of the block in a tab page when page is changed, How can I do it.

    If you like CRAZY PAIN you can parse dbms_utility.format_call_stack to get the trigger name and owner and then using all/user_triggers extract info of table name, which has such trigger defined on it.
    Although I wouldn't do that :)
    I'd simply create a variable in trigger definition containing table_name and/or another variable containing trigger name and use them.
    It is especially easy if you are generating triggers for example for some auditing purposes.
    Gints Plivna
    http://www.gplivna.eu

  • How to embed an applet on a tab canvas of a form

    Hi, I am using JDeveloper 10.1.2.3 and 10 g DB. I have a requirement where I have to allow users to digitally sign or authorize an application in oracle forms. We use Topaz systems to sign all our documents in java. Now users want this facility in their oracle forms applications as well. I have written a bean that allows users to sign. I called this java bean from forms on click of a button and an applet pops up where in user sign and on clicking save button the signature is sent back to the form. However, what i was hoping for was to have this applet embedded within a tabbed canvas of the form, so that it appears that the user is signing on the form. This will also be useful when I have to load the signature back to the form. I don't think a separate hanging applet will look good.
    Can anyone help me please.

    as you already have a bean, try to show the frame of the java-applet inside the bean-area. Maybe there is also a class in your java-program yo can call directly without having to work with the apllet itself. it would also be helpful if you could post the code for your java-bean.

  • How to hide the Main Report Viewer Tab in SAP CR for VS2010?

    Is there any option to hide that tab page? In designing progress, sometimes it's really annoying.
    Besides, the vertical line in report appears mistakes with a tiny over-length. How to deal with it?
    Looking forward to your answers. Thanks.

    Hi Jinu,
    1) Do some or all of those subreports span multiple pages?
    2) Do each of the Subreports start on a new page?
    If yes, for both, then here's what you need to do:
    1) Create a formula (@True) with this code:
    shared booleanvar SetStatus:= True
    2) Create another formula (@False) with this code:
    shared booleanvar SetStatus:= False
    Drag and drop the @True formula on the details sections for which you want the Page Footer to be suppressed.
    Similarly, drop the @False formula on the details sections for which you want the Page Footer to show up.
    Then, go to the Section Expert > Select Page Footer c > Click the formula button beside Suppress and use this code:
    shared booleanvar SetStatus;
    -Abhilash

  • How to hide fields in BP search tab of CIC  Winclient ????

    Hi All,
          In IC winclient my requirement was to hide the IBase fields from BP search tab. I have done that by changing the html file  in SMW0 and assigning it in profiles for search strategies.
    But, now when I search for BP in CIC0 it doesnt get searched. I mean after search, the result fields dont get filled with any data. If I revert my changes everything works properly.
    Are there any other changes required to be done ????
    Am I  missing some step(s) in between ??
    Any suggestions would be of great help !!!!
    Regards,
    Ashish

    Hi Anirban,
           That is exactly the code I have deleted.
    I have carried out the following steps :-
    1) Copied HTML obj. - CRM_CIC_EMP_SEARCH to ZASH_BPSEARCH. Deleted exactly the code you've specified.
    2) In define profiles for search strategies
    - Copied ISM_BPSEARCH to ZASH_BPSEARCH
    - Copied CRM_ISM_SUBCREATE2 to ZASH_CRM_ISM_SUBCREATE2
    - In search attributes->General tab-> Changed HTML for BP Search to ZASH_BPSEARCH.
    3) In Customer specific system modi->Define customer specific search control-> Copied the following entries
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     DESCR     X
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     DEVICEID     X
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     GUID_COMPC     
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     IBASE     
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     INSTANCE     X
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     OBJECT_FAMILY     X
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     OBJECT_ID     X
    O_ISM_BPSEARCH     CCMIBCOMPFIELDS     PRODUCT_ID     X
    and changed O_ISM_BPSEARCH to ZASH_BPSEARCH and removed the X flag from all entries
    4) In define IC winclient profile
    CONTACT_SEARCH_CONFIGURATION = ZASH_BPSEARCH
    Regards,
    Ashish

  • How to hide a rectangle graphic in a canvas ?

    Hi all,
    As we know we can draw rectangles from the tool pallette on a canvas. And I want to hide this rectangle under condition in my forms application. How can I achieve this ?
    Thank you very much indeed.

    <p>If your purpose is to have some "framed" text area, then you could find solutions in this article</p>
    Francois

  • How to hide report tabs in webi using opendoc?

    How to hide a report tabs in webi while accessing that report using OpenDoc??
    Is there a way to see just the sReportName selected without show the other
    report tab in the bottom of the document??

    Hi,
    As Mention By SUBBARAO MUCHERLA Either create 2 Different Reports.
    Or
    You can do one thing .
    Add Complete Report in a Blank section .
    Section (v_sec_All ="All")
       --Part1   //Table
       --Part2   // Chart
       --Part3   //Chart 2
       --Part n
    Use this section(v_sec_All) in Linking Report Part .

  • How to hide custom tab in crmd_order

    hello gurus,
    In crm how to hide a custom tab (which is created through EEWB Transaction )for particular order types??
    ex: if a tab named ADDITIONAL DATA B is holding the info like contact name ,customer PO etc.,here my requirement is to hide that tab for some order types like CR & DR.
    Plz help me out in this issue..
    Bye--
    Pradeepa

    Hello Pradeepa,
    2 options to replicate the custom data to R/3:
    A- via EEWB, flag the 'R/3' flag
    extract from doc:
    Field Relevant for R/3 Execution?
    Specifies whether you use CRM Sales with R/3 Supply Chain Execution, and whether you wish to transfer the field to the R/3 System.
    Use
    If you set this flag, the system generates a BAdI implementation that transfers the field to R/3 BAPI structures. If your executing system is an R/3 Enterprise System, the system enhances the BAPI structures and tables for sales orders in the R/3 System so that the field is transferred automatically to the R/3 sales order.
    So, with this flag, during generation, the whole flow to R/3 and also the fields in the tables in R/3 are created.
    B- write your own integration flow via exits/badi in the middleware to integrate the fields into existing fields in R/3 tables.
    Regards,
    Fred

  • How to hide a tab(not a conditional display)

    I allready posted this question, but nobody answered me...
    Please help. Here is the thread, just read the last message:
    how to hide a tab dynamically
    Vitaly

    Why? What are you trying to achieve? What functionality would that provide?
    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:124
    Is that what you want?
    The function behind the Toggle link is
    <script type="text/javascript">
    function ToggleTab()
    var links=document.getElementsByTagName('a');
    for (var j=0;j<links.length;j++) {
        if (links[j].className=='t10standardtabcurrent') {
           var td=html_CascadeUpTill(links[j],'TD');
           html_ToggleElement(td);
           var adj=td.previousSibling;
           if (adj.nodeName != 'TD') adj=adj.previousSibling;
           html_ToggleElement(adj);
           var adj=td.nextSibling;
           if (adj.nodeName != 'TD') adj=adj.nextSibling;
           html_ToggleElement(adj);
    </script>Modify as per your requirements and post your final solution if you use this approach. Thanks.

  • How to hide screen group tab based on account group in XD01/02

    Hi Folks,
    I have added two screen group( custom tabs like 'general data' ) in XD01 screen. Based on the input parameter 'account group' I want to hide(supress) one of the tab. How can I read the account group no?
    Thanks and Regards,
    Kawish.

    Hi,
    Can you try to access the field like below. Just try to access the account group from main program in the method.
    field-symbols: <lf_KTOKD>  type KTOKD,
       data:               L_KTOKD type KTOKD.
    assign ('(SAPFM02D)KNA1-KTOKD') to <LF_KTOKD>.
    if sy-subrc = 0.
         l_ktokd = <LF_KTOKD>.
    endif.

  • How do I hide or move the Album tab at the top?

    I just downloaded the new iTunes 10.0 ... How do I hide or move the album tab on the top of Music?

    You see Album under Library > Music on the left side of iTunes or you see Albums and a list of albums at the top of iTunes when you select Library > Music?
    If it is at top, go to iTunes menu View > Column browser and uncheck Album.

  • How to hide Job index tab in PPOME

    Guys,
    Pls advise how to hide Job index tab in PPOME.
    Thanks

    Hi,
    The job index tab page is IT0783. You can check this through transaction OOFRAMEWORKCUST. In the same transaction, double click on u201CTab Page in Scenario for each Object Typeu201D folder under u201CScenario Definition (Hierarchy Framework)u201D in the left column. The scenario for PPOME is OME0. Look for the entry for OME0 and tab page IT0783 and check the u201Cdo not displayu201D box the last column.
    Hope this helps.
    p.s. Please search the forum on this topic. There are plenty of threads on PPOME tab page customization.
    Donnie

Maybe you are looking for

  • Copy Entire Package ??

    Hi Folks, Is it possible to copy an entire standard Package to a Z-package with all corresponding Z-objects in it ?? We have developed a new functionality for the customer. The request has already been released. But the team doesnt want to deliver th

  • Business Events

    Hi, In R12, I could fine some seeded shipping related business events like 'oracle.apps.wsh.delivery.gen.shipconfirmed', 'oracle.apps.wsh.stop.gen.closed'. For testing purpose I am raising this event manually using 'Tesing Business Event'. It is show

  • Unable to install WIndows98SE/Me in Neo LSR?

    Hi to everybody.  I have a very strange problem.  Perhaps you can help me. I never tested my Neo 875P with Windows 98 SE or ME.  I have installed Debian 3.0 sarge (the testing version) with kernel 2.6.3 and Windows XP SP1, without problems.  I used t

  • One question about ThreadPoolExecutor.

    How do I switch between multithreaded execution or single threaded execution at runtime? The code is a Runnable object that can be executed by ThreadPoolExecutor or ExecutorService. I can create a threadpool with only one thread (like newFixedThreadP

  • Oracle reports builder hangs when trying to open an rdf

    Hi, I am trying to open a report and once I browse and select the component, nothing happens. Has anyone faced this issue in Reports 11g in Windows 7 Professional. Thanks