Set Tab Page property -  Label property dynamically

Hi All,
I have a Tab page canvas.
My 1st tab canvas Label is "Projects".
If i entered 2 record means i need to change the Tab page label as "Projects 2".
IN which trigger , i will write a coding for that?
If i am in the Tabbed canvas , it is working .If i come to Main canvas the Tab canvas label is clearing.
Can u tell me suggestion for that.

You could go with a combination of a Calculated item of type "Summary" and another calculated item of type "Formula":
Create a calculated item :BLOCK.IT_COUNT of type "summary" which counts one of the NOT NULL-items in your data-block.
Create a Program Unit liek that:
FUNCTION FK_CHANGE_COUNT
RETURN NUMBER IS
BEGIN
  SET_TAB_PAGE_PROPERTY('YOUR_TAB_PAGE', LABEL, 'The Text' || :BLOCK.IT_COUNT);
  RETURN 1;
END;Create a second calculated item of type "Formula", in the formula enter FK_CHANGE_COUNT.
Now, everytime the count of the block changes, the "dummy" function will be called to calculate whatever, and the function sets the Tab-Label to the desired value.

Similar Messages

  • Set tab page property

    In the new form instance of my form, I'm disabling all tab pages but I'm getting an error that the last enterable tab page cannot be set to false. Is there some way to go around this and achieve the same effect?
    Thanks a lot
    Marija

    but the canvas does not have the visible or enabled attribute and when I tried to use the canvas_size the form open and closed immediately.
    Marija

  • Setting Tab Page Lable Bold

    I want to change the tab page lable dynamically whenver user select the concerned tab page it should be bold,i tried but it seems to me its not possible due to OS.
    Any body has clue which serve my purspose to just alert the user that you are on this tab page by showing bold tab page lable or get it colored etc.But i dont wana give any text heading at canvas.
    Note : i am using Forms 6i
    Thanx in advance
    Khurram

    See
    SET_TAB_PAGE_PROPERTY
    also see
    SET_CANVAS_PROPERTY
    SET_VIEW_PROPERTY
    HIDE_VIEW
    SHOW_VIEW

  • Forms 6i - Highlight a tab page label (BOLD or coloring) in a tabbed canvas

    Hi Sir,
    I have an urgent requirement wherein I need to highlight a particular tab page header (label) either via
    1. Making the tab page label BOLD
    Or
    2. Coloring that particular tab page.
    OR
    some other way.
    Could anyone please help me on this.
    Regards,
    Kiran

    No version of Oracle Forms allows you change these properties of a tabbed canvas. If you were using Forms 10g or higher, you would be able to use the Oracle Forms Look and Feel Project which is a set of JavaBeans created by Francois Degrelle and enables you the change many of the properties that Forms won't let you change. Unfortunately, you are stuck with what is available in Forms 6i.
    Craig...

  • WEB.show_document in Browser Tab Pages

    Hi
    This problem occurs in IE7 which makes use of tab pages on the web browser. I'm using forms 10g, web.show_document(v_url, '_BLANK') to pop up a browser window in IE to display a PDF file residing on the App Server.
    The new browser window pops up in IE and displays the pdf document fine. The window title and address bar contain the correct url (a rather long one). The problem I have is that the browser tab page is labelled "Error" which immediately causes concerns amongst the users. I'm not sure if it does this because it does not know what to label the tab page or if the URL is perhaps too long.
    Is there any way to rename / relabel the tab page or set the name or alias somewhere? I'll appreciate any advice on the issue...
    Regards
    Mario

    Hi,
    With web.show_document() you could call a html page that call your php page with POST().
    Francois

  • WHEN-TAB-PAGE-CHANGED  TRIGGER

    Hi all
    Is any way to found examples of
    WHEN-TAB-PAGE-CHANGED trigger
    in forms implementations.
    Any references will be very usefull.
    Thanks a lot,
    Gor

    In the the on-line help Forms' doc there is one :
    In case you cannot find it... here it is:
    Examples /* Use a When-Tab-Page-Changed trigger to dynamically**
    change a tab page's label from lower- to upper-case**
    (to indicate to end users if they already have** navigated to the tab page):*/
    DECLARE
         tp_nm VARCHAR2(30);
         tp_id TAB_PAGE;
         tp_lb VARCHAR2(30);
         BEGIN
              tp_nm := GET_CANVAS_PROPERTY('emp_cvs', topmost_tab_page);
              tp_id := FIND_TAB_PAGE(tp_nm);
              tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
              IF tp_lb LIKE 'Sa%'
                      THEN
                             SET_TAB_PAGE_PROPERTY(tp_id, label, 'SALARY');
              ELSIF tp_lb LIKE 'Va%'
                      THEN
                              SET_TAB_PAGE_PROPERTY(tp_id, label, 'VACATION');
              ELSE
                      null;
              END IF;
    END;Greetings...
    Sim

  • Is there a way to create multiple New Tabs pages and name them?

    This feature is great but I would like to be able to create multiple new tabs pages and label them. This would be more useful than tabs groups that all load at once.

    No that is (currently) not possible.
    It will be possible in future Firefox version to specify the number of rows and columns.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=752841 bug 752841] - [New Tab Page] make the number of tabs adjustable
    <i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i>

  • 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 Page visible property node not working correctly

    I am making a vi in which we have a tab control with 6 pages and to move from one page to another there is ring control with option for every page on page 1( page 1 is the default page), at a time only one page is visible so we can move only through that ring control present on page 1 and to come back to page 1 from all other pages there is button "go back" on all other 5 pages, everything is working fine for 5 pages but when after going on page 6 and then if i press go back button instead of going back to page 1 program hangs and one more thing that i noticed is after stopping the program the page 6 becomes the default page( which otherwise is page1) i dont know why this is happening.
    I am attaching the snippet of the code which executes when i press go back button.
    one more thing that i am not getting here is when i checked the program through step execution, the last property node( page6 ) that is executing first after that it goes to first property node and then it goes in sequence, this also i want to how is this happening.
    Solved!
    Go to Solution.
    Attachments:
    tab page property node.png ‏43 KB

    I think you would be better off just to use your array and turn on/off the necessary tabs instead of explicity setting each property every iteration.
    Attached is one example.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    set visible tabs.png ‏56 KB

  • Dynamically set Tab current pages

    Here’s a quick summary of the situation I’ve got.
    Let’s say I have an application with 4 report pages. Three display some data about rows in my database. All 3 contain the column ‘Control #’ which is linked to the 4th report which displays more detailed information about that Control # object.
    When I click on the Control # link and go to the 4th report, I would like the Tabs current for the 4th report to match the Tabs current of the page I came from. In other words, if I clicked on the Control # link on page 1, I would like the 4th pages current tabs to match page 1’s current tabs. The same goes for pages 2 and 3.
    I’ve tried &(some global variable). and :(some global variable) and v(‘some global variable’) in the Tabs current pages fields but that doesn’t work.
    Is it possible to do what I’m trying to do?

    Reports 1, 2 & 3 all exist in individual two tab pages. Pages 1 & 2 would have the same parent tab and their own sub tab. Page 3 would have its own parent tab. When in those pages the appropriate tabs are 'current'. When I click on Control # on any page and go to page 4, I would like the source pages tabs to stay 'current' when displaying page 4.
    By the way, my actual application has in the neighborhood of a dozen pages which are like reports 1,2,& 3 as I described above. Rather than build a dozen identical (with the exception of current tabs) page 4's, I would rather build one page 4 and dynamically set page 4's current tab to the source page's current tab.
    It's a visual reminder to the user as to which page they were on when they clicked the Control # field.
    I also have 8 - 10 SVG charts which I have linked to reports. About 6 of them display the same report using different parameters. Again, I would like THAT report to have the same current tab as the source chart (chart clicked on to invoke the report).

  • Dynamically setting the vo attribute Update property

    Hi All,
    Can we set the vo attribute update property dynamically.if so please let me know how can we achieve this.
    I have a read only view..But in my process request i need to set the value for that attribute based on some condition.
    How can i achieve this.I cant set at bean level.only row level i need to set.
    Its a dynamically created seeded vo.
    Please help.
    Thanks
    Bharat

    Hi,
    Capture the VO row and then set the value on the view attribute.
    OAViewObject vo = (OAViewObject)am.findViewObject("viewinstance");
    If(vo!=null)
    Row row = (Row)vo.first();
    row.setAttribute("Attribute Name", "Value");
    Thanks,
    Gaurav

  • Change tab label property

    How can the CANVASES->TAB->MYTAB->Label property be changed, e.g. to write
    in bold letters, or bigger font size ?
    What is the VISUAL ATTRIBUTES->GENERAL->VISUAL ATTRIBUTE TYPE : Title
    for ??

    Hi,
    without having investigated into the issue you mention, what about showing the active tab with all letters in uppercase and the inactive tabs with mixed case ?
    Frank

  • Threadinar10 - Page Separator, Page Fragment Box , Tab Set & Tab Components

    Hi All,
    This is the tenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date.
    This Threadinar will discuss 4 components in the "Components Palette: Layout Section" section of the Creator Component Catalog.
    The components we will focus on today are
    "Page Separator", "Page Fragment Box" , "Tab Set" & "Tab" Components.
    Let us begin our discussion with the "Page Separator" Component.
    Page Separator Component
    You can drag the Page Separator component from the Palette's Layout category to the Visual Designer to create a horizontal line that resizes to any page width selected by the user. This component is the visual equivalent of an HTML <hr> tag.
    In the page bean, a Page Separator component is a PageSeparator object.
    * Note: If you want to use an HTML <hr> tag, drop a Meta component on the page and set its tag property to hr.
    [b]Page Fragment Box Component
    This component enables you to include a page fragment in a page. A page fragment is a separate, reusable part of a page that can be included in any number of pages. For example, you might want to put a common a visual element like a header graphic in a page fragment and then include it in all the pages in an application.
    When you drag the Page Fragment Box component from the Layout category of the Palette and drop it on a page, the Select Page Fragment dialog box prompts you for the name of the page fragment to be included. You can enter the name of an existing page fragment or create a new page fragment. If you create a new page fragment, the IDE gives the new fragment a .jspf file suffix and creates a node for it in the Projects window, as well as adding the page fragment to the Outline window.
    * Note: A Page Fragment Box component simply includes a page fragment in a page. Deleting a Page Fragment Box component from a page does not delete the page fragment itself, even if you originally used the Select Page Fragment dialog box to create the page fragment.
    After dropping a Page Fragment Box component on the page, if you click inside the component, you see the properties for the included fragment. If you click the border of the component, you see the properties for the enclosing <div> block. You can also use the Outline window to select the enclosing block, the page fragment, or the components in the page fragment. In the Outline window, the Page Fragment Box component is represented by a node named directive.include:fragment-file.jspf, where fragment-file is the name of the page fragment file.
    If you double-click the page fragment, it opens as a page in the Visual Editor, enabling you to edit it like a regular page. The page fragment has an associated JavaBeans object, a page fragment bean, which you can edit by clicking the Java button at the top of the page fragment when it is open in the Visual Editor. As with a regular page, if you drop a component like a button in a fragment, double clicking adds an event handler in the page fragment bean, enabling you to reuse the code on any page to which you add the page fragment. A common scenario for reusing component code would be a Search Box fragment that has a search Label, a Text Field where the user enters the search string, some Inline Help, and search logic code in the page fragment bean.
    * The tab order of the components in the page is unlikely to work properly unless you enclose the entire page fragment box in the Faces Verbatim component.
    For more details see tutorial : "Using Page Fragments"
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    [b]Tab Set Component
    The Tab Set component in the Palette's Layout category is a container for a set of Tab components. Typical uses of a tab set are:
    * To provide alternate sets of components on the same page and enable the user to navigate to them by clicking on tabs. The user sees only the components under the currently selected tab. For more information on adding components to tabs, see Tab Component.
    * To navigate among a set of pages. If you use a tab set this way, you would usually have the tab set near the top of each page with the component's width set at 100%. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. In addition, you would need to delete the default Layout Panel component under each tab so the tab would display the page contents.
    You can set Tab Set properties in the component's Properties window.
    A Tab Set component contains Tab Components, and Tab components can contain other Tab components. You can see these components displayed as hierarchical nodes in the Outline window after you add a Tab Set to your page.
    You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dropping a new tab component on the Tab Set or on a Tab component.
    You can drop a new tab component on a tab set in the Visual Designer to the right or left of existing tabs to create a new tab at that level. The tabs in a tab set can also be containers for other tabs. If you drop a Tab component on an existing tab, the new tab becomes a child of the tab on which you dropped it. The maximum number of levels for tabs is three.
    The tab set component determines which tab is rendered as selected, storing the value in the selected property. By default, the selected property is set to the first tab created for the component. If you click a tab while designing your web page, that tab becomes the selected tab. You can tell during design time that a tab is selected because its color changes.
    [b]Tab Component
    A Tab is part of a Tab Set component. You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dragging a new Tab component from the Layout category of the Palette and dropping it on the Tab Set or on another Tab component. You can also drag from the Palette and drop the tab on the tab set's nodes in the Outline window.
    * If you drop the Tab component to the left or right of an existing tab, it is added to the same row of tabs.
    * If you drop the Tab component on an existing tab, the dropped tab becomes a child tab of the tab on which you drop it unless the existing tab is a third level tab. You can have at most three levels of tabs in a tab set.
    o Note: You cannot add a child tab to a tab that has components in its Layout Panel. When you drop a tab on an existing tab component that has an empty Layout Panel, the empty Layout Panel is deleted to make room for the dropped tab.
    By default, a Tab component has a Layout Panel below it where you can drop components that will be displayed when the user selects the tab. The Layout Panel by default has its panelLayout property set to Grid Layout, meaning that components dropped on the panel are aligned at the location where they are dropped. You can change the layout behavior by setting the panelLayout property to Flow Layout, which aligns dropped components left to right in rows. For more information on Layout Panel properties, see Layout Panel Component Properties Window.
    To select a tab in a tab set, either click the Tab component on the page or select the Tab component's node in the Outline window. To select the whole tab set, either click the border of the Tab Set component on the page or select the tab set's node in the Outline window. Alternatively, you can select a Tab component and either press Escape or right-click and choose Select Parent to select its parent component.
    * Note: If you select a tab on a page in the Visual Designer, a side effect is that it becomes the selected tab. If this effect is not what you want, select the tab in the Outline window so you can set its properties.
    You can drag tabs in the Outline window to change their location and level in the tab set.
    Some typical uses of tabs:
    * You can drop components on the Layout Panel component below a tab to enable a set of components to be displayed below each tab. When the user selects a tab, they see only the components that are associated with the tab, without having to change pages.
    * You can use a tab set to navigate among a set of pages. Each tab component links to a page in your web application. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. If you want to use the tab set for page navigation, be sure to delete each tab component's Layout Panel.
    You can also right-click the Tab component and choose one of the following options:
    * Edit action Event Handler. Code the action event handler, the method that is called when the user clicks the tab. This method determines which page or resource to open based on specified conditions. The action method typically processes mouse clicks and returns a string indicating the name of a page navigation case (the page in your application to display next). The default name for the method is tab-id_action, where tab-id is the value of the tab's id property.
    * Bind to Data. Dynamically set the text that appears on the tab. You can bind the component's text property to an object or a data provider, as described in the topic Bind to Data Dialog Box.
    * Property Bindings. Opens a dialog box that enables you to bind properties of the component in addition to the text property to other objects or bean properties that update this component's properties automatically.
    [b] Please join in and share your comments, experiences, additional information, questions, feedback, etc. on these components. <br><br>
    Thank you for your participation

    The following blog has a mini tutorial on using a tab set in a page fragment for page navigation:
    http://blogs.sun.com/divas/entry/tabbing_thru_the_tulips
    A reader commented that the mini tutorial needed to be improved upon to show how to keep the tab state and navigation state in synch.
    How would you do it? If you have a good example, maybe post it to this thread.
    Also, there is no tab tutorial but it is on the priority list. What would you like a tab tutorial to show how to do?

  • Programmatically change tab page label font size

    Hellow Fellow LabVIEW Lovers,
    I thought this subject was easy with LV2009, somehow I cannot find the property for the "tab page label font size", yes, i also looked with the "pages" ref array from the tab ref, also no luck. Could someone point me to the right place? I would really appreciate your help. Thanks.
    Bryan

    Odd,
    The each tab is a page  Class Generic>Page.
    This snippet shows that there are no objects on the page (like the lable)
    However ,Page Propertise do not include lable.font.all elements
    Page Properties
    Dim hasPlayer, playerversion
    hasPlayer = false
    playerversion = 10
    Do While playerversion > 0
    On Error Resume Next
    hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))
    If hasPlayer = true Then Exit Do
    playerversion = playerversion - 1
    Loop
    is_FlashVersion = playerversion
    is_Flash = hasPlayer
    Requires: Base Package
    Inherits from Generic. View the class hierarchy.
    Property
    Description
    Colors
    Gets or sets the foreground and background colors of a tab
    control page. Details
    Colors:BG Color
    Gets or sets the background color of the tab control page. Details
    Colors:FG Color
    Gets or sets the foreground color of the tab control page. Details
    Controls on Page[]
    Returns an array of references to the controls and indicators
    on a page. The order in which you place the objects on the page determines the
    index of the object in the array. For example, if the first object you place on
    the page is a numeric control, the index of the numeric control in the array
    returned by this property is 0. Details
    Decorations on Page[]
    Gets an array of references to all decorations on a tab
    control page. Details
    Description
    Gets or sets the description of a tab control page. Details
    Independent Label
    Makes the tab control page caption independent of the page
    label. Details
    Objects on Page[]
    Gets an array of references to all controls, indicators, and
    decorations on a page. Details
    Page Enabled State
    Gets or sets the state of a tab control page to enabled,
    disabled, or disabled and grayed. Details
    Page Label
    Gets the label of a tab control page. Details
    Page Visible
    Shows or hides individual pages of a tab control. Details
    Tab Caption
    Gets or sets the text of a caption on a tab control page. Details
    Tip Strip
    Gets or sets the tip strip of a tab control page. Details
    Moreover, I can select a tab lable on the FP, change its font and EACH tab lable changes to the SAME font and color. 
    Must be some serious MAGIC in the background similar to how NI made Latching Bools.
    Champions?
    Jeff

  • Tab page label color changes between 9.0.4 and 11.1.2

    In Forms 9.0.4, all of my Tab Page Labels were in a black font. When I migrated to version 11.1.2, they are now in a white font. How can I force the font on the tab page labels to be black?
    I tried setting foreground color on the Tab Page to be black, but that didn't help.
    I also tried setting a visual attribute on the Tab Page to one that had a black foreground color, but that also didn't help.
    Any suggestions will be much appreciated.

    I was able to solve the problem by changing the text color directly in the Layout Editor (with the color pickers at the bottom of the left hand toolbar), rather than using the property palette to set this.
    Edited by: cindyconlin on Mar 21, 2013 10:43 AM

Maybe you are looking for

  • Why can't I use face time on iPad 2 with 3g iOS 6.0.1

    why can't I use face time on ipad2 with 3g and ios 6.0.1

  • Installed ios 5 now have 5g of other content

    installed ios 5 and when it was finished my phone had 5g of other content which i can't get rid of. I have unchecked sync's etc but still no luck.

  • Need help with receiving offline form in GP

    I'm new to GP and interactive forms on EP 7.0 SP15 and running into a problem with submitting an offline form and GP starting the process.   The examples were followed on how to set up the callable object with an interactive form.  I've got the form

  • URL opening in the same window in Favourites..

    Hi All In Oracle Applications Responsibilites navigator window, if i clicked on a URL in the favourites, its opening the URL in the same window. How to make it open in a new window? Thanks Rahman

  • Registration key does not work

    I purchased Quicktime Pro 7 and entered my reg. key in Quicktime Player. It does not change to Quicktime Pro. I checked my reg. key with Apple and it shows my original purchase and the same key. Am I missing something or do I need to remove Quicktime