LOV of sub-tab names

Hi
I'm trying to include a page to submit bugs in my app and I'd like to include LOVs for the tab and sub-tab names, since the users never see the page numbers. Anyone know how I can query for them in my LOV definitions?
Thx
Derek

As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
So, if your report headings are stored in table t that function body can be
declare
l_headings varchar2(4000)
begin
for rec in (select heading from t) loop
   l_headings := l_headings||':'||rec.heading;
end loop;
return ltrim(l_heading,':');
end;Hope this helps.

Similar Messages

  • How to get names of sub tabs?

    Hi All,
    Could someone tell me how to get names of all sub tabs?
    I have Parent Tab T1. T1 has 3 sub tabs T1_1, T1_2 and T1_3.
    I would like to have T1_1, T1_2 and T1_3 sub tab names in the list.
    Thanks in advance!!
    Dip

    Dip,
    You can get the tab names from apex dictionary views, apex_application_tabs & apex_application_parent_tabs . Thanks.
    Regards,
    Manish

  • Sub Tab navigation on clicking LOV

    I need to create an LOV for an employee name. Based on the employee selected from LOV employee details should be specified in 2 tabs.
    Please help me that how this can be done.

    Hi,
    you create a data bound table/form in the sub-tabs, and when the user changes the value of the LOV, you use a value change listener to query the user data based on the selecton. Use PPR to refresh the tabs. Sorry, but your problem description does not give more hints of what you are looking for
    Frank

  • Can not update tab if its not the default sub-tab.

    Can not update tab if its not the default sub-tab.
    JDeveloper Version 10.1.2.1.0 (Build 1913)
    Hi. I have a problem with a “lovOpenWindowAction”
    The UIX is created with a master UIX and have several sub-tab that is included as UIX-pages.
    The lovOpenWindowAction lies in the included UIX-page
    The sub-tab I have a problem with has a table with users. Then I have a “Create New” button than I want to click on and select a new user that should be included in the table in the sub-tab.
    When I click on the button I open a LOV-window. Here I select the user that I want to add.
    In the LOV Action-class I save my new value in the database. Then in the method “onLovUpdate” I update the iterator with the new values from the database.
    But in my GUI the subtab is not updated until I click on it.
    But if I make the subtab the default subtab then it all works just fine and the GUI is updated directly.
    Here is the code for the tableAction in the subtab. This code lies in an included UIX-page. Target is the table id.
    <tableActions>
    <button text="Create New" id=" createNewRollperson" accessKey="N">
    <primaryClientAction>
    <lovOpenWindowAction destination="FiskeRollpersonerLOV.do"
    source=" createNewRollperson "
    targets="joinedRollpersfiskeer message"/>
    </primaryClientAction>
    </button>
    </tableActions>
    Here is some code from the master UIX-page
    <subTabLayout id="flikar">
    <subTabs>
    <subTabBar selectedIndex="${ui:defaulting(param.index,0)}">
    <contents>
    <link id="resorFlik" text="Resor"
    disabled="${sessionScope.fiske.id == null}"
    selected="${(param.source == 'resorFlik') or empty param.source}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="resorFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    <link id="rollpersonerFlik" text="Rollpersoner"
    disabled="${sessionScope.fiske.id == null}"
    selected="${param.source == 'rollpersonerFlik'}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="rollpersonerFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    </contents>
    </subTabBar>
    </subTabs>
    <contents>
    <switcher childName="${param.source}"
    defaultCase=”ResorFlik">
    <case name="resorFlik">
    <include node="${ctrl:parsePage(uix, 'includes/ResorFlik')}"/>
    </case>
    <case name="rollpersonerFlik">
    <include node="${ctrl:parsePage(uix, 'includes/FiskeRollpersonerFlik')}"/>
    </case>
    </switcher>
    </contents>
    </subTabLayout>
    What am I missing?? I can’t have this subtab as the default subtab! Please help me with a solution!

    hi,
    Change the condition type to manual entry.
    or
    for example delivery costs will be different at the time of PO and actual delivery costs then at the time of invoice we select planned delivery costs and settle them first with the actual delivery cost.
    Thanks & Regards,
    Kiran

  • In excel sheet tab name is not coming-urgent

    hi all,
    one small rewquirement. if u run this test program it opens a excel sheet which contains signle tab. here tab name is not coming. i dont no hot to display tabname here.anybody can  make the changes and send me the code.
    i am sending my code below.
    thanks,
    maheedhar.t
    REPORT  ytestvij MESSAGE-ID zv.
    TABLES sscrfields.
    TYPE-POOLS: icon.
    TYPES : BEGIN OF zfnames_ds,
            reptext TYPE reptext,
            END OF zfnames_ds.
    TYPE-POOLS ole2 .
    DATA: wa_fntxt TYPE smp_dyntxt.
    DATA : wa_t75_booking TYPE zvt75_booking_h,
            t_t75_booking TYPE STANDARD TABLE OF zvt75_booking_h.
    DATA : wa_fields TYPE dfies,
            t_fields TYPE STANDARD TABLE OF dfies.
    DATA : wa_fnames TYPE zfnames_ds,
            t_fnames TYPE STANDARD TABLE OF zfnames_ds.
    handles for OLE objects
    DATA: h_excel TYPE ole2_object,        " Excel object
          h_mapl TYPE ole2_object,         " list of workbooks
          h_map TYPE ole2_object,          " workbook
          h_zl TYPE ole2_object,           " cell
          h_f TYPE ole2_object.            " font
    DATA  h TYPE i.
    DATA : lin TYPE i.
    data: excel       type ole2_object,
          application type ole2_object,
          books       type ole2_object,
          book        type ole2_object,
          sheet       type ole2_object,
          cell        type ole2_object,
          column      type ole2_object.
    PARAMETERS : p_input TYPE localfile.
    Add button to application toolbar
    SELECTION-SCREEN FUNCTION KEY 1.  "Will have a function code of 'FC01'
    INITIALIZATION.
    Add displayed text string to buttons
      wa_fntxt-icon_id = icon_xls.
      wa_fntxt-icon_text = 'Input File template'.
      wa_fntxt-quickinfo = 'T75 Header Data'.
      sscrfields-functxt_01 = wa_fntxt.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
    do nothing
        PERFORM open_excel.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
      PERFORM get_filename USING p_input.
    START-OF-SELECTION.
    *set pf-status 'ONE'.
    END-OF-SELECTION.
      WRITE : lin.
    *&      Form  GET_FILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM get_filename USING p_file TYPE rlgrap-filename . "localfile.
      DATA : w_rc TYPE i.
      DATA : wa_file_table TYPE file_table ,
              t_file_table TYPE STANDARD TABLE OF file_table.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
       EXPORTING
         WINDOW_TITLE            =
         DEFAULT_EXTENSION       =
         DEFAULT_FILENAME        =
         FILE_FILTER             =
         INITIAL_DIRECTORY       =
         MULTISELECTION          =
        CHANGING
          file_table              = t_file_table[]
          rc                      = w_rc
         USER_ACTION             =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT t_file_table INTO wa_file_table.
        p_file = wa_file_table-filename.
      ENDLOOP.
    ENDFORM.                    " GET_FILENAME
    *&      Form  open_excel
          text
    -->  p1        text
    <--  p2        text
    FORM open_excel.
    SELECT * FROM ZVT75_BOOKING_H
              INTO TABLE t_t75_booking
              UP TO 10 ROWS.
    start Excel
      CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
      PERFORM err_hdl.
      SET PROPERTY OF h_excel  'Visible' = 1.
      PERFORM err_hdl.
    get list of workbooks, initially empty
      CALL METHOD OF h_excel 'Workbooks' = h_mapl.
      PERFORM err_hdl.
    add a new workbook
      CALL METHOD OF h_mapl 'Add' = h_map.
      PERFORM err_hdl.
    output column headings to active Excel sheet
      PERFORM fill_cell USING 1 1 1 'Financial year'.
      PERFORM fill_cell USING 1 2 1 'Financial quarter'.
      PERFORM fill_cell USING 1 3 1 'Customer number'.
      PERFORM fill_cell USING 1 4 1 'Booking Year'.
      PERFORM fill_cell USING 1 5 1 'Financial quarter'.
      PERFORM fill_cell USING 1 6 1 'Contract type'.
      PERFORM fill_cell USING 1 7 1 'Sub Contract type'.
      PERFORM fill_cell USING 1 8 1 'Customer purchase order number'.
      PERFORM fill_cell USING 1 9 1 'Booking Amount'.
      PERFORM fill_cell USING 1 10 1 'Currency Key'.
    LOOP AT t_t75_booking into wa_t75_booking.
    copy items to active EXCEL sheet
       H = SY-TABIX + 1.
       PERFORM FILL_CELL USING H 1 0 wa_t75_booking-BOOKYEAR.
       PERFORM FILL_CELL USING H 2 0 wa_t75_booking-BOOKQTR.
       PERFORM FILL_CELL USING H 3 0 wa_t75_booking-.
       PERFORM FILL_CELL USING H 4 0 wa_t75_booking-BOOKYEAR.
       PERFORM FILL_CELL USING H 5 0 wa_t75_booking-BOOKQTR.
    ENDLOOP.
    disconnect from Excel
      FREE OBJECT h_excel.
      PERFORM err_hdl.
    ENDFORM.                    " open_excel
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM err_hdl.
    data test type sy-subrc.
    test = sy-subrc.
      IF test <> 0.
         Message e000(ZV) with 'Error in OLE-Automation:'.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM fill_cell USING i j bold val.
      CALL METHOD OF h_excel 'Cells' = h_zl EXPORTING #1 = i #2 = j.
      set property of sheet 'Name'  = 'T75'.
      PERFORM err_hdl.
      SET PROPERTY OF h_zl 'Value' = val .
      PERFORM err_hdl.
      GET PROPERTY OF h_zl 'Font' = h_f.
      PERFORM err_hdl.
      SET PROPERTY OF h_f 'Bold' = bold .
      PERFORM err_hdl.
    ENDFORM.

    Hi,
    Look at the below thread, i posted complete code in this one, just copy that Program and past in your SAP and run the Program, it will create 3 sheets with the names also, then look at the Sheet name in the code, you will understand where to add the code
    Re: format an excel
    Regards
    Sudheer

  • Getting tab name or tab id or tab label at runtime

    Hi All,
    I think the answer is "no" but I'm going to ask anyway just in case I missed something.
    I am designing some authorization schemes for my application. The context behind the design is this:
    1. Two-level tabs application.
    2. Access is stored in a table where an assignment between a level 2 tab is assigned to a user (well, it's really assigned to groups of users but that's not that important for this question). The level 2 tab is assigned via a select-list LOV defined as:
    select
    tab_label d,
    tab_id r
    from apex_application_tabs
    where application_id = :APP_ID
    and workspace = :OWNER
    order by 1
    So I store the TAB_ID of the 2nd level tab and it's assigned to groups of users.
    So what I'd like is this at runtime:
    1. For page-level security, I read the Apex data dictionary and pass APP_PAGE_ID to a function that reads the page number. I traverse the tab hierarchy in APEX_APPLICATION_TABS to see if the APP_PAGE_ID resides in TAB_PAGE or TAB_ALSO_CURRENT_FOR_PAGES to get the TAB_ID. Then I check my own assignment table to see if that TAB_ID is accessible to the user. If so, return TRUE, else, return FALSE. This is working wonderfully and isn't a problem...at runtime if I navigate to a page that is on a 2nd level tab and I don't have access to the page, the security scheme errors (correctly).
    2. For tab-level security, I want that at the parent tab level that if the user has access to one or more of the 2nd level child tabs, display the parent tab.
    3. For tab-level security, if the user is on a parent tab (because he/she has access to at least one child tab), only show the child tabs to which they have access.
    Now the problem(s). The thing is that the user sees the tabs before they navigate to them (#2 and #3 I don't have working right now) and I want to hide them if they don't have access.
    For example, let's say my parent tabs are A, B, and C. Child tabs are A1, A2, A3 underneath A. B1, B2, B3 underneath B. C1, C2, and C3 underneath C.
    Let's say everything in A and underneath A (so A1, A2, and A3) are available to anyone who has a login to the application. No problem there.
    Then, let's say most or all users have access to B1 but fewer users have access to B2 and B3. What I want is that if anything from B is available to a user, show parent tab B. If the user clicks on parent tab B, then show B1, B2, and B3 but only show the tabs to which they have access (so if they have access to B1 and B2 but not B3, do not display B3).
    Then, let's say C is a very powerful administrative tab and very few people have access to it. I want to not-show C at all for people who do not have any access to C1, C2, or C3.
    The problem I have at runtime is that I cannot find a way for a tab to pass information about itself when the tab is about to paint (or not-paint). The only variable or substitution string at runtime that I can find to reference about a tab is "CURRENT_PARENT_TAB_TEXT". However this gives me only information about the parent tab's text of the parent tab that has focus right now; each parent tab cannot pass it's own info until I navigate there. I need to get that information w/o navigating to the tab first so that I can determine to show/hide the tab. Does that make sense? In other words, at runtime, I log into the system and let's say I'm not very powerful and should only be on tabs A1, A2, and A3 under A. I log in, I land on A1, and I can see A2 and A3 (good), but also I can see parent tabs B and C poking up there too. CURRENT_PARENT_TAB_TEXT does not resolve to B or C (it currently resolves to A) until I actually try to click on B or C. I need to hide B or C before the user clicks.
    Yes I can do it if I hard-code the name of the tab in a security boolean function, but I would have to have as many authorization schemes as I have tabs. This is why I want just one tab-level scheme where I pass the tab name or ID at runtime dynamically but I can't seem to reference it.
    Over in the template for two-level tabls I see #TAB_LABEL#, #TAB_NAME#, #TAB_ID#, and #TAB_LINK#. These don't seem to be available to PL/SQL to pass at runtime to a PL/SQL function. If they could, this would be my answer.
    Any other options or am I stuck on this one?
    BTW...we are on version 3.2 of Apex and going to version 4 soon. If something is available in 4 for this that helps, I can do it then.
    Ideas? Thanks!

    Hey gti_matt,
    Did you end up getting anywhere with this?
    I'm in the same boat atm...
    Thanks,
    Dan

  • Tabs tab name or tab id

    Hi
    I'm writing application with access control to several tabs there will be condition checking if user :APP_USER have access to selected tab. The point is how to get tab_name or tab_id. and use it in pl\sql function like I can use :APP_USER
    Or
    how can I do this without using tab_id
    Regards
    Jaroslaw

    CREATE OR REPLACE
    FUNCTION can_user_access_tab(p_user IN VARCHAR2
                                                    ,p_tab   IN VARCHAR2
    RETURN VARCHAR2
    IS
      ln_count number;
    BEGIN
      SELECT count(1) INTO ln_count
      FROM acces_tab_users
      WHERE username=p_user
      AND tab_name=p_tab;
      if (ln_count=0) THEN
         return 'N';
      else
        return 'Y';
    END;to each tab add a SQL expression condition
    can_user_access_tab(:APP_USER,'<tab name>') = 'Y'
    Note : <tab name> would be different for each tab , so you have to modify the conidtion for each tab with a new string that matches your table's(acces_tab_users)  tab_name column.
    If you want to use an authorization scheme which uses tabname and user , there is a substitution string named CURRENT_PARENT_TAB_TEXT that might work for you. But I couldn't find anything for the sub tab.
    In the authorization scheme that would be
    return can_user_access_tab(:APP_USER,:CURRENT_PARENT_TAB_TEXT) --function returns BOOLEAN in this caseI haven't used it, so can't provide any more info on this at the moment.
    Update
    Use Jari's method and pass :APP_USER and :APP_PAGE_ID to the authorization scheme. You would have to set up the tab access table based on the page number for this.
    Edited by: vee on Mar 3, 2011 3:45 AM

  • Dialog title to depend on tab name dynamically....

    Hi,
    I have an application which has a tab(Phones) and tab has a Jtable with some data.
    When i press Lookup button the first tab-Jtable loads .
    When i right click on a cell in the table, the corresponding row first coloumn value is shown through a dialog.
    Now in the dialog the title is "Shakin", i want the dialog title to be dynamic depending on the tab(name) it is clicked i.e it depends on the tab names (like in this case Phones).
    If someone click a cell in table of first tab(Phones) then the dialog title should also be Phones.
    In future if i add more tabs then each tab would have dialog and each dialog title would depend on each corresponding tab name.
    Can somebody suggest be what to do?
    Below is the code....
         package alignment;
    * @author K
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.util.Arrays;
    import java.util.Vector;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTabbedPane;
    import javax.swing.JTable;
    import javax.swing.event.TableModelEvent;
    import javax.swing.table.DefaultTableModel;
    public class TestJava extends JFrame {
         DefaultTableModel mtm;
         JTabbedPane tabbedPane = new JTabbedPane();
         JPanel phones = new JPanel();
         JScrollPane scroller = new JScrollPane();
         JPanel p = new JPanel(new BorderLayout());
         JPanel topPanel = new JPanel();
         JButton lookup = new JButton("Lookup");
         JTable table = new JTable();
         Dbi di;
         String[] columnNames = { "full name", "HP-URL", "address" };
         Vector cnv;
         Vector dbResult;
         public TestJava() {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              mtm = new DefaultTableModel(columnNames, 2);
              cnv = new Vector<String>(Arrays.asList(columnNames));
              table = new JTable(mtm);
              final JOptionPane pane = new JOptionPane("", JOptionPane.PLAIN_MESSAGE,
                        JOptionPane.INFORMATION_MESSAGE);
              final JDialog d = pane.createDialog(null, "Shakin'!");
              d.setModal(false);
              d.pack();
              table.addMouseListener(new MouseAdapter() {
                   public void mouseClicked(MouseEvent me) {
                        if (me.getButton() == me.BUTTON3) {
                             int row = table.rowAtPoint(me.getPoint());
                             Object value1 = table.getValueAt(row, 0);
                             // JOptionPane.showInputDialog(value1,"Value is " + row);
                             pane.setMessage(value1);
                             if (!d.isVisible())
                                  d.setVisible(true);
              scroller = new JScrollPane(table);
              topPanel.add(lookup);
              phones.add(scroller);
              tabbedPane.addTab("Phones", phones);
              p.add(topPanel, BorderLayout.NORTH);
              p.add(tabbedPane, BorderLayout.CENTER);
              setContentPane(p);
              pack();
              di = new Dbi();
              lookup.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        fetch();
                        table.tableChanged(new TableModelEvent(table.getModel()));
                        if (pane != null) {
                             pane.setMessage("");
                        table.repaint();
         public void fetch() { // time-consuming task should be run
              Thread t = new Thread() { // in a separate thread
                   public void run() {
                        dbResult = di.getQueryResult("QUERY!!!!!");
                        mtm.setDataVector(dbResult, cnv);
              t.start(); // actionPerformed() immediately returns, not blocking GUI
         public static void main(String[] args) {
              TestJava frame = new TestJava();
              frame.setVisible(true);
    class Dbi { // make it a separate public class
         public Vector<Vector> getQueryResult(String query) {
              Vector<String> v1 = new Vector<String>();
              Vector<String> v2 = new Vector<String>();
              Vector<String> v3 = new Vector<String>();
              Vector<String> v4 = new Vector<String>();
              v1.addAll(Arrays.asList(new String[] { "Tim Marshall",
                        "http://tim.marshall/", "Never never land" }));
              v2.addAll(Arrays.asList(new String[] { "Com Commercial",
                        "http://com.comcom/", "Land of gold" }));
              v3.addAll(Arrays.asList(new String[] { "Love Lovable",
                        "http://love.neverhate/", "Sun lotus state" }));
              v4.addAll(Arrays.asList(new String[] { "War Monger",
                        "http://war.momongers/", "Fire and ice city" }));
              Vector<Vector> v0 = new Vector<Vector>();
              v0.add(v1);
              v0.add(v2);
              v0.add(v3);
              v0.add(v4);
              return v0;
    }Thanks

    Use a ChangeListener, it fires every time a new tab is selected.

  • Tab name change in Puchase Order

    Hi,
    We have added some fields to Purchase Order Customer Sub screen. This added a new tab called "Customer Data" to the transaction. Now I want to change this tab name to something else. Please let me know how can I do that.
    There is a similar thread where it was solved but no information on how to do that.
    Re: How to change  "Customer Data" tab name to some other text in PR(ME52N)?
    Thanks

    Hi
    If you are using the BADI 'ME_GUI_PO_CUST'. then in "IF_EX_ME_GUI_PO_CUST~SUBSCRIBE".
    Assign ls_subscriber-label = Tab Name.
    http://wiki.sdn.sap.com/wiki/display/ABAP/DetailedexplanationaboutBADIandthewaystofindtheBADIwithanexample%28ME23n+transaction%29
    If you are using the customer exit method then, goto SE38 and enter the program name SAPLXM06 (This can be modified for certain change) and select the logon language changes
    goto Text elements, enter 101 as text id and enter the details,
    and also enter text id 111, and enter the same details
    Save and Activate.
    Note : If you maintain the original language and maintain the text elements, then you will not get the changes in tab. So keep this in mind and change.
    I have maintained like this in my system
    101     Test
    111     Test
    To check whether the tab text is correct or not, set a break point in program LMEGUIU06 on line no 316 and check.
    Shiva

  • Disable a Sub-Tab in a SubTab Layout Reagion

    Hi OAF Gurus,
    I have a page having sub-tab layout RN. Based on certain condition we need to disable (render but not clickable) some sub tabs.
    (____subtab1______ (__subtab2 (made read Only)_____ (___subtab3_______
    So the user can now navigate to subtab1 and subtab3 but he/she cannot click on subtab2
    The Sub tab regions do not have "Read Only" property defined in JRAD(where I thought to put a SPEL) nor I could find any API to do it via code. May be I missed something.
    Please help me achieve this.
    Thanks
    Chaitanya

    Chaitanya,
    Set the render property of the container region inside the required subtab to false. The subtab header name is a link by default, hence you can't stop it from being clickable or have a look at javadoc to see if some api exists.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to dashboard tab name

    Hi,
    My dashboard has 10 tabs (pages). 5 of them are main tabs which are shown all the time. The rest of the tabs are sub-tabs and hidden so user don't get confused. When user navigate to a sub-tab via a link in main tab, I'd like to show the tab name up next to the dashboard name. Something like
    myDashboard -> myTab
    Is there a way to do this?
    Thank you in advance for your ideas.

    You will have to write a VBScript to achieve what you want.
    Here is an example. This VBScript returns the name of the first tab:
         Set XLHandle = CreateObject("Excel.Application")
         XLHandle.DisplayAlerts = False
         Set XLBook = XLHandle.WorkBooks.Open("<path>\<file>.xls")
         Set XLSheet = XLBook.Sheets.Item(1)
         wscript.echo XLSheet.Name
         XLBook.Save
         XLBook.Close
         XLHandle.Quit
         Set XLSheet = Nothing
         Set XLBook = Nothing
         Set XLHandle = Nothing
    Call the script tab.vbs from within your DS script and assign the result to a global variable.
         $TabName = exec( 'cmd','cscript //nologo C:\\Users\\Administrator\\Documents\\BI4B\\tab.vbs',0);

  • Adding Sub tabs

    Hi,
    I want to implement sub tabs so I followed your one your previous answer.
    I have tried to add a new collection within TabProperties in the JSPTabContainer. It gives me an error message saying "An error occurred while processing this request. Please contact your administrator."
    Could you please help me in this.
    Thanks
    Tara

    Hi Tara,
    Typically your starting tab container maybe a JSPTabContainer ..
    To add a tab within a tab, you need to have another tab container say Tab1. Now you call that tab container (Tab1) within JSPTabContainer.
    Within the TabProperties of JSPTabContainer you will have something like below ...
    <Collection name="TabProperties">
    <Collection name="Tab1">
    <String name="title" value="Nested Tabs"/>
    <String name="desc" value="Tabs Within Tabs"/>
    <Boolean name="removable" value="false"/>
    <Boolean name="renamable" value="true"/>
    <Boolean name="predefined" value="true"/>
    </Collection>
    </Collection>
    So basically you replace an existing table container with the tab container Tab1. If you haven't created another tab container, see JSPTabContainer and create another one similar to that called Tab1.
    HTH ..

  • [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

    The new version of Guake (0.4.3) implemented 'Better Tab Titling'.  This means that instead of a new tab name being 'Terminal #' (where # is an auto incrementing integer), it instead forced the title to be equal to the VTE prompt.
    My issues were that there was no way to set a preference to switch back (as I prefer the simple tab name) and that tab names could/would take a very large amount of space (as it would put my whole username@server:/path/to/where/i/am/at).
    So   I figured out how to fix and thought I'd share in case anyone else would like to switch back:
    NOTE:  I believe python is spacing-sensitive (please correct me if I'm wrong).  All the lines (added/edited) are indented 8 spaces.
    edit /usr/bin/guake
    find: self.selected_tab = None
    after that line, add:
            # holds the number of created tabs. This counter will not be
            # reset to avoid problems of repeated tab names.
            self.tab_counter = 0
    find: def on_terminal_title_changed(self, vte, box):
    after that line add:
            return
    find: Adding a new radio button to the tabbar
    the next line will read:
            label = box.terminal.get_window_title() or _("Terminal")
    change to:
            label = box.terminal.get_window_title() or _('Terminal %s') % self.tab_counter
    find self.tabs.pack_start(bnt, expand=False, padding=1)
    after that line add:
            self.tab_counter += 1
    After editing the file, restart Guake for the change to take effect.
    Beemer

    I have been using Guake for years and I think the tab bar is in the way. I disabled it a very long time ago and didn't look back.
    Here are the shortcuts that I use:
    "~" to toggle it.
    Ctrl+T for a new tab (just like in Firefox, Chromium).
    F1 and F2 for next and previous tab.
    F3 close tab.
    Basically, I don't need more than two tabs at a time; three tops, in very rare cases.
    Hope it helps.

  • Index.html pages in local sub-directories will not load automatically when sub-directory name entered into address field, followed by a forward-slash

    I am in the process of designing a website-on-a-CD. In order to make things easier for my clients, I decided to organize this site into local sub-directories with an index.html page in each one. However, when I try to enter the local sub-directory name, followed by a forward-slash, the index page does not open automatically. Instead, I get a raw directory listing that includes the index.html file, and anything else that is present within it. I would like to know if there is any way to force this page to load automatically within Firefox from a local storage medium as it would load from a web-server.

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • How to get current tab name or tab id or related info?

    Hi ,
    I would like to hide/show tabs according to users' page privileges list. So I need get current tab ID or tab Name in runtime environment to know if show/hide it for current user. :APP_USER
    Could you please provide any info about this requirement? Or do you have alternative method to control tabs' hide/show?
    thanks
    Ruiping

    最爱用中文 wrote:
    Hi Jari,
    Thanks for your info. Even if set authorize schema to tabs, I still need to get the relationship between "current tab" and "privilege&users". So I think evrm's hard-code method above is avaliable.I agree with Jari: APEX provides Authorization schemes specifically for this purpose. You need to reverse your thinking on how to implement this.
    For more information consult the documentation on APEX security, specifically using authorization schemes to restrict access to pages and control rendering of components.
    Tutorial: Adding Security to your Database Application (APEX 4.0)
    Use Authorization Schemes to control access/rendering for security ("only managers see/access this page and it's associated tab"); and Conditions to control rendering for functional reasons ("region only displayed if account is in arrears").
    Authorization Schemes have the benefits of being reusable, performing better, and allowing central maintenance of security-related code. This makes it easier to change the implementation&mdash;say moving from role information held in database tables to groups defined in LDAP.
    I worked for a number of years with an application where authorization schemes are not properly used (decisions made before my involvement) and all security and business logic relating to rendering and processing is wrapped up in spaghetti code in conditions. It's impossible to maintain.
    It is of course advisable to make both authorization scheme and business logic condition code more reusable and maintainable by locating it in API packages.

Maybe you are looking for