Selected columns in listbox should only be shown....

Hey guys,
Here is my another question...:)
Our requirement is to show users two list boxes, one will have column names (that we gonna show in report) and other one will be empty. When user moves column names from filled listbox to second listbox and hit Run Report button, it should only show those that are selected in second list box. I've acheived this thing using checkboxes, but we wanna do it using list boxes.
Please let me know how can I achevie it. If it is not possible using list box what else is the way we can do it. Your help will be appreciated.
Thanks & Best Regards,
M.Ahmar Arshi

Hi Carl,
Thanks for helping me in my problem. The link you provided is really very helpful to accomplish first part of my problem. I have few questions about it;
First Part
First part is to get column names from filled list box to other select list box.
I am very novice to this tool, will you please explain me little-bit more about it. I saw your tool, it looks great.
In you post to gregrichard, you said "The Shuttle is basically 2 multi select items and a control is a Display as Text item. Make sure to set start on new line to false for those items and set the label to display above."
1. My question is, are they mutliple display controls or you are using only one. If multiple then why are we using t4Button for all functions (reset,move, remove,...) in HTML.
2. Where do we write HTML for Display controls, I mean if I am at Page Definition page were I will go to write this code. Also, please tell me what is t4Button class, how can we create this class.
Second Part
Second part is to show only those columns in report, that are selected in second list box.
I did this part by conditionally displaying report columns on the basis of whatever is selected in second list box. e.g. If second list box has only Empno, Ename then in report column attributes I have display-condition through which only Empno and Ename will be shown.
Since our database is very huge, so we need something more dynamic, we don't want to go and write display-conditions for every column. Do you think there is something we can use where we get report just by clicking stuff and we don't need to write these conditions.
Your help will be appreciated.
Thanks & Best Regards,
M.Ahmar Arshi

Similar Messages

  • Selected Column insert, delete and updation at replication end

    Hello,
    In GoldenGate, is there a way to get a timestamp column at target table to get updated for some selected columns from source table only. For eg.
    At source - Table Temp_Source , columns - Emp_Id (PK), Emp_Name, Department, Address
    At target - Table Temp_Target, columns - Emp_Id (PK), Emp_Name, Department, Last_Update
    The Last_Update column takes timestamp for last updation made at source table which is replicated at target end.
    Now I just want the changes made in EMP_Id, EMP_Name , Department columns to be replicated at target table and also the Last_Update to get updated for changes made in these columns only. The changes made in Address column should not affect Last_Update at target end.
    The extract or replication script for this should work for insert, update and delete scenarios for specified columns. Using COLS creates problem in insertion as it Abends the replication process.
    Is there any way I can achieve this functionality??

    At target end I have written the following code in Replication process -
    GetUpdates
    IgnoreInserts
    IgnoreDeletes
    Map <source table>, target <target table>, COLMAP (USEDEFAULTS, LAST_UPDATE = @IF((EMP_ID <> BEFORE.EMP_ID OR EMP_NAME <> BEFORE.EMP_NAME OR DEPT <> BEFORE.DEPT), @getenv("GGHEADER", "COMMITTIMESTAMP"),REFRESH_TIMESTAMP));
    But this code entertains only the Primary Key changes i.e. EMP_ID, I want the Last_update to get updated for changes in EMP_NAME and DEPT even but not for Address column change at source end.

  • How to export only selected columns of WD ALV to excel

    Hi,
    I have WD ALV report with EXPORT button (since standard button was not working properly i just hide that and added custom one) & standard dropdown to choose layout. Out of 20 columns user may choose n number of columns, the same number of columns i need to transfer to xls. How to export only selected columns to xls. Any method or FM to filter number of columns being transfer to xls. please advise
    Rgds
    sudhanshu

    Hi,
    Where exactly we are (or going to be) using this reference i.e., CL_SALV_WD_CONFIG_TABLE. Im passing contents, filename & MIME type as:
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          TEXT   = TEXT
        importing
          BUFFER = XTEXT.
    WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
    **path to the word file
        I_FILENAME = 'WDP.xls'
    String Variable
        I_CONTENT =  XTEXT
    File Type
        I_MIME_TYPE = 'EXCEL' ).
    In CL_SALV_WD_CONFIG_TABLE we have few methods related to column settings however not sure where exactly we will be using this class reference. can you please give some idea so that i can do some r&d in that.
    Rgds
    Sudhanshu

  • How to display only selected columns in the table on the tableview

    Hi All,
    I am displaying in the below tableview the data from the SFLIGHTS tables in the tableview using flow logic. It displays all the columns in the database table. How can I set in the code to display only selected columns and not all columns.
    Also, in these columns displayed I want to make the key columns of SFLIGHT as non editable and the rest of the columns in SFLIGHT editiable. Can you please kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Hi,
       Please try this code.
    <!-- To display Table control on BSP page with table internal table it_hist  --!>
              <htmlb:tableView id              = "TV_HIST"
                               headerText      = "Previous History"
                               headerVisible   = "TRUE"
                               footerVisible   = "TRUE"
                               design          = "ALTERNATING"
                               selectionMode   = "LINEEDIT"
                               visibleRowCount = "5"
                               fillUpEmptyRows = "TRUE"
                               table           = "<%= it_hist %>"
                               width           = "500" >
    <!--  to show selected columns give required field name --!>
    <htmlb:tableViewColumns>
      <htmlb:tableViewColumn columnName          = "FIELD1"
                                         title               = "COLUMN1"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD2"
                                         title               = "COLUMN2"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD3"
                                         title               = "COLUMN3"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
    <!--  to make column editable set edit property to TRUE --!>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         edit = "TRUE"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>

  • Display selected columns only

    Hello,
    I have a question about Dashboard Design 2013. Lets say I have several columns in excel: A, B, C, D. I want to be able to display only selected columns, such as AB, ACD, BC etc. How can I achieve this?
    Thank you for your time and help.
    George

    Hi GG,
    You can achieve this in two ways.
    1. Create series and map those series for specific column like if you need A & C, then pick only A & C or A & B whatever you require.
    2. Map all your series to the charts, then use the "enable hide/show chart series at run time."
    This can help you remove the series for any specific analysis.

  • Interactive Report - Include Non-selected Column in Row Text Search

    Hi,
    We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000).
    Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), however we need the default Row Text Search (ie direct entry into the search field instead of creating a column filter) to search the DESCRIPTION field wether it is selected for display or not.
    This will allow the user to enter a term that may be contained in the DESCRIPTION to find records without trying to display a 4000 character field in the report - which just looks horrible.
    We are using ApEx 4.1.1.
    Thanks,
    Martin Figg

    Hi Ray,
    As I expected this has got us very close. We went with the code:
    select
    facility_id,
    facility_name,
    '<span title="' || facility_desc|| '">'||substr(facility_desc,0,50)||decode(sign(length( facility_desc)-50),1,' (More...)',NULL)||'</span>' facility_desc,
    equipment_id,
    equipment_name,
    '<span title="' || equipment_desc|| '">'||substr(equipment_desc,0,50)||decode(sign(length( equipment_desc)-50),1,' (More...)',NULL)||'</span>' equipment_desc,
    from
    rf_full_item_list_vwhich works well. The only issue is that when you download to csv you get the html tags etc as well. Put I am a lot closer to a solution than we were.
    Thanks again.
    Martin

  • In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    This is one of those things that I find really strange about Numbers 3. The control for what you want to do is not where anyone would expect to find it.
    Select the Chart
    Click on Edit Data References
    Look at the bottom left corner of the Numbers window. It should say "Plot Columns as Series" or "Plot Rows as Series"
    Click on it and change it to the other

  • User should only work on created Form

    Hi all!
    Here is my problem.
    A user is working in B1. For example:With a double_klick on a Textfield and a user created Form will be shown.
    No the User should only work with this Form until its closed! There should be no possibility to open an other form or so.
    Like if you get a MessageBox, there is no other "normal" way to work on until you close this Messagebox.
    May it is possible to let the Form act like such a Messagebox.
    Thanks for replies..
    Matthias

    The Sample you speak of show the hack/workaround (Not true modal functionality).
    From the sample:
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' Don't let the user to move to other forms
            Dim EventEnum As SAPbouiCOM.BoEventTypes
            EventEnum = pVal.EventType
            If bModal And FormUID <> "Modal" Then
                oForm.Select() ' Select the modal form
                BubbleEvent = False
            End If
            ' If the modal from is closed...
            If FormUID = "Modal" And (EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE) And bModal Then
                bModal = False
            End If
        End Sub
    In the sample the bModal bool set to true when opening the form block all events by selecting the modal form on each event and setting bubbleevent to false.. the EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE set the bModal to false so events can continue
    Biggest problem with this is if you use a eventfilter (which you should do)... here you need to remove the event filter along with setting the BModal (not in the sample), and reapply it after form close.
    <i>Kind Regards
    Rasmus Wulff Jensen | http://www.b1up.net</i>

  • Value based hierarchies and Period dimension should only contain  2  monthl

    Hi,
    Can anyone tell me what is value based hierarchies. And also can anyone let me know to filter the records in AWm because in Period dimension should only contain 2 monthly values (Oct. 2008 ( 200810) and Sep. 2008 ( 200809)) it is urgent.
    Thanks
    vel

    The following definition of a value hierarchy comes from the OLAP Developers guide
    "A hierarchy defined only by the parent-child relationships among dimension members. The dimension members at a particular distance from the base level do not form a meaningful group for analysis, so the levels are not named. For example, an employee dimension might have a parent-child relation that identifies each employee's supervisor. However, levels that group together first-, second-, and third-level supervisors and so forth may not be meaningful for analysis."
    Typically this means that the source table has two columns, VALUE and PARENT, where PARENT has a (logical) foreign key relationship to VALUE. An example may be EMPLOYEE, MANAGER, where MANAGERs are also EMPLOYEEs.
    The simplest way to restrict the values loaded into the AW is to define a SQL view over the source table with an appropriate WHERE condition. You then use AWM to map the dimension to your new view. E.g.
    CREATE OR REPLACE VIEW RESTRICTED_TIME AS
    SELECT *
    FROM TIME
    WHERE MONTH IN (200810, 200809)

  • Selecting columns which have data in it

    I have tables with more than 300 columns and most of the columns does not contain any data. Could anyone suggest a sql statement to select only those columns which has data atleast for one of the rows ?
    Thanks,
    Sachin
    null

    The following script combines some of the ideas from the responses above, so that all you should need to do is run this one script to select the data from only those columns that have data in at least one row, skipping the columns that don't have data in any of the rows.
    The script will prompt you for the name of the table for which you want to select the columns. Then it will analyze that table, which will update the num_nulls column of the all_tab_columns table regarding your table. Then it will use that information to select the proper columns which will be spooled to another file called list_not_nulls2.sql.
    The file list_not_nulls2.sql that this script creates will contain the select statement that will include only the not null columns that you are looking for. The script will then automatically run that script containing the select statement for you.
    Please let me know if you have any difficulties using or understanding it.
    Barbara
    SET ECHO OFF
    SET FEEDBACK OFF
    SET HEADING OFF
    SET PAGES 0
    SET TIMING OFF
    SET VERIFY OFF
    ACCEPT name_of_table PROMPT 'Enter name of table: '
    SET TERMOUT OFF
    ANALYZE TABLE &name_of_table COMPUTE STATISTICS
    SPOOL list_not_nulls2.sql
    SELECT 'SELECT '
    FROM DUAL
    SELECT COLUMN_NAME &#0124; &#0124; ','
    FROM ALL_TAB_COLUMNS
    WHERE TABLE_NAME = UPPER ('&name_of_table')
    AND NUM_NULLS <> (SELECT COUNT (1) FROM &name_of_table)
    AND COLUMN_ID < (SELECT MAX (COLUMN_ID)
    FROM ALL_TAB_COLUMNS
    WHERE TABLE_NAME = UPPER ('&name_of_table')
    AND NUM_NULLS <> (SELECT COUNT (1) FROM &name_of_table))
    SELECT COLUMN_NAME
    FROM ALL_TAB_COLUMNS
    WHERE TABLE_NAME = UPPER ('&name_of_table')
    AND NUM_NULLS <> (SELECT COUNT (1) FROM &name_of_table)
    AND COLUMN_ID = (SELECT MAX (COLUMN_ID)
    FROM ALL_TAB_COLUMNS
    WHERE TABLE_NAME = UPPER ('&name_of_table')
    AND NUM_NULLS <> (SELECT COUNT (1) FROM &name_of_table))
    SELECT 'FROM ' &#0124; &#0124; '&name_of_table' &#0124; &#0124; ';' FROM DUAL
    SPOOL OFF
    SET ECHO ON
    SET FEEDBACK ON
    SET TERMOUT ON
    SET VERIFY ON
    START list_not_nulls2
    null

  • How do I restrict multicolum​n listbox to only two colums

    HI
    I wanted to have a Multicolumn Listbox with only 2 visible colums and no horizontal scrollbar in order to make it look like a regular listbox only with 2 columns? can I get make the column and row borders invisible?

    Righ-click on it and select "properties". On the apperance tab uncheck the vertical and horizontal scroll bars and select 2 columns and the desired number of rows.
    To make the grid lines invisible, right-click and select "visible items" and uncheck horizontal and vertical lines as desired.
    (On much older LabVIEW versions some of this might be different. What version do you have?)
    LabVIEW Champion . Do more with less code and in less time .

  • Get selected values from Listbox control

    Hi All,
    I'm still new to SL so please bear with me.
    I have a ListBox being bound with some records from a DB.  Here's the xaml:
    <ListBox x:Name="lstClassSeries" SelectionMode="Multiple" DisplayMemberPath="Description" Grid.Row="11" Grid.Column="1"></ListBox>
    What I need is to get the values of the items that were selected and I can't seem to get it to work.  I've tried looping through the SelectedItems but there's no property for value or text.  I even tried to cast the item as a ListBoxItem but I
    get the following error:
    Unable to cast object of type 'UI.Silverlight.TransactionService.DTODropDown' to type 'System.Windows.Controls.ListBoxItem'.
    How can I get the values of the items selected?
    Thanks

    You're using windows forms style techniques with xaml.
    This is a bad idea.
    You ought to learn MVVM.
    You probably don't think you want to learn it, but trust me on this one.
    Learn MVVM as soon as you can.
    There's a selecteditems collection.
    You have to cast   to listboxitem, it has a content property which you cast to whatever you put in there originally.
    Here's a snippet.
    I have a class foo, load a bunch of them in.  Do stuff. Work out what's selected in the click event of a button.
    public class foo
    public int id {get;set;}
    public string description {get;set;}
    public partial class MainPage : UserControl
    public MainPage()
    InitializeComponent();
    lb.Items.Add(new ListBoxItem{Content=new foo{ id=1, description="a"}});
    lb.Items.Add(new ListBoxItem { Content = new foo { id = 2, description = "b" } });
    lb.Items.Add(new ListBoxItem { Content = new foo { id = 3, description = "c" } });
    private void Button_Click(object sender, RoutedEventArgs e)
    List<foo> selectedfoos = lb.SelectedItems.Cast<ListBoxItem>().Select(x=>x.Content as foo).ToList();
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Two separate calculated columns - results show up only in one of them

    Hey,
    I've recently run into some peculiar behaviour in OBIEE (Oracle Business Intelligence 11.1.1.7.0). I'm using three attribute colums (deliv. on time, ordered, backlog) to calculate a monthly service level. In addition I'm using a customer ID number to separate our customers into export and national customers. I've three calculated columns - Service Level Export, Service Level Total and Service Level National. I'm using a simple case-statement to distinguish between international and national customers (When custID between xxx and yyy then...). The total service level column doesn't have a case-if calculation, only a couple of simple mathematical operations and it works fine.
    Now the problem is that the results show up only in one of those calculated columns containing case-if calculations - not both at the same time. Using a prompt in a pivot table I can verify that both columns get proper values but when I remove the prompt half of the values randomly disappear from these columns so that only one of the columns has a value for a specific month. The calculations in all three columns are identical - the only difference is that Serv. L. Exp. exludes a spesific CustID whereas the Serv. L. Nat. only includes that one CustID.
    Example - both Serv. L. Exp and Serv. L. Nat should have values for every month, now only one of them gets values
    Month          Serv. L. Exp.               Serv. L. Nat.               Total Serv. L.
    01                         15 %                                                       15 %
    02                         17 %                                                       17 %
    03                         13 %                                                       13 %
    04                                                          20 %                      20 %
    05                                                          22 %                      22 %
    I've a few months of OBIEE experience under my belt so I'm not that experienced but usually I've been able to figure out what's wrong on my own. This time, however, this leaves me dumbfounded. Any help or advice would be much appreciated.
    Regards,
    Silver

    Hi,
    Serv.L.Nat is calculated 100 * INVOICED / (ORDERED + DELAYED). For National Service Level the case statement (including the calculations) is as follows (the inner CASE limits the Serv.L.Nat per cust to a range of 0 - 100 %):
    CASE WHEN "fact"."CustID" = 100001 THEN (
         CASE WHEN Serv.L.Nat > 100 THEN 100
         WHEN Serv.L.Nat < 0 THEN 0
         WHEN Serv.L.Nat IS NULL THEN 0
         ELSE Serv.L.Nat
         END)
    END
    For Export the sql is exactly like the one above, barring the reversed condition.
    Regards,
    Silver
    PS. The above is a burst of pseudoSQL so don't mind the typos, the actual code is tested to work as intended... barring the fact that something's wrong with getting the values to appear.

  • How to export selected columns in a table using expdp of oracle10g

    Hi all..
    I have a table with 10 columns and i want to export only 4 columns(selected columns) data using expdp
    Pl. tell me if we can do this and if yes what is the syntax.
    Thanks..
    Sekhar

    That's not possible, you could use QUERY to specify where clause but not columns in select clause,
    for example,
    QUERY=employees:'"WHERE department_id > 10 AND salary > 10000"'
    you could use
    create table2export as select c1,c2,c3,c4 from tableof10columns;and export the temp table.

  • The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1

    The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1. If you select single file, then it is able to return file size correctly. However, if you select multiple files, then the file size of each of the selected file is always returned as 0 from javascript. This works correctly in Safari 4.0 but it does not work in Safari 5.1.
    How do I get the correct file size in Safari 5.1 ?

    If you want to post (or send me) a link to the lrcat file, I'd take a look at it for you, and give you a break-down what's consuming all the bytes. But it might be fun to learn how to do that yourself (e.g. using SQL). I use SQLiteSpy, but other people have their favorites.. (or you can use a command-line client if you prefer..). One way: just run "drop table "{table-name}" on each table then look at filesize (do this to a copy, not the real thing).
    Anyway, it's hard to imagine keywords and captions etc. taking much of the space, since even if you had 1000 10-character words of text metadata per photo average that still only adds up to 117MB, which isn't a substantial portion of that 8G you're seeing occupied.
    Anyway, if you've painted the heck out of most of them and not cleared dev history, that'll do it - that's where I'd put my money too...
    One thing to consider to keep file-size down:
    ===================================
    * After reaching a milestone in your editing, take a snapshot then clear edit history, or the top part of it anyway (e.g. leave the import step), using a preset like:
    Clear Edit History.lrtemplate
    s = {
        id = "E36E8CB3-B52B-41AC-8FA9-1989FAFD5223",
        internalName = "No Edit",
        title = "Clear Edit History",
        type = "Develop",
        value = {
            settings = {
                NoEdit = true,
            uuid = "34402820-B470-4D5B-9369-0502F2176B7F",
        version = 0,
    (that's my most frequently used preset, by far ;-})
    PS - I've written a plugin called DevHistoryEditor, which can auto-consolidate steps and reduce catalog size - it's a bit cumbersome to use a.t.m. but in case you're interested...
    Rob

Maybe you are looking for

  • Retrieving calendar and contacts data from OSX Server Time Machine

    Due to a system failure I went out an brought a Macbook Air. My other Mac is away being assessed by a repair shop. By plugging in the Time Machine drive from the other Mac I have managed to recover my files, videos, photos etc. Contacts and Calendars

  • Replacing a router

    Hello, I have a question that until now, no one was able to give me a definite answer. In my home I have a computer network consisting of 2 computers linked by LAN and the main desktop computer situated in a concrete-built room. The computer is conne

  • WaveBurner - invalid field in cdb

    I have been using logic for years and have never had this problem with Waveburner.  I went to burn a copy of a master, the only difference in it and earlier copies is I was adding the ISRC. When trying to burn I got this message: "Disk drive didn't r

  • Cannot Sync photos or anything else

    When i try to sync my ipod, it says: "The iPod could not be synced. the disk you are attempting to use is full." i deleted some apps but it acutally made the memory go over capacity... please help! my ipod is 4th gen 8gb ios 5.0.1

  • Immediate CENVAT Utilization for a particular business process

    HI Friends, The Business requirement is that  a single Excise invoice number should be generated for the plant be it domestic or Export Transactions. So we have accordingly maintained a single series group. The client requires  immediate  utilization