Remove active rows from a filter context

Hey,
I have a problem that nags me for a couple of days …
My problem is about people (dimSomeOne) who try something (dimThing) on a certain day (dimDate). Each try is finished with a status (dimStatus). It is possible that a distinct person has 1 or more trys for the same thing on the same day. This can be seen (if
you watch at the worksheet fact, available on dropbox :-) ) for the 19th of march, here someone 1 has tried 2times the thing A, and finished with the status 1. What I'm looking for is the number of distinct SOMEONES on a specific day for a specific
status. If SOMEONE has more than one status on the same day, this SOMEONE will just be counted for his MAX status. SOMEONE 1 has the status 2 and 3 on the 20th of March and therefor SOMEONE 1 will just be counted for STATUS 3 and not for STATUS 2 
For the context dimTraining:A / dimStatus:2 / dimDate:20.03.2015 there are 5 active rows: theRowNumber 3,4,5,8,11. I want to remove the rows 3,4,5 due to the fact that they "belong" to someone 1 and the fact that someone 1 has the max stauts of 3
on that date.
I'm able to produce a DAX query that returns the a result that has the correct number of someone's for the the date and the status
evaluate(
summarize(
filter(
addcolumns(
summarize(
'fact',[aDate],[someone],[aStatus]
--,[theRowNumber]
,"maxstatus"
,calculate(max(fact[aStatus]),all(fact[aStatus]))
,fact[aStatus] = [maxstatus]
,[aDate],[someone],[aStatus],[maxStatus]
--,[therownumber]
order by
[aDate],[someone],[aStatus]
, but I'm not able to use this in calculated measure.
Showing the value 2 for the context: TRAINING:A / STATUS:2 / DATE:2015-03-20
As always any help is appreciated
By the way here is a xlsx file that contains my sample data and there are also two measures that unfortunately do not solve my problem:
https://www.dropbox.com/s/anxn0vmrjzpiewx/TheDistinctSomeOneThing.xlsx?dl=0

Hey Imke,
thanks for bringing up the calculated column thing, I have to admit that most of the time I'm trying to avoid adding additional in-memory footprint by using calculated columns. But in comparison to the amount of fact rows (a couple of millions) the amount
of distinct status values (blank(), 1,2,3, 4) does not count that much.
But your suggested solution for the simple calculated measure has a little flaw due to the things distinctcount counts (even a NULL is counted), this can be seen if you add another "someone" to the dimSomeOne table and another fact row for the 20th
of March / thing:A / astatus:2
test2:=distinctcount([validStatus]) still shows the value 2, but now it should show 3
I tweaked your suggestion for the measure a little using distinctcout for fact[someone]
testFinal:=calculate(distinctcount(fact[someone]);not(isblank(fact[ValidStatus])))
and I also changed the false part from 0 --> blank() for the calculated column.
So, thanks again for bringing up the calculated column stuff, that I personally consider most of the time as an evil thing ;-) and sorry that my example was a way to simple, neglecting the distinct values fact of distinctcount

Similar Messages

  • How do I remove a row from the database?

    Guys and Gals,
    I'm using Studio Edition Version 11.1.1.3.0.
    The code below will delete a row from my table, but how do I actually delete the row from the database as well?
        DCBindingContainer dcbc = (DCBindingContainer)getBindings();
        DCIteratorBinding dcib = dcbc.findIteratorBinding("TipsSelectorIterator");
        dcib.removeCurrentRow();
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("Commit");
        Object result = operationBinding.execute();
        AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
        adffacesctx.addPartialTarget(this.getQueryTable()); In this post, I believe Frank sums up what I should do: Remove row from af:table
    >
    The problem in your case is that this removes the row from the iterator but not your business service. EJB exposes explicit methods to remove an entity. A method lime removeEmployees(employee) >expsed on the EJB model must be called.
    You can drag and drop the "removeEmployees" method then as a button to your page. Rename the text label to "Remove" or "Delete". In the opened dialog box, point the method argument to the >following EL #{bindings.iteratorName.currentRow.dataProvider}. Next time you press the button, the row is deleted from the iterator and the business service
    Huh? So to delete the row, I need to expose a method. But where? Do I do this in the AppModuleImpl so I can expose it to the Client Interface? But then how do I access entities? And what data type is the #{bindings.iteratorName.currentRow.dataProvider}?
    If anyone could point me in a general direction, it'd be great.

    Frank and Shay,
    Thank you both for your posts. I'm amazed there's such a great place to get help. Between the forums, ADF code corner, Not Yet Documented ADF Samples, various blogs and tutorials, it's obvious you guys really care about what you do.
    On my example, that approach doesn't seem to work. I tried following it like so in one of the video tutorials by Shay: http://blogs.oracle.com/shay/2010/04/doing_two_declarative_operatio.html. Following Shay's approach, in my particular case, deletes only from the table. Perhaps it is due to my iterator / collection setup?
    TipsSelector (1 to 1) -> TipsView (1 to *)-> DependentBom -(1 to * Recursive)> RecursiveBom
    TipsSelector references the same View Object as TipsView, but it is set as a 1 to 1 relationship so that I can show TipsView on the page one record at a time. This is the same setup as Tuhra2's hierarchy veiwer example. TipsView / DependentBom is a classic parent / child setup. RecursiveBom is DependentBom referencing itself. Think of it as departments within departments within departments etc...
    I have dragged TipsSelector's Named Criteria (All Queriable Attributes) onto my page and created an ADF Query with Table. A remove button on the table's toolbar calls the two actions, Delete (from TipsSelector's iterator) and then Commit. I have modified the code slightly from my previous post but the end result seems to be the same.
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("Delete");
        operationBinding.execute();
        bindings = getBindings();
        operationBinding = bindings.getOperationBinding("Commit");
        operationBinding.execute();
        AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
        adffacesctx.addPartialTarget(this.getQueryTable());Page Def file
        <action id="Commit" InstanceName="AppModuleDataControl"
                DataControl="AppModuleDataControl" RequiresUpdateModel="true"
                Action="commitTransaction"/>
        <action IterBinding="TipsSelectorIterator" id="Delete"
                InstanceName="AppModuleDataControl.TipsSelector"
                DataControl="AppModuleDataControl" RequiresUpdateModel="false"
                Action="removeCurrentRow"/>On ppr of the query table, the row is gone. However, when I press the Search button on the query again, the record reappears.
    This is beyond me. Am I somehow deleting from the query results but not the database?

  • How to remove a row from a rowset obtained via a CachedRowSetDataProvider

    I have a table filled from a database that it is bound to.
    I have the CachedRowSetDataProvider that supplies the rows.
    I want to remove a row from the result set and can't figure out how.
    There is a method ... removeRow(RowKey row).
    and there is a method ... getRowKey(java.lang.String rowId)
    How do I determine what the string id is for, say, row 3?
    thanks
    jim murray

    Thats the tutorial I am working with.
    My problem is that the statement tripDataProvider.refresh();
    executed when the person drop down changes doesn't seem to clearing the previous persons results.
    So I want to clear the rowset myself by deleting the rows individually.
    I can find a method to delete a row if I supply the RowKey.
    There is a method to get the rowkey if I know the RowID, which is a string.
    Unfortunately I dont know the string to use for an arbitrary row.
    There should be a simpler way to clear the data from a rowset.
    regards
    jim murray

  • How to remove a row from a rowset

    HI,
    I am trying to do a very simple thing, but I got stuck.
    The problem:
    I want to remove a row from a rowset, without removing the row itself. Especially I do not want to remove any entities.
    I need this functionality in several situations, for example when I want to move a row from one rowset to another.
    Another situation is when I have a viewlink not based on an association. When a row is modified so it does not fit to the viewlink's where clause anymore, I need a way to remove it manually (without removig any associated entities),
    I hope someon can help me on this,
    thanks,
    Frank

    Sascha:
    The only workaround I can think of is a true hack, and you'd be entering into a unchartered territory. But, it may be worth a try.
    First, you need to create a subclass of oracle.jbo.server.ViewObjectImpl in the oracle.jbo.server package. This is because you need to override one of the package private methods. Suppose you define oracle.jbo.server.TempBaseViewObjectImpl which extends ViewObjectImpl.
    Override the following method:
    int[] getDeleteParticipants()
    This method returns an array of EO bases for which ViewRow's delete should cause deletion of EntityRow's.
    So, before you remove a ViewRow, you should set some flag in your TempBaseViewObjectImpl, so that getDeleteParticipants() would return "new int[0];" This will cause no EntityRow's to be deleted. Only the ViewRow will be removed from the collection.
    Note that you should reset this flag after the operation, so that you can delete the EntityRow's (when necessary).
    Your real VO should then subclass TempBaseViewObjectImpl.
    Once we fix this problem and provide a real API, you should remove TempBaseViewObjectImpl and extend your real VO from ViewObjectImpl instead of TempBaseViewObjectImpl.
    Thanks.
    Sung

  • How to remove a row from a jtable with DefaultTableModel

    Hi to all,]
    I want to remove a row from jtable. I am using DefaultTableModel.
    I have got some example but every example is given with AbstractTableModel
    Please help me...
    Thanks and Regards

    I want to remove a row from jtable. I am using DefaultTableModel.How do you program without reading the API.
    The name of the method you use is "removeRow". How hard is that to find by reading the API?
    Not only do you not bother to read the API, you don't even bother to read and respond to your old postings when you get help:
    http://forum.java.sun.com/thread.jspa?threadID=5137773
    http://forum.java.sun.com/thread.jspa?threadID=5134667
    http://forum.java.sun.com/thread.jspa?threadID=5131162
    Your on your own in the future.

  • First attempt to remove duplicate rows from a table...

    I have seen many people asking for a way to remove duplicate rows from data. I made up a fairly simple script. It adds a column to the table with the cell selected in it, and adds the concatenation of the data to the left into that new column. then it reads that into a list, and walks through that list to find any that are listed twice. Any that are it marks for DELETE.
    It then walks through to find each one marked for delete and removes them (you must go from bottom to top to do this, otherwise your row markings for delete don't match up to the original rows anymore). Last is to delete the column we added.
    tell application "Numbers"
    activate
    tell document 1
    -- DETERMINE THE CURRENT SHEET
    set currentsheetindex to 0
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of (tables whose selection range is not missing value)
    end tell
    if x is not 0 then
    set the currentsheetindex to i
    exit repeat
    end if
    end repeat
    if the currentsheetindex is 0 then error "No sheet has a selected table."
    -- GET THE TABLE WITH CELLS
    tell sheet currentsheetindex
    set the current_table to the first table whose selection range is not missing value
    end tell
    end tell
    log current_table
    tell current_table
    set list1 to {}
    add column after column (count of columns)
    set z to (count of columns)
    repeat with j from 1 to (count of rows)
    set m to ""
    repeat with i from 1 to (z - 1)
    set m to m & value of (cell i of row j)
    end repeat
    set value of cell z of row j to m
    end repeat
    set MyRange to value of every cell of column z
    repeat with i from 1 to (count of items of MyRange)
    set n to item i of MyRange
    if n is in list1 then
    set end of list1 to "Delete"
    else
    set end of list1 to n
    end if
    end repeat
    repeat with i from (count of items of list1) to 1 by -1
    set n to item i of list1
    if n = "Delete" then remove row i
    end repeat
    remove column z
    end tell
    end tell
    Let me know how it works for y'all, it worked good on my machine, but I know localization is causing errors sometimes when I post things.
    Thanks,
    Jason
    Message was edited by: jaxjason

    Hi jason
    I hope that with the added comments it will be clear.
    Ask if something is always opaque.
    set {current_Range, current_table, current_Sheet, current_Doc} to my getSelection()
    tell application "Numbers09"
    tell document current_Doc to tell sheet current_Sheet to tell table current_table
    set list1 to {}
    add column after column (count of columns)
    set z to (count of columns)
    repeat with j from 1 to (count of rows)
    set m to ""
    tell row j
    repeat with i from 1 to (z - 1)
    set m to m & value of cell i
    end repeat
    set value of cell z to m
    end tell
    end repeat
    set theRange to value of every cell of column z
    repeat with i from (count of items of theRange) to 1 by -1
    (* As I scan the table backwards (starting from the bottom row),
    I may remove a row immediately when I discover that it is a duplicate *)
    set n to item i of theRange
    if n is in list1 then
    remove row i
    else
    set end of list1 to n
    end if
    end repeat
    remove column z
    end tell
    end tell
    --=====
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers09" to tell document 1
    set theSheet to ""
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    (* Open a trap to catch the selection range.
    The structure of this item
    «class
    can't be coerced as text.
    So, when the instruction (selection range of table y) as text
    receive 'missing value' it behaves correctly and the lup continue.
    But, when it receive THE true selection range, it generates an error
    whose message is errMsg and number is errNum.
    We grab them just after the on error instruction *)
    try
    (selection range of table y) as text
    on error errMsg number errNum (*
    As we reached THE selection range, we are here.
    We grab the errMsg here. In French it looks like:
    "Impossible de transformer «class
    The handler cuts it in pieces using quots as delimiters.
    item 1 (_) "Impossible de transformer «class » "
    item 2 (theRange) "A2:M25"
    item 3 (_) " of «class NmTb» "
    item 4 (theTable) "Tableau 1"
    item 5 (_) " of «class NmSh» "
    item 6 (theSheet) "Feuille 1"
    item 7 (_) " of document "
    item 8 (theDoc) "Sans titre"
    item 9 ( I drop it ) " of application "
    item 10 ( I drop it ) "Numbers"
    item 11 (I drop it ) " en type string."
    I grab these items in the list
    {_, theRange, _, theTable, _, theSheet, _, theDoc}
    Yes, underscore is a valid name of variable.
    I often uses it when I want to drop something.
    An alternate way would be to code:
    set ll to my decoupe(errMsg, quote)
    set theRange to item 2 of ll
    set theTable to item 4 of ll
    set theSheet to item 8 of ll
    set theDoc to item 10 of ll
    it works exactly the same but it's not so elegant.
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    exit repeat (*
    as we grabbed the interesting datas, we exit the lup indexed by y.*)
    end try
    end repeat -- y
    if theSheet > "" then exit repeat (*
    If we are here after grabbing the datas, theSheet is not "" so we exit the lup indexed by i *)
    end if
    end tell -- sheet
    end repeat -- i
    (* We may arrive here with two kinds of results.
    if we grabbed a selection, theSheet is something like "Feuille 1"
    if we didn't grabbed a selection, theSheet is the "" defined on entry
    and we generate an error which is not trapped so it stops the program *)
    if theSheet = "" then error "No sheet has a selected table."
    end tell -- document
    (* Now, we send to the caller the interesting datas :
    theRange "A2:M25"
    theTable "Tableau 1"
    theSheet "Feuille 1"
    theDoc "Sans titre" *)
    return {theRange, theTable, theSheet, theDoc}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d (*
    Cut the text t in pieces using d as delimiter *)
    set l to text items of t
    set AppleScript's text item delimiters to "" (*
    Resets the delimiters to the standard value. *)
    (* Send the list to the caller *)
    return l
    end decoupe
    --=====
    Have fun
    And if it's not clear enough, you may ask for more explanations.
    Yvan KOENIG (from FRANCE mardi 27 janvier 2009 21:49:19)

  • Remove a row from multiple tables

    Hello,
    I have a form that has what appears to be one table.  Since I needed 30 columns (29 of them are single character fields) I had to use 2 table objects.  Then I needed the ability to add and remove rows.  Adding a row at the end is easy enough.  Deleting a specific row is the problem.  At the moment, I added a third table which has a header row and a item body row.  the body row is a button with the intention of removing that entire row from the large table.  This means it needs to remove the row from all 3 tables.
    My structure is:
    form1
    (Some other flowed subform that doesn't matter for us)
    SubformPersonnel (a flowed subform)
    SubformHeader (a positioned subform)
    TextOverallHeader (text to label the oeverall 3 tables)
    ButtonAddRow (adds a row to the end of all 3 tables)
    SubformPersonnelTable (a positioned subform)
    ContractorTableRemove (a table with 1 column for the Remove button)
    HeaderRow (A hidden row to align the table with the other 2)
    Item (A row with the Remove button)CellRemoveButton (the cell with the remove button and associated JavaScript)
    ContractorTableLeft (a table with the left 15 printed columns)
    HeaderRow
    Contractor (A row of data to be removed when CellButton above is clicked)
    ContractorTableRight (a table with the right 15 printed columns)
    HeaderRow
    Contractor (A row of data to be removed when CellButton above is clicked)
    (Some other flowed subforms that I am not worried about at the moment)
    The 3 tables are aligned so the headers all line up, with no spaces between them.  The body rows then line up and this looks like one large table.  From left to right, they are:
    ContractorTableRemove, ContractorTableLeft, ContractorTableRight
    So Item and Contractor rows are added when ButtonAddRow is clicked in the overall header.  The intial count is set to 8 for each table, so I get 8 rows at startup. The minimum count is set to 1 for each.  I know that each row of each table has the same index number because I filled those into a cell in each table durig the cell's initialize.  This line, in the CellRemoveButton's click event deletes that cell's row in that table:
    this.parent.parent._Item.removeInstance(this.parent.index);
    I have tried all sorts of ways to delete the same row (using same index #) in the other 2 tables: ContractorTableLeft and ContractorTableRight, but don't seem to be getting the correct syntax correct.  I have tried hard coding the references, using .parent as shown below, and also tried using an index of 1 just to try deleting a row with no results.
         this.parent.parent.parent.ContractorTableLeft._Contractor.removeInstance(this.parent.inde x);
    Can someone get me the correct syntax here?
    I have seen examples of putting a hidden delete button on each table and clicking that, but I am concerned that it will get in the way of the tables on either side of the table it is in.  I reeally want to just reference the row and remove it so I can avoid any problems these additional delete problems may cause.
    I have copied the form to https://acrobat.com/#d=7M8R50rEHf4AaVXppwyKLw

    Thank you, Niall.  Much appreciated!
    The Delete button was more to make sure one could delete these outside a button in the actual row and I see I had the index wrong such that I was deleting the second row and not the first.  I had toyed with using this as a hidden button if I could pass the index to the event's function.
    I had not thought of adding the reference to each row as a variable.  It seems to work very well.
    For future reference to others, here is the code from the cellRemoveButton click event:
         // Declare some variables
         var i = this.parent.index;
         var oContractorLeft = ContractorTableLeft.Contractor;
         var oContractorRight = ContractorTableRight.Contractor;
         // Remove this row by accessing its index within the set of 'Item' row instances of the parent table
         _Item.removeInstance(i);
          // Since this table is actually 3 tables, we need to remove the other two table's instances as well.
         // Their index should be the same, so we just need to get their names correct.
         oContractorLeft.instanceManager.removeInstance(i);
         oContractorRight.instanceManager.removeInstance(i);
          // removing the row doesn't trigger calculations in tables in the form's current target (fixed in later versions of Acrobat)
         // force calculations to fire so the ItemIndex field's value is updated according to the remaining row's indexes
         // see http://forms.stefcameron.com/2006/05/20/add-recalculate/
         xfa.form.recalculate(1);
    Again, thank you!
    Karl

  • Removing duplicate rows from SELECT

    Hi, I was wondering if there was any way to remove duplicate rows from a select statement.
    My table looks like this:
    CREATE TABLE CUS_ID_TO_PC_ID (
    CUSTOMER_ID VARCHAR2 (10) NOT NULL,
    PC_ID VARCHAR2 (25) NOT NULL,
    PASSWORD VARCHAR2 (25) NOT NULL,
    REG_DATE DATE,
    PRODUCT_DESC VARCHAR2 (25),
    EXPIRE_DATE DATE,
    SERIAL_NBR VARCHAR2 (12),
    LDAP_USER VARCHAR2 (200),
    COMMENTS VARCHAR2 (2000),
    PC_ID_5_4 VARCHAR2 (25),
    PC_ID_6_0 VARCHAR2 (25),
    PASSWORD_5_4 VARCHAR2 (25),
    PASSWORD_6_0 VARCHAR2 (25),
    PC_ID_6_1 VARCHAR2 (25),
    PASSWORD_6_1 VARCHAR2 (25),
    OPERATING_SYSTEM VARCHAR2 (20),
    STATUS VARCHAR2 (1)
    Basically, I want to retrieve all columns from the table but remove all duplicate variations of
    the pc_id/serial_nbr combinations.
    For example, given this data:
    PC_ID SERIAL_NBR CUSTOMER_NO
    1234567 AAA C345
    1234567 AAA C567
    3333333 BBB C456
    only the 1st and 3rd rows would be returned.
    Any ideas?

    Try something like this:
    select * from your_table yt
    where rowid in (select max(rowid)
    from your_tabel yt2
    where yt2.pc_id = yt.pc_id
    and yt2.serial_nbr = yt.serial_nbr);

  • HT201365 How to remove activation lock from ios7?

    How to remove activation lock from ios7 on my iphone4?

    The problem with Activation Lock is that there is no system for unbricking devices by their rightful owners, no Apple Court of Appeals.
    As a result of that, using Activation Lock will become the best way for disgruntled employees to take a parting shot after being fired. They will report their device lost, then turn it in and leave. After that, the company will no longer be able to use the device, even though the company owns it.

  • Why did Word on Office 2013 REMOVE Auto Correct from Right-Click Context Menu??

    Hi Microsoft -
    I normally don't rant, but this is a killer feature removal, and the reason given is for aesthetics - 'Removal of clutter" is how it's worded here:
    [Changes in Office 2013]
    http://technet.microsoft.com/en-us/library/cc178954(en-us).aspx
    I copy n pasted below the operative row from the linked TechNet page as to the reason WHY this critical (and very popular feature) has been removed from Microsoft Office 2013 Word's context-menu: LESS CLUTTER
    And your answer is ambiguous and doesn't solve the issue that you created to make things prettier: "Click the AutoCorrect Options button" Then what?  ADD EACH WORD MANUALLY? 
    Please advise ALL OF US that want this feature back how to have our commonly misspelled words fixed and added automatically to the dictionary.  If I am missing this in a major way somehow, I apologize completely and will issue a public apology via any
    social media platform of your choice.  If it really is gone, and I have to manually add the entries into a buried table 6-clicks deep, then I will issue a public excoriation of this feature on as many social platforms of my choice.
    Sincerely,
    Maximus Mednick
    COPY N PASTE AS FOLLOWS:
    =-=-=-=-=-=-=-=
    Contents of spelling error context menu
                    Word and WordMail within Outlook
    Modifying the feature
    Auto-Correct and certain formatting tools are no longer available from the spelling error context menu.
    To make Word 2013 cleaner and less cluttered, we removed AutoCorrect and certain formatting tools from the spelling error context menu. The features are still available in Word 2013 through other entry points within the Word user interface.
    Less clutter in the spelling error context menu. This enables users to find popular commands more quickly. In addition, the spelling error context menu now fits better on the screen.
    To change AutoCorrect options, do the following:
    Choose File -> Options -> Proofing
    Choose the AutoCorrect Options button.
    =-=-=-=-=-=-=-=
    Thanks, MAXIMUS

    Microsoft used to be about allowing users to customize the OS and apps however they want. This was one reason I have always preferred Windows over Mac. There are 5 ways to do any one thing, and you can customize it to do it however you want. It's all about
    user choice. Please don't go the way of Apple and force users into the way that you *think* we should do things. 
    <rant>
    While I whole heartedly agree with this suggestion, if you look through this blog about the design decisions that went into the 2007 ribbon:
    Jensen Harris: An Office User Interface Blog -
    http://blogs.msdn.com/b/jensenh/archive/2008/03/12/table-of-contents.aspx
    You'll see that one of the considerations of the ribbon was to ELIMINATE/REDUCE customization because it was costing large corporate customers too much time/money to support their users with 2003 customized menu/toolbars.  In other words, the ribbon
    was intentionally built as a fixed design so that average user cannot change it.  The QAT was an afterthought, a sop, to allow users minimal customization. 
    They found that the 2007 lock down was too much of a "good thing", too much like the good old "IBM 360 green screen" (even if most people don't recognize the reference), so in 2010 they
    re-introduced limited Ribbon customization within the UI.
    But you still can't customize the default tabs. And to add injury to insult, if you do want to customize a default tab and go to the effort of trying to recreate the default tabs and groups
    within the Ribbon UI, you'll eventually find that YOU CAN'T'! There is no way inside the UI to force the buttons to layout the same way! AHHH!
    Even in 2007,
    EXPERTS have had the option of creating custom Ribbons/tabs by editing XML, but that is pretty serious programming, out of scope for 99% of users.
    The "solution" to the problem was too simple. Just add an option to allow users to turn on the old menu UI.  Even if it had been buried as a registry hack, the people who really wanted it would have learned about it. Then MS could have collected statistics
    on usage that would have "proved" that the menu was preferred over the ribbon.  The thing is, if the ribbon was defaulted "out of the box", over time people would eventually all switch over to it. Simply because it was the default, because MS only produced
    new training material referring for the ribbon
    Now, I'll concede that the ribbon really may be more "intuitive", but only for new users. For long time users the change is very jarring.
    They made the same choice with Windows 8.  In the last Windows 8 consumer Preview there was a registry hack to bypass the Start Screen.  I learned about it in July or August. But MS was so sure the Start screen/metro was the only way to go they
    rushed out a Windows Update to eliminate that registry entry. And it was eliminated from the RTM version. 
    WHY?
    Why did they remove the user's right to chose the UI that worked best for them? I don't know.
    </end rant>  sorry, this is a hot button for me.

  • Deleting a row from matrix by context menu

    Hi all
    does anyone know how can i cause right click on mouse button. on a certain row within a matrix to show a context menu with the option to delete the row. and when pressing the menu item handling the event of deleting the row from the matrix?
    appreciate the help
    Yoav

    Hi Yoav,
    Simply, 'context menu' have to be handled with 'menu event' object.
    It can be done by 'flushToDataSource' method and some tricks.
    Basically, method delete the row without any clause of addon code.
    But it's only can be done in display side.
    If you're using DBDataSource, you have to flush to the datasource.
    I mean, you have to update datasource with the data displayed in the matrix.
    and then, delete the last row of the datasource.
    FlushToDataSource doesn't affect to the number of rows in the datasource.
    You have to delete a row with a method of DBDatasource.. I can't remember the name.
    If, the matrix uses userdatasource, you don't need to delete a row in datasource.
    Because userdatasource doesn't have a concept of 'row', actually.
    Hope this helpful for you.
    Regards,
    Hyunil Choi

  • How to remove a row from JTable

    Hi!
    I'm used to remove rows from JTables getting the model and doing a removeRow(num) like this:
    ((DefaultTableModel)jTable1.getModel()).removeRow(0);
    But with ADF and JDeveloper the model says it's a JUTableBinding.JUTableModel but its not accessible.
    How to remove a row in Jdeveloper 10.1.3.4.0?

    Or maybe is just better to refresh data in the jTable but I do not know either like doing it.

  • Remove leading Zeros from the mapped context node(Table)

    HI,
    I have he following requirement:
    In the Leave approval application , in the Approver worklist we have the coloumn to display the resuqester's Perner.
    The perner starts with leading zeros. We have to remove these leading zeros.
    I have refer the following threads:
    Removing leading zeros in a column
    How to remove leading zeroes of string
    and wiki document:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/remove%252bleading%252band%252btrailing%252bzeros%252bfrom%252ba%252bstring
    but I am not able to create the calculated attribute in the Mapped Node( NWDS is not allowing indicating it is not allowed for mapped nodes.)
    Any pointer how I can remove leading Zeros from existing column?
    If I create the calculated attribute outside the mapped node then it is taking only the first value of the mapped node.
    Please note we do not want to modify the RFC.
    _vishal

    Hi,
    Thanks for inputs,
    Now I created a test application where the original structure is as follows in the View Controller:
    1) Context -> Z_Portal_Test_Input (mapped Node/folder) -> IT_Tab_Input(mapped Node/folder) -> Eid(Mapped attribute)
    note: this attribute Eid has the values (01, 02,03,04,05)
    2)Context -> Z_Portal_Test_Input (mapped Node/folder) -> Output(mapped Node/folder) ->IT_Tab_Input(mapped Node/folder) -> Eid(Mapped attribute)
    Now as per your suggestion I created another node like this
    Context -> Z_Portal_Test_Input (mapped Node/folder) ->testnode(value node) ->testValue(value attribute)
    testnode cardinality is 1..1 and singlton = false
    In the Layout
    The tablecell editor  of one coloumn is mapped to text     Z_Portal_Test_Input.testnode.testvalue
    It is expected that this will show the values like(1,2,3,4,5) but it is showing value(1,1,1,1,1)
    The code of get method is:
      public java.lang.String getTestnodeTestvalue(IPrivateTestpernerView.ITestnodeElement element)
        //@@begin getTestnodeTestvalue(IPrivateTestpernerView.ITestnodeElement)
          String  msg =wdContext.nodeZ_Portal_Test_Input().nodeOutput().nodeIt_Itab().currentIt_ItabElement().getEid();
            return removeLeadingZeroes(msg);
        //@@end
    the functon removeLeadingZeroes(msg) is implemented as per the wiki link.
    What wrong I am doing/ missing....
    _vishal

  • Need to remove duplicate rows from a table

    Hi Gurus ,
    I am using oracle 11.2.0.3 .
    SQL> desc osstage.S_EVT_ACT_X;
    Name                                      Null?    Type
    ROW_ID                                    NOT NULL VARCHAR2(15 CHAR)
    LAST_UPD                                  NOT NULL DATE
    PAR_ROW_ID                                NOT NULL VARCHAR2(15 CHAR)
    ATTRIB_17                                          NUMBER(22,7)
    ATTRIB_26                                          DATE
    ATTRIB_02                                          VARCHAR2(100 CHAR)
    PROCESS_TIMESTAMP                                  TIMESTAMP(6);
    now when i give the below command it gives the error as someone has disabled the constraint accidently .
    alter table s_evt_act_x enable constraint S_EVT_ACT_X_P1;
    Error starting at line 3 in command:
    alter table s_evt_act_x enable constraint S_EVT_ACT_X_P1
    Error report:
    SQL Error: ORA-02437: cannot validate (OSSTAGE.S_EVT_ACT_X_P1) - primary key violated
    02437. 00000 -  "cannot validate (%s.%s) - primary key violated"
    *Cause:    attempted to validate a primary key with duplicate values or null
               values.
    *Action:   remove the duplicates and null values before enabling a primary
               key.
    Can you please guide me with this issue .

    Please refer
    Script: Deleting Duplicate Rows from a Table (Doc ID 31413.1)
    How to Find or Delete Duplicate Rows in a Table (Doc ID 1004425.6)

  • How to Remove Checked Rows from JTable

    Hello All,
    I am currently working on a JTable, in which I have also include a JCheckbox. What i have to do is to remove all the Rows which are Checked in the JTable, when the 'Delete' button is clicked.
    Please tell me how i can this can be done, it will be of great help.
    Thanks,
    Shikha

    Loop through the TableModel, Use the getValueAt(...) method to find rows with a selected checkBox. Then use the removeRow(...) method of the DefaultTableModel to remove the row.
    Note: make sure your loop starts at the last row of the table and counts down to 0, to simplify the delete logic.

Maybe you are looking for

  • How do I find and include pre-existing music files on my PC?

    I'm new to iTunes and believe that I should be able to find and include pre-existing music files on my PC? I've found out how to show the menu bar but I can't see how to do the above except file/folder by file/folder.

  • How do you merge fields in new Pages?

    I had a template created in the old Pages to create mailing envelopes.  I was able to drag and drop contacts I selected into Pages and it would automatically format my envelopes based on my field specifications.  I attempted to create a new mailer tw

  • Need help with delivery address for iPhone 6

    I am trying to change the delivery address for my iPhone but UPS says I need to talk to Apple and Apple says its up to UPS. UPS says there is a dedicated line for Apple to call UPS to change the address and Apple says no such line exists. Has anyone

  • List that responds to keypressed events?

    Hi I am designing a midlet that needs a list which scrolls down to names based on the input from the phones letter keys (ie if the user presses the 'GHI' key then the names starting with 'G' are shown. the same as in a phones contact-list) However th

  • JDev 11g TP4 Issue - Cannot Open TP3 Database Class Diagrams

    I created the diagram with build 4893 (actually post TP3). After opening the application in TP4, double clicking the diagram (or selecting Open from the right-click menu) does not open it. The release notes web page seems to be down at the moment so